configure revision d859ff80
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xmh 1.0.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmh/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/app/xmh/-/issues 272$0: about your system, including any error possibly output 273$0: before this message. Then install a modern shell, or 274$0: manually run the script under such a shell if you do 275$0: have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592test -n "$DJDIR" || exec 7<&0 </dev/null 593exec 6>&1 594 595# Name of the host. 596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597# so uname gets run too. 598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600# 601# Initializations. 602# 603ac_default_prefix=/usr/local 604ac_clean_files= 605ac_config_libobj_dir=. 606LIBOBJS= 607cross_compiling=no 608subdirs= 609MFLAGS= 610MAKEFLAGS= 611 612# Identity of this package. 613PACKAGE_NAME='xmh' 614PACKAGE_TARNAME='xmh' 615PACKAGE_VERSION='1.0.4' 616PACKAGE_STRING='xmh 1.0.4' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmh/-/issues' 618PACKAGE_URL='' 619 620ac_unique_file="Makefile.am" 621# Factoring default headers for most tests. 622ac_includes_default="\ 623#include <stddef.h> 624#ifdef HAVE_STDIO_H 625# include <stdio.h> 626#endif 627#ifdef HAVE_STDLIB_H 628# include <stdlib.h> 629#endif 630#ifdef HAVE_STRING_H 631# include <string.h> 632#endif 633#ifdef HAVE_INTTYPES_H 634# include <inttypes.h> 635#endif 636#ifdef HAVE_STDINT_H 637# include <stdint.h> 638#endif 639#ifdef HAVE_STRINGS_H 640# include <strings.h> 641#endif 642#ifdef HAVE_SYS_TYPES_H 643# include <sys/types.h> 644#endif 645#ifdef HAVE_SYS_STAT_H 646# include <sys/stat.h> 647#endif 648#ifdef HAVE_UNISTD_H 649# include <unistd.h> 650#endif" 651 652ac_header_c_list= 653ac_func_c_list= 654ac_subst_vars='am__EXEEXT_FALSE 655am__EXEEXT_TRUE 656LTLIBOBJS 657LIBOBJS 658appdefaultdir 659APPDEFS_LIBS 660APPDEFS_CFLAGS 661XMH_LIBS 662XMH_CFLAGS 663MAN_SUBSTS 664XORG_MAN_PAGE 665ADMIN_MAN_DIR 666DRIVER_MAN_DIR 667MISC_MAN_DIR 668FILE_MAN_DIR 669LIB_MAN_DIR 670APP_MAN_DIR 671ADMIN_MAN_SUFFIX 672DRIVER_MAN_SUFFIX 673MISC_MAN_SUFFIX 674FILE_MAN_SUFFIX 675LIB_MAN_SUFFIX 676APP_MAN_SUFFIX 677SED 678host_os 679host_vendor 680host_cpu 681host 682build_os 683build_vendor 684build_cpu 685build 686INSTALL_CMD 687PKG_CONFIG_LIBDIR 688PKG_CONFIG_PATH 689PKG_CONFIG 690CHANGELOG_CMD 691STRICT_CFLAGS 692CWARNFLAGS 693BASE_CFLAGS 694am__fastdepCC_FALSE 695am__fastdepCC_TRUE 696CCDEPMODE 697am__nodep 698AMDEPBACKSLASH 699AMDEP_FALSE 700AMDEP_TRUE 701am__include 702DEPDIR 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710AM_BACKSLASH 711AM_DEFAULT_VERBOSITY 712AM_DEFAULT_V 713AM_V 714CSCOPE 715ETAGS 716CTAGS 717am__untar 718am__tar 719AMTAR 720am__leading_dot 721SET_MAKE 722AWK 723mkdir_p 724MKDIR_P 725INSTALL_STRIP_PROGRAM 726STRIP 727install_sh 728MAKEINFO 729AUTOHEADER 730AUTOMAKE 731AUTOCONF 732ACLOCAL 733VERSION 734PACKAGE 735CYGPATH_W 736am__isrc 737INSTALL_DATA 738INSTALL_SCRIPT 739INSTALL_PROGRAM 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759runstatedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL 779am__quote' 780ac_subst_files='' 781ac_user_opts=' 782enable_option_checking 783enable_silent_rules 784enable_dependency_tracking 785enable_selective_werror 786enable_strict_compilation 787with_appdefaultdir 788' 789 ac_precious_vars='build_alias 790host_alias 791target_alias 792CC 793CFLAGS 794LDFLAGS 795LIBS 796CPPFLAGS 797PKG_CONFIG 798PKG_CONFIG_PATH 799PKG_CONFIG_LIBDIR 800XMH_CFLAGS 801XMH_LIBS 802APPDEFS_CFLAGS 803APPDEFS_LIBS' 804 805 806# Initialize some variables set by options. 807ac_init_help= 808ac_init_version=false 809ac_unrecognized_opts= 810ac_unrecognized_sep= 811# The variables have the same names as the options, with 812# dashes changed to underlines. 813cache_file=/dev/null 814exec_prefix=NONE 815no_create= 816no_recursion= 817prefix=NONE 818program_prefix=NONE 819program_suffix=NONE 820program_transform_name=s,x,x, 821silent= 822site= 823srcdir= 824verbose= 825x_includes=NONE 826x_libraries=NONE 827 828# Installation directory options. 829# These are left unexpanded so users can "make install exec_prefix=/foo" 830# and all the variables that are supposed to be based on exec_prefix 831# by default will actually change. 832# Use braces instead of parens because sh, perl, etc. also accept them. 833# (The list follows the same order as the GNU Coding Standards.) 834bindir='${exec_prefix}/bin' 835sbindir='${exec_prefix}/sbin' 836libexecdir='${exec_prefix}/libexec' 837datarootdir='${prefix}/share' 838datadir='${datarootdir}' 839sysconfdir='${prefix}/etc' 840sharedstatedir='${prefix}/com' 841localstatedir='${prefix}/var' 842runstatedir='${localstatedir}/run' 843includedir='${prefix}/include' 844oldincludedir='/usr/include' 845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 846infodir='${datarootdir}/info' 847htmldir='${docdir}' 848dvidir='${docdir}' 849pdfdir='${docdir}' 850psdir='${docdir}' 851libdir='${exec_prefix}/lib' 852localedir='${datarootdir}/locale' 853mandir='${datarootdir}/man' 854 855ac_prev= 856ac_dashdash= 857for ac_option 858do 859 # If the previous option needs an argument, assign it. 860 if test -n "$ac_prev"; then 861 eval $ac_prev=\$ac_option 862 ac_prev= 863 continue 864 fi 865 866 case $ac_option in 867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 868 *=) ac_optarg= ;; 869 *) ac_optarg=yes ;; 870 esac 871 872 case $ac_dashdash$ac_option in 873 --) 874 ac_dashdash=yes ;; 875 876 -bindir | --bindir | --bindi | --bind | --bin | --bi) 877 ac_prev=bindir ;; 878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 879 bindir=$ac_optarg ;; 880 881 -build | --build | --buil | --bui | --bu) 882 ac_prev=build_alias ;; 883 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 884 build_alias=$ac_optarg ;; 885 886 -cache-file | --cache-file | --cache-fil | --cache-fi \ 887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 888 ac_prev=cache_file ;; 889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 891 cache_file=$ac_optarg ;; 892 893 --config-cache | -C) 894 cache_file=config.cache ;; 895 896 -datadir | --datadir | --datadi | --datad) 897 ac_prev=datadir ;; 898 -datadir=* | --datadir=* | --datadi=* | --datad=*) 899 datadir=$ac_optarg ;; 900 901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 902 | --dataroo | --dataro | --datar) 903 ac_prev=datarootdir ;; 904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 906 datarootdir=$ac_optarg ;; 907 908 -disable-* | --disable-*) 909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 910 # Reject names that are not valid shell variable names. 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 912 as_fn_error $? "invalid feature name: \`$ac_useropt'" 913 ac_useropt_orig=$ac_useropt 914 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 915 case $ac_user_opts in 916 *" 917"enable_$ac_useropt" 918"*) ;; 919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 920 ac_unrecognized_sep=', ';; 921 esac 922 eval enable_$ac_useropt=no ;; 923 924 -docdir | --docdir | --docdi | --doc | --do) 925 ac_prev=docdir ;; 926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 927 docdir=$ac_optarg ;; 928 929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 930 ac_prev=dvidir ;; 931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 932 dvidir=$ac_optarg ;; 933 934 -enable-* | --enable-*) 935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 938 as_fn_error $? "invalid feature name: \`$ac_useropt'" 939 ac_useropt_orig=$ac_useropt 940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 941 case $ac_user_opts in 942 *" 943"enable_$ac_useropt" 944"*) ;; 945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 946 ac_unrecognized_sep=', ';; 947 esac 948 eval enable_$ac_useropt=\$ac_optarg ;; 949 950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 952 | --exec | --exe | --ex) 953 ac_prev=exec_prefix ;; 954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 956 | --exec=* | --exe=* | --ex=*) 957 exec_prefix=$ac_optarg ;; 958 959 -gas | --gas | --ga | --g) 960 # Obsolete; use --with-gas. 961 with_gas=yes ;; 962 963 -help | --help | --hel | --he | -h) 964 ac_init_help=long ;; 965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 966 ac_init_help=recursive ;; 967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 968 ac_init_help=short ;; 969 970 -host | --host | --hos | --ho) 971 ac_prev=host_alias ;; 972 -host=* | --host=* | --hos=* | --ho=*) 973 host_alias=$ac_optarg ;; 974 975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 976 ac_prev=htmldir ;; 977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 978 | --ht=*) 979 htmldir=$ac_optarg ;; 980 981 -includedir | --includedir | --includedi | --included | --include \ 982 | --includ | --inclu | --incl | --inc) 983 ac_prev=includedir ;; 984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 985 | --includ=* | --inclu=* | --incl=* | --inc=*) 986 includedir=$ac_optarg ;; 987 988 -infodir | --infodir | --infodi | --infod | --info | --inf) 989 ac_prev=infodir ;; 990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 991 infodir=$ac_optarg ;; 992 993 -libdir | --libdir | --libdi | --libd) 994 ac_prev=libdir ;; 995 -libdir=* | --libdir=* | --libdi=* | --libd=*) 996 libdir=$ac_optarg ;; 997 998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 999 | --libexe | --libex | --libe) 1000 ac_prev=libexecdir ;; 1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1002 | --libexe=* | --libex=* | --libe=*) 1003 libexecdir=$ac_optarg ;; 1004 1005 -localedir | --localedir | --localedi | --localed | --locale) 1006 ac_prev=localedir ;; 1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1008 localedir=$ac_optarg ;; 1009 1010 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1011 | --localstate | --localstat | --localsta | --localst | --locals) 1012 ac_prev=localstatedir ;; 1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1015 localstatedir=$ac_optarg ;; 1016 1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1018 ac_prev=mandir ;; 1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1020 mandir=$ac_optarg ;; 1021 1022 -nfp | --nfp | --nf) 1023 # Obsolete; use --without-fp. 1024 with_fp=no ;; 1025 1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1027 | --no-cr | --no-c | -n) 1028 no_create=yes ;; 1029 1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1032 no_recursion=yes ;; 1033 1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1036 | --oldin | --oldi | --old | --ol | --o) 1037 ac_prev=oldincludedir ;; 1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1041 oldincludedir=$ac_optarg ;; 1042 1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1044 ac_prev=prefix ;; 1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1046 prefix=$ac_optarg ;; 1047 1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1049 | --program-pre | --program-pr | --program-p) 1050 ac_prev=program_prefix ;; 1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1053 program_prefix=$ac_optarg ;; 1054 1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1056 | --program-suf | --program-su | --program-s) 1057 ac_prev=program_suffix ;; 1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1060 program_suffix=$ac_optarg ;; 1061 1062 -program-transform-name | --program-transform-name \ 1063 | --program-transform-nam | --program-transform-na \ 1064 | --program-transform-n | --program-transform- \ 1065 | --program-transform | --program-transfor \ 1066 | --program-transfo | --program-transf \ 1067 | --program-trans | --program-tran \ 1068 | --progr-tra | --program-tr | --program-t) 1069 ac_prev=program_transform_name ;; 1070 -program-transform-name=* | --program-transform-name=* \ 1071 | --program-transform-nam=* | --program-transform-na=* \ 1072 | --program-transform-n=* | --program-transform-=* \ 1073 | --program-transform=* | --program-transfor=* \ 1074 | --program-transfo=* | --program-transf=* \ 1075 | --program-trans=* | --program-tran=* \ 1076 | --progr-tra=* | --program-tr=* | --program-t=*) 1077 program_transform_name=$ac_optarg ;; 1078 1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1080 ac_prev=pdfdir ;; 1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1082 pdfdir=$ac_optarg ;; 1083 1084 -psdir | --psdir | --psdi | --psd | --ps) 1085 ac_prev=psdir ;; 1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1087 psdir=$ac_optarg ;; 1088 1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1090 | -silent | --silent | --silen | --sile | --sil) 1091 silent=yes ;; 1092 1093 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1094 | --runstate | --runstat | --runsta | --runst | --runs \ 1095 | --run | --ru | --r) 1096 ac_prev=runstatedir ;; 1097 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1098 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1099 | --run=* | --ru=* | --r=*) 1100 runstatedir=$ac_optarg ;; 1101 1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1103 ac_prev=sbindir ;; 1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1105 | --sbi=* | --sb=*) 1106 sbindir=$ac_optarg ;; 1107 1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1110 | --sharedst | --shareds | --shared | --share | --shar \ 1111 | --sha | --sh) 1112 ac_prev=sharedstatedir ;; 1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1116 | --sha=* | --sh=*) 1117 sharedstatedir=$ac_optarg ;; 1118 1119 -site | --site | --sit) 1120 ac_prev=site ;; 1121 -site=* | --site=* | --sit=*) 1122 site=$ac_optarg ;; 1123 1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1125 ac_prev=srcdir ;; 1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1127 srcdir=$ac_optarg ;; 1128 1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1130 | --syscon | --sysco | --sysc | --sys | --sy) 1131 ac_prev=sysconfdir ;; 1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1134 sysconfdir=$ac_optarg ;; 1135 1136 -target | --target | --targe | --targ | --tar | --ta | --t) 1137 ac_prev=target_alias ;; 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1139 target_alias=$ac_optarg ;; 1140 1141 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1142 verbose=yes ;; 1143 1144 -version | --version | --versio | --versi | --vers | -V) 1145 ac_init_version=: ;; 1146 1147 -with-* | --with-*) 1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151 as_fn_error $? "invalid package name: \`$ac_useropt'" 1152 ac_useropt_orig=$ac_useropt 1153 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 case $ac_user_opts in 1155 *" 1156"with_$ac_useropt" 1157"*) ;; 1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1159 ac_unrecognized_sep=', ';; 1160 esac 1161 eval with_$ac_useropt=\$ac_optarg ;; 1162 1163 -without-* | --without-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 as_fn_error $? "invalid package name: \`$ac_useropt'" 1168 ac_useropt_orig=$ac_useropt 1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 case $ac_user_opts in 1171 *" 1172"with_$ac_useropt" 1173"*) ;; 1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1175 ac_unrecognized_sep=', ';; 1176 esac 1177 eval with_$ac_useropt=no ;; 1178 1179 --x) 1180 # Obsolete; use --with-x. 1181 with_x=yes ;; 1182 1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1184 | --x-incl | --x-inc | --x-in | --x-i) 1185 ac_prev=x_includes ;; 1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1188 x_includes=$ac_optarg ;; 1189 1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1192 ac_prev=x_libraries ;; 1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1195 x_libraries=$ac_optarg ;; 1196 1197 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1198Try \`$0 --help' for more information" 1199 ;; 1200 1201 *=*) 1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1203 # Reject names that are not valid shell variable names. 1204 case $ac_envvar in #( 1205 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1207 esac 1208 eval $ac_envvar=\$ac_optarg 1209 export $ac_envvar ;; 1210 1211 *) 1212 # FIXME: should be removed in autoconf 3.0. 1213 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1215 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1217 ;; 1218 1219 esac 1220done 1221 1222if test -n "$ac_prev"; then 1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1224 as_fn_error $? "missing argument to $ac_option" 1225fi 1226 1227if test -n "$ac_unrecognized_opts"; then 1228 case $enable_option_checking in 1229 no) ;; 1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1231 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1232 esac 1233fi 1234 1235# Check all directory arguments for consistency. 1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1237 datadir sysconfdir sharedstatedir localstatedir includedir \ 1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1239 libdir localedir mandir runstatedir 1240do 1241 eval ac_val=\$$ac_var 1242 # Remove trailing slashes. 1243 case $ac_val in 1244 */ ) 1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1246 eval $ac_var=\$ac_val;; 1247 esac 1248 # Be sure to have absolute directory names. 1249 case $ac_val in 1250 [\\/$]* | ?:[\\/]* ) continue;; 1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1252 esac 1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1254done 1255 1256# There might be people who depend on the old broken behavior: `$host' 1257# used to hold the argument of --host etc. 1258# FIXME: To remove some day. 1259build=$build_alias 1260host=$host_alias 1261target=$target_alias 1262 1263# FIXME: To remove some day. 1264if test "x$host_alias" != x; then 1265 if test "x$build_alias" = x; then 1266 cross_compiling=maybe 1267 elif test "x$build_alias" != "x$host_alias"; then 1268 cross_compiling=yes 1269 fi 1270fi 1271 1272ac_tool_prefix= 1273test -n "$host_alias" && ac_tool_prefix=$host_alias- 1274 1275test "$silent" = yes && exec 6>/dev/null 1276 1277 1278ac_pwd=`pwd` && test -n "$ac_pwd" && 1279ac_ls_di=`ls -di .` && 1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1281 as_fn_error $? "working directory cannot be determined" 1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1283 as_fn_error $? "pwd does not report name of working directory" 1284 1285 1286# Find the source files, if location was not specified. 1287if test -z "$srcdir"; then 1288 ac_srcdir_defaulted=yes 1289 # Try the directory containing this script, then the parent directory. 1290 ac_confdir=`$as_dirname -- "$as_myself" || 1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1292 X"$as_myself" : 'X\(//\)[^/]' \| \ 1293 X"$as_myself" : 'X\(//\)$' \| \ 1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1295printf "%s\n" X"$as_myself" | 1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)[^/].*/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\).*/{ 1309 s//\1/ 1310 q 1311 } 1312 s/.*/./; q'` 1313 srcdir=$ac_confdir 1314 if test ! -r "$srcdir/$ac_unique_file"; then 1315 srcdir=.. 1316 fi 1317else 1318 ac_srcdir_defaulted=no 1319fi 1320if test ! -r "$srcdir/$ac_unique_file"; then 1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1323fi 1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1325ac_abs_confdir=`( 1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1327 pwd)` 1328# When building in place, set srcdir=. 1329if test "$ac_abs_confdir" = "$ac_pwd"; then 1330 srcdir=. 1331fi 1332# Remove unnecessary trailing slashes from srcdir. 1333# Double slashes in file names in object file debugging info 1334# mess up M-x gdb in Emacs. 1335case $srcdir in 1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1337esac 1338for ac_var in $ac_precious_vars; do 1339 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_env_${ac_var}_value=\$${ac_var} 1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1343done 1344 1345# 1346# Report the --help message. 1347# 1348if test "$ac_init_help" = "long"; then 1349 # Omit some internal or obsolete options to make the list less imposing. 1350 # This message is too long to be a string in the A/UX 3.1 sh. 1351 cat <<_ACEOF 1352\`configure' configures xmh 1.0.4 to adapt to many kinds of systems. 1353 1354Usage: $0 [OPTION]... [VAR=VALUE]... 1355 1356To assign environment variables (e.g., CC, CFLAGS...), specify them as 1357VAR=VALUE. See below for descriptions of some of the useful variables. 1358 1359Defaults for the options are specified in brackets. 1360 1361Configuration: 1362 -h, --help display this help and exit 1363 --help=short display options specific to this package 1364 --help=recursive display the short help of all the included packages 1365 -V, --version display version information and exit 1366 -q, --quiet, --silent do not print \`checking ...' messages 1367 --cache-file=FILE cache test results in FILE [disabled] 1368 -C, --config-cache alias for \`--cache-file=config.cache' 1369 -n, --no-create do not create output files 1370 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1371 1372Installation directories: 1373 --prefix=PREFIX install architecture-independent files in PREFIX 1374 [$ac_default_prefix] 1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1376 [PREFIX] 1377 1378By default, \`make install' will install all the files in 1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1380an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1381for instance \`--prefix=\$HOME'. 1382 1383For better control, use the options below. 1384 1385Fine tuning of the installation directories: 1386 --bindir=DIR user executables [EPREFIX/bin] 1387 --sbindir=DIR system admin executables [EPREFIX/sbin] 1388 --libexecdir=DIR program executables [EPREFIX/libexec] 1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1392 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1393 --libdir=DIR object code libraries [EPREFIX/lib] 1394 --includedir=DIR C header files [PREFIX/include] 1395 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1398 --infodir=DIR info documentation [DATAROOTDIR/info] 1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1400 --mandir=DIR man documentation [DATAROOTDIR/man] 1401 --docdir=DIR documentation root [DATAROOTDIR/doc/xmh] 1402 --htmldir=DIR html documentation [DOCDIR] 1403 --dvidir=DIR dvi documentation [DOCDIR] 1404 --pdfdir=DIR pdf documentation [DOCDIR] 1405 --psdir=DIR ps documentation [DOCDIR] 1406_ACEOF 1407 1408 cat <<\_ACEOF 1409 1410Program names: 1411 --program-prefix=PREFIX prepend PREFIX to installed program names 1412 --program-suffix=SUFFIX append SUFFIX to installed program names 1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1414 1415System types: 1416 --build=BUILD configure for building on BUILD [guessed] 1417 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1418_ACEOF 1419fi 1420 1421if test -n "$ac_init_help"; then 1422 case $ac_init_help in 1423 short | recursive ) echo "Configuration of xmh 1.0.4:";; 1424 esac 1425 cat <<\_ACEOF 1426 1427Optional Features: 1428 --disable-option-checking ignore unrecognized --enable/--with options 1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1431 --enable-silent-rules less verbose build output (undo: "make V=1") 1432 --disable-silent-rules verbose build output (undo: "make V=0") 1433 --enable-dependency-tracking 1434 do not reject slow dependency extractors 1435 --disable-dependency-tracking 1436 speeds up one-time build 1437 --disable-selective-werror 1438 Turn off selective compiler errors. (default: 1439 enabled) 1440 --enable-strict-compilation 1441 Enable all warnings from compiler and make them 1442 errors (default: disabled) 1443 1444Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --with-appdefaultdir=<pathname> 1448 specify directory for app-defaults files (default is 1449 autodetected) 1450 1451Some influential environment variables: 1452 CC C compiler command 1453 CFLAGS C compiler flags 1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1455 nonstandard directory <lib dir> 1456 LIBS libraries to pass to the linker, e.g. -l<library> 1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1458 you have headers in a nonstandard directory <include dir> 1459 PKG_CONFIG path to pkg-config utility 1460 PKG_CONFIG_PATH 1461 directories to add to pkg-config's search path 1462 PKG_CONFIG_LIBDIR 1463 path overriding pkg-config's built-in search path 1464 XMH_CFLAGS C compiler flags for XMH, overriding pkg-config 1465 XMH_LIBS linker flags for XMH, overriding pkg-config 1466 APPDEFS_CFLAGS 1467 C compiler flags for APPDEFS, overriding pkg-config 1468 APPDEFS_LIBS 1469 linker flags for APPDEFS, overriding pkg-config 1470 1471Use these variables to override the choices made by `configure' or to help 1472it to find libraries and programs with nonstandard names/locations. 1473 1474Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmh/-/issues>. 1475_ACEOF 1476ac_status=$? 1477fi 1478 1479if test "$ac_init_help" = "recursive"; then 1480 # If there are subdirs, report their specific --help. 1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1482 test -d "$ac_dir" || 1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1484 continue 1485 ac_builddir=. 1486 1487case "$ac_dir" in 1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489*) 1490 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1491 # A ".." for each directory in $ac_dir_suffix. 1492 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1493 case $ac_top_builddir_sub in 1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1496 esac ;; 1497esac 1498ac_abs_top_builddir=$ac_pwd 1499ac_abs_builddir=$ac_pwd$ac_dir_suffix 1500# for backward compatibility: 1501ac_top_builddir=$ac_top_build_prefix 1502 1503case $srcdir in 1504 .) # We are building in place. 1505 ac_srcdir=. 1506 ac_top_srcdir=$ac_top_builddir_sub 1507 ac_abs_top_srcdir=$ac_pwd ;; 1508 [\\/]* | ?:[\\/]* ) # Absolute name. 1509 ac_srcdir=$srcdir$ac_dir_suffix; 1510 ac_top_srcdir=$srcdir 1511 ac_abs_top_srcdir=$srcdir ;; 1512 *) # Relative name. 1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1514 ac_top_srcdir=$ac_top_build_prefix$srcdir 1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1516esac 1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1518 1519 cd "$ac_dir" || { ac_status=$?; continue; } 1520 # Check for configure.gnu first; this name is used for a wrapper for 1521 # Metaconfig's "Configure" on case-insensitive file systems. 1522 if test -f "$ac_srcdir/configure.gnu"; then 1523 echo && 1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1525 elif test -f "$ac_srcdir/configure"; then 1526 echo && 1527 $SHELL "$ac_srcdir/configure" --help=recursive 1528 else 1529 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1530 fi || ac_status=$? 1531 cd "$ac_pwd" || { ac_status=$?; break; } 1532 done 1533fi 1534 1535test -n "$ac_init_help" && exit $ac_status 1536if $ac_init_version; then 1537 cat <<\_ACEOF 1538xmh configure 1.0.4 1539generated by GNU Autoconf 2.71 1540 1541Copyright (C) 2021 Free Software Foundation, Inc. 1542This configure script is free software; the Free Software Foundation 1543gives unlimited permission to copy, distribute and modify it. 1544_ACEOF 1545 exit 1546fi 1547 1548## ------------------------ ## 1549## Autoconf initialization. ## 1550## ------------------------ ## 1551 1552# ac_fn_c_try_compile LINENO 1553# -------------------------- 1554# Try to compile conftest.$ac_ext, and return whether this succeeded. 1555ac_fn_c_try_compile () 1556{ 1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1558 rm -f conftest.$ac_objext conftest.beam 1559 if { { ac_try="$ac_compile" 1560case "(($ac_try" in 1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1562 *) ac_try_echo=$ac_try;; 1563esac 1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1565printf "%s\n" "$ac_try_echo"; } >&5 1566 (eval "$ac_compile") 2>conftest.err 1567 ac_status=$? 1568 if test -s conftest.err; then 1569 grep -v '^ *+' conftest.err >conftest.er1 1570 cat conftest.er1 >&5 1571 mv -f conftest.er1 conftest.err 1572 fi 1573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1574 test $ac_status = 0; } && { 1575 test -z "$ac_c_werror_flag" || 1576 test ! -s conftest.err 1577 } && test -s conftest.$ac_objext 1578then : 1579 ac_retval=0 1580else $as_nop 1581 printf "%s\n" "$as_me: failed program was:" >&5 1582sed 's/^/| /' conftest.$ac_ext >&5 1583 1584 ac_retval=1 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 $as_nop 1605 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 $as_nop 1630 eval "$3=no" 1631fi 1632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1633 eval $6=\$ac_save_FLAGS 1634 1635fi 1636eval ac_res=\$$3 1637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1638printf "%s\n" "$ac_res" >&6; } 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 1641} # ac_fn_check_decl 1642 1643# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1644# ------------------------------------------------------- 1645# Tests whether HEADER exists and can be compiled using the include files in 1646# INCLUDES, setting the cache variable VAR accordingly. 1647ac_fn_c_check_header_compile () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1651printf %s "checking for $2... " >&6; } 1652if eval test \${$3+y} 1653then : 1654 printf %s "(cached) " >&6 1655else $as_nop 1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1657/* end confdefs.h. */ 1658$4 1659#include <$2> 1660_ACEOF 1661if ac_fn_c_try_compile "$LINENO" 1662then : 1663 eval "$3=yes" 1664else $as_nop 1665 eval "$3=no" 1666fi 1667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1668fi 1669eval ac_res=\$$3 1670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1671printf "%s\n" "$ac_res" >&6; } 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 1674} # ac_fn_c_check_header_compile 1675 1676# ac_fn_c_try_link LINENO 1677# ----------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_link () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689printf "%s\n" "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { 1699 test -z "$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 } && test -s conftest$ac_exeext && { 1702 test "$cross_compiling" = yes || 1703 test -x conftest$ac_exeext 1704 } 1705then : 1706 ac_retval=0 1707else $as_nop 1708 printf "%s\n" "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1715 # interfere with the next link command; also delete a directory that is 1716 # left behind by Apple's compiler. We do this before executing the actions. 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_link 1722 1723# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1724# ------------------------------------------- 1725# Tests whether TYPE exists after having included INCLUDES, setting cache 1726# variable VAR accordingly. 1727ac_fn_c_check_type () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731printf %s "checking for $2... " >&6; } 1732if eval test \${$3+y} 1733then : 1734 printf %s "(cached) " >&6 1735else $as_nop 1736 eval "$3=no" 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739$4 1740int 1741main (void) 1742{ 1743if (sizeof ($2)) 1744 return 0; 1745 ; 1746 return 0; 1747} 1748_ACEOF 1749if ac_fn_c_try_compile "$LINENO" 1750then : 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754int 1755main (void) 1756{ 1757if (sizeof (($2))) 1758 return 0; 1759 ; 1760 return 0; 1761} 1762_ACEOF 1763if ac_fn_c_try_compile "$LINENO" 1764then : 1765 1766else $as_nop 1767 eval "$3=yes" 1768fi 1769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1770fi 1771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1772fi 1773eval ac_res=\$$3 1774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1775printf "%s\n" "$ac_res" >&6; } 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1777 1778} # ac_fn_c_check_type 1779 1780# ac_fn_c_check_func LINENO FUNC VAR 1781# ---------------------------------- 1782# Tests whether FUNC exists, setting the cache variable VAR accordingly 1783ac_fn_c_check_func () 1784{ 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787printf %s "checking for $2... " >&6; } 1788if eval test \${$3+y} 1789then : 1790 printf %s "(cached) " >&6 1791else $as_nop 1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1793/* end confdefs.h. */ 1794/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1796#define $2 innocuous_$2 1797 1798/* System header to define __stub macros and hopefully few prototypes, 1799 which can conflict with char $2 (); below. */ 1800 1801#include <limits.h> 1802#undef $2 1803 1804/* Override any GCC internal prototype to avoid an error. 1805 Use char because int might match the return type of a GCC 1806 builtin and then its argument prototype would still apply. */ 1807#ifdef __cplusplus 1808extern "C" 1809#endif 1810char $2 (); 1811/* The GNU C library defines this for functions which it implements 1812 to always fail with ENOSYS. Some functions are actually named 1813 something starting with __ and the normal name is an alias. */ 1814#if defined __stub_$2 || defined __stub___$2 1815choke me 1816#endif 1817 1818int 1819main (void) 1820{ 1821return $2 (); 1822 ; 1823 return 0; 1824} 1825_ACEOF 1826if ac_fn_c_try_link "$LINENO" 1827then : 1828 eval "$3=yes" 1829else $as_nop 1830 eval "$3=no" 1831fi 1832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1833 conftest$ac_exeext conftest.$ac_ext 1834fi 1835eval ac_res=\$$3 1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1837printf "%s\n" "$ac_res" >&6; } 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1839 1840} # ac_fn_c_check_func 1841 1842# ac_fn_c_try_run LINENO 1843# ---------------------- 1844# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1845# executables *can* be run. 1846ac_fn_c_try_run () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 if { { ac_try="$ac_link" 1850case "(($ac_try" in 1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1852 *) ac_try_echo=$ac_try;; 1853esac 1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1855printf "%s\n" "$ac_try_echo"; } >&5 1856 (eval "$ac_link") 2>&5 1857 ac_status=$? 1858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1859 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1860 { { case "(($ac_try" in 1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1862 *) ac_try_echo=$ac_try;; 1863esac 1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1865printf "%s\n" "$ac_try_echo"; } >&5 1866 (eval "$ac_try") 2>&5 1867 ac_status=$? 1868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1869 test $ac_status = 0; }; } 1870then : 1871 ac_retval=0 1872else $as_nop 1873 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1874 printf "%s\n" "$as_me: failed program was:" >&5 1875sed 's/^/| /' conftest.$ac_ext >&5 1876 1877 ac_retval=$ac_status 1878fi 1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 as_fn_set_status $ac_retval 1882 1883} # ac_fn_c_try_run 1884ac_configure_args_raw= 1885for ac_arg 1886do 1887 case $ac_arg in 1888 *\'*) 1889 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1890 esac 1891 as_fn_append ac_configure_args_raw " '$ac_arg'" 1892done 1893 1894case $ac_configure_args_raw in 1895 *$as_nl*) 1896 ac_safe_unquote= ;; 1897 *) 1898 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1899 ac_unsafe_a="$ac_unsafe_z#~" 1900 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1901 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1902esac 1903 1904cat >config.log <<_ACEOF 1905This file contains any messages produced by compilers while 1906running configure, to aid debugging if configure makes a mistake. 1907 1908It was created by xmh $as_me 1.0.4, which was 1909generated by GNU Autoconf 2.71. Invocation command line was 1910 1911 $ $0$ac_configure_args_raw 1912 1913_ACEOF 1914exec 5>>config.log 1915{ 1916cat <<_ASUNAME 1917## --------- ## 1918## Platform. ## 1919## --------- ## 1920 1921hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1922uname -m = `(uname -m) 2>/dev/null || echo unknown` 1923uname -r = `(uname -r) 2>/dev/null || echo unknown` 1924uname -s = `(uname -s) 2>/dev/null || echo unknown` 1925uname -v = `(uname -v) 2>/dev/null || echo unknown` 1926 1927/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1928/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1929 1930/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1931/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1932/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1933/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1934/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1935/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1936/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1937 1938_ASUNAME 1939 1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1941for as_dir in $PATH 1942do 1943 IFS=$as_save_IFS 1944 case $as_dir in #((( 1945 '') as_dir=./ ;; 1946 */) ;; 1947 *) as_dir=$as_dir/ ;; 1948 esac 1949 printf "%s\n" "PATH: $as_dir" 1950 done 1951IFS=$as_save_IFS 1952 1953} >&5 1954 1955cat >&5 <<_ACEOF 1956 1957 1958## ----------- ## 1959## Core tests. ## 1960## ----------- ## 1961 1962_ACEOF 1963 1964 1965# Keep a trace of the command line. 1966# Strip out --no-create and --no-recursion so they do not pile up. 1967# Strip out --silent because we don't want to record it for future runs. 1968# Also quote any args containing shell meta-characters. 1969# Make two passes to allow for proper duplicate-argument suppression. 1970ac_configure_args= 1971ac_configure_args0= 1972ac_configure_args1= 1973ac_must_keep_next=false 1974for ac_pass in 1 2 1975do 1976 for ac_arg 1977 do 1978 case $ac_arg in 1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1981 | -silent | --silent | --silen | --sile | --sil) 1982 continue ;; 1983 *\'*) 1984 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1985 esac 1986 case $ac_pass in 1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1988 2) 1989 as_fn_append ac_configure_args1 " '$ac_arg'" 1990 if test $ac_must_keep_next = true; then 1991 ac_must_keep_next=false # Got value, back to normal. 1992 else 1993 case $ac_arg in 1994 *=* | --config-cache | -C | -disable-* | --disable-* \ 1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1997 | -with-* | --with-* | -without-* | --without-* | --x) 1998 case "$ac_configure_args0 " in 1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2000 esac 2001 ;; 2002 -* ) ac_must_keep_next=true ;; 2003 esac 2004 fi 2005 as_fn_append ac_configure_args " '$ac_arg'" 2006 ;; 2007 esac 2008 done 2009done 2010{ ac_configure_args0=; unset ac_configure_args0;} 2011{ ac_configure_args1=; unset ac_configure_args1;} 2012 2013# When interrupted or exit'd, cleanup temporary files, and complete 2014# config.log. We remove comments because anyway the quotes in there 2015# would cause problems or look ugly. 2016# WARNING: Use '\'' to represent an apostrophe within the trap. 2017# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2018trap 'exit_status=$? 2019 # Sanitize IFS. 2020 IFS=" "" $as_nl" 2021 # Save into config.log some information that might help in debugging. 2022 { 2023 echo 2024 2025 printf "%s\n" "## ---------------- ## 2026## Cache variables. ## 2027## ---------------- ##" 2028 echo 2029 # The following way of writing the cache mishandles newlines in values, 2030( 2031 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2032 eval ac_val=\$$ac_var 2033 case $ac_val in #( 2034 *${as_nl}*) 2035 case $ac_var in #( 2036 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2037printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2038 esac 2039 case $ac_var in #( 2040 _ | IFS | as_nl) ;; #( 2041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2042 *) { eval $ac_var=; unset $ac_var;} ;; 2043 esac ;; 2044 esac 2045 done 2046 (set) 2>&1 | 2047 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2048 *${as_nl}ac_space=\ *) 2049 sed -n \ 2050 "s/'\''/'\''\\\\'\'''\''/g; 2051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2052 ;; #( 2053 *) 2054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2055 ;; 2056 esac | 2057 sort 2058) 2059 echo 2060 2061 printf "%s\n" "## ----------------- ## 2062## Output variables. ## 2063## ----------------- ##" 2064 echo 2065 for ac_var in $ac_subst_vars 2066 do 2067 eval ac_val=\$$ac_var 2068 case $ac_val in 2069 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2070 esac 2071 printf "%s\n" "$ac_var='\''$ac_val'\''" 2072 done | sort 2073 echo 2074 2075 if test -n "$ac_subst_files"; then 2076 printf "%s\n" "## ------------------- ## 2077## File substitutions. ## 2078## ------------------- ##" 2079 echo 2080 for ac_var in $ac_subst_files 2081 do 2082 eval ac_val=\$$ac_var 2083 case $ac_val in 2084 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2085 esac 2086 printf "%s\n" "$ac_var='\''$ac_val'\''" 2087 done | sort 2088 echo 2089 fi 2090 2091 if test -s confdefs.h; then 2092 printf "%s\n" "## ----------- ## 2093## confdefs.h. ## 2094## ----------- ##" 2095 echo 2096 cat confdefs.h 2097 echo 2098 fi 2099 test "$ac_signal" != 0 && 2100 printf "%s\n" "$as_me: caught signal $ac_signal" 2101 printf "%s\n" "$as_me: exit $exit_status" 2102 } >&5 2103 rm -f core *.core core.conftest.* && 2104 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2105 exit $exit_status 2106' 0 2107for ac_signal in 1 2 13 15; do 2108 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2109done 2110ac_signal=0 2111 2112# confdefs.h avoids OS command line length limits that DEFS can exceed. 2113rm -f -r conftest* confdefs.h 2114 2115printf "%s\n" "/* confdefs.h */" > confdefs.h 2116 2117# Predefined preprocessor variables. 2118 2119printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2120 2121printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2122 2123printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2124 2125printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2126 2127printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2128 2129printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2130 2131 2132# Let the site file select an alternate cache file if it wants to. 2133# Prefer an explicitly selected file to automatically selected ones. 2134if test -n "$CONFIG_SITE"; then 2135 ac_site_files="$CONFIG_SITE" 2136elif test "x$prefix" != xNONE; then 2137 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2138else 2139 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2140fi 2141 2142for ac_site_file in $ac_site_files 2143do 2144 case $ac_site_file in #( 2145 */*) : 2146 ;; #( 2147 *) : 2148 ac_site_file=./$ac_site_file ;; 2149esac 2150 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2152printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2153 sed 's/^/| /' "$ac_site_file" >&5 2154 . "$ac_site_file" \ 2155 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2156printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2157as_fn_error $? "failed to load site script $ac_site_file 2158See \`config.log' for more details" "$LINENO" 5; } 2159 fi 2160done 2161 2162if test -r "$cache_file"; then 2163 # Some versions of bash will fail to source /dev/null (special files 2164 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2167printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2168 case $cache_file in 2169 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2170 *) . "./$cache_file";; 2171 esac 2172 fi 2173else 2174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2175printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2176 >$cache_file 2177fi 2178 2179# Test code for whether the C compiler supports C89 (global declarations) 2180ac_c_conftest_c89_globals=' 2181/* Does the compiler advertise C89 conformance? 2182 Do not test the value of __STDC__, because some compilers set it to 0 2183 while being otherwise adequately conformant. */ 2184#if !defined __STDC__ 2185# error "Compiler does not advertise C89 conformance" 2186#endif 2187 2188#include <stddef.h> 2189#include <stdarg.h> 2190struct stat; 2191/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2192struct buf { int x; }; 2193struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2194static char *e (p, i) 2195 char **p; 2196 int i; 2197{ 2198 return p[i]; 2199} 2200static char *f (char * (*g) (char **, int), char **p, ...) 2201{ 2202 char *s; 2203 va_list v; 2204 va_start (v,p); 2205 s = g (p, va_arg (v,int)); 2206 va_end (v); 2207 return s; 2208} 2209 2210/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2211 function prototypes and stuff, but not \xHH hex character constants. 2212 These do not provoke an error unfortunately, instead are silently treated 2213 as an "x". The following induces an error, until -std is added to get 2214 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2215 array size at least. It is necessary to write \x00 == 0 to get something 2216 that is true only with -std. */ 2217int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2218 2219/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2220 inside strings and character constants. */ 2221#define FOO(x) '\''x'\'' 2222int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2223 2224int test (int i, double x); 2225struct s1 {int (*f) (int a);}; 2226struct s2 {int (*f) (double a);}; 2227int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2228 int, int);' 2229 2230# Test code for whether the C compiler supports C89 (body of main). 2231ac_c_conftest_c89_main=' 2232ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2233' 2234 2235# Test code for whether the C compiler supports C99 (global declarations) 2236ac_c_conftest_c99_globals=' 2237// Does the compiler advertise C99 conformance? 2238#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2239# error "Compiler does not advertise C99 conformance" 2240#endif 2241 2242#include <stdbool.h> 2243extern int puts (const char *); 2244extern int printf (const char *, ...); 2245extern int dprintf (int, const char *, ...); 2246extern void *malloc (size_t); 2247 2248// Check varargs macros. These examples are taken from C99 6.10.3.5. 2249// dprintf is used instead of fprintf to avoid needing to declare 2250// FILE and stderr. 2251#define debug(...) dprintf (2, __VA_ARGS__) 2252#define showlist(...) puts (#__VA_ARGS__) 2253#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2254static void 2255test_varargs_macros (void) 2256{ 2257 int x = 1234; 2258 int y = 5678; 2259 debug ("Flag"); 2260 debug ("X = %d\n", x); 2261 showlist (The first, second, and third items.); 2262 report (x>y, "x is %d but y is %d", x, y); 2263} 2264 2265// Check long long types. 2266#define BIG64 18446744073709551615ull 2267#define BIG32 4294967295ul 2268#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2269#if !BIG_OK 2270 #error "your preprocessor is broken" 2271#endif 2272#if BIG_OK 2273#else 2274 #error "your preprocessor is broken" 2275#endif 2276static long long int bignum = -9223372036854775807LL; 2277static unsigned long long int ubignum = BIG64; 2278 2279struct incomplete_array 2280{ 2281 int datasize; 2282 double data[]; 2283}; 2284 2285struct named_init { 2286 int number; 2287 const wchar_t *name; 2288 double average; 2289}; 2290 2291typedef const char *ccp; 2292 2293static inline int 2294test_restrict (ccp restrict text) 2295{ 2296 // See if C++-style comments work. 2297 // Iterate through items via the restricted pointer. 2298 // Also check for declarations in for loops. 2299 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2300 continue; 2301 return 0; 2302} 2303 2304// Check varargs and va_copy. 2305static bool 2306test_varargs (const char *format, ...) 2307{ 2308 va_list args; 2309 va_start (args, format); 2310 va_list args_copy; 2311 va_copy (args_copy, args); 2312 2313 const char *str = ""; 2314 int number = 0; 2315 float fnumber = 0; 2316 2317 while (*format) 2318 { 2319 switch (*format++) 2320 { 2321 case '\''s'\'': // string 2322 str = va_arg (args_copy, const char *); 2323 break; 2324 case '\''d'\'': // int 2325 number = va_arg (args_copy, int); 2326 break; 2327 case '\''f'\'': // float 2328 fnumber = va_arg (args_copy, double); 2329 break; 2330 default: 2331 break; 2332 } 2333 } 2334 va_end (args_copy); 2335 va_end (args); 2336 2337 return *str && number && fnumber; 2338} 2339' 2340 2341# Test code for whether the C compiler supports C99 (body of main). 2342ac_c_conftest_c99_main=' 2343 // Check bool. 2344 _Bool success = false; 2345 success |= (argc != 0); 2346 2347 // Check restrict. 2348 if (test_restrict ("String literal") == 0) 2349 success = true; 2350 char *restrict newvar = "Another string"; 2351 2352 // Check varargs. 2353 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2354 test_varargs_macros (); 2355 2356 // Check flexible array members. 2357 struct incomplete_array *ia = 2358 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2359 ia->datasize = 10; 2360 for (int i = 0; i < ia->datasize; ++i) 2361 ia->data[i] = i * 1.234; 2362 2363 // Check named initializers. 2364 struct named_init ni = { 2365 .number = 34, 2366 .name = L"Test wide string", 2367 .average = 543.34343, 2368 }; 2369 2370 ni.number = 58; 2371 2372 int dynamic_array[ni.number]; 2373 dynamic_array[0] = argv[0][0]; 2374 dynamic_array[ni.number - 1] = 543; 2375 2376 // work around unused variable warnings 2377 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2378 || dynamic_array[ni.number - 1] != 543); 2379' 2380 2381# Test code for whether the C compiler supports C11 (global declarations) 2382ac_c_conftest_c11_globals=' 2383// Does the compiler advertise C11 conformance? 2384#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2385# error "Compiler does not advertise C11 conformance" 2386#endif 2387 2388// Check _Alignas. 2389char _Alignas (double) aligned_as_double; 2390char _Alignas (0) no_special_alignment; 2391extern char aligned_as_int; 2392char _Alignas (0) _Alignas (int) aligned_as_int; 2393 2394// Check _Alignof. 2395enum 2396{ 2397 int_alignment = _Alignof (int), 2398 int_array_alignment = _Alignof (int[100]), 2399 char_alignment = _Alignof (char) 2400}; 2401_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2402 2403// Check _Noreturn. 2404int _Noreturn does_not_return (void) { for (;;) continue; } 2405 2406// Check _Static_assert. 2407struct test_static_assert 2408{ 2409 int x; 2410 _Static_assert (sizeof (int) <= sizeof (long int), 2411 "_Static_assert does not work in struct"); 2412 long int y; 2413}; 2414 2415// Check UTF-8 literals. 2416#define u8 syntax error! 2417char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2418 2419// Check duplicate typedefs. 2420typedef long *long_ptr; 2421typedef long int *long_ptr; 2422typedef long_ptr long_ptr; 2423 2424// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2425struct anonymous 2426{ 2427 union { 2428 struct { int i; int j; }; 2429 struct { int k; long int l; } w; 2430 }; 2431 int m; 2432} v1; 2433' 2434 2435# Test code for whether the C compiler supports C11 (body of main). 2436ac_c_conftest_c11_main=' 2437 _Static_assert ((offsetof (struct anonymous, i) 2438 == offsetof (struct anonymous, w.k)), 2439 "Anonymous union alignment botch"); 2440 v1.i = 2; 2441 v1.w.k = 5; 2442 ok |= v1.i != 5; 2443' 2444 2445# Test code for whether the C compiler supports C11 (complete). 2446ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2447${ac_c_conftest_c99_globals} 2448${ac_c_conftest_c11_globals} 2449 2450int 2451main (int argc, char **argv) 2452{ 2453 int ok = 0; 2454 ${ac_c_conftest_c89_main} 2455 ${ac_c_conftest_c99_main} 2456 ${ac_c_conftest_c11_main} 2457 return ok; 2458} 2459" 2460 2461# Test code for whether the C compiler supports C99 (complete). 2462ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2463${ac_c_conftest_c99_globals} 2464 2465int 2466main (int argc, char **argv) 2467{ 2468 int ok = 0; 2469 ${ac_c_conftest_c89_main} 2470 ${ac_c_conftest_c99_main} 2471 return ok; 2472} 2473" 2474 2475# Test code for whether the C compiler supports C89 (complete). 2476ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2477 2478int 2479main (int argc, char **argv) 2480{ 2481 int ok = 0; 2482 ${ac_c_conftest_c89_main} 2483 return ok; 2484} 2485" 2486 2487as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2488as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2489as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2490as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2491as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2492as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2493as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2494as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2495as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2496as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2497as_fn_append ac_func_c_list " fork HAVE_FORK" 2498as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2499 2500# Auxiliary files required by this configure script. 2501ac_aux_files="config.guess config.sub compile missing install-sh" 2502 2503# Locations in which to look for auxiliary files. 2504ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2505 2506# Search for a directory containing all of the required auxiliary files, 2507# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2508# If we don't find one directory that contains all the files we need, 2509# we report the set of missing files from the *first* directory in 2510# $ac_aux_dir_candidates and give up. 2511ac_missing_aux_files="" 2512ac_first_candidate=: 2513printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515as_found=false 2516for as_dir in $ac_aux_dir_candidates 2517do 2518 IFS=$as_save_IFS 2519 case $as_dir in #((( 2520 '') as_dir=./ ;; 2521 */) ;; 2522 *) as_dir=$as_dir/ ;; 2523 esac 2524 as_found=: 2525 2526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2527 ac_aux_dir_found=yes 2528 ac_install_sh= 2529 for ac_aux in $ac_aux_files 2530 do 2531 # As a special case, if "install-sh" is required, that requirement 2532 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2533 # and $ac_install_sh is set appropriately for whichever one is found. 2534 if test x"$ac_aux" = x"install-sh" 2535 then 2536 if test -f "${as_dir}install-sh"; then 2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2538 ac_install_sh="${as_dir}install-sh -c" 2539 elif test -f "${as_dir}install.sh"; then 2540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2541 ac_install_sh="${as_dir}install.sh -c" 2542 elif test -f "${as_dir}shtool"; then 2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2544 ac_install_sh="${as_dir}shtool install -c" 2545 else 2546 ac_aux_dir_found=no 2547 if $ac_first_candidate; then 2548 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2549 else 2550 break 2551 fi 2552 fi 2553 else 2554 if test -f "${as_dir}${ac_aux}"; then 2555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2556 else 2557 ac_aux_dir_found=no 2558 if $ac_first_candidate; then 2559 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2560 else 2561 break 2562 fi 2563 fi 2564 fi 2565 done 2566 if test "$ac_aux_dir_found" = yes; then 2567 ac_aux_dir="$as_dir" 2568 break 2569 fi 2570 ac_first_candidate=false 2571 2572 as_found=false 2573done 2574IFS=$as_save_IFS 2575if $as_found 2576then : 2577 2578else $as_nop 2579 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2580fi 2581 2582 2583# These three variables are undocumented and unsupported, 2584# and are intended to be withdrawn in a future Autoconf release. 2585# They can cause serious problems if a builder's source tree is in a directory 2586# whose full name contains unusual characters. 2587if test -f "${ac_aux_dir}config.guess"; then 2588 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2589fi 2590if test -f "${ac_aux_dir}config.sub"; then 2591 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2592fi 2593if test -f "$ac_aux_dir/configure"; then 2594 ac_configure="$SHELL ${ac_aux_dir}configure" 2595fi 2596 2597# Check that the precious variables saved in the cache have kept the same 2598# value. 2599ac_cache_corrupted=false 2600for ac_var in $ac_precious_vars; do 2601 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2602 eval ac_new_set=\$ac_env_${ac_var}_set 2603 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2604 eval ac_new_val=\$ac_env_${ac_var}_value 2605 case $ac_old_set,$ac_new_set in 2606 set,) 2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2608printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2609 ac_cache_corrupted=: ;; 2610 ,set) 2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2612printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2613 ac_cache_corrupted=: ;; 2614 ,);; 2615 *) 2616 if test "x$ac_old_val" != "x$ac_new_val"; then 2617 # differences in whitespace do not lead to failure. 2618 ac_old_val_w=`echo x $ac_old_val` 2619 ac_new_val_w=`echo x $ac_new_val` 2620 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2622printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2623 ac_cache_corrupted=: 2624 else 2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2626printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2627 eval $ac_var=\$ac_old_val 2628 fi 2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2630printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2632printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2633 fi;; 2634 esac 2635 # Pass precious variables to config.status. 2636 if test "$ac_new_set" = set; then 2637 case $ac_new_val in 2638 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2639 *) ac_arg=$ac_var=$ac_new_val ;; 2640 esac 2641 case " $ac_configure_args " in 2642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2643 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2644 esac 2645 fi 2646done 2647if $ac_cache_corrupted; then 2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2649printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2651printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2652 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2653 and start over" "$LINENO" 5 2654fi 2655## -------------------- ## 2656## Main body of script. ## 2657## -------------------- ## 2658 2659ac_ext=c 2660ac_cpp='$CPP $CPPFLAGS' 2661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2663ac_compiler_gnu=$ac_cv_c_compiler_gnu 2664 2665 2666 2667ac_config_headers="$ac_config_headers config.h" 2668 2669 2670# Initialize Automake 2671am__api_version='1.16' 2672 2673 2674 2675 # Find a good install program. We prefer a C program (faster), 2676# so one script is as good as another. But avoid the broken or 2677# incompatible versions: 2678# SysV /etc/install, /usr/sbin/install 2679# SunOS /usr/etc/install 2680# IRIX /sbin/install 2681# AIX /bin/install 2682# AmigaOS /C/install, which installs bootblocks on floppy discs 2683# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2684# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2685# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2686# OS/2's system install, which has a completely different semantic 2687# ./install, which can be erroneously created by make from ./install.sh. 2688# Reject install programs that cannot install multiple files. 2689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2690printf %s "checking for a BSD-compatible install... " >&6; } 2691if test -z "$INSTALL"; then 2692if test ${ac_cv_path_install+y} 2693then : 2694 printf %s "(cached) " >&6 2695else $as_nop 2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697for as_dir in $PATH 2698do 2699 IFS=$as_save_IFS 2700 case $as_dir in #((( 2701 '') as_dir=./ ;; 2702 */) ;; 2703 *) as_dir=$as_dir/ ;; 2704 esac 2705 # Account for fact that we put trailing slashes in our PATH walk. 2706case $as_dir in #(( 2707 ./ | /[cC]/* | \ 2708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2709 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2710 /usr/ucb/* ) ;; 2711 *) 2712 # OSF1 and SCO ODT 3.0 have their own names for install. 2713 # Don't use installbsd from OSF since it installs stuff as root 2714 # by default. 2715 for ac_prog in ginstall scoinst install; do 2716 for ac_exec_ext in '' $ac_executable_extensions; do 2717 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2718 if test $ac_prog = install && 2719 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2720 # AIX install. It has an incompatible calling convention. 2721 : 2722 elif test $ac_prog = install && 2723 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2724 # program-specific install script used by HP pwplus--don't use. 2725 : 2726 else 2727 rm -rf conftest.one conftest.two conftest.dir 2728 echo one > conftest.one 2729 echo two > conftest.two 2730 mkdir conftest.dir 2731 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2732 test -s conftest.one && test -s conftest.two && 2733 test -s conftest.dir/conftest.one && 2734 test -s conftest.dir/conftest.two 2735 then 2736 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2737 break 3 2738 fi 2739 fi 2740 fi 2741 done 2742 done 2743 ;; 2744esac 2745 2746 done 2747IFS=$as_save_IFS 2748 2749rm -rf conftest.one conftest.two conftest.dir 2750 2751fi 2752 if test ${ac_cv_path_install+y}; then 2753 INSTALL=$ac_cv_path_install 2754 else 2755 # As a last resort, use the slow shell script. Don't cache a 2756 # value for INSTALL within a source directory, because that will 2757 # break other packages using the cache if that directory is 2758 # removed, or if the value is a relative name. 2759 INSTALL=$ac_install_sh 2760 fi 2761fi 2762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2763printf "%s\n" "$INSTALL" >&6; } 2764 2765# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2766# It thinks the first close brace ends the variable substitution. 2767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2768 2769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2770 2771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2772 2773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2774printf %s "checking whether build environment is sane... " >&6; } 2775# Reject unsafe characters in $srcdir or the absolute working directory 2776# name. Accept space and tab only in the latter. 2777am_lf=' 2778' 2779case `pwd` in 2780 *[\\\"\#\$\&\'\`$am_lf]*) 2781 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2782esac 2783case $srcdir in 2784 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2785 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2786esac 2787 2788# Do 'set' in a subshell so we don't clobber the current shell's 2789# arguments. Must try -L first in case configure is actually a 2790# symlink; some systems play weird games with the mod time of symlinks 2791# (eg FreeBSD returns the mod time of the symlink's containing 2792# directory). 2793if ( 2794 am_has_slept=no 2795 for am_try in 1 2; do 2796 echo "timestamp, slept: $am_has_slept" > conftest.file 2797 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2798 if test "$*" = "X"; then 2799 # -L didn't work. 2800 set X `ls -t "$srcdir/configure" conftest.file` 2801 fi 2802 if test "$*" != "X $srcdir/configure conftest.file" \ 2803 && test "$*" != "X conftest.file $srcdir/configure"; then 2804 2805 # If neither matched, then we have a broken ls. This can happen 2806 # if, for instance, CONFIG_SHELL is bash and it inherits a 2807 # broken ls alias from the environment. This has actually 2808 # happened. Such a system could not be considered "sane". 2809 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2810 alias in your environment" "$LINENO" 5 2811 fi 2812 if test "$2" = conftest.file || test $am_try -eq 2; then 2813 break 2814 fi 2815 # Just in case. 2816 sleep 1 2817 am_has_slept=yes 2818 done 2819 test "$2" = conftest.file 2820 ) 2821then 2822 # Ok. 2823 : 2824else 2825 as_fn_error $? "newly created file is older than distributed files! 2826Check your system clock" "$LINENO" 5 2827fi 2828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2829printf "%s\n" "yes" >&6; } 2830# If we didn't sleep, we still need to ensure time stamps of config.status and 2831# generated files are strictly newer. 2832am_sleep_pid= 2833if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2834 ( sleep 1 ) & 2835 am_sleep_pid=$! 2836fi 2837 2838rm -f conftest.file 2839 2840test "$program_prefix" != NONE && 2841 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2842# Use a double $ so make ignores it. 2843test "$program_suffix" != NONE && 2844 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2845# Double any \ or $. 2846# By default was `s,x,x', remove it if useless. 2847ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2848program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2849 2850 2851# Expand $ac_aux_dir to an absolute path. 2852am_aux_dir=`cd "$ac_aux_dir" && pwd` 2853 2854 2855 if test x"${MISSING+set}" != xset; then 2856 MISSING="\${SHELL} '$am_aux_dir/missing'" 2857fi 2858# Use eval to expand $SHELL 2859if eval "$MISSING --is-lightweight"; then 2860 am_missing_run="$MISSING " 2861else 2862 am_missing_run= 2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2864printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2865fi 2866 2867if test x"${install_sh+set}" != xset; then 2868 case $am_aux_dir in 2869 *\ * | *\ *) 2870 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2871 *) 2872 install_sh="\${SHELL} $am_aux_dir/install-sh" 2873 esac 2874fi 2875 2876# Installed binaries are usually stripped using 'strip' when the user 2877# run "make install-strip". However 'strip' might not be the right 2878# tool to use in cross-compilation environments, therefore Automake 2879# will honor the 'STRIP' environment variable to overrule this program. 2880if test "$cross_compiling" != no; then 2881 if test -n "$ac_tool_prefix"; then 2882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2883set dummy ${ac_tool_prefix}strip; ac_word=$2 2884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2885printf %s "checking for $ac_word... " >&6; } 2886if test ${ac_cv_prog_STRIP+y} 2887then : 2888 printf %s "(cached) " >&6 2889else $as_nop 2890 if test -n "$STRIP"; then 2891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2892else 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 case $as_dir in #((( 2898 '') as_dir=./ ;; 2899 */) ;; 2900 *) as_dir=$as_dir/ ;; 2901 esac 2902 for ac_exec_ext in '' $ac_executable_extensions; do 2903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2904 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2906 break 2 2907 fi 2908done 2909 done 2910IFS=$as_save_IFS 2911 2912fi 2913fi 2914STRIP=$ac_cv_prog_STRIP 2915if test -n "$STRIP"; then 2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2917printf "%s\n" "$STRIP" >&6; } 2918else 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2920printf "%s\n" "no" >&6; } 2921fi 2922 2923 2924fi 2925if test -z "$ac_cv_prog_STRIP"; then 2926 ac_ct_STRIP=$STRIP 2927 # Extract the first word of "strip", so it can be a program name with args. 2928set dummy strip; ac_word=$2 2929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930printf %s "checking for $ac_word... " >&6; } 2931if test ${ac_cv_prog_ac_ct_STRIP+y} 2932then : 2933 printf %s "(cached) " >&6 2934else $as_nop 2935 if test -n "$ac_ct_STRIP"; then 2936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 case $as_dir in #((( 2943 '') as_dir=./ ;; 2944 */) ;; 2945 *) as_dir=$as_dir/ ;; 2946 esac 2947 for ac_exec_ext in '' $ac_executable_extensions; do 2948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2949 ac_cv_prog_ac_ct_STRIP="strip" 2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2951 break 2 2952 fi 2953done 2954 done 2955IFS=$as_save_IFS 2956 2957fi 2958fi 2959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2960if test -n "$ac_ct_STRIP"; then 2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2962printf "%s\n" "$ac_ct_STRIP" >&6; } 2963else 2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965printf "%s\n" "no" >&6; } 2966fi 2967 2968 if test "x$ac_ct_STRIP" = x; then 2969 STRIP=":" 2970 else 2971 case $cross_compiling:$ac_tool_warned in 2972yes:) 2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2974printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2975ac_tool_warned=yes ;; 2976esac 2977 STRIP=$ac_ct_STRIP 2978 fi 2979else 2980 STRIP="$ac_cv_prog_STRIP" 2981fi 2982 2983fi 2984INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2985 2986 2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2988printf %s "checking for a race-free mkdir -p... " >&6; } 2989if test -z "$MKDIR_P"; then 2990 if test ${ac_cv_path_mkdir+y} 2991then : 2992 printf %s "(cached) " >&6 2993else $as_nop 2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2995for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2996do 2997 IFS=$as_save_IFS 2998 case $as_dir in #((( 2999 '') as_dir=./ ;; 3000 */) ;; 3001 *) as_dir=$as_dir/ ;; 3002 esac 3003 for ac_prog in mkdir gmkdir; do 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3006 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3007 'mkdir ('*'coreutils) '* | \ 3008 'BusyBox '* | \ 3009 'mkdir (fileutils) '4.1*) 3010 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3011 break 3;; 3012 esac 3013 done 3014 done 3015 done 3016IFS=$as_save_IFS 3017 3018fi 3019 3020 test -d ./--version && rmdir ./--version 3021 if test ${ac_cv_path_mkdir+y}; then 3022 MKDIR_P="$ac_cv_path_mkdir -p" 3023 else 3024 # As a last resort, use the slow shell script. Don't cache a 3025 # value for MKDIR_P within a source directory, because that will 3026 # break other packages using the cache if that directory is 3027 # removed, or if the value is a relative name. 3028 MKDIR_P="$ac_install_sh -d" 3029 fi 3030fi 3031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3032printf "%s\n" "$MKDIR_P" >&6; } 3033 3034for ac_prog in gawk mawk nawk awk 3035do 3036 # Extract the first word of "$ac_prog", so it can be a program name with args. 3037set dummy $ac_prog; ac_word=$2 3038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3039printf %s "checking for $ac_word... " >&6; } 3040if test ${ac_cv_prog_AWK+y} 3041then : 3042 printf %s "(cached) " >&6 3043else $as_nop 3044 if test -n "$AWK"; then 3045 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3046else 3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3048for as_dir in $PATH 3049do 3050 IFS=$as_save_IFS 3051 case $as_dir in #((( 3052 '') as_dir=./ ;; 3053 */) ;; 3054 *) as_dir=$as_dir/ ;; 3055 esac 3056 for ac_exec_ext in '' $ac_executable_extensions; do 3057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3058 ac_cv_prog_AWK="$ac_prog" 3059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3060 break 2 3061 fi 3062done 3063 done 3064IFS=$as_save_IFS 3065 3066fi 3067fi 3068AWK=$ac_cv_prog_AWK 3069if test -n "$AWK"; then 3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3071printf "%s\n" "$AWK" >&6; } 3072else 3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3074printf "%s\n" "no" >&6; } 3075fi 3076 3077 3078 test -n "$AWK" && break 3079done 3080 3081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3082printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3083set x ${MAKE-make} 3084ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3085if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3086then : 3087 printf %s "(cached) " >&6 3088else $as_nop 3089 cat >conftest.make <<\_ACEOF 3090SHELL = /bin/sh 3091all: 3092 @echo '@@@%%%=$(MAKE)=@@@%%%' 3093_ACEOF 3094# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3095case `${MAKE-make} -f conftest.make 2>/dev/null` in 3096 *@@@%%%=?*=@@@%%%*) 3097 eval ac_cv_prog_make_${ac_make}_set=yes;; 3098 *) 3099 eval ac_cv_prog_make_${ac_make}_set=no;; 3100esac 3101rm -f conftest.make 3102fi 3103if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3105printf "%s\n" "yes" >&6; } 3106 SET_MAKE= 3107else 3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3109printf "%s\n" "no" >&6; } 3110 SET_MAKE="MAKE=${MAKE-make}" 3111fi 3112 3113rm -rf .tst 2>/dev/null 3114mkdir .tst 2>/dev/null 3115if test -d .tst; then 3116 am__leading_dot=. 3117else 3118 am__leading_dot=_ 3119fi 3120rmdir .tst 2>/dev/null 3121 3122# Check whether --enable-silent-rules was given. 3123if test ${enable_silent_rules+y} 3124then : 3125 enableval=$enable_silent_rules; 3126fi 3127 3128case $enable_silent_rules in # ((( 3129 yes) AM_DEFAULT_VERBOSITY=0;; 3130 no) AM_DEFAULT_VERBOSITY=1;; 3131 *) AM_DEFAULT_VERBOSITY=1;; 3132esac 3133am_make=${MAKE-make} 3134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3135printf %s "checking whether $am_make supports nested variables... " >&6; } 3136if test ${am_cv_make_support_nested_variables+y} 3137then : 3138 printf %s "(cached) " >&6 3139else $as_nop 3140 if printf "%s\n" 'TRUE=$(BAR$(V)) 3141BAR0=false 3142BAR1=true 3143V=1 3144am__doit: 3145 @$(TRUE) 3146.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3147 am_cv_make_support_nested_variables=yes 3148else 3149 am_cv_make_support_nested_variables=no 3150fi 3151fi 3152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3153printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3154if test $am_cv_make_support_nested_variables = yes; then 3155 AM_V='$(V)' 3156 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3157else 3158 AM_V=$AM_DEFAULT_VERBOSITY 3159 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3160fi 3161AM_BACKSLASH='\' 3162 3163if test "`cd $srcdir && pwd`" != "`pwd`"; then 3164 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3165 # is not polluted with repeated "-I." 3166 am__isrc=' -I$(srcdir)' 3167 # test to see if srcdir already configured 3168 if test -f $srcdir/config.status; then 3169 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3170 fi 3171fi 3172 3173# test whether we have cygpath 3174if test -z "$CYGPATH_W"; then 3175 if (cygpath --version) >/dev/null 2>/dev/null; then 3176 CYGPATH_W='cygpath -w' 3177 else 3178 CYGPATH_W=echo 3179 fi 3180fi 3181 3182 3183# Define the identity of the package. 3184 PACKAGE='xmh' 3185 VERSION='1.0.4' 3186 3187 3188printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3189 3190 3191printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3192 3193# Some tools Automake needs. 3194 3195ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3196 3197 3198AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3199 3200 3201AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3202 3203 3204AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3205 3206 3207MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3208 3209# For better backward compatibility. To be removed once Automake 1.9.x 3210# dies out for good. For more background, see: 3211# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3212# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3213mkdir_p='$(MKDIR_P)' 3214 3215# We need awk for the "check" target (and possibly the TAP driver). The 3216# system "awk" is bad on some platforms. 3217# Always define AMTAR for backward compatibility. Yes, it's still used 3218# in the wild :-( We should find a proper way to deprecate it ... 3219AMTAR='$${TAR-tar}' 3220 3221 3222# We'll loop over all known methods to create a tar archive until one works. 3223_am_tools='gnutar pax cpio none' 3224 3225am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3226 3227 3228 3229 3230 3231# Variables for tags utilities; see am/tags.am 3232if test -z "$CTAGS"; then 3233 CTAGS=ctags 3234fi 3235 3236if test -z "$ETAGS"; then 3237 ETAGS=etags 3238fi 3239 3240if test -z "$CSCOPE"; then 3241 CSCOPE=cscope 3242fi 3243 3244 3245 3246# POSIX will say in a future version that running "rm -f" with no argument 3247# is OK; and we want to be able to make that assumption in our Makefile 3248# recipes. So use an aggressive probe to check that the usage we want is 3249# actually supported "in the wild" to an acceptable degree. 3250# See automake bug#10828. 3251# To make any issue more visible, cause the running configure to be aborted 3252# by default if the 'rm' program in use doesn't match our expectations; the 3253# user can still override this though. 3254if rm -f && rm -fr && rm -rf; then : OK; else 3255 cat >&2 <<'END' 3256Oops! 3257 3258Your 'rm' program seems unable to run without file operands specified 3259on the command line, even when the '-f' option is present. This is contrary 3260to the behaviour of most rm programs out there, and not conforming with 3261the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3262 3263Please tell bug-automake@gnu.org about your system, including the value 3264of your $PATH and any error possibly output before this message. This 3265can help us improve future automake versions. 3266 3267END 3268 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3269 echo 'Configuration will proceed anyway, since you have set the' >&2 3270 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3271 echo >&2 3272 else 3273 cat >&2 <<'END' 3274Aborting the configuration process, to ensure you take notice of the issue. 3275 3276You can download and install GNU coreutils to get an 'rm' implementation 3277that behaves properly: <https://www.gnu.org/software/coreutils/>. 3278 3279If you want to complete the configuration process using your problematic 3280'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3281to "yes", and re-run configure. 3282 3283END 3284 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3285 fi 3286fi 3287 3288 3289# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310DEPDIR="${am__leading_dot}deps" 3311 3312ac_config_commands="$ac_config_commands depfiles" 3313 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3315printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3316cat > confinc.mk << 'END' 3317am__doit: 3318 @echo this is the am__doit target >confinc.out 3319.PHONY: am__doit 3320END 3321am__include="#" 3322am__quote= 3323# BSD make does it like this. 3324echo '.include "confinc.mk" # ignored' > confmf.BSD 3325# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3326echo 'include confinc.mk # ignored' > confmf.GNU 3327_am_result=no 3328for s in GNU BSD; do 3329 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3330 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3331 ac_status=$? 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } 3334 case $?:`cat confinc.out 2>/dev/null` in #( 3335 '0:this is the am__doit target') : 3336 case $s in #( 3337 BSD) : 3338 am__include='.include' am__quote='"' ;; #( 3339 *) : 3340 am__include='include' am__quote='' ;; 3341esac ;; #( 3342 *) : 3343 ;; 3344esac 3345 if test "$am__include" != "#"; then 3346 _am_result="yes ($s style)" 3347 break 3348 fi 3349done 3350rm -f confinc.* confmf.* 3351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3352printf "%s\n" "${_am_result}" >&6; } 3353 3354# Check whether --enable-dependency-tracking was given. 3355if test ${enable_dependency_tracking+y} 3356then : 3357 enableval=$enable_dependency_tracking; 3358fi 3359 3360if test "x$enable_dependency_tracking" != xno; then 3361 am_depcomp="$ac_aux_dir/depcomp" 3362 AMDEPBACKSLASH='\' 3363 am__nodep='_no' 3364fi 3365 if test "x$enable_dependency_tracking" != xno; then 3366 AMDEP_TRUE= 3367 AMDEP_FALSE='#' 3368else 3369 AMDEP_TRUE='#' 3370 AMDEP_FALSE= 3371fi 3372 3373 3374ac_ext=c 3375ac_cpp='$CPP $CPPFLAGS' 3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3378ac_compiler_gnu=$ac_cv_c_compiler_gnu 3379if test -n "$ac_tool_prefix"; then 3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3381set dummy ${ac_tool_prefix}gcc; ac_word=$2 3382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3383printf %s "checking for $ac_word... " >&6; } 3384if test ${ac_cv_prog_CC+y} 3385then : 3386 printf %s "(cached) " >&6 3387else $as_nop 3388 if test -n "$CC"; then 3389 ac_cv_prog_CC="$CC" # Let the user override the test. 3390else 3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3392for as_dir in $PATH 3393do 3394 IFS=$as_save_IFS 3395 case $as_dir in #((( 3396 '') as_dir=./ ;; 3397 */) ;; 3398 *) as_dir=$as_dir/ ;; 3399 esac 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3402 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3404 break 2 3405 fi 3406done 3407 done 3408IFS=$as_save_IFS 3409 3410fi 3411fi 3412CC=$ac_cv_prog_CC 3413if test -n "$CC"; then 3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3415printf "%s\n" "$CC" >&6; } 3416else 3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418printf "%s\n" "no" >&6; } 3419fi 3420 3421 3422fi 3423if test -z "$ac_cv_prog_CC"; then 3424 ac_ct_CC=$CC 3425 # Extract the first word of "gcc", so it can be a program name with args. 3426set dummy gcc; ac_word=$2 3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3428printf %s "checking for $ac_word... " >&6; } 3429if test ${ac_cv_prog_ac_ct_CC+y} 3430then : 3431 printf %s "(cached) " >&6 3432else $as_nop 3433 if test -n "$ac_ct_CC"; then 3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3435else 3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3437for as_dir in $PATH 3438do 3439 IFS=$as_save_IFS 3440 case $as_dir in #((( 3441 '') as_dir=./ ;; 3442 */) ;; 3443 *) as_dir=$as_dir/ ;; 3444 esac 3445 for ac_exec_ext in '' $ac_executable_extensions; do 3446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3447 ac_cv_prog_ac_ct_CC="gcc" 3448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3449 break 2 3450 fi 3451done 3452 done 3453IFS=$as_save_IFS 3454 3455fi 3456fi 3457ac_ct_CC=$ac_cv_prog_ac_ct_CC 3458if test -n "$ac_ct_CC"; then 3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3460printf "%s\n" "$ac_ct_CC" >&6; } 3461else 3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3463printf "%s\n" "no" >&6; } 3464fi 3465 3466 if test "x$ac_ct_CC" = x; then 3467 CC="" 3468 else 3469 case $cross_compiling:$ac_tool_warned in 3470yes:) 3471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3472printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3473ac_tool_warned=yes ;; 3474esac 3475 CC=$ac_ct_CC 3476 fi 3477else 3478 CC="$ac_cv_prog_CC" 3479fi 3480 3481if test -z "$CC"; then 3482 if test -n "$ac_tool_prefix"; then 3483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3484set dummy ${ac_tool_prefix}cc; ac_word=$2 3485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486printf %s "checking for $ac_word... " >&6; } 3487if test ${ac_cv_prog_CC+y} 3488then : 3489 printf %s "(cached) " >&6 3490else $as_nop 3491 if test -n "$CC"; then 3492 ac_cv_prog_CC="$CC" # Let the user override the test. 3493else 3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495for as_dir in $PATH 3496do 3497 IFS=$as_save_IFS 3498 case $as_dir in #((( 3499 '') as_dir=./ ;; 3500 */) ;; 3501 *) as_dir=$as_dir/ ;; 3502 esac 3503 for ac_exec_ext in '' $ac_executable_extensions; do 3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3505 ac_cv_prog_CC="${ac_tool_prefix}cc" 3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3507 break 2 3508 fi 3509done 3510 done 3511IFS=$as_save_IFS 3512 3513fi 3514fi 3515CC=$ac_cv_prog_CC 3516if test -n "$CC"; then 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3518printf "%s\n" "$CC" >&6; } 3519else 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3521printf "%s\n" "no" >&6; } 3522fi 3523 3524 3525 fi 3526fi 3527if test -z "$CC"; then 3528 # Extract the first word of "cc", so it can be a program name with args. 3529set dummy cc; ac_word=$2 3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3531printf %s "checking for $ac_word... " >&6; } 3532if test ${ac_cv_prog_CC+y} 3533then : 3534 printf %s "(cached) " >&6 3535else $as_nop 3536 if test -n "$CC"; then 3537 ac_cv_prog_CC="$CC" # Let the user override the test. 3538else 3539 ac_prog_rejected=no 3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3541for as_dir in $PATH 3542do 3543 IFS=$as_save_IFS 3544 case $as_dir in #((( 3545 '') as_dir=./ ;; 3546 */) ;; 3547 *) as_dir=$as_dir/ ;; 3548 esac 3549 for ac_exec_ext in '' $ac_executable_extensions; do 3550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3551 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3552 ac_prog_rejected=yes 3553 continue 3554 fi 3555 ac_cv_prog_CC="cc" 3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3557 break 2 3558 fi 3559done 3560 done 3561IFS=$as_save_IFS 3562 3563if test $ac_prog_rejected = yes; then 3564 # We found a bogon in the path, so make sure we never use it. 3565 set dummy $ac_cv_prog_CC 3566 shift 3567 if test $# != 0; then 3568 # We chose a different compiler from the bogus one. 3569 # However, it has the same basename, so the bogon will be chosen 3570 # first if we set CC to just the basename; use the full file name. 3571 shift 3572 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3573 fi 3574fi 3575fi 3576fi 3577CC=$ac_cv_prog_CC 3578if test -n "$CC"; then 3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3580printf "%s\n" "$CC" >&6; } 3581else 3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3583printf "%s\n" "no" >&6; } 3584fi 3585 3586 3587fi 3588if test -z "$CC"; then 3589 if test -n "$ac_tool_prefix"; then 3590 for ac_prog in cl.exe 3591 do 3592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3593set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3595printf %s "checking for $ac_word... " >&6; } 3596if test ${ac_cv_prog_CC+y} 3597then : 3598 printf %s "(cached) " >&6 3599else $as_nop 3600 if test -n "$CC"; then 3601 ac_cv_prog_CC="$CC" # Let the user override the test. 3602else 3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3604for as_dir in $PATH 3605do 3606 IFS=$as_save_IFS 3607 case $as_dir in #((( 3608 '') as_dir=./ ;; 3609 */) ;; 3610 *) as_dir=$as_dir/ ;; 3611 esac 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3616 break 2 3617 fi 3618done 3619 done 3620IFS=$as_save_IFS 3621 3622fi 3623fi 3624CC=$ac_cv_prog_CC 3625if test -n "$CC"; then 3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3627printf "%s\n" "$CC" >&6; } 3628else 3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3630printf "%s\n" "no" >&6; } 3631fi 3632 3633 3634 test -n "$CC" && break 3635 done 3636fi 3637if test -z "$CC"; then 3638 ac_ct_CC=$CC 3639 for ac_prog in cl.exe 3640do 3641 # Extract the first word of "$ac_prog", so it can be a program name with args. 3642set dummy $ac_prog; ac_word=$2 3643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3644printf %s "checking for $ac_word... " >&6; } 3645if test ${ac_cv_prog_ac_ct_CC+y} 3646then : 3647 printf %s "(cached) " >&6 3648else $as_nop 3649 if test -n "$ac_ct_CC"; then 3650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3651else 3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3653for as_dir in $PATH 3654do 3655 IFS=$as_save_IFS 3656 case $as_dir in #((( 3657 '') as_dir=./ ;; 3658 */) ;; 3659 *) as_dir=$as_dir/ ;; 3660 esac 3661 for ac_exec_ext in '' $ac_executable_extensions; do 3662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3663 ac_cv_prog_ac_ct_CC="$ac_prog" 3664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3665 break 2 3666 fi 3667done 3668 done 3669IFS=$as_save_IFS 3670 3671fi 3672fi 3673ac_ct_CC=$ac_cv_prog_ac_ct_CC 3674if test -n "$ac_ct_CC"; then 3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3676printf "%s\n" "$ac_ct_CC" >&6; } 3677else 3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3679printf "%s\n" "no" >&6; } 3680fi 3681 3682 3683 test -n "$ac_ct_CC" && break 3684done 3685 3686 if test "x$ac_ct_CC" = x; then 3687 CC="" 3688 else 3689 case $cross_compiling:$ac_tool_warned in 3690yes:) 3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3692printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3693ac_tool_warned=yes ;; 3694esac 3695 CC=$ac_ct_CC 3696 fi 3697fi 3698 3699fi 3700if test -z "$CC"; then 3701 if test -n "$ac_tool_prefix"; then 3702 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3703set dummy ${ac_tool_prefix}clang; ac_word=$2 3704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3705printf %s "checking for $ac_word... " >&6; } 3706if test ${ac_cv_prog_CC+y} 3707then : 3708 printf %s "(cached) " >&6 3709else $as_nop 3710 if test -n "$CC"; then 3711 ac_cv_prog_CC="$CC" # Let the user override the test. 3712else 3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3714for as_dir in $PATH 3715do 3716 IFS=$as_save_IFS 3717 case $as_dir in #((( 3718 '') as_dir=./ ;; 3719 */) ;; 3720 *) as_dir=$as_dir/ ;; 3721 esac 3722 for ac_exec_ext in '' $ac_executable_extensions; do 3723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3724 ac_cv_prog_CC="${ac_tool_prefix}clang" 3725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3726 break 2 3727 fi 3728done 3729 done 3730IFS=$as_save_IFS 3731 3732fi 3733fi 3734CC=$ac_cv_prog_CC 3735if test -n "$CC"; then 3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3737printf "%s\n" "$CC" >&6; } 3738else 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3740printf "%s\n" "no" >&6; } 3741fi 3742 3743 3744fi 3745if test -z "$ac_cv_prog_CC"; then 3746 ac_ct_CC=$CC 3747 # Extract the first word of "clang", so it can be a program name with args. 3748set dummy clang; ac_word=$2 3749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3750printf %s "checking for $ac_word... " >&6; } 3751if test ${ac_cv_prog_ac_ct_CC+y} 3752then : 3753 printf %s "(cached) " >&6 3754else $as_nop 3755 if test -n "$ac_ct_CC"; then 3756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3757else 3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3759for as_dir in $PATH 3760do 3761 IFS=$as_save_IFS 3762 case $as_dir in #((( 3763 '') as_dir=./ ;; 3764 */) ;; 3765 *) as_dir=$as_dir/ ;; 3766 esac 3767 for ac_exec_ext in '' $ac_executable_extensions; do 3768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3769 ac_cv_prog_ac_ct_CC="clang" 3770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3771 break 2 3772 fi 3773done 3774 done 3775IFS=$as_save_IFS 3776 3777fi 3778fi 3779ac_ct_CC=$ac_cv_prog_ac_ct_CC 3780if test -n "$ac_ct_CC"; then 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3782printf "%s\n" "$ac_ct_CC" >&6; } 3783else 3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3785printf "%s\n" "no" >&6; } 3786fi 3787 3788 if test "x$ac_ct_CC" = x; then 3789 CC="" 3790 else 3791 case $cross_compiling:$ac_tool_warned in 3792yes:) 3793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3794printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3795ac_tool_warned=yes ;; 3796esac 3797 CC=$ac_ct_CC 3798 fi 3799else 3800 CC="$ac_cv_prog_CC" 3801fi 3802 3803fi 3804 3805 3806test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3807printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3808as_fn_error $? "no acceptable C compiler found in \$PATH 3809See \`config.log' for more details" "$LINENO" 5; } 3810 3811# Provide some information about the compiler. 3812printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3813set X $ac_compile 3814ac_compiler=$2 3815for ac_option in --version -v -V -qversion -version; do 3816 { { ac_try="$ac_compiler $ac_option >&5" 3817case "(($ac_try" in 3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3819 *) ac_try_echo=$ac_try;; 3820esac 3821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3822printf "%s\n" "$ac_try_echo"; } >&5 3823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3824 ac_status=$? 3825 if test -s conftest.err; then 3826 sed '10a\ 3827... rest of stderr output deleted ... 3828 10q' conftest.err >conftest.er1 3829 cat conftest.er1 >&5 3830 fi 3831 rm -f conftest.er1 conftest.err 3832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3833 test $ac_status = 0; } 3834done 3835 3836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837/* end confdefs.h. */ 3838 3839int 3840main (void) 3841{ 3842 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847ac_clean_files_save=$ac_clean_files 3848ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3849# Try to create an executable without -o first, disregard a.out. 3850# It will help us diagnose broken compilers, and finding out an intuition 3851# of exeext. 3852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3853printf %s "checking whether the C compiler works... " >&6; } 3854ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3855 3856# The possible output files: 3857ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3858 3859ac_rmfiles= 3860for ac_file in $ac_files 3861do 3862 case $ac_file in 3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3864 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3865 esac 3866done 3867rm -f $ac_rmfiles 3868 3869if { { ac_try="$ac_link_default" 3870case "(($ac_try" in 3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3872 *) ac_try_echo=$ac_try;; 3873esac 3874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3875printf "%s\n" "$ac_try_echo"; } >&5 3876 (eval "$ac_link_default") 2>&5 3877 ac_status=$? 3878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3879 test $ac_status = 0; } 3880then : 3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3882# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3883# in a Makefile. We should not override ac_cv_exeext if it was cached, 3884# so that the user can short-circuit this test for compilers unknown to 3885# Autoconf. 3886for ac_file in $ac_files '' 3887do 3888 test -f "$ac_file" || continue 3889 case $ac_file in 3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3891 ;; 3892 [ab].out ) 3893 # We found the default executable, but exeext='' is most 3894 # certainly right. 3895 break;; 3896 *.* ) 3897 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3898 then :; else 3899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3900 fi 3901 # We set ac_cv_exeext here because the later test for it is not 3902 # safe: cross compilers may not add the suffix if given an `-o' 3903 # argument, so we may need to know it at that point already. 3904 # Even if this section looks crufty: it has the advantage of 3905 # actually working. 3906 break;; 3907 * ) 3908 break;; 3909 esac 3910done 3911test "$ac_cv_exeext" = no && ac_cv_exeext= 3912 3913else $as_nop 3914 ac_file='' 3915fi 3916if test -z "$ac_file" 3917then : 3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3919printf "%s\n" "no" >&6; } 3920printf "%s\n" "$as_me: failed program was:" >&5 3921sed 's/^/| /' conftest.$ac_ext >&5 3922 3923{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3924printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3925as_fn_error 77 "C compiler cannot create executables 3926See \`config.log' for more details" "$LINENO" 5; } 3927else $as_nop 3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3929printf "%s\n" "yes" >&6; } 3930fi 3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3932printf %s "checking for C compiler default output file name... " >&6; } 3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3934printf "%s\n" "$ac_file" >&6; } 3935ac_exeext=$ac_cv_exeext 3936 3937rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3938ac_clean_files=$ac_clean_files_save 3939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3940printf %s "checking for suffix of executables... " >&6; } 3941if { { ac_try="$ac_link" 3942case "(($ac_try" in 3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3944 *) ac_try_echo=$ac_try;; 3945esac 3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3947printf "%s\n" "$ac_try_echo"; } >&5 3948 (eval "$ac_link") 2>&5 3949 ac_status=$? 3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3951 test $ac_status = 0; } 3952then : 3953 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3954# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3955# work properly (i.e., refer to `conftest.exe'), while it won't with 3956# `rm'. 3957for ac_file in conftest.exe conftest conftest.*; do 3958 test -f "$ac_file" || continue 3959 case $ac_file in 3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3961 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3962 break;; 3963 * ) break;; 3964 esac 3965done 3966else $as_nop 3967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3968printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3969as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3970See \`config.log' for more details" "$LINENO" 5; } 3971fi 3972rm -f conftest conftest$ac_cv_exeext 3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3974printf "%s\n" "$ac_cv_exeext" >&6; } 3975 3976rm -f conftest.$ac_ext 3977EXEEXT=$ac_cv_exeext 3978ac_exeext=$EXEEXT 3979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3980/* end confdefs.h. */ 3981#include <stdio.h> 3982int 3983main (void) 3984{ 3985FILE *f = fopen ("conftest.out", "w"); 3986 return ferror (f) || fclose (f) != 0; 3987 3988 ; 3989 return 0; 3990} 3991_ACEOF 3992ac_clean_files="$ac_clean_files conftest.out" 3993# Check that the compiler produces executables we can run. If not, either 3994# the compiler is broken, or we cross compile. 3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3996printf %s "checking whether we are cross compiling... " >&6; } 3997if test "$cross_compiling" != yes; then 3998 { { ac_try="$ac_link" 3999case "(($ac_try" in 4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4001 *) ac_try_echo=$ac_try;; 4002esac 4003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4004printf "%s\n" "$ac_try_echo"; } >&5 4005 (eval "$ac_link") 2>&5 4006 ac_status=$? 4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4008 test $ac_status = 0; } 4009 if { ac_try='./conftest$ac_cv_exeext' 4010 { { case "(($ac_try" in 4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4012 *) ac_try_echo=$ac_try;; 4013esac 4014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4015printf "%s\n" "$ac_try_echo"; } >&5 4016 (eval "$ac_try") 2>&5 4017 ac_status=$? 4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4019 test $ac_status = 0; }; }; then 4020 cross_compiling=no 4021 else 4022 if test "$cross_compiling" = maybe; then 4023 cross_compiling=yes 4024 else 4025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4026printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4027as_fn_error 77 "cannot run C compiled programs. 4028If you meant to cross compile, use \`--host'. 4029See \`config.log' for more details" "$LINENO" 5; } 4030 fi 4031 fi 4032fi 4033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4034printf "%s\n" "$cross_compiling" >&6; } 4035 4036rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4037ac_clean_files=$ac_clean_files_save 4038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4039printf %s "checking for suffix of object files... " >&6; } 4040if test ${ac_cv_objext+y} 4041then : 4042 printf %s "(cached) " >&6 4043else $as_nop 4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4045/* end confdefs.h. */ 4046 4047int 4048main (void) 4049{ 4050 4051 ; 4052 return 0; 4053} 4054_ACEOF 4055rm -f conftest.o conftest.obj 4056if { { ac_try="$ac_compile" 4057case "(($ac_try" in 4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4059 *) ac_try_echo=$ac_try;; 4060esac 4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4062printf "%s\n" "$ac_try_echo"; } >&5 4063 (eval "$ac_compile") 2>&5 4064 ac_status=$? 4065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4066 test $ac_status = 0; } 4067then : 4068 for ac_file in conftest.o conftest.obj conftest.*; do 4069 test -f "$ac_file" || continue; 4070 case $ac_file in 4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4073 break;; 4074 esac 4075done 4076else $as_nop 4077 printf "%s\n" "$as_me: failed program was:" >&5 4078sed 's/^/| /' conftest.$ac_ext >&5 4079 4080{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4081printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4082as_fn_error $? "cannot compute suffix of object files: cannot compile 4083See \`config.log' for more details" "$LINENO" 5; } 4084fi 4085rm -f conftest.$ac_cv_objext conftest.$ac_ext 4086fi 4087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4088printf "%s\n" "$ac_cv_objext" >&6; } 4089OBJEXT=$ac_cv_objext 4090ac_objext=$OBJEXT 4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4092printf %s "checking whether the compiler supports GNU C... " >&6; } 4093if test ${ac_cv_c_compiler_gnu+y} 4094then : 4095 printf %s "(cached) " >&6 4096else $as_nop 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099 4100int 4101main (void) 4102{ 4103#ifndef __GNUC__ 4104 choke me 4105#endif 4106 4107 ; 4108 return 0; 4109} 4110_ACEOF 4111if ac_fn_c_try_compile "$LINENO" 4112then : 4113 ac_compiler_gnu=yes 4114else $as_nop 4115 ac_compiler_gnu=no 4116fi 4117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4118ac_cv_c_compiler_gnu=$ac_compiler_gnu 4119 4120fi 4121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4122printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4123ac_compiler_gnu=$ac_cv_c_compiler_gnu 4124 4125if test $ac_compiler_gnu = yes; then 4126 GCC=yes 4127else 4128 GCC= 4129fi 4130ac_test_CFLAGS=${CFLAGS+y} 4131ac_save_CFLAGS=$CFLAGS 4132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4133printf %s "checking whether $CC accepts -g... " >&6; } 4134if test ${ac_cv_prog_cc_g+y} 4135then : 4136 printf %s "(cached) " >&6 4137else $as_nop 4138 ac_save_c_werror_flag=$ac_c_werror_flag 4139 ac_c_werror_flag=yes 4140 ac_cv_prog_cc_g=no 4141 CFLAGS="-g" 4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4143/* end confdefs.h. */ 4144 4145int 4146main (void) 4147{ 4148 4149 ; 4150 return 0; 4151} 4152_ACEOF 4153if ac_fn_c_try_compile "$LINENO" 4154then : 4155 ac_cv_prog_cc_g=yes 4156else $as_nop 4157 CFLAGS="" 4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4159/* end confdefs.h. */ 4160 4161int 4162main (void) 4163{ 4164 4165 ; 4166 return 0; 4167} 4168_ACEOF 4169if ac_fn_c_try_compile "$LINENO" 4170then : 4171 4172else $as_nop 4173 ac_c_werror_flag=$ac_save_c_werror_flag 4174 CFLAGS="-g" 4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4176/* end confdefs.h. */ 4177 4178int 4179main (void) 4180{ 4181 4182 ; 4183 return 0; 4184} 4185_ACEOF 4186if ac_fn_c_try_compile "$LINENO" 4187then : 4188 ac_cv_prog_cc_g=yes 4189fi 4190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4191fi 4192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4193fi 4194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4195 ac_c_werror_flag=$ac_save_c_werror_flag 4196fi 4197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4198printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4199if test $ac_test_CFLAGS; then 4200 CFLAGS=$ac_save_CFLAGS 4201elif test $ac_cv_prog_cc_g = yes; then 4202 if test "$GCC" = yes; then 4203 CFLAGS="-g -O2" 4204 else 4205 CFLAGS="-g" 4206 fi 4207else 4208 if test "$GCC" = yes; then 4209 CFLAGS="-O2" 4210 else 4211 CFLAGS= 4212 fi 4213fi 4214ac_prog_cc_stdc=no 4215if test x$ac_prog_cc_stdc = xno 4216then : 4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4218printf %s "checking for $CC option to enable C11 features... " >&6; } 4219if test ${ac_cv_prog_cc_c11+y} 4220then : 4221 printf %s "(cached) " >&6 4222else $as_nop 4223 ac_cv_prog_cc_c11=no 4224ac_save_CC=$CC 4225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4226/* end confdefs.h. */ 4227$ac_c_conftest_c11_program 4228_ACEOF 4229for ac_arg in '' -std=gnu11 4230do 4231 CC="$ac_save_CC $ac_arg" 4232 if ac_fn_c_try_compile "$LINENO" 4233then : 4234 ac_cv_prog_cc_c11=$ac_arg 4235fi 4236rm -f core conftest.err conftest.$ac_objext conftest.beam 4237 test "x$ac_cv_prog_cc_c11" != "xno" && break 4238done 4239rm -f conftest.$ac_ext 4240CC=$ac_save_CC 4241fi 4242 4243if test "x$ac_cv_prog_cc_c11" = xno 4244then : 4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4246printf "%s\n" "unsupported" >&6; } 4247else $as_nop 4248 if test "x$ac_cv_prog_cc_c11" = x 4249then : 4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4251printf "%s\n" "none needed" >&6; } 4252else $as_nop 4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4254printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4255 CC="$CC $ac_cv_prog_cc_c11" 4256fi 4257 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4258 ac_prog_cc_stdc=c11 4259fi 4260fi 4261if test x$ac_prog_cc_stdc = xno 4262then : 4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4264printf %s "checking for $CC option to enable C99 features... " >&6; } 4265if test ${ac_cv_prog_cc_c99+y} 4266then : 4267 printf %s "(cached) " >&6 4268else $as_nop 4269 ac_cv_prog_cc_c99=no 4270ac_save_CC=$CC 4271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4272/* end confdefs.h. */ 4273$ac_c_conftest_c99_program 4274_ACEOF 4275for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4276do 4277 CC="$ac_save_CC $ac_arg" 4278 if ac_fn_c_try_compile "$LINENO" 4279then : 4280 ac_cv_prog_cc_c99=$ac_arg 4281fi 4282rm -f core conftest.err conftest.$ac_objext conftest.beam 4283 test "x$ac_cv_prog_cc_c99" != "xno" && break 4284done 4285rm -f conftest.$ac_ext 4286CC=$ac_save_CC 4287fi 4288 4289if test "x$ac_cv_prog_cc_c99" = xno 4290then : 4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4292printf "%s\n" "unsupported" >&6; } 4293else $as_nop 4294 if test "x$ac_cv_prog_cc_c99" = x 4295then : 4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4297printf "%s\n" "none needed" >&6; } 4298else $as_nop 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4300printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4301 CC="$CC $ac_cv_prog_cc_c99" 4302fi 4303 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4304 ac_prog_cc_stdc=c99 4305fi 4306fi 4307if test x$ac_prog_cc_stdc = xno 4308then : 4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4310printf %s "checking for $CC option to enable C89 features... " >&6; } 4311if test ${ac_cv_prog_cc_c89+y} 4312then : 4313 printf %s "(cached) " >&6 4314else $as_nop 4315 ac_cv_prog_cc_c89=no 4316ac_save_CC=$CC 4317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4318/* end confdefs.h. */ 4319$ac_c_conftest_c89_program 4320_ACEOF 4321for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4322do 4323 CC="$ac_save_CC $ac_arg" 4324 if ac_fn_c_try_compile "$LINENO" 4325then : 4326 ac_cv_prog_cc_c89=$ac_arg 4327fi 4328rm -f core conftest.err conftest.$ac_objext conftest.beam 4329 test "x$ac_cv_prog_cc_c89" != "xno" && break 4330done 4331rm -f conftest.$ac_ext 4332CC=$ac_save_CC 4333fi 4334 4335if test "x$ac_cv_prog_cc_c89" = xno 4336then : 4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4338printf "%s\n" "unsupported" >&6; } 4339else $as_nop 4340 if test "x$ac_cv_prog_cc_c89" = x 4341then : 4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4343printf "%s\n" "none needed" >&6; } 4344else $as_nop 4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4346printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4347 CC="$CC $ac_cv_prog_cc_c89" 4348fi 4349 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4350 ac_prog_cc_stdc=c89 4351fi 4352fi 4353 4354ac_ext=c 4355ac_cpp='$CPP $CPPFLAGS' 4356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4358ac_compiler_gnu=$ac_cv_c_compiler_gnu 4359 4360 4361 ac_ext=c 4362ac_cpp='$CPP $CPPFLAGS' 4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4365ac_compiler_gnu=$ac_cv_c_compiler_gnu 4366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4367printf %s "checking whether $CC understands -c and -o together... " >&6; } 4368if test ${am_cv_prog_cc_c_o+y} 4369then : 4370 printf %s "(cached) " >&6 4371else $as_nop 4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4373/* end confdefs.h. */ 4374 4375int 4376main (void) 4377{ 4378 4379 ; 4380 return 0; 4381} 4382_ACEOF 4383 # Make sure it works both with $CC and with simple cc. 4384 # Following AC_PROG_CC_C_O, we do the test twice because some 4385 # compilers refuse to overwrite an existing .o file with -o, 4386 # though they will create one. 4387 am_cv_prog_cc_c_o=yes 4388 for am_i in 1 2; do 4389 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4390 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4391 ac_status=$? 4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4393 (exit $ac_status); } \ 4394 && test -f conftest2.$ac_objext; then 4395 : OK 4396 else 4397 am_cv_prog_cc_c_o=no 4398 break 4399 fi 4400 done 4401 rm -f core conftest* 4402 unset am_i 4403fi 4404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4405printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4406if test "$am_cv_prog_cc_c_o" != yes; then 4407 # Losing compiler, so override with the script. 4408 # FIXME: It is wrong to rewrite CC. 4409 # But if we don't then we get into trouble of one sort or another. 4410 # A longer-term fix would be to have automake use am__CC in this case, 4411 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4412 CC="$am_aux_dir/compile $CC" 4413fi 4414ac_ext=c 4415ac_cpp='$CPP $CPPFLAGS' 4416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4418ac_compiler_gnu=$ac_cv_c_compiler_gnu 4419 4420 4421depcc="$CC" am_compiler_list= 4422 4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4424printf %s "checking dependency style of $depcc... " >&6; } 4425if test ${am_cv_CC_dependencies_compiler_type+y} 4426then : 4427 printf %s "(cached) " >&6 4428else $as_nop 4429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4430 # We make a subdir and do the tests there. Otherwise we can end up 4431 # making bogus files that we don't know about and never remove. For 4432 # instance it was reported that on HP-UX the gcc test will end up 4433 # making a dummy file named 'D' -- because '-MD' means "put the output 4434 # in D". 4435 rm -rf conftest.dir 4436 mkdir conftest.dir 4437 # Copy depcomp to subdir because otherwise we won't find it if we're 4438 # using a relative directory. 4439 cp "$am_depcomp" conftest.dir 4440 cd conftest.dir 4441 # We will build objects and dependencies in a subdirectory because 4442 # it helps to detect inapplicable dependency modes. For instance 4443 # both Tru64's cc and ICC support -MD to output dependencies as a 4444 # side effect of compilation, but ICC will put the dependencies in 4445 # the current directory while Tru64 will put them in the object 4446 # directory. 4447 mkdir sub 4448 4449 am_cv_CC_dependencies_compiler_type=none 4450 if test "$am_compiler_list" = ""; then 4451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4452 fi 4453 am__universal=false 4454 case " $depcc " in #( 4455 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4456 esac 4457 4458 for depmode in $am_compiler_list; do 4459 # Setup a source with many dependencies, because some compilers 4460 # like to wrap large dependency lists on column 80 (with \), and 4461 # we should not choose a depcomp mode which is confused by this. 4462 # 4463 # We need to recreate these files for each test, as the compiler may 4464 # overwrite some of them when testing with obscure command lines. 4465 # This happens at least with the AIX C compiler. 4466 : > sub/conftest.c 4467 for i in 1 2 3 4 5 6; do 4468 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4469 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4470 # Solaris 10 /bin/sh. 4471 echo '/* dummy */' > sub/conftst$i.h 4472 done 4473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4474 4475 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4476 # mode. It turns out that the SunPro C++ compiler does not properly 4477 # handle '-M -o', and we need to detect this. Also, some Intel 4478 # versions had trouble with output in subdirs. 4479 am__obj=sub/conftest.${OBJEXT-o} 4480 am__minus_obj="-o $am__obj" 4481 case $depmode in 4482 gcc) 4483 # This depmode causes a compiler race in universal mode. 4484 test "$am__universal" = false || continue 4485 ;; 4486 nosideeffect) 4487 # After this tag, mechanisms are not by side-effect, so they'll 4488 # only be used when explicitly requested. 4489 if test "x$enable_dependency_tracking" = xyes; then 4490 continue 4491 else 4492 break 4493 fi 4494 ;; 4495 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4496 # This compiler won't grok '-c -o', but also, the minuso test has 4497 # not run yet. These depmodes are late enough in the game, and 4498 # so weak that their functioning should not be impacted. 4499 am__obj=conftest.${OBJEXT-o} 4500 am__minus_obj= 4501 ;; 4502 none) break ;; 4503 esac 4504 if depmode=$depmode \ 4505 source=sub/conftest.c object=$am__obj \ 4506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4508 >/dev/null 2>conftest.err && 4509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4513 # icc doesn't choke on unknown options, it will just issue warnings 4514 # or remarks (even with -Werror). So we grep stderr for any message 4515 # that says an option was ignored or not supported. 4516 # When given -MP, icc 7.0 and 7.1 complain thusly: 4517 # icc: Command line warning: ignoring option '-M'; no argument required 4518 # The diagnosis changed in icc 8.0: 4519 # icc: Command line remark: option '-MP' not supported 4520 if (grep 'ignoring option' conftest.err || 4521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4522 am_cv_CC_dependencies_compiler_type=$depmode 4523 break 4524 fi 4525 fi 4526 done 4527 4528 cd .. 4529 rm -rf conftest.dir 4530else 4531 am_cv_CC_dependencies_compiler_type=none 4532fi 4533 4534fi 4535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4536printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4537CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4538 4539 if 4540 test "x$enable_dependency_tracking" != xno \ 4541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4542 am__fastdepCC_TRUE= 4543 am__fastdepCC_FALSE='#' 4544else 4545 am__fastdepCC_TRUE='#' 4546 am__fastdepCC_FALSE= 4547fi 4548 4549 4550 4551 4552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4553printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4554if test ${ac_cv_c_undeclared_builtin_options+y} 4555then : 4556 printf %s "(cached) " >&6 4557else $as_nop 4558 ac_save_CFLAGS=$CFLAGS 4559 ac_cv_c_undeclared_builtin_options='cannot detect' 4560 for ac_arg in '' -fno-builtin; do 4561 CFLAGS="$ac_save_CFLAGS $ac_arg" 4562 # This test program should *not* compile successfully. 4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4564/* end confdefs.h. */ 4565 4566int 4567main (void) 4568{ 4569(void) strchr; 4570 ; 4571 return 0; 4572} 4573_ACEOF 4574if ac_fn_c_try_compile "$LINENO" 4575then : 4576 4577else $as_nop 4578 # This test program should compile successfully. 4579 # No library function is consistently available on 4580 # freestanding implementations, so test against a dummy 4581 # declaration. Include always-available headers on the 4582 # off chance that they somehow elicit warnings. 4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4584/* end confdefs.h. */ 4585#include <float.h> 4586#include <limits.h> 4587#include <stdarg.h> 4588#include <stddef.h> 4589extern void ac_decl (int, char *); 4590 4591int 4592main (void) 4593{ 4594(void) ac_decl (0, (char *) 0); 4595 (void) ac_decl; 4596 4597 ; 4598 return 0; 4599} 4600_ACEOF 4601if ac_fn_c_try_compile "$LINENO" 4602then : 4603 if test x"$ac_arg" = x 4604then : 4605 ac_cv_c_undeclared_builtin_options='none needed' 4606else $as_nop 4607 ac_cv_c_undeclared_builtin_options=$ac_arg 4608fi 4609 break 4610fi 4611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4612fi 4613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4614 done 4615 CFLAGS=$ac_save_CFLAGS 4616 4617fi 4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4619printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4620 case $ac_cv_c_undeclared_builtin_options in #( 4621 'cannot detect') : 4622 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4623printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4624as_fn_error $? "cannot make $CC report undeclared builtins 4625See \`config.log' for more details" "$LINENO" 5; } ;; #( 4626 'none needed') : 4627 ac_c_undeclared_builtin_options='' ;; #( 4628 *) : 4629 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4630esac 4631 4632ac_header= ac_cache= 4633for ac_item in $ac_header_c_list 4634do 4635 if test $ac_cache; then 4636 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4637 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4638 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4639 fi 4640 ac_header= ac_cache= 4641 elif test $ac_header; then 4642 ac_cache=$ac_item 4643 else 4644 ac_header=$ac_item 4645 fi 4646done 4647 4648 4649 4650 4651 4652 4653 4654 4655if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4656then : 4657 4658printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4659 4660fi 4661 4662 4663 4664 4665ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4666if test "x$ac_cv_have_decl___clang__" = xyes 4667then : 4668 CLANGCC="yes" 4669else $as_nop 4670 CLANGCC="no" 4671fi 4672ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4673if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4674then : 4675 INTELCC="yes" 4676else $as_nop 4677 INTELCC="no" 4678fi 4679ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4680if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4681then : 4682 SUNCC="yes" 4683else $as_nop 4684 SUNCC="no" 4685fi 4686 4687 4688 4689 4690 4691 4692 4693 4694if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4695 if test -n "$ac_tool_prefix"; then 4696 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4697set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4699printf %s "checking for $ac_word... " >&6; } 4700if test ${ac_cv_path_PKG_CONFIG+y} 4701then : 4702 printf %s "(cached) " >&6 4703else $as_nop 4704 case $PKG_CONFIG in 4705 [\\/]* | ?:[\\/]*) 4706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4707 ;; 4708 *) 4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4710for as_dir in $PATH 4711do 4712 IFS=$as_save_IFS 4713 case $as_dir in #((( 4714 '') as_dir=./ ;; 4715 */) ;; 4716 *) as_dir=$as_dir/ ;; 4717 esac 4718 for ac_exec_ext in '' $ac_executable_extensions; do 4719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4720 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4722 break 2 4723 fi 4724done 4725 done 4726IFS=$as_save_IFS 4727 4728 ;; 4729esac 4730fi 4731PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4732if test -n "$PKG_CONFIG"; then 4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4734printf "%s\n" "$PKG_CONFIG" >&6; } 4735else 4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737printf "%s\n" "no" >&6; } 4738fi 4739 4740 4741fi 4742if test -z "$ac_cv_path_PKG_CONFIG"; then 4743 ac_pt_PKG_CONFIG=$PKG_CONFIG 4744 # Extract the first word of "pkg-config", so it can be a program name with args. 4745set dummy pkg-config; ac_word=$2 4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4747printf %s "checking for $ac_word... " >&6; } 4748if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4749then : 4750 printf %s "(cached) " >&6 4751else $as_nop 4752 case $ac_pt_PKG_CONFIG in 4753 [\\/]* | ?:[\\/]*) 4754 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4755 ;; 4756 *) 4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4758for as_dir in $PATH 4759do 4760 IFS=$as_save_IFS 4761 case $as_dir in #((( 4762 '') as_dir=./ ;; 4763 */) ;; 4764 *) as_dir=$as_dir/ ;; 4765 esac 4766 for ac_exec_ext in '' $ac_executable_extensions; do 4767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4768 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4770 break 2 4771 fi 4772done 4773 done 4774IFS=$as_save_IFS 4775 4776 ;; 4777esac 4778fi 4779ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4780if test -n "$ac_pt_PKG_CONFIG"; then 4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4782printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4783else 4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4785printf "%s\n" "no" >&6; } 4786fi 4787 4788 if test "x$ac_pt_PKG_CONFIG" = x; then 4789 PKG_CONFIG="" 4790 else 4791 case $cross_compiling:$ac_tool_warned in 4792yes:) 4793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4794printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4795ac_tool_warned=yes ;; 4796esac 4797 PKG_CONFIG=$ac_pt_PKG_CONFIG 4798 fi 4799else 4800 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4801fi 4802 4803fi 4804if test -n "$PKG_CONFIG"; then 4805 _pkg_min_version=0.9.0 4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4807printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4808 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4810printf "%s\n" "yes" >&6; } 4811 else 4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4813printf "%s\n" "no" >&6; } 4814 PKG_CONFIG="" 4815 fi 4816fi 4817 4818 4819 # Make sure we can run config.sub. 4820$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4821 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4822 4823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4824printf %s "checking build system type... " >&6; } 4825if test ${ac_cv_build+y} 4826then : 4827 printf %s "(cached) " >&6 4828else $as_nop 4829 ac_build_alias=$build_alias 4830test "x$ac_build_alias" = x && 4831 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4832test "x$ac_build_alias" = x && 4833 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4834ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4835 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4836 4837fi 4838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4839printf "%s\n" "$ac_cv_build" >&6; } 4840case $ac_cv_build in 4841*-*-*) ;; 4842*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4843esac 4844build=$ac_cv_build 4845ac_save_IFS=$IFS; IFS='-' 4846set x $ac_cv_build 4847shift 4848build_cpu=$1 4849build_vendor=$2 4850shift; shift 4851# Remember, the first character of IFS is used to create $*, 4852# except with old shells: 4853build_os=$* 4854IFS=$ac_save_IFS 4855case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4856 4857 4858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4859printf %s "checking host system type... " >&6; } 4860if test ${ac_cv_host+y} 4861then : 4862 printf %s "(cached) " >&6 4863else $as_nop 4864 if test "x$host_alias" = x; then 4865 ac_cv_host=$ac_cv_build 4866else 4867 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4868 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4869fi 4870 4871fi 4872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4873printf "%s\n" "$ac_cv_host" >&6; } 4874case $ac_cv_host in 4875*-*-*) ;; 4876*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4877esac 4878host=$ac_cv_host 4879ac_save_IFS=$IFS; IFS='-' 4880set x $ac_cv_host 4881shift 4882host_cpu=$1 4883host_vendor=$2 4884shift; shift 4885# Remember, the first character of IFS is used to create $*, 4886# except with old shells: 4887host_os=$* 4888IFS=$ac_save_IFS 4889case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4890 4891 4892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4893printf %s "checking for a sed that does not truncate output... " >&6; } 4894if test ${ac_cv_path_SED+y} 4895then : 4896 printf %s "(cached) " >&6 4897else $as_nop 4898 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4899 for ac_i in 1 2 3 4 5 6 7; do 4900 ac_script="$ac_script$as_nl$ac_script" 4901 done 4902 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4903 { ac_script=; unset ac_script;} 4904 if test -z "$SED"; then 4905 ac_path_SED_found=false 4906 # Loop through the user's path and test for each of PROGNAME-LIST 4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4908for as_dir in $PATH 4909do 4910 IFS=$as_save_IFS 4911 case $as_dir in #((( 4912 '') as_dir=./ ;; 4913 */) ;; 4914 *) as_dir=$as_dir/ ;; 4915 esac 4916 for ac_prog in sed gsed 4917 do 4918 for ac_exec_ext in '' $ac_executable_extensions; do 4919 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4920 as_fn_executable_p "$ac_path_SED" || continue 4921# Check for GNU ac_path_SED and select it if it is found. 4922 # Check for GNU $ac_path_SED 4923case `"$ac_path_SED" --version 2>&1` in 4924*GNU*) 4925 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4926*) 4927 ac_count=0 4928 printf %s 0123456789 >"conftest.in" 4929 while : 4930 do 4931 cat "conftest.in" "conftest.in" >"conftest.tmp" 4932 mv "conftest.tmp" "conftest.in" 4933 cp "conftest.in" "conftest.nl" 4934 printf "%s\n" '' >> "conftest.nl" 4935 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4937 as_fn_arith $ac_count + 1 && ac_count=$as_val 4938 if test $ac_count -gt ${ac_path_SED_max-0}; then 4939 # Best one so far, save it but keep looking for a better one 4940 ac_cv_path_SED="$ac_path_SED" 4941 ac_path_SED_max=$ac_count 4942 fi 4943 # 10*(2^10) chars as input seems more than enough 4944 test $ac_count -gt 10 && break 4945 done 4946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4947esac 4948 4949 $ac_path_SED_found && break 3 4950 done 4951 done 4952 done 4953IFS=$as_save_IFS 4954 if test -z "$ac_cv_path_SED"; then 4955 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4956 fi 4957else 4958 ac_cv_path_SED=$SED 4959fi 4960 4961fi 4962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4963printf "%s\n" "$ac_cv_path_SED" >&6; } 4964 SED="$ac_cv_path_SED" 4965 rm -f conftest.sed 4966 4967 4968 4969 4970 4971 4972# Check whether --enable-selective-werror was given. 4973if test ${enable_selective_werror+y} 4974then : 4975 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4976else $as_nop 4977 SELECTIVE_WERROR=yes 4978fi 4979 4980 4981 4982 4983 4984# -v is too short to test reliably with XORG_TESTSET_CFLAG 4985if test "x$SUNCC" = "xyes"; then 4986 BASE_CFLAGS="-v" 4987else 4988 BASE_CFLAGS="" 4989fi 4990 4991# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005xorg_testset_save_CFLAGS="$CFLAGS" 5006 5007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5011if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5012then : 5013 printf %s "(cached) " >&6 5014else $as_nop 5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5016/* end confdefs.h. */ 5017int i; 5018_ACEOF 5019if ac_fn_c_try_compile "$LINENO" 5020then : 5021 xorg_cv_cc_flag_unknown_warning_option=yes 5022else $as_nop 5023 xorg_cv_cc_flag_unknown_warning_option=no 5024fi 5025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5026fi 5027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5030 CFLAGS="$xorg_testset_save_CFLAGS" 5031fi 5032 5033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5036 fi 5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5041then : 5042 printf %s "(cached) " >&6 5043else $as_nop 5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5045/* end confdefs.h. */ 5046int i; 5047_ACEOF 5048if ac_fn_c_try_compile "$LINENO" 5049then : 5050 xorg_cv_cc_flag_unused_command_line_argument=yes 5051else $as_nop 5052 xorg_cv_cc_flag_unused_command_line_argument=no 5053fi 5054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5055fi 5056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060fi 5061 5062found="no" 5063 5064 if test $found = "no" ; then 5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5067 fi 5068 5069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5071 fi 5072 5073 CFLAGS="$CFLAGS -Wall" 5074 5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5076printf %s "checking if $CC supports -Wall... " >&6; } 5077 cacheid=xorg_cv_cc_flag__Wall 5078 if eval test \${$cacheid+y} 5079then : 5080 printf %s "(cached) " >&6 5081else $as_nop 5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5083/* end confdefs.h. */ 5084int i; 5085int 5086main (void) 5087{ 5088 5089 ; 5090 return 0; 5091} 5092_ACEOF 5093if ac_fn_c_try_link "$LINENO" 5094then : 5095 eval $cacheid=yes 5096else $as_nop 5097 eval $cacheid=no 5098fi 5099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5100 conftest$ac_exeext conftest.$ac_ext 5101fi 5102 5103 5104 CFLAGS="$xorg_testset_save_CFLAGS" 5105 5106 eval supported=\$$cacheid 5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5108printf "%s\n" "$supported" >&6; } 5109 if test "$supported" = "yes" ; then 5110 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5111 found="yes" 5112 fi 5113 fi 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129xorg_testset_save_CFLAGS="$CFLAGS" 5130 5131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5135if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5136then : 5137 printf %s "(cached) " >&6 5138else $as_nop 5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5140/* end confdefs.h. */ 5141int i; 5142_ACEOF 5143if ac_fn_c_try_compile "$LINENO" 5144then : 5145 xorg_cv_cc_flag_unknown_warning_option=yes 5146else $as_nop 5147 xorg_cv_cc_flag_unknown_warning_option=no 5148fi 5149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5150fi 5151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5154 CFLAGS="$xorg_testset_save_CFLAGS" 5155fi 5156 5157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5160 fi 5161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5164if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5165then : 5166 printf %s "(cached) " >&6 5167else $as_nop 5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170int i; 5171_ACEOF 5172if ac_fn_c_try_compile "$LINENO" 5173then : 5174 xorg_cv_cc_flag_unused_command_line_argument=yes 5175else $as_nop 5176 xorg_cv_cc_flag_unused_command_line_argument=no 5177fi 5178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5179fi 5180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5181printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5183 CFLAGS="$xorg_testset_save_CFLAGS" 5184fi 5185 5186found="no" 5187 5188 if test $found = "no" ; then 5189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5191 fi 5192 5193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5195 fi 5196 5197 CFLAGS="$CFLAGS -Wpointer-arith" 5198 5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5200printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5201 cacheid=xorg_cv_cc_flag__Wpointer_arith 5202 if eval test \${$cacheid+y} 5203then : 5204 printf %s "(cached) " >&6 5205else $as_nop 5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5207/* end confdefs.h. */ 5208int i; 5209int 5210main (void) 5211{ 5212 5213 ; 5214 return 0; 5215} 5216_ACEOF 5217if ac_fn_c_try_link "$LINENO" 5218then : 5219 eval $cacheid=yes 5220else $as_nop 5221 eval $cacheid=no 5222fi 5223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5224 conftest$ac_exeext conftest.$ac_ext 5225fi 5226 5227 5228 CFLAGS="$xorg_testset_save_CFLAGS" 5229 5230 eval supported=\$$cacheid 5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5232printf "%s\n" "$supported" >&6; } 5233 if test "$supported" = "yes" ; then 5234 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5235 found="yes" 5236 fi 5237 fi 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253xorg_testset_save_CFLAGS="$CFLAGS" 5254 5255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5259if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5260then : 5261 printf %s "(cached) " >&6 5262else $as_nop 5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5264/* end confdefs.h. */ 5265int i; 5266_ACEOF 5267if ac_fn_c_try_compile "$LINENO" 5268then : 5269 xorg_cv_cc_flag_unknown_warning_option=yes 5270else $as_nop 5271 xorg_cv_cc_flag_unknown_warning_option=no 5272fi 5273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5274fi 5275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5278 CFLAGS="$xorg_testset_save_CFLAGS" 5279fi 5280 5281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5284 fi 5285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5288if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5289then : 5290 printf %s "(cached) " >&6 5291else $as_nop 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295_ACEOF 5296if ac_fn_c_try_compile "$LINENO" 5297then : 5298 xorg_cv_cc_flag_unused_command_line_argument=yes 5299else $as_nop 5300 xorg_cv_cc_flag_unused_command_line_argument=no 5301fi 5302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5303fi 5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5307 CFLAGS="$xorg_testset_save_CFLAGS" 5308fi 5309 5310found="no" 5311 5312 if test $found = "no" ; then 5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5315 fi 5316 5317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5319 fi 5320 5321 CFLAGS="$CFLAGS -Wmissing-declarations" 5322 5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5324printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5325 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5326 if eval test \${$cacheid+y} 5327then : 5328 printf %s "(cached) " >&6 5329else $as_nop 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5331/* end confdefs.h. */ 5332int i; 5333int 5334main (void) 5335{ 5336 5337 ; 5338 return 0; 5339} 5340_ACEOF 5341if ac_fn_c_try_link "$LINENO" 5342then : 5343 eval $cacheid=yes 5344else $as_nop 5345 eval $cacheid=no 5346fi 5347rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5348 conftest$ac_exeext conftest.$ac_ext 5349fi 5350 5351 5352 CFLAGS="$xorg_testset_save_CFLAGS" 5353 5354 eval supported=\$$cacheid 5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5356printf "%s\n" "$supported" >&6; } 5357 if test "$supported" = "yes" ; then 5358 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5359 found="yes" 5360 fi 5361 fi 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377xorg_testset_save_CFLAGS="$CFLAGS" 5378 5379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5383if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5384then : 5385 printf %s "(cached) " >&6 5386else $as_nop 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389int i; 5390_ACEOF 5391if ac_fn_c_try_compile "$LINENO" 5392then : 5393 xorg_cv_cc_flag_unknown_warning_option=yes 5394else $as_nop 5395 xorg_cv_cc_flag_unknown_warning_option=no 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5398fi 5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5402 CFLAGS="$xorg_testset_save_CFLAGS" 5403fi 5404 5405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408 fi 5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5413then : 5414 printf %s "(cached) " >&6 5415else $as_nop 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418int i; 5419_ACEOF 5420if ac_fn_c_try_compile "$LINENO" 5421then : 5422 xorg_cv_cc_flag_unused_command_line_argument=yes 5423else $as_nop 5424 xorg_cv_cc_flag_unused_command_line_argument=no 5425fi 5426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5427fi 5428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5431 CFLAGS="$xorg_testset_save_CFLAGS" 5432fi 5433 5434found="no" 5435 5436 if test $found = "no" ; then 5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5439 fi 5440 5441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5443 fi 5444 5445 CFLAGS="$CFLAGS -Wformat=2" 5446 5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5448printf %s "checking if $CC supports -Wformat=2... " >&6; } 5449 cacheid=xorg_cv_cc_flag__Wformat_2 5450 if eval test \${$cacheid+y} 5451then : 5452 printf %s "(cached) " >&6 5453else $as_nop 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455/* end confdefs.h. */ 5456int i; 5457int 5458main (void) 5459{ 5460 5461 ; 5462 return 0; 5463} 5464_ACEOF 5465if ac_fn_c_try_link "$LINENO" 5466then : 5467 eval $cacheid=yes 5468else $as_nop 5469 eval $cacheid=no 5470fi 5471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5472 conftest$ac_exeext conftest.$ac_ext 5473fi 5474 5475 5476 CFLAGS="$xorg_testset_save_CFLAGS" 5477 5478 eval supported=\$$cacheid 5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5480printf "%s\n" "$supported" >&6; } 5481 if test "$supported" = "yes" ; then 5482 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5483 found="yes" 5484 fi 5485 fi 5486 5487 if test $found = "no" ; then 5488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5490 fi 5491 5492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5494 fi 5495 5496 CFLAGS="$CFLAGS -Wformat" 5497 5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5499printf %s "checking if $CC supports -Wformat... " >&6; } 5500 cacheid=xorg_cv_cc_flag__Wformat 5501 if eval test \${$cacheid+y} 5502then : 5503 printf %s "(cached) " >&6 5504else $as_nop 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507int i; 5508int 5509main (void) 5510{ 5511 5512 ; 5513 return 0; 5514} 5515_ACEOF 5516if ac_fn_c_try_link "$LINENO" 5517then : 5518 eval $cacheid=yes 5519else $as_nop 5520 eval $cacheid=no 5521fi 5522rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5523 conftest$ac_exeext conftest.$ac_ext 5524fi 5525 5526 5527 CFLAGS="$xorg_testset_save_CFLAGS" 5528 5529 eval supported=\$$cacheid 5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5531printf "%s\n" "$supported" >&6; } 5532 if test "$supported" = "yes" ; then 5533 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5534 found="yes" 5535 fi 5536 fi 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554xorg_testset_save_CFLAGS="$CFLAGS" 5555 5556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5559printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5560if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5561then : 5562 printf %s "(cached) " >&6 5563else $as_nop 5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5565/* end confdefs.h. */ 5566int i; 5567_ACEOF 5568if ac_fn_c_try_compile "$LINENO" 5569then : 5570 xorg_cv_cc_flag_unknown_warning_option=yes 5571else $as_nop 5572 xorg_cv_cc_flag_unknown_warning_option=no 5573fi 5574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5575fi 5576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5577printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5579 CFLAGS="$xorg_testset_save_CFLAGS" 5580fi 5581 5582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5585 fi 5586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5588printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5589if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5590then : 5591 printf %s "(cached) " >&6 5592else $as_nop 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595int i; 5596_ACEOF 5597if ac_fn_c_try_compile "$LINENO" 5598then : 5599 xorg_cv_cc_flag_unused_command_line_argument=yes 5600else $as_nop 5601 xorg_cv_cc_flag_unused_command_line_argument=no 5602fi 5603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5604fi 5605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5606printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5608 CFLAGS="$xorg_testset_save_CFLAGS" 5609fi 5610 5611found="no" 5612 5613 if test $found = "no" ; then 5614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5616 fi 5617 5618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5620 fi 5621 5622 CFLAGS="$CFLAGS -Wstrict-prototypes" 5623 5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5625printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5626 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5627 if eval test \${$cacheid+y} 5628then : 5629 printf %s "(cached) " >&6 5630else $as_nop 5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5632/* end confdefs.h. */ 5633int i; 5634int 5635main (void) 5636{ 5637 5638 ; 5639 return 0; 5640} 5641_ACEOF 5642if ac_fn_c_try_link "$LINENO" 5643then : 5644 eval $cacheid=yes 5645else $as_nop 5646 eval $cacheid=no 5647fi 5648rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5649 conftest$ac_exeext conftest.$ac_ext 5650fi 5651 5652 5653 CFLAGS="$xorg_testset_save_CFLAGS" 5654 5655 eval supported=\$$cacheid 5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5657printf "%s\n" "$supported" >&6; } 5658 if test "$supported" = "yes" ; then 5659 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5660 found="yes" 5661 fi 5662 fi 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678xorg_testset_save_CFLAGS="$CFLAGS" 5679 5680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5683printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5684if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5685then : 5686 printf %s "(cached) " >&6 5687else $as_nop 5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5689/* end confdefs.h. */ 5690int i; 5691_ACEOF 5692if ac_fn_c_try_compile "$LINENO" 5693then : 5694 xorg_cv_cc_flag_unknown_warning_option=yes 5695else $as_nop 5696 xorg_cv_cc_flag_unknown_warning_option=no 5697fi 5698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5699fi 5700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5703 CFLAGS="$xorg_testset_save_CFLAGS" 5704fi 5705 5706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5709 fi 5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5713if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5714then : 5715 printf %s "(cached) " >&6 5716else $as_nop 5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5718/* end confdefs.h. */ 5719int i; 5720_ACEOF 5721if ac_fn_c_try_compile "$LINENO" 5722then : 5723 xorg_cv_cc_flag_unused_command_line_argument=yes 5724else $as_nop 5725 xorg_cv_cc_flag_unused_command_line_argument=no 5726fi 5727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5728fi 5729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5730printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5732 CFLAGS="$xorg_testset_save_CFLAGS" 5733fi 5734 5735found="no" 5736 5737 if test $found = "no" ; then 5738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5740 fi 5741 5742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5744 fi 5745 5746 CFLAGS="$CFLAGS -Wmissing-prototypes" 5747 5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5749printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5750 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5751 if eval test \${$cacheid+y} 5752then : 5753 printf %s "(cached) " >&6 5754else $as_nop 5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5756/* end confdefs.h. */ 5757int i; 5758int 5759main (void) 5760{ 5761 5762 ; 5763 return 0; 5764} 5765_ACEOF 5766if ac_fn_c_try_link "$LINENO" 5767then : 5768 eval $cacheid=yes 5769else $as_nop 5770 eval $cacheid=no 5771fi 5772rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5773 conftest$ac_exeext conftest.$ac_ext 5774fi 5775 5776 5777 CFLAGS="$xorg_testset_save_CFLAGS" 5778 5779 eval supported=\$$cacheid 5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5781printf "%s\n" "$supported" >&6; } 5782 if test "$supported" = "yes" ; then 5783 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5784 found="yes" 5785 fi 5786 fi 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802xorg_testset_save_CFLAGS="$CFLAGS" 5803 5804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5807printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5808if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5809then : 5810 printf %s "(cached) " >&6 5811else $as_nop 5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5813/* end confdefs.h. */ 5814int i; 5815_ACEOF 5816if ac_fn_c_try_compile "$LINENO" 5817then : 5818 xorg_cv_cc_flag_unknown_warning_option=yes 5819else $as_nop 5820 xorg_cv_cc_flag_unknown_warning_option=no 5821fi 5822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5823fi 5824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5827 CFLAGS="$xorg_testset_save_CFLAGS" 5828fi 5829 5830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5833 fi 5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5837if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5838then : 5839 printf %s "(cached) " >&6 5840else $as_nop 5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842/* end confdefs.h. */ 5843int i; 5844_ACEOF 5845if ac_fn_c_try_compile "$LINENO" 5846then : 5847 xorg_cv_cc_flag_unused_command_line_argument=yes 5848else $as_nop 5849 xorg_cv_cc_flag_unused_command_line_argument=no 5850fi 5851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5852fi 5853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5854printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5856 CFLAGS="$xorg_testset_save_CFLAGS" 5857fi 5858 5859found="no" 5860 5861 if test $found = "no" ; then 5862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5864 fi 5865 5866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5868 fi 5869 5870 CFLAGS="$CFLAGS -Wnested-externs" 5871 5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5873printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5874 cacheid=xorg_cv_cc_flag__Wnested_externs 5875 if eval test \${$cacheid+y} 5876then : 5877 printf %s "(cached) " >&6 5878else $as_nop 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5880/* end confdefs.h. */ 5881int i; 5882int 5883main (void) 5884{ 5885 5886 ; 5887 return 0; 5888} 5889_ACEOF 5890if ac_fn_c_try_link "$LINENO" 5891then : 5892 eval $cacheid=yes 5893else $as_nop 5894 eval $cacheid=no 5895fi 5896rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5897 conftest$ac_exeext conftest.$ac_ext 5898fi 5899 5900 5901 CFLAGS="$xorg_testset_save_CFLAGS" 5902 5903 eval supported=\$$cacheid 5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5905printf "%s\n" "$supported" >&6; } 5906 if test "$supported" = "yes" ; then 5907 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5908 found="yes" 5909 fi 5910 fi 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926xorg_testset_save_CFLAGS="$CFLAGS" 5927 5928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5932if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5933then : 5934 printf %s "(cached) " >&6 5935else $as_nop 5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5937/* end confdefs.h. */ 5938int i; 5939_ACEOF 5940if ac_fn_c_try_compile "$LINENO" 5941then : 5942 xorg_cv_cc_flag_unknown_warning_option=yes 5943else $as_nop 5944 xorg_cv_cc_flag_unknown_warning_option=no 5945fi 5946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5947fi 5948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5951 CFLAGS="$xorg_testset_save_CFLAGS" 5952fi 5953 5954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5957 fi 5958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5961if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5962then : 5963 printf %s "(cached) " >&6 5964else $as_nop 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967int i; 5968_ACEOF 5969if ac_fn_c_try_compile "$LINENO" 5970then : 5971 xorg_cv_cc_flag_unused_command_line_argument=yes 5972else $as_nop 5973 xorg_cv_cc_flag_unused_command_line_argument=no 5974fi 5975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5976fi 5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5980 CFLAGS="$xorg_testset_save_CFLAGS" 5981fi 5982 5983found="no" 5984 5985 if test $found = "no" ; then 5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988 fi 5989 5990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5992 fi 5993 5994 CFLAGS="$CFLAGS -Wbad-function-cast" 5995 5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5997printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5998 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5999 if eval test \${$cacheid+y} 6000then : 6001 printf %s "(cached) " >&6 6002else $as_nop 6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6004/* end confdefs.h. */ 6005int i; 6006int 6007main (void) 6008{ 6009 6010 ; 6011 return 0; 6012} 6013_ACEOF 6014if ac_fn_c_try_link "$LINENO" 6015then : 6016 eval $cacheid=yes 6017else $as_nop 6018 eval $cacheid=no 6019fi 6020rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6021 conftest$ac_exeext conftest.$ac_ext 6022fi 6023 6024 6025 CFLAGS="$xorg_testset_save_CFLAGS" 6026 6027 eval supported=\$$cacheid 6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6029printf "%s\n" "$supported" >&6; } 6030 if test "$supported" = "yes" ; then 6031 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6032 found="yes" 6033 fi 6034 fi 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050xorg_testset_save_CFLAGS="$CFLAGS" 6051 6052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6055printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6056if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6057then : 6058 printf %s "(cached) " >&6 6059else $as_nop 6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6061/* end confdefs.h. */ 6062int i; 6063_ACEOF 6064if ac_fn_c_try_compile "$LINENO" 6065then : 6066 xorg_cv_cc_flag_unknown_warning_option=yes 6067else $as_nop 6068 xorg_cv_cc_flag_unknown_warning_option=no 6069fi 6070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6071fi 6072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6073printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6075 CFLAGS="$xorg_testset_save_CFLAGS" 6076fi 6077 6078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6081 fi 6082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6084printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6085if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6086then : 6087 printf %s "(cached) " >&6 6088else $as_nop 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090/* end confdefs.h. */ 6091int i; 6092_ACEOF 6093if ac_fn_c_try_compile "$LINENO" 6094then : 6095 xorg_cv_cc_flag_unused_command_line_argument=yes 6096else $as_nop 6097 xorg_cv_cc_flag_unused_command_line_argument=no 6098fi 6099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6100fi 6101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6102printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6104 CFLAGS="$xorg_testset_save_CFLAGS" 6105fi 6106 6107found="no" 6108 6109 if test $found = "no" ; then 6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 fi 6113 6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6116 fi 6117 6118 CFLAGS="$CFLAGS -Wold-style-definition" 6119 6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6121printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6122 cacheid=xorg_cv_cc_flag__Wold_style_definition 6123 if eval test \${$cacheid+y} 6124then : 6125 printf %s "(cached) " >&6 6126else $as_nop 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129int i; 6130int 6131main (void) 6132{ 6133 6134 ; 6135 return 0; 6136} 6137_ACEOF 6138if ac_fn_c_try_link "$LINENO" 6139then : 6140 eval $cacheid=yes 6141else $as_nop 6142 eval $cacheid=no 6143fi 6144rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6145 conftest$ac_exeext conftest.$ac_ext 6146fi 6147 6148 6149 CFLAGS="$xorg_testset_save_CFLAGS" 6150 6151 eval supported=\$$cacheid 6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6153printf "%s\n" "$supported" >&6; } 6154 if test "$supported" = "yes" ; then 6155 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6156 found="yes" 6157 fi 6158 fi 6159 6160 if test $found = "no" ; then 6161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6163 fi 6164 6165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6167 fi 6168 6169 CFLAGS="$CFLAGS -fd" 6170 6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6172printf %s "checking if $CC supports -fd... " >&6; } 6173 cacheid=xorg_cv_cc_flag__fd 6174 if eval test \${$cacheid+y} 6175then : 6176 printf %s "(cached) " >&6 6177else $as_nop 6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6179/* end confdefs.h. */ 6180int i; 6181int 6182main (void) 6183{ 6184 6185 ; 6186 return 0; 6187} 6188_ACEOF 6189if ac_fn_c_try_link "$LINENO" 6190then : 6191 eval $cacheid=yes 6192else $as_nop 6193 eval $cacheid=no 6194fi 6195rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6196 conftest$ac_exeext conftest.$ac_ext 6197fi 6198 6199 6200 CFLAGS="$xorg_testset_save_CFLAGS" 6201 6202 eval supported=\$$cacheid 6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6204printf "%s\n" "$supported" >&6; } 6205 if test "$supported" = "yes" ; then 6206 BASE_CFLAGS="$BASE_CFLAGS -fd" 6207 found="yes" 6208 fi 6209 fi 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225xorg_testset_save_CFLAGS="$CFLAGS" 6226 6227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6230printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6231if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6232then : 6233 printf %s "(cached) " >&6 6234else $as_nop 6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236/* end confdefs.h. */ 6237int i; 6238_ACEOF 6239if ac_fn_c_try_compile "$LINENO" 6240then : 6241 xorg_cv_cc_flag_unknown_warning_option=yes 6242else $as_nop 6243 xorg_cv_cc_flag_unknown_warning_option=no 6244fi 6245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6246fi 6247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6250 CFLAGS="$xorg_testset_save_CFLAGS" 6251fi 6252 6253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6256 fi 6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6260if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6261then : 6262 printf %s "(cached) " >&6 6263else $as_nop 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265/* end confdefs.h. */ 6266int i; 6267_ACEOF 6268if ac_fn_c_try_compile "$LINENO" 6269then : 6270 xorg_cv_cc_flag_unused_command_line_argument=yes 6271else $as_nop 6272 xorg_cv_cc_flag_unused_command_line_argument=no 6273fi 6274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6275fi 6276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6279 CFLAGS="$xorg_testset_save_CFLAGS" 6280fi 6281 6282found="no" 6283 6284 if test $found = "no" ; then 6285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6287 fi 6288 6289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6291 fi 6292 6293 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6294 6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6296printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6297 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6298 if eval test \${$cacheid+y} 6299then : 6300 printf %s "(cached) " >&6 6301else $as_nop 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303/* end confdefs.h. */ 6304int i; 6305int 6306main (void) 6307{ 6308 6309 ; 6310 return 0; 6311} 6312_ACEOF 6313if ac_fn_c_try_link "$LINENO" 6314then : 6315 eval $cacheid=yes 6316else $as_nop 6317 eval $cacheid=no 6318fi 6319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6320 conftest$ac_exeext conftest.$ac_ext 6321fi 6322 6323 6324 CFLAGS="$xorg_testset_save_CFLAGS" 6325 6326 eval supported=\$$cacheid 6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6328printf "%s\n" "$supported" >&6; } 6329 if test "$supported" = "yes" ; then 6330 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6331 found="yes" 6332 fi 6333 fi 6334 6335 6336 6337 6338 6339# This chunk adds additional warnings that could catch undesired effects. 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353xorg_testset_save_CFLAGS="$CFLAGS" 6354 6355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6358printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6359if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6360then : 6361 printf %s "(cached) " >&6 6362else $as_nop 6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6364/* end confdefs.h. */ 6365int i; 6366_ACEOF 6367if ac_fn_c_try_compile "$LINENO" 6368then : 6369 xorg_cv_cc_flag_unknown_warning_option=yes 6370else $as_nop 6371 xorg_cv_cc_flag_unknown_warning_option=no 6372fi 6373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6374fi 6375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6376printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6378 CFLAGS="$xorg_testset_save_CFLAGS" 6379fi 6380 6381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6384 fi 6385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6387printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6388if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6389then : 6390 printf %s "(cached) " >&6 6391else $as_nop 6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6393/* end confdefs.h. */ 6394int i; 6395_ACEOF 6396if ac_fn_c_try_compile "$LINENO" 6397then : 6398 xorg_cv_cc_flag_unused_command_line_argument=yes 6399else $as_nop 6400 xorg_cv_cc_flag_unused_command_line_argument=no 6401fi 6402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6403fi 6404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6405printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6407 CFLAGS="$xorg_testset_save_CFLAGS" 6408fi 6409 6410found="no" 6411 6412 if test $found = "no" ; then 6413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6415 fi 6416 6417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6419 fi 6420 6421 CFLAGS="$CFLAGS -Wunused" 6422 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6424printf %s "checking if $CC supports -Wunused... " >&6; } 6425 cacheid=xorg_cv_cc_flag__Wunused 6426 if eval test \${$cacheid+y} 6427then : 6428 printf %s "(cached) " >&6 6429else $as_nop 6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6431/* end confdefs.h. */ 6432int i; 6433int 6434main (void) 6435{ 6436 6437 ; 6438 return 0; 6439} 6440_ACEOF 6441if ac_fn_c_try_link "$LINENO" 6442then : 6443 eval $cacheid=yes 6444else $as_nop 6445 eval $cacheid=no 6446fi 6447rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6448 conftest$ac_exeext conftest.$ac_ext 6449fi 6450 6451 6452 CFLAGS="$xorg_testset_save_CFLAGS" 6453 6454 eval supported=\$$cacheid 6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6456printf "%s\n" "$supported" >&6; } 6457 if test "$supported" = "yes" ; then 6458 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6459 found="yes" 6460 fi 6461 fi 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477xorg_testset_save_CFLAGS="$CFLAGS" 6478 6479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6482printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6483if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6484then : 6485 printf %s "(cached) " >&6 6486else $as_nop 6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6488/* end confdefs.h. */ 6489int i; 6490_ACEOF 6491if ac_fn_c_try_compile "$LINENO" 6492then : 6493 xorg_cv_cc_flag_unknown_warning_option=yes 6494else $as_nop 6495 xorg_cv_cc_flag_unknown_warning_option=no 6496fi 6497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6498fi 6499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6500printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6502 CFLAGS="$xorg_testset_save_CFLAGS" 6503fi 6504 6505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6508 fi 6509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6511printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6512if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6513then : 6514 printf %s "(cached) " >&6 6515else $as_nop 6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6517/* end confdefs.h. */ 6518int i; 6519_ACEOF 6520if ac_fn_c_try_compile "$LINENO" 6521then : 6522 xorg_cv_cc_flag_unused_command_line_argument=yes 6523else $as_nop 6524 xorg_cv_cc_flag_unused_command_line_argument=no 6525fi 6526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6527fi 6528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6529printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6532fi 6533 6534found="no" 6535 6536 if test $found = "no" ; then 6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 fi 6540 6541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6543 fi 6544 6545 CFLAGS="$CFLAGS -Wuninitialized" 6546 6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6548printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6549 cacheid=xorg_cv_cc_flag__Wuninitialized 6550 if eval test \${$cacheid+y} 6551then : 6552 printf %s "(cached) " >&6 6553else $as_nop 6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556int i; 6557int 6558main (void) 6559{ 6560 6561 ; 6562 return 0; 6563} 6564_ACEOF 6565if ac_fn_c_try_link "$LINENO" 6566then : 6567 eval $cacheid=yes 6568else $as_nop 6569 eval $cacheid=no 6570fi 6571rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6572 conftest$ac_exeext conftest.$ac_ext 6573fi 6574 6575 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577 6578 eval supported=\$$cacheid 6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6580printf "%s\n" "$supported" >&6; } 6581 if test "$supported" = "yes" ; then 6582 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6583 found="yes" 6584 fi 6585 fi 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601xorg_testset_save_CFLAGS="$CFLAGS" 6602 6603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6606printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6607if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6608then : 6609 printf %s "(cached) " >&6 6610else $as_nop 6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613int i; 6614_ACEOF 6615if ac_fn_c_try_compile "$LINENO" 6616then : 6617 xorg_cv_cc_flag_unknown_warning_option=yes 6618else $as_nop 6619 xorg_cv_cc_flag_unknown_warning_option=no 6620fi 6621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6622fi 6623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6624printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6626 CFLAGS="$xorg_testset_save_CFLAGS" 6627fi 6628 6629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6632 fi 6633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6635printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6636if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6637then : 6638 printf %s "(cached) " >&6 6639else $as_nop 6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6641/* end confdefs.h. */ 6642int i; 6643_ACEOF 6644if ac_fn_c_try_compile "$LINENO" 6645then : 6646 xorg_cv_cc_flag_unused_command_line_argument=yes 6647else $as_nop 6648 xorg_cv_cc_flag_unused_command_line_argument=no 6649fi 6650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6651fi 6652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6653printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6655 CFLAGS="$xorg_testset_save_CFLAGS" 6656fi 6657 6658found="no" 6659 6660 if test $found = "no" ; then 6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6663 fi 6664 6665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6667 fi 6668 6669 CFLAGS="$CFLAGS -Wshadow" 6670 6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6672printf %s "checking if $CC supports -Wshadow... " >&6; } 6673 cacheid=xorg_cv_cc_flag__Wshadow 6674 if eval test \${$cacheid+y} 6675then : 6676 printf %s "(cached) " >&6 6677else $as_nop 6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6679/* end confdefs.h. */ 6680int i; 6681int 6682main (void) 6683{ 6684 6685 ; 6686 return 0; 6687} 6688_ACEOF 6689if ac_fn_c_try_link "$LINENO" 6690then : 6691 eval $cacheid=yes 6692else $as_nop 6693 eval $cacheid=no 6694fi 6695rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6696 conftest$ac_exeext conftest.$ac_ext 6697fi 6698 6699 6700 CFLAGS="$xorg_testset_save_CFLAGS" 6701 6702 eval supported=\$$cacheid 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6704printf "%s\n" "$supported" >&6; } 6705 if test "$supported" = "yes" ; then 6706 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6707 found="yes" 6708 fi 6709 fi 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725xorg_testset_save_CFLAGS="$CFLAGS" 6726 6727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6731if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6732then : 6733 printf %s "(cached) " >&6 6734else $as_nop 6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736/* end confdefs.h. */ 6737int i; 6738_ACEOF 6739if ac_fn_c_try_compile "$LINENO" 6740then : 6741 xorg_cv_cc_flag_unknown_warning_option=yes 6742else $as_nop 6743 xorg_cv_cc_flag_unknown_warning_option=no 6744fi 6745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6746fi 6747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6748printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6750 CFLAGS="$xorg_testset_save_CFLAGS" 6751fi 6752 6753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6756 fi 6757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6759printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6760if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6761then : 6762 printf %s "(cached) " >&6 6763else $as_nop 6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765/* end confdefs.h. */ 6766int i; 6767_ACEOF 6768if ac_fn_c_try_compile "$LINENO" 6769then : 6770 xorg_cv_cc_flag_unused_command_line_argument=yes 6771else $as_nop 6772 xorg_cv_cc_flag_unused_command_line_argument=no 6773fi 6774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6775fi 6776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6777printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6779 CFLAGS="$xorg_testset_save_CFLAGS" 6780fi 6781 6782found="no" 6783 6784 if test $found = "no" ; then 6785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6787 fi 6788 6789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6791 fi 6792 6793 CFLAGS="$CFLAGS -Wmissing-noreturn" 6794 6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6796printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6797 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6798 if eval test \${$cacheid+y} 6799then : 6800 printf %s "(cached) " >&6 6801else $as_nop 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804int i; 6805int 6806main (void) 6807{ 6808 6809 ; 6810 return 0; 6811} 6812_ACEOF 6813if ac_fn_c_try_link "$LINENO" 6814then : 6815 eval $cacheid=yes 6816else $as_nop 6817 eval $cacheid=no 6818fi 6819rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6820 conftest$ac_exeext conftest.$ac_ext 6821fi 6822 6823 6824 CFLAGS="$xorg_testset_save_CFLAGS" 6825 6826 eval supported=\$$cacheid 6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6828printf "%s\n" "$supported" >&6; } 6829 if test "$supported" = "yes" ; then 6830 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6831 found="yes" 6832 fi 6833 fi 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849xorg_testset_save_CFLAGS="$CFLAGS" 6850 6851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6854printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6855if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6856then : 6857 printf %s "(cached) " >&6 6858else $as_nop 6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6860/* end confdefs.h. */ 6861int i; 6862_ACEOF 6863if ac_fn_c_try_compile "$LINENO" 6864then : 6865 xorg_cv_cc_flag_unknown_warning_option=yes 6866else $as_nop 6867 xorg_cv_cc_flag_unknown_warning_option=no 6868fi 6869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6870fi 6871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6872printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6874 CFLAGS="$xorg_testset_save_CFLAGS" 6875fi 6876 6877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6880 fi 6881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6883printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6884if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6885then : 6886 printf %s "(cached) " >&6 6887else $as_nop 6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889/* end confdefs.h. */ 6890int i; 6891_ACEOF 6892if ac_fn_c_try_compile "$LINENO" 6893then : 6894 xorg_cv_cc_flag_unused_command_line_argument=yes 6895else $as_nop 6896 xorg_cv_cc_flag_unused_command_line_argument=no 6897fi 6898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6899fi 6900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6901printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6903 CFLAGS="$xorg_testset_save_CFLAGS" 6904fi 6905 6906found="no" 6907 6908 if test $found = "no" ; then 6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6911 fi 6912 6913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6915 fi 6916 6917 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6918 6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6920printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6921 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6922 if eval test \${$cacheid+y} 6923then : 6924 printf %s "(cached) " >&6 6925else $as_nop 6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6927/* end confdefs.h. */ 6928int i; 6929int 6930main (void) 6931{ 6932 6933 ; 6934 return 0; 6935} 6936_ACEOF 6937if ac_fn_c_try_link "$LINENO" 6938then : 6939 eval $cacheid=yes 6940else $as_nop 6941 eval $cacheid=no 6942fi 6943rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6944 conftest$ac_exeext conftest.$ac_ext 6945fi 6946 6947 6948 CFLAGS="$xorg_testset_save_CFLAGS" 6949 6950 eval supported=\$$cacheid 6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6952printf "%s\n" "$supported" >&6; } 6953 if test "$supported" = "yes" ; then 6954 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6955 found="yes" 6956 fi 6957 fi 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973xorg_testset_save_CFLAGS="$CFLAGS" 6974 6975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6979if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6980then : 6981 printf %s "(cached) " >&6 6982else $as_nop 6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984/* end confdefs.h. */ 6985int i; 6986_ACEOF 6987if ac_fn_c_try_compile "$LINENO" 6988then : 6989 xorg_cv_cc_flag_unknown_warning_option=yes 6990else $as_nop 6991 xorg_cv_cc_flag_unknown_warning_option=no 6992fi 6993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6994fi 6995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6996printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6998 CFLAGS="$xorg_testset_save_CFLAGS" 6999fi 7000 7001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7004 fi 7005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7007printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7008if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7009then : 7010 printf %s "(cached) " >&6 7011else $as_nop 7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7013/* end confdefs.h. */ 7014int i; 7015_ACEOF 7016if ac_fn_c_try_compile "$LINENO" 7017then : 7018 xorg_cv_cc_flag_unused_command_line_argument=yes 7019else $as_nop 7020 xorg_cv_cc_flag_unused_command_line_argument=no 7021fi 7022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7023fi 7024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7027 CFLAGS="$xorg_testset_save_CFLAGS" 7028fi 7029 7030found="no" 7031 7032 if test $found = "no" ; then 7033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7035 fi 7036 7037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7039 fi 7040 7041 CFLAGS="$CFLAGS -Wredundant-decls" 7042 7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7044printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7045 cacheid=xorg_cv_cc_flag__Wredundant_decls 7046 if eval test \${$cacheid+y} 7047then : 7048 printf %s "(cached) " >&6 7049else $as_nop 7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7051/* end confdefs.h. */ 7052int i; 7053int 7054main (void) 7055{ 7056 7057 ; 7058 return 0; 7059} 7060_ACEOF 7061if ac_fn_c_try_link "$LINENO" 7062then : 7063 eval $cacheid=yes 7064else $as_nop 7065 eval $cacheid=no 7066fi 7067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7068 conftest$ac_exeext conftest.$ac_ext 7069fi 7070 7071 7072 CFLAGS="$xorg_testset_save_CFLAGS" 7073 7074 eval supported=\$$cacheid 7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7076printf "%s\n" "$supported" >&6; } 7077 if test "$supported" = "yes" ; then 7078 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7079 found="yes" 7080 fi 7081 fi 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097xorg_testset_save_CFLAGS="$CFLAGS" 7098 7099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7103if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7104then : 7105 printf %s "(cached) " >&6 7106else $as_nop 7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7108/* end confdefs.h. */ 7109int i; 7110_ACEOF 7111if ac_fn_c_try_compile "$LINENO" 7112then : 7113 xorg_cv_cc_flag_unknown_warning_option=yes 7114else $as_nop 7115 xorg_cv_cc_flag_unknown_warning_option=no 7116fi 7117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7118fi 7119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7120printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7122 CFLAGS="$xorg_testset_save_CFLAGS" 7123fi 7124 7125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7128 fi 7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7131printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7132if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7133then : 7134 printf %s "(cached) " >&6 7135else $as_nop 7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7137/* end confdefs.h. */ 7138int i; 7139_ACEOF 7140if ac_fn_c_try_compile "$LINENO" 7141then : 7142 xorg_cv_cc_flag_unused_command_line_argument=yes 7143else $as_nop 7144 xorg_cv_cc_flag_unused_command_line_argument=no 7145fi 7146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7147fi 7148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7151 CFLAGS="$xorg_testset_save_CFLAGS" 7152fi 7153 7154found="no" 7155 7156 if test $found = "no" ; then 7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7159 fi 7160 7161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7163 fi 7164 7165 CFLAGS="$CFLAGS -Wlogical-op" 7166 7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7168printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7169 cacheid=xorg_cv_cc_flag__Wlogical_op 7170 if eval test \${$cacheid+y} 7171then : 7172 printf %s "(cached) " >&6 7173else $as_nop 7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7175/* end confdefs.h. */ 7176int i; 7177int 7178main (void) 7179{ 7180 7181 ; 7182 return 0; 7183} 7184_ACEOF 7185if ac_fn_c_try_link "$LINENO" 7186then : 7187 eval $cacheid=yes 7188else $as_nop 7189 eval $cacheid=no 7190fi 7191rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7192 conftest$ac_exeext conftest.$ac_ext 7193fi 7194 7195 7196 CFLAGS="$xorg_testset_save_CFLAGS" 7197 7198 eval supported=\$$cacheid 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7200printf "%s\n" "$supported" >&6; } 7201 if test "$supported" = "yes" ; then 7202 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7203 found="yes" 7204 fi 7205 fi 7206 7207 7208 7209# These are currently disabled because they are noisy. They will be enabled 7210# in the future once the codebase is sufficiently modernized to silence 7211# them. For now, I don't want them to drown out the other warnings. 7212# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7213# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7214# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7215 7216# Turn some warnings into errors, so we don't accidently get successful builds 7217# when there are problems that should be fixed. 7218 7219if test "x$SELECTIVE_WERROR" = "xyes" ; then 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233xorg_testset_save_CFLAGS="$CFLAGS" 7234 7235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7239if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7240then : 7241 printf %s "(cached) " >&6 7242else $as_nop 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244/* end confdefs.h. */ 7245int i; 7246_ACEOF 7247if ac_fn_c_try_compile "$LINENO" 7248then : 7249 xorg_cv_cc_flag_unknown_warning_option=yes 7250else $as_nop 7251 xorg_cv_cc_flag_unknown_warning_option=no 7252fi 7253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7254fi 7255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7258 CFLAGS="$xorg_testset_save_CFLAGS" 7259fi 7260 7261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7264 fi 7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7269then : 7270 printf %s "(cached) " >&6 7271else $as_nop 7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273/* end confdefs.h. */ 7274int i; 7275_ACEOF 7276if ac_fn_c_try_compile "$LINENO" 7277then : 7278 xorg_cv_cc_flag_unused_command_line_argument=yes 7279else $as_nop 7280 xorg_cv_cc_flag_unused_command_line_argument=no 7281fi 7282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7283fi 7284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7287 CFLAGS="$xorg_testset_save_CFLAGS" 7288fi 7289 7290found="no" 7291 7292 if test $found = "no" ; then 7293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7295 fi 7296 7297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7299 fi 7300 7301 CFLAGS="$CFLAGS -Werror=implicit" 7302 7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7304printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7305 cacheid=xorg_cv_cc_flag__Werror_implicit 7306 if eval test \${$cacheid+y} 7307then : 7308 printf %s "(cached) " >&6 7309else $as_nop 7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7311/* end confdefs.h. */ 7312int i; 7313int 7314main (void) 7315{ 7316 7317 ; 7318 return 0; 7319} 7320_ACEOF 7321if ac_fn_c_try_link "$LINENO" 7322then : 7323 eval $cacheid=yes 7324else $as_nop 7325 eval $cacheid=no 7326fi 7327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7328 conftest$ac_exeext conftest.$ac_ext 7329fi 7330 7331 7332 CFLAGS="$xorg_testset_save_CFLAGS" 7333 7334 eval supported=\$$cacheid 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7336printf "%s\n" "$supported" >&6; } 7337 if test "$supported" = "yes" ; then 7338 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7339 found="yes" 7340 fi 7341 fi 7342 7343 if test $found = "no" ; then 7344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7346 fi 7347 7348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7350 fi 7351 7352 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7353 7354 { 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 7355printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7356 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7357 if eval test \${$cacheid+y} 7358then : 7359 printf %s "(cached) " >&6 7360else $as_nop 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362/* end confdefs.h. */ 7363int i; 7364int 7365main (void) 7366{ 7367 7368 ; 7369 return 0; 7370} 7371_ACEOF 7372if ac_fn_c_try_link "$LINENO" 7373then : 7374 eval $cacheid=yes 7375else $as_nop 7376 eval $cacheid=no 7377fi 7378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7379 conftest$ac_exeext conftest.$ac_ext 7380fi 7381 7382 7383 CFLAGS="$xorg_testset_save_CFLAGS" 7384 7385 eval supported=\$$cacheid 7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7387printf "%s\n" "$supported" >&6; } 7388 if test "$supported" = "yes" ; then 7389 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7390 found="yes" 7391 fi 7392 fi 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408xorg_testset_save_CFLAGS="$CFLAGS" 7409 7410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7413printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7414if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7415then : 7416 printf %s "(cached) " >&6 7417else $as_nop 7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7419/* end confdefs.h. */ 7420int i; 7421_ACEOF 7422if ac_fn_c_try_compile "$LINENO" 7423then : 7424 xorg_cv_cc_flag_unknown_warning_option=yes 7425else $as_nop 7426 xorg_cv_cc_flag_unknown_warning_option=no 7427fi 7428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7429fi 7430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7433 CFLAGS="$xorg_testset_save_CFLAGS" 7434fi 7435 7436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 fi 7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7443if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7444then : 7445 printf %s "(cached) " >&6 7446else $as_nop 7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449int i; 7450_ACEOF 7451if ac_fn_c_try_compile "$LINENO" 7452then : 7453 xorg_cv_cc_flag_unused_command_line_argument=yes 7454else $as_nop 7455 xorg_cv_cc_flag_unused_command_line_argument=no 7456fi 7457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7458fi 7459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7460printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7462 CFLAGS="$xorg_testset_save_CFLAGS" 7463fi 7464 7465found="no" 7466 7467 if test $found = "no" ; then 7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 fi 7471 7472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7474 fi 7475 7476 CFLAGS="$CFLAGS -Werror=nonnull" 7477 7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7479printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7480 cacheid=xorg_cv_cc_flag__Werror_nonnull 7481 if eval test \${$cacheid+y} 7482then : 7483 printf %s "(cached) " >&6 7484else $as_nop 7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7486/* end confdefs.h. */ 7487int i; 7488int 7489main (void) 7490{ 7491 7492 ; 7493 return 0; 7494} 7495_ACEOF 7496if ac_fn_c_try_link "$LINENO" 7497then : 7498 eval $cacheid=yes 7499else $as_nop 7500 eval $cacheid=no 7501fi 7502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7503 conftest$ac_exeext conftest.$ac_ext 7504fi 7505 7506 7507 CFLAGS="$xorg_testset_save_CFLAGS" 7508 7509 eval supported=\$$cacheid 7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7511printf "%s\n" "$supported" >&6; } 7512 if test "$supported" = "yes" ; then 7513 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7514 found="yes" 7515 fi 7516 fi 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532xorg_testset_save_CFLAGS="$CFLAGS" 7533 7534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7538if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7539then : 7540 printf %s "(cached) " >&6 7541else $as_nop 7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7543/* end confdefs.h. */ 7544int i; 7545_ACEOF 7546if ac_fn_c_try_compile "$LINENO" 7547then : 7548 xorg_cv_cc_flag_unknown_warning_option=yes 7549else $as_nop 7550 xorg_cv_cc_flag_unknown_warning_option=no 7551fi 7552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7553fi 7554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7557 CFLAGS="$xorg_testset_save_CFLAGS" 7558fi 7559 7560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 fi 7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7567if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7568then : 7569 printf %s "(cached) " >&6 7570else $as_nop 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573int i; 7574_ACEOF 7575if ac_fn_c_try_compile "$LINENO" 7576then : 7577 xorg_cv_cc_flag_unused_command_line_argument=yes 7578else $as_nop 7579 xorg_cv_cc_flag_unused_command_line_argument=no 7580fi 7581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7582fi 7583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7586 CFLAGS="$xorg_testset_save_CFLAGS" 7587fi 7588 7589found="no" 7590 7591 if test $found = "no" ; then 7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7594 fi 7595 7596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7598 fi 7599 7600 CFLAGS="$CFLAGS -Werror=init-self" 7601 7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7603printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7604 cacheid=xorg_cv_cc_flag__Werror_init_self 7605 if eval test \${$cacheid+y} 7606then : 7607 printf %s "(cached) " >&6 7608else $as_nop 7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610/* end confdefs.h. */ 7611int i; 7612int 7613main (void) 7614{ 7615 7616 ; 7617 return 0; 7618} 7619_ACEOF 7620if ac_fn_c_try_link "$LINENO" 7621then : 7622 eval $cacheid=yes 7623else $as_nop 7624 eval $cacheid=no 7625fi 7626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7627 conftest$ac_exeext conftest.$ac_ext 7628fi 7629 7630 7631 CFLAGS="$xorg_testset_save_CFLAGS" 7632 7633 eval supported=\$$cacheid 7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7635printf "%s\n" "$supported" >&6; } 7636 if test "$supported" = "yes" ; then 7637 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7638 found="yes" 7639 fi 7640 fi 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656xorg_testset_save_CFLAGS="$CFLAGS" 7657 7658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7662if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7663then : 7664 printf %s "(cached) " >&6 7665else $as_nop 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668int i; 7669_ACEOF 7670if ac_fn_c_try_compile "$LINENO" 7671then : 7672 xorg_cv_cc_flag_unknown_warning_option=yes 7673else $as_nop 7674 xorg_cv_cc_flag_unknown_warning_option=no 7675fi 7676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7677fi 7678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7679printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7681 CFLAGS="$xorg_testset_save_CFLAGS" 7682fi 7683 7684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7687 fi 7688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7690printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7691if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7692then : 7693 printf %s "(cached) " >&6 7694else $as_nop 7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697int i; 7698_ACEOF 7699if ac_fn_c_try_compile "$LINENO" 7700then : 7701 xorg_cv_cc_flag_unused_command_line_argument=yes 7702else $as_nop 7703 xorg_cv_cc_flag_unused_command_line_argument=no 7704fi 7705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7706fi 7707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7708printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7710 CFLAGS="$xorg_testset_save_CFLAGS" 7711fi 7712 7713found="no" 7714 7715 if test $found = "no" ; then 7716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7718 fi 7719 7720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7722 fi 7723 7724 CFLAGS="$CFLAGS -Werror=main" 7725 7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7727printf %s "checking if $CC supports -Werror=main... " >&6; } 7728 cacheid=xorg_cv_cc_flag__Werror_main 7729 if eval test \${$cacheid+y} 7730then : 7731 printf %s "(cached) " >&6 7732else $as_nop 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734/* end confdefs.h. */ 7735int i; 7736int 7737main (void) 7738{ 7739 7740 ; 7741 return 0; 7742} 7743_ACEOF 7744if ac_fn_c_try_link "$LINENO" 7745then : 7746 eval $cacheid=yes 7747else $as_nop 7748 eval $cacheid=no 7749fi 7750rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7751 conftest$ac_exeext conftest.$ac_ext 7752fi 7753 7754 7755 CFLAGS="$xorg_testset_save_CFLAGS" 7756 7757 eval supported=\$$cacheid 7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7759printf "%s\n" "$supported" >&6; } 7760 if test "$supported" = "yes" ; then 7761 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7762 found="yes" 7763 fi 7764 fi 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780xorg_testset_save_CFLAGS="$CFLAGS" 7781 7782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7785printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7786if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7787then : 7788 printf %s "(cached) " >&6 7789else $as_nop 7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7791/* end confdefs.h. */ 7792int i; 7793_ACEOF 7794if ac_fn_c_try_compile "$LINENO" 7795then : 7796 xorg_cv_cc_flag_unknown_warning_option=yes 7797else $as_nop 7798 xorg_cv_cc_flag_unknown_warning_option=no 7799fi 7800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7801fi 7802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7803printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7805 CFLAGS="$xorg_testset_save_CFLAGS" 7806fi 7807 7808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7811 fi 7812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7814printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7815if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7816then : 7817 printf %s "(cached) " >&6 7818else $as_nop 7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7820/* end confdefs.h. */ 7821int i; 7822_ACEOF 7823if ac_fn_c_try_compile "$LINENO" 7824then : 7825 xorg_cv_cc_flag_unused_command_line_argument=yes 7826else $as_nop 7827 xorg_cv_cc_flag_unused_command_line_argument=no 7828fi 7829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7830fi 7831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7832printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7834 CFLAGS="$xorg_testset_save_CFLAGS" 7835fi 7836 7837found="no" 7838 7839 if test $found = "no" ; then 7840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7842 fi 7843 7844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7846 fi 7847 7848 CFLAGS="$CFLAGS -Werror=missing-braces" 7849 7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7851printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7852 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7853 if eval test \${$cacheid+y} 7854then : 7855 printf %s "(cached) " >&6 7856else $as_nop 7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7858/* end confdefs.h. */ 7859int i; 7860int 7861main (void) 7862{ 7863 7864 ; 7865 return 0; 7866} 7867_ACEOF 7868if ac_fn_c_try_link "$LINENO" 7869then : 7870 eval $cacheid=yes 7871else $as_nop 7872 eval $cacheid=no 7873fi 7874rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7875 conftest$ac_exeext conftest.$ac_ext 7876fi 7877 7878 7879 CFLAGS="$xorg_testset_save_CFLAGS" 7880 7881 eval supported=\$$cacheid 7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7883printf "%s\n" "$supported" >&6; } 7884 if test "$supported" = "yes" ; then 7885 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7886 found="yes" 7887 fi 7888 fi 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904xorg_testset_save_CFLAGS="$CFLAGS" 7905 7906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7909printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7910if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7911then : 7912 printf %s "(cached) " >&6 7913else $as_nop 7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7915/* end confdefs.h. */ 7916int i; 7917_ACEOF 7918if ac_fn_c_try_compile "$LINENO" 7919then : 7920 xorg_cv_cc_flag_unknown_warning_option=yes 7921else $as_nop 7922 xorg_cv_cc_flag_unknown_warning_option=no 7923fi 7924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7925fi 7926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7927printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7929 CFLAGS="$xorg_testset_save_CFLAGS" 7930fi 7931 7932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7935 fi 7936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7938printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7939if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7940then : 7941 printf %s "(cached) " >&6 7942else $as_nop 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946_ACEOF 7947if ac_fn_c_try_compile "$LINENO" 7948then : 7949 xorg_cv_cc_flag_unused_command_line_argument=yes 7950else $as_nop 7951 xorg_cv_cc_flag_unused_command_line_argument=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7954fi 7955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7956printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959fi 7960 7961found="no" 7962 7963 if test $found = "no" ; then 7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7966 fi 7967 7968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7970 fi 7971 7972 CFLAGS="$CFLAGS -Werror=sequence-point" 7973 7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7975printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7976 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7977 if eval test \${$cacheid+y} 7978then : 7979 printf %s "(cached) " >&6 7980else $as_nop 7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7982/* end confdefs.h. */ 7983int i; 7984int 7985main (void) 7986{ 7987 7988 ; 7989 return 0; 7990} 7991_ACEOF 7992if ac_fn_c_try_link "$LINENO" 7993then : 7994 eval $cacheid=yes 7995else $as_nop 7996 eval $cacheid=no 7997fi 7998rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7999 conftest$ac_exeext conftest.$ac_ext 8000fi 8001 8002 8003 CFLAGS="$xorg_testset_save_CFLAGS" 8004 8005 eval supported=\$$cacheid 8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8007printf "%s\n" "$supported" >&6; } 8008 if test "$supported" = "yes" ; then 8009 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8010 found="yes" 8011 fi 8012 fi 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028xorg_testset_save_CFLAGS="$CFLAGS" 8029 8030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8033printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8034if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8035then : 8036 printf %s "(cached) " >&6 8037else $as_nop 8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039/* end confdefs.h. */ 8040int i; 8041_ACEOF 8042if ac_fn_c_try_compile "$LINENO" 8043then : 8044 xorg_cv_cc_flag_unknown_warning_option=yes 8045else $as_nop 8046 xorg_cv_cc_flag_unknown_warning_option=no 8047fi 8048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8049fi 8050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8051printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8053 CFLAGS="$xorg_testset_save_CFLAGS" 8054fi 8055 8056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8059 fi 8060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8062printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8063if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8064then : 8065 printf %s "(cached) " >&6 8066else $as_nop 8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8068/* end confdefs.h. */ 8069int i; 8070_ACEOF 8071if ac_fn_c_try_compile "$LINENO" 8072then : 8073 xorg_cv_cc_flag_unused_command_line_argument=yes 8074else $as_nop 8075 xorg_cv_cc_flag_unused_command_line_argument=no 8076fi 8077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8078fi 8079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8080printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8082 CFLAGS="$xorg_testset_save_CFLAGS" 8083fi 8084 8085found="no" 8086 8087 if test $found = "no" ; then 8088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 fi 8091 8092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8094 fi 8095 8096 CFLAGS="$CFLAGS -Werror=return-type" 8097 8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8099printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8100 cacheid=xorg_cv_cc_flag__Werror_return_type 8101 if eval test \${$cacheid+y} 8102then : 8103 printf %s "(cached) " >&6 8104else $as_nop 8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8106/* end confdefs.h. */ 8107int i; 8108int 8109main (void) 8110{ 8111 8112 ; 8113 return 0; 8114} 8115_ACEOF 8116if ac_fn_c_try_link "$LINENO" 8117then : 8118 eval $cacheid=yes 8119else $as_nop 8120 eval $cacheid=no 8121fi 8122rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8123 conftest$ac_exeext conftest.$ac_ext 8124fi 8125 8126 8127 CFLAGS="$xorg_testset_save_CFLAGS" 8128 8129 eval supported=\$$cacheid 8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8131printf "%s\n" "$supported" >&6; } 8132 if test "$supported" = "yes" ; then 8133 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8134 found="yes" 8135 fi 8136 fi 8137 8138 if test $found = "no" ; then 8139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8141 fi 8142 8143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8145 fi 8146 8147 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8148 8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8150printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8151 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8152 if eval test \${$cacheid+y} 8153then : 8154 printf %s "(cached) " >&6 8155else $as_nop 8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8157/* end confdefs.h. */ 8158int i; 8159int 8160main (void) 8161{ 8162 8163 ; 8164 return 0; 8165} 8166_ACEOF 8167if ac_fn_c_try_link "$LINENO" 8168then : 8169 eval $cacheid=yes 8170else $as_nop 8171 eval $cacheid=no 8172fi 8173rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8174 conftest$ac_exeext conftest.$ac_ext 8175fi 8176 8177 8178 CFLAGS="$xorg_testset_save_CFLAGS" 8179 8180 eval supported=\$$cacheid 8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8182printf "%s\n" "$supported" >&6; } 8183 if test "$supported" = "yes" ; then 8184 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8185 found="yes" 8186 fi 8187 fi 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203xorg_testset_save_CFLAGS="$CFLAGS" 8204 8205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8208printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8209if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8210then : 8211 printf %s "(cached) " >&6 8212else $as_nop 8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214/* end confdefs.h. */ 8215int i; 8216_ACEOF 8217if ac_fn_c_try_compile "$LINENO" 8218then : 8219 xorg_cv_cc_flag_unknown_warning_option=yes 8220else $as_nop 8221 xorg_cv_cc_flag_unknown_warning_option=no 8222fi 8223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8224fi 8225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8226printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8228 CFLAGS="$xorg_testset_save_CFLAGS" 8229fi 8230 8231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8234 fi 8235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8237printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8238if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8239then : 8240 printf %s "(cached) " >&6 8241else $as_nop 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244int i; 8245_ACEOF 8246if ac_fn_c_try_compile "$LINENO" 8247then : 8248 xorg_cv_cc_flag_unused_command_line_argument=yes 8249else $as_nop 8250 xorg_cv_cc_flag_unused_command_line_argument=no 8251fi 8252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8253fi 8254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8257 CFLAGS="$xorg_testset_save_CFLAGS" 8258fi 8259 8260found="no" 8261 8262 if test $found = "no" ; then 8263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8265 fi 8266 8267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8269 fi 8270 8271 CFLAGS="$CFLAGS -Werror=trigraphs" 8272 8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8274printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8275 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8276 if eval test \${$cacheid+y} 8277then : 8278 printf %s "(cached) " >&6 8279else $as_nop 8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8281/* end confdefs.h. */ 8282int i; 8283int 8284main (void) 8285{ 8286 8287 ; 8288 return 0; 8289} 8290_ACEOF 8291if ac_fn_c_try_link "$LINENO" 8292then : 8293 eval $cacheid=yes 8294else $as_nop 8295 eval $cacheid=no 8296fi 8297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8298 conftest$ac_exeext conftest.$ac_ext 8299fi 8300 8301 8302 CFLAGS="$xorg_testset_save_CFLAGS" 8303 8304 eval supported=\$$cacheid 8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8306printf "%s\n" "$supported" >&6; } 8307 if test "$supported" = "yes" ; then 8308 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8309 found="yes" 8310 fi 8311 fi 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327xorg_testset_save_CFLAGS="$CFLAGS" 8328 8329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8332printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8333if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8334then : 8335 printf %s "(cached) " >&6 8336else $as_nop 8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8338/* end confdefs.h. */ 8339int i; 8340_ACEOF 8341if ac_fn_c_try_compile "$LINENO" 8342then : 8343 xorg_cv_cc_flag_unknown_warning_option=yes 8344else $as_nop 8345 xorg_cv_cc_flag_unknown_warning_option=no 8346fi 8347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8348fi 8349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8350printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8352 CFLAGS="$xorg_testset_save_CFLAGS" 8353fi 8354 8355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8358 fi 8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8361printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8362if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8363then : 8364 printf %s "(cached) " >&6 8365else $as_nop 8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8367/* end confdefs.h. */ 8368int i; 8369_ACEOF 8370if ac_fn_c_try_compile "$LINENO" 8371then : 8372 xorg_cv_cc_flag_unused_command_line_argument=yes 8373else $as_nop 8374 xorg_cv_cc_flag_unused_command_line_argument=no 8375fi 8376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8377fi 8378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8379printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8381 CFLAGS="$xorg_testset_save_CFLAGS" 8382fi 8383 8384found="no" 8385 8386 if test $found = "no" ; then 8387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8389 fi 8390 8391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8393 fi 8394 8395 CFLAGS="$CFLAGS -Werror=array-bounds" 8396 8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8398printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8399 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8400 if eval test \${$cacheid+y} 8401then : 8402 printf %s "(cached) " >&6 8403else $as_nop 8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8405/* end confdefs.h. */ 8406int i; 8407int 8408main (void) 8409{ 8410 8411 ; 8412 return 0; 8413} 8414_ACEOF 8415if ac_fn_c_try_link "$LINENO" 8416then : 8417 eval $cacheid=yes 8418else $as_nop 8419 eval $cacheid=no 8420fi 8421rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8422 conftest$ac_exeext conftest.$ac_ext 8423fi 8424 8425 8426 CFLAGS="$xorg_testset_save_CFLAGS" 8427 8428 eval supported=\$$cacheid 8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8430printf "%s\n" "$supported" >&6; } 8431 if test "$supported" = "yes" ; then 8432 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8433 found="yes" 8434 fi 8435 fi 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451xorg_testset_save_CFLAGS="$CFLAGS" 8452 8453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8457if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8458then : 8459 printf %s "(cached) " >&6 8460else $as_nop 8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462/* end confdefs.h. */ 8463int i; 8464_ACEOF 8465if ac_fn_c_try_compile "$LINENO" 8466then : 8467 xorg_cv_cc_flag_unknown_warning_option=yes 8468else $as_nop 8469 xorg_cv_cc_flag_unknown_warning_option=no 8470fi 8471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8472fi 8473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8476 CFLAGS="$xorg_testset_save_CFLAGS" 8477fi 8478 8479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8482 fi 8483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8486if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8487then : 8488 printf %s "(cached) " >&6 8489else $as_nop 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491/* end confdefs.h. */ 8492int i; 8493_ACEOF 8494if ac_fn_c_try_compile "$LINENO" 8495then : 8496 xorg_cv_cc_flag_unused_command_line_argument=yes 8497else $as_nop 8498 xorg_cv_cc_flag_unused_command_line_argument=no 8499fi 8500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8501fi 8502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8505 CFLAGS="$xorg_testset_save_CFLAGS" 8506fi 8507 8508found="no" 8509 8510 if test $found = "no" ; then 8511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8513 fi 8514 8515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8517 fi 8518 8519 CFLAGS="$CFLAGS -Werror=write-strings" 8520 8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8522printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8523 cacheid=xorg_cv_cc_flag__Werror_write_strings 8524 if eval test \${$cacheid+y} 8525then : 8526 printf %s "(cached) " >&6 8527else $as_nop 8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8529/* end confdefs.h. */ 8530int i; 8531int 8532main (void) 8533{ 8534 8535 ; 8536 return 0; 8537} 8538_ACEOF 8539if ac_fn_c_try_link "$LINENO" 8540then : 8541 eval $cacheid=yes 8542else $as_nop 8543 eval $cacheid=no 8544fi 8545rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8546 conftest$ac_exeext conftest.$ac_ext 8547fi 8548 8549 8550 CFLAGS="$xorg_testset_save_CFLAGS" 8551 8552 eval supported=\$$cacheid 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8554printf "%s\n" "$supported" >&6; } 8555 if test "$supported" = "yes" ; then 8556 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8557 found="yes" 8558 fi 8559 fi 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575xorg_testset_save_CFLAGS="$CFLAGS" 8576 8577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8580printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8581if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8582then : 8583 printf %s "(cached) " >&6 8584else $as_nop 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586/* end confdefs.h. */ 8587int i; 8588_ACEOF 8589if ac_fn_c_try_compile "$LINENO" 8590then : 8591 xorg_cv_cc_flag_unknown_warning_option=yes 8592else $as_nop 8593 xorg_cv_cc_flag_unknown_warning_option=no 8594fi 8595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8596fi 8597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8598printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8600 CFLAGS="$xorg_testset_save_CFLAGS" 8601fi 8602 8603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8606 fi 8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8609printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8610if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8611then : 8612 printf %s "(cached) " >&6 8613else $as_nop 8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8615/* end confdefs.h. */ 8616int i; 8617_ACEOF 8618if ac_fn_c_try_compile "$LINENO" 8619then : 8620 xorg_cv_cc_flag_unused_command_line_argument=yes 8621else $as_nop 8622 xorg_cv_cc_flag_unused_command_line_argument=no 8623fi 8624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8625fi 8626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8627printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8629 CFLAGS="$xorg_testset_save_CFLAGS" 8630fi 8631 8632found="no" 8633 8634 if test $found = "no" ; then 8635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8637 fi 8638 8639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8641 fi 8642 8643 CFLAGS="$CFLAGS -Werror=address" 8644 8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8646printf %s "checking if $CC supports -Werror=address... " >&6; } 8647 cacheid=xorg_cv_cc_flag__Werror_address 8648 if eval test \${$cacheid+y} 8649then : 8650 printf %s "(cached) " >&6 8651else $as_nop 8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8653/* end confdefs.h. */ 8654int i; 8655int 8656main (void) 8657{ 8658 8659 ; 8660 return 0; 8661} 8662_ACEOF 8663if ac_fn_c_try_link "$LINENO" 8664then : 8665 eval $cacheid=yes 8666else $as_nop 8667 eval $cacheid=no 8668fi 8669rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8670 conftest$ac_exeext conftest.$ac_ext 8671fi 8672 8673 8674 CFLAGS="$xorg_testset_save_CFLAGS" 8675 8676 eval supported=\$$cacheid 8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8678printf "%s\n" "$supported" >&6; } 8679 if test "$supported" = "yes" ; then 8680 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8681 found="yes" 8682 fi 8683 fi 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699xorg_testset_save_CFLAGS="$CFLAGS" 8700 8701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8705if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8706then : 8707 printf %s "(cached) " >&6 8708else $as_nop 8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8710/* end confdefs.h. */ 8711int i; 8712_ACEOF 8713if ac_fn_c_try_compile "$LINENO" 8714then : 8715 xorg_cv_cc_flag_unknown_warning_option=yes 8716else $as_nop 8717 xorg_cv_cc_flag_unknown_warning_option=no 8718fi 8719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8720fi 8721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8724 CFLAGS="$xorg_testset_save_CFLAGS" 8725fi 8726 8727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8730 fi 8731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8734if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8735then : 8736 printf %s "(cached) " >&6 8737else $as_nop 8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739/* end confdefs.h. */ 8740int i; 8741_ACEOF 8742if ac_fn_c_try_compile "$LINENO" 8743then : 8744 xorg_cv_cc_flag_unused_command_line_argument=yes 8745else $as_nop 8746 xorg_cv_cc_flag_unused_command_line_argument=no 8747fi 8748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8749fi 8750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8753 CFLAGS="$xorg_testset_save_CFLAGS" 8754fi 8755 8756found="no" 8757 8758 if test $found = "no" ; then 8759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8761 fi 8762 8763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8765 fi 8766 8767 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8768 8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8770printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8771 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8772 if eval test \${$cacheid+y} 8773then : 8774 printf %s "(cached) " >&6 8775else $as_nop 8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8777/* end confdefs.h. */ 8778int i; 8779int 8780main (void) 8781{ 8782 8783 ; 8784 return 0; 8785} 8786_ACEOF 8787if ac_fn_c_try_link "$LINENO" 8788then : 8789 eval $cacheid=yes 8790else $as_nop 8791 eval $cacheid=no 8792fi 8793rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8794 conftest$ac_exeext conftest.$ac_ext 8795fi 8796 8797 8798 CFLAGS="$xorg_testset_save_CFLAGS" 8799 8800 eval supported=\$$cacheid 8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8802printf "%s\n" "$supported" >&6; } 8803 if test "$supported" = "yes" ; then 8804 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8805 found="yes" 8806 fi 8807 fi 8808 8809 if test $found = "no" ; then 8810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8812 fi 8813 8814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8816 fi 8817 8818 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8819 8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8821printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8822 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8823 if eval test \${$cacheid+y} 8824then : 8825 printf %s "(cached) " >&6 8826else $as_nop 8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8828/* end confdefs.h. */ 8829int i; 8830int 8831main (void) 8832{ 8833 8834 ; 8835 return 0; 8836} 8837_ACEOF 8838if ac_fn_c_try_link "$LINENO" 8839then : 8840 eval $cacheid=yes 8841else $as_nop 8842 eval $cacheid=no 8843fi 8844rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8845 conftest$ac_exeext conftest.$ac_ext 8846fi 8847 8848 8849 CFLAGS="$xorg_testset_save_CFLAGS" 8850 8851 eval supported=\$$cacheid 8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8853printf "%s\n" "$supported" >&6; } 8854 if test "$supported" = "yes" ; then 8855 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8856 found="yes" 8857 fi 8858 fi 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874xorg_testset_save_CFLAGS="$CFLAGS" 8875 8876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8880if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8881then : 8882 printf %s "(cached) " >&6 8883else $as_nop 8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8885/* end confdefs.h. */ 8886int i; 8887_ACEOF 8888if ac_fn_c_try_compile "$LINENO" 8889then : 8890 xorg_cv_cc_flag_unknown_warning_option=yes 8891else $as_nop 8892 xorg_cv_cc_flag_unknown_warning_option=no 8893fi 8894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8895fi 8896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8899 CFLAGS="$xorg_testset_save_CFLAGS" 8900fi 8901 8902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8905 fi 8906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8909if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8910then : 8911 printf %s "(cached) " >&6 8912else $as_nop 8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8914/* end confdefs.h. */ 8915int i; 8916_ACEOF 8917if ac_fn_c_try_compile "$LINENO" 8918then : 8919 xorg_cv_cc_flag_unused_command_line_argument=yes 8920else $as_nop 8921 xorg_cv_cc_flag_unused_command_line_argument=no 8922fi 8923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8924fi 8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8926printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8928 CFLAGS="$xorg_testset_save_CFLAGS" 8929fi 8930 8931found="no" 8932 8933 if test $found = "no" ; then 8934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8936 fi 8937 8938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8940 fi 8941 8942 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8943 8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8945printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8946 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8947 if eval test \${$cacheid+y} 8948then : 8949 printf %s "(cached) " >&6 8950else $as_nop 8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8952/* end confdefs.h. */ 8953int i; 8954int 8955main (void) 8956{ 8957 8958 ; 8959 return 0; 8960} 8961_ACEOF 8962if ac_fn_c_try_link "$LINENO" 8963then : 8964 eval $cacheid=yes 8965else $as_nop 8966 eval $cacheid=no 8967fi 8968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8969 conftest$ac_exeext conftest.$ac_ext 8970fi 8971 8972 8973 CFLAGS="$xorg_testset_save_CFLAGS" 8974 8975 eval supported=\$$cacheid 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8977printf "%s\n" "$supported" >&6; } 8978 if test "$supported" = "yes" ; then 8979 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8980 found="yes" 8981 fi 8982 fi 8983 8984 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8985else 8986{ 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 8987printf "%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;} 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001xorg_testset_save_CFLAGS="$CFLAGS" 9002 9003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9007if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9008then : 9009 printf %s "(cached) " >&6 9010else $as_nop 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013int i; 9014_ACEOF 9015if ac_fn_c_try_compile "$LINENO" 9016then : 9017 xorg_cv_cc_flag_unknown_warning_option=yes 9018else $as_nop 9019 xorg_cv_cc_flag_unknown_warning_option=no 9020fi 9021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9022fi 9023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9024printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9026 CFLAGS="$xorg_testset_save_CFLAGS" 9027fi 9028 9029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9032 fi 9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9035printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9036if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9037then : 9038 printf %s "(cached) " >&6 9039else $as_nop 9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9041/* end confdefs.h. */ 9042int i; 9043_ACEOF 9044if ac_fn_c_try_compile "$LINENO" 9045then : 9046 xorg_cv_cc_flag_unused_command_line_argument=yes 9047else $as_nop 9048 xorg_cv_cc_flag_unused_command_line_argument=no 9049fi 9050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9051fi 9052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9053printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9055 CFLAGS="$xorg_testset_save_CFLAGS" 9056fi 9057 9058found="no" 9059 9060 if test $found = "no" ; then 9061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9063 fi 9064 9065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9067 fi 9068 9069 CFLAGS="$CFLAGS -Wimplicit" 9070 9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9072printf %s "checking if $CC supports -Wimplicit... " >&6; } 9073 cacheid=xorg_cv_cc_flag__Wimplicit 9074 if eval test \${$cacheid+y} 9075then : 9076 printf %s "(cached) " >&6 9077else $as_nop 9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079/* end confdefs.h. */ 9080int i; 9081int 9082main (void) 9083{ 9084 9085 ; 9086 return 0; 9087} 9088_ACEOF 9089if ac_fn_c_try_link "$LINENO" 9090then : 9091 eval $cacheid=yes 9092else $as_nop 9093 eval $cacheid=no 9094fi 9095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9096 conftest$ac_exeext conftest.$ac_ext 9097fi 9098 9099 9100 CFLAGS="$xorg_testset_save_CFLAGS" 9101 9102 eval supported=\$$cacheid 9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9104printf "%s\n" "$supported" >&6; } 9105 if test "$supported" = "yes" ; then 9106 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9107 found="yes" 9108 fi 9109 fi 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125xorg_testset_save_CFLAGS="$CFLAGS" 9126 9127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9130printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9131if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9132then : 9133 printf %s "(cached) " >&6 9134else $as_nop 9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9136/* end confdefs.h. */ 9137int i; 9138_ACEOF 9139if ac_fn_c_try_compile "$LINENO" 9140then : 9141 xorg_cv_cc_flag_unknown_warning_option=yes 9142else $as_nop 9143 xorg_cv_cc_flag_unknown_warning_option=no 9144fi 9145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9146fi 9147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9148printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9150 CFLAGS="$xorg_testset_save_CFLAGS" 9151fi 9152 9153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9156 fi 9157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9159printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9160if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9161then : 9162 printf %s "(cached) " >&6 9163else $as_nop 9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9165/* end confdefs.h. */ 9166int i; 9167_ACEOF 9168if ac_fn_c_try_compile "$LINENO" 9169then : 9170 xorg_cv_cc_flag_unused_command_line_argument=yes 9171else $as_nop 9172 xorg_cv_cc_flag_unused_command_line_argument=no 9173fi 9174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9175fi 9176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9177printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9179 CFLAGS="$xorg_testset_save_CFLAGS" 9180fi 9181 9182found="no" 9183 9184 if test $found = "no" ; then 9185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9187 fi 9188 9189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9191 fi 9192 9193 CFLAGS="$CFLAGS -Wnonnull" 9194 9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9196printf %s "checking if $CC supports -Wnonnull... " >&6; } 9197 cacheid=xorg_cv_cc_flag__Wnonnull 9198 if eval test \${$cacheid+y} 9199then : 9200 printf %s "(cached) " >&6 9201else $as_nop 9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9203/* end confdefs.h. */ 9204int i; 9205int 9206main (void) 9207{ 9208 9209 ; 9210 return 0; 9211} 9212_ACEOF 9213if ac_fn_c_try_link "$LINENO" 9214then : 9215 eval $cacheid=yes 9216else $as_nop 9217 eval $cacheid=no 9218fi 9219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9220 conftest$ac_exeext conftest.$ac_ext 9221fi 9222 9223 9224 CFLAGS="$xorg_testset_save_CFLAGS" 9225 9226 eval supported=\$$cacheid 9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9228printf "%s\n" "$supported" >&6; } 9229 if test "$supported" = "yes" ; then 9230 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9231 found="yes" 9232 fi 9233 fi 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249xorg_testset_save_CFLAGS="$CFLAGS" 9250 9251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9255if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9256then : 9257 printf %s "(cached) " >&6 9258else $as_nop 9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9260/* end confdefs.h. */ 9261int i; 9262_ACEOF 9263if ac_fn_c_try_compile "$LINENO" 9264then : 9265 xorg_cv_cc_flag_unknown_warning_option=yes 9266else $as_nop 9267 xorg_cv_cc_flag_unknown_warning_option=no 9268fi 9269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9270fi 9271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9274 CFLAGS="$xorg_testset_save_CFLAGS" 9275fi 9276 9277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9280 fi 9281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9284if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9285then : 9286 printf %s "(cached) " >&6 9287else $as_nop 9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9289/* end confdefs.h. */ 9290int i; 9291_ACEOF 9292if ac_fn_c_try_compile "$LINENO" 9293then : 9294 xorg_cv_cc_flag_unused_command_line_argument=yes 9295else $as_nop 9296 xorg_cv_cc_flag_unused_command_line_argument=no 9297fi 9298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9299fi 9300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9303 CFLAGS="$xorg_testset_save_CFLAGS" 9304fi 9305 9306found="no" 9307 9308 if test $found = "no" ; then 9309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9311 fi 9312 9313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9315 fi 9316 9317 CFLAGS="$CFLAGS -Winit-self" 9318 9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9320printf %s "checking if $CC supports -Winit-self... " >&6; } 9321 cacheid=xorg_cv_cc_flag__Winit_self 9322 if eval test \${$cacheid+y} 9323then : 9324 printf %s "(cached) " >&6 9325else $as_nop 9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9327/* end confdefs.h. */ 9328int i; 9329int 9330main (void) 9331{ 9332 9333 ; 9334 return 0; 9335} 9336_ACEOF 9337if ac_fn_c_try_link "$LINENO" 9338then : 9339 eval $cacheid=yes 9340else $as_nop 9341 eval $cacheid=no 9342fi 9343rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9344 conftest$ac_exeext conftest.$ac_ext 9345fi 9346 9347 9348 CFLAGS="$xorg_testset_save_CFLAGS" 9349 9350 eval supported=\$$cacheid 9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9352printf "%s\n" "$supported" >&6; } 9353 if test "$supported" = "yes" ; then 9354 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9355 found="yes" 9356 fi 9357 fi 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373xorg_testset_save_CFLAGS="$CFLAGS" 9374 9375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9378printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9379if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9380then : 9381 printf %s "(cached) " >&6 9382else $as_nop 9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9384/* end confdefs.h. */ 9385int i; 9386_ACEOF 9387if ac_fn_c_try_compile "$LINENO" 9388then : 9389 xorg_cv_cc_flag_unknown_warning_option=yes 9390else $as_nop 9391 xorg_cv_cc_flag_unknown_warning_option=no 9392fi 9393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9394fi 9395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9398 CFLAGS="$xorg_testset_save_CFLAGS" 9399fi 9400 9401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9404 fi 9405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9408if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9409then : 9410 printf %s "(cached) " >&6 9411else $as_nop 9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9413/* end confdefs.h. */ 9414int i; 9415_ACEOF 9416if ac_fn_c_try_compile "$LINENO" 9417then : 9418 xorg_cv_cc_flag_unused_command_line_argument=yes 9419else $as_nop 9420 xorg_cv_cc_flag_unused_command_line_argument=no 9421fi 9422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9423fi 9424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9427 CFLAGS="$xorg_testset_save_CFLAGS" 9428fi 9429 9430found="no" 9431 9432 if test $found = "no" ; then 9433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9435 fi 9436 9437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9439 fi 9440 9441 CFLAGS="$CFLAGS -Wmain" 9442 9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9444printf %s "checking if $CC supports -Wmain... " >&6; } 9445 cacheid=xorg_cv_cc_flag__Wmain 9446 if eval test \${$cacheid+y} 9447then : 9448 printf %s "(cached) " >&6 9449else $as_nop 9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9451/* end confdefs.h. */ 9452int i; 9453int 9454main (void) 9455{ 9456 9457 ; 9458 return 0; 9459} 9460_ACEOF 9461if ac_fn_c_try_link "$LINENO" 9462then : 9463 eval $cacheid=yes 9464else $as_nop 9465 eval $cacheid=no 9466fi 9467rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9468 conftest$ac_exeext conftest.$ac_ext 9469fi 9470 9471 9472 CFLAGS="$xorg_testset_save_CFLAGS" 9473 9474 eval supported=\$$cacheid 9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9476printf "%s\n" "$supported" >&6; } 9477 if test "$supported" = "yes" ; then 9478 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9479 found="yes" 9480 fi 9481 fi 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497xorg_testset_save_CFLAGS="$CFLAGS" 9498 9499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9503if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9504then : 9505 printf %s "(cached) " >&6 9506else $as_nop 9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9508/* end confdefs.h. */ 9509int i; 9510_ACEOF 9511if ac_fn_c_try_compile "$LINENO" 9512then : 9513 xorg_cv_cc_flag_unknown_warning_option=yes 9514else $as_nop 9515 xorg_cv_cc_flag_unknown_warning_option=no 9516fi 9517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9518fi 9519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9522 CFLAGS="$xorg_testset_save_CFLAGS" 9523fi 9524 9525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9528 fi 9529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9532if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9533then : 9534 printf %s "(cached) " >&6 9535else $as_nop 9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9537/* end confdefs.h. */ 9538int i; 9539_ACEOF 9540if ac_fn_c_try_compile "$LINENO" 9541then : 9542 xorg_cv_cc_flag_unused_command_line_argument=yes 9543else $as_nop 9544 xorg_cv_cc_flag_unused_command_line_argument=no 9545fi 9546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9547fi 9548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9551 CFLAGS="$xorg_testset_save_CFLAGS" 9552fi 9553 9554found="no" 9555 9556 if test $found = "no" ; then 9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9559 fi 9560 9561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9563 fi 9564 9565 CFLAGS="$CFLAGS -Wmissing-braces" 9566 9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9568printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9569 cacheid=xorg_cv_cc_flag__Wmissing_braces 9570 if eval test \${$cacheid+y} 9571then : 9572 printf %s "(cached) " >&6 9573else $as_nop 9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9575/* end confdefs.h. */ 9576int i; 9577int 9578main (void) 9579{ 9580 9581 ; 9582 return 0; 9583} 9584_ACEOF 9585if ac_fn_c_try_link "$LINENO" 9586then : 9587 eval $cacheid=yes 9588else $as_nop 9589 eval $cacheid=no 9590fi 9591rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9592 conftest$ac_exeext conftest.$ac_ext 9593fi 9594 9595 9596 CFLAGS="$xorg_testset_save_CFLAGS" 9597 9598 eval supported=\$$cacheid 9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9600printf "%s\n" "$supported" >&6; } 9601 if test "$supported" = "yes" ; then 9602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9603 found="yes" 9604 fi 9605 fi 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621xorg_testset_save_CFLAGS="$CFLAGS" 9622 9623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9627if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9628then : 9629 printf %s "(cached) " >&6 9630else $as_nop 9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9632/* end confdefs.h. */ 9633int i; 9634_ACEOF 9635if ac_fn_c_try_compile "$LINENO" 9636then : 9637 xorg_cv_cc_flag_unknown_warning_option=yes 9638else $as_nop 9639 xorg_cv_cc_flag_unknown_warning_option=no 9640fi 9641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9642fi 9643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9646 CFLAGS="$xorg_testset_save_CFLAGS" 9647fi 9648 9649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9652 fi 9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9656if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9657then : 9658 printf %s "(cached) " >&6 9659else $as_nop 9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9661/* end confdefs.h. */ 9662int i; 9663_ACEOF 9664if ac_fn_c_try_compile "$LINENO" 9665then : 9666 xorg_cv_cc_flag_unused_command_line_argument=yes 9667else $as_nop 9668 xorg_cv_cc_flag_unused_command_line_argument=no 9669fi 9670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9671fi 9672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9675 CFLAGS="$xorg_testset_save_CFLAGS" 9676fi 9677 9678found="no" 9679 9680 if test $found = "no" ; then 9681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9683 fi 9684 9685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9687 fi 9688 9689 CFLAGS="$CFLAGS -Wsequence-point" 9690 9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9692printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9693 cacheid=xorg_cv_cc_flag__Wsequence_point 9694 if eval test \${$cacheid+y} 9695then : 9696 printf %s "(cached) " >&6 9697else $as_nop 9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9699/* end confdefs.h. */ 9700int i; 9701int 9702main (void) 9703{ 9704 9705 ; 9706 return 0; 9707} 9708_ACEOF 9709if ac_fn_c_try_link "$LINENO" 9710then : 9711 eval $cacheid=yes 9712else $as_nop 9713 eval $cacheid=no 9714fi 9715rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9716 conftest$ac_exeext conftest.$ac_ext 9717fi 9718 9719 9720 CFLAGS="$xorg_testset_save_CFLAGS" 9721 9722 eval supported=\$$cacheid 9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9724printf "%s\n" "$supported" >&6; } 9725 if test "$supported" = "yes" ; then 9726 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9727 found="yes" 9728 fi 9729 fi 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745xorg_testset_save_CFLAGS="$CFLAGS" 9746 9747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9750printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9751if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9752then : 9753 printf %s "(cached) " >&6 9754else $as_nop 9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9756/* end confdefs.h. */ 9757int i; 9758_ACEOF 9759if ac_fn_c_try_compile "$LINENO" 9760then : 9761 xorg_cv_cc_flag_unknown_warning_option=yes 9762else $as_nop 9763 xorg_cv_cc_flag_unknown_warning_option=no 9764fi 9765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9766fi 9767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9768printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9770 CFLAGS="$xorg_testset_save_CFLAGS" 9771fi 9772 9773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9776 fi 9777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9779printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9780if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9781then : 9782 printf %s "(cached) " >&6 9783else $as_nop 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785/* end confdefs.h. */ 9786int i; 9787_ACEOF 9788if ac_fn_c_try_compile "$LINENO" 9789then : 9790 xorg_cv_cc_flag_unused_command_line_argument=yes 9791else $as_nop 9792 xorg_cv_cc_flag_unused_command_line_argument=no 9793fi 9794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9795fi 9796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9799 CFLAGS="$xorg_testset_save_CFLAGS" 9800fi 9801 9802found="no" 9803 9804 if test $found = "no" ; then 9805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9807 fi 9808 9809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9811 fi 9812 9813 CFLAGS="$CFLAGS -Wreturn-type" 9814 9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9816printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9817 cacheid=xorg_cv_cc_flag__Wreturn_type 9818 if eval test \${$cacheid+y} 9819then : 9820 printf %s "(cached) " >&6 9821else $as_nop 9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823/* end confdefs.h. */ 9824int i; 9825int 9826main (void) 9827{ 9828 9829 ; 9830 return 0; 9831} 9832_ACEOF 9833if ac_fn_c_try_link "$LINENO" 9834then : 9835 eval $cacheid=yes 9836else $as_nop 9837 eval $cacheid=no 9838fi 9839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9840 conftest$ac_exeext conftest.$ac_ext 9841fi 9842 9843 9844 CFLAGS="$xorg_testset_save_CFLAGS" 9845 9846 eval supported=\$$cacheid 9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9848printf "%s\n" "$supported" >&6; } 9849 if test "$supported" = "yes" ; then 9850 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9851 found="yes" 9852 fi 9853 fi 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869xorg_testset_save_CFLAGS="$CFLAGS" 9870 9871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9874printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9875if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9876then : 9877 printf %s "(cached) " >&6 9878else $as_nop 9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9880/* end confdefs.h. */ 9881int i; 9882_ACEOF 9883if ac_fn_c_try_compile "$LINENO" 9884then : 9885 xorg_cv_cc_flag_unknown_warning_option=yes 9886else $as_nop 9887 xorg_cv_cc_flag_unknown_warning_option=no 9888fi 9889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9890fi 9891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9892printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9894 CFLAGS="$xorg_testset_save_CFLAGS" 9895fi 9896 9897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 fi 9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9903printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9904if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9905then : 9906 printf %s "(cached) " >&6 9907else $as_nop 9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909/* end confdefs.h. */ 9910int i; 9911_ACEOF 9912if ac_fn_c_try_compile "$LINENO" 9913then : 9914 xorg_cv_cc_flag_unused_command_line_argument=yes 9915else $as_nop 9916 xorg_cv_cc_flag_unused_command_line_argument=no 9917fi 9918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9919fi 9920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9921printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9923 CFLAGS="$xorg_testset_save_CFLAGS" 9924fi 9925 9926found="no" 9927 9928 if test $found = "no" ; then 9929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9931 fi 9932 9933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9935 fi 9936 9937 CFLAGS="$CFLAGS -Wtrigraphs" 9938 9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9940printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9941 cacheid=xorg_cv_cc_flag__Wtrigraphs 9942 if eval test \${$cacheid+y} 9943then : 9944 printf %s "(cached) " >&6 9945else $as_nop 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947/* end confdefs.h. */ 9948int i; 9949int 9950main (void) 9951{ 9952 9953 ; 9954 return 0; 9955} 9956_ACEOF 9957if ac_fn_c_try_link "$LINENO" 9958then : 9959 eval $cacheid=yes 9960else $as_nop 9961 eval $cacheid=no 9962fi 9963rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9964 conftest$ac_exeext conftest.$ac_ext 9965fi 9966 9967 9968 CFLAGS="$xorg_testset_save_CFLAGS" 9969 9970 eval supported=\$$cacheid 9971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9972printf "%s\n" "$supported" >&6; } 9973 if test "$supported" = "yes" ; then 9974 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9975 found="yes" 9976 fi 9977 fi 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993xorg_testset_save_CFLAGS="$CFLAGS" 9994 9995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9998printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9999if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10000then : 10001 printf %s "(cached) " >&6 10002else $as_nop 10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10004/* end confdefs.h. */ 10005int i; 10006_ACEOF 10007if ac_fn_c_try_compile "$LINENO" 10008then : 10009 xorg_cv_cc_flag_unknown_warning_option=yes 10010else $as_nop 10011 xorg_cv_cc_flag_unknown_warning_option=no 10012fi 10013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10014fi 10015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10016printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10018 CFLAGS="$xorg_testset_save_CFLAGS" 10019fi 10020 10021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10024 fi 10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10027printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10028if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10029then : 10030 printf %s "(cached) " >&6 10031else $as_nop 10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10033/* end confdefs.h. */ 10034int i; 10035_ACEOF 10036if ac_fn_c_try_compile "$LINENO" 10037then : 10038 xorg_cv_cc_flag_unused_command_line_argument=yes 10039else $as_nop 10040 xorg_cv_cc_flag_unused_command_line_argument=no 10041fi 10042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10043fi 10044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10045printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10047 CFLAGS="$xorg_testset_save_CFLAGS" 10048fi 10049 10050found="no" 10051 10052 if test $found = "no" ; then 10053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10055 fi 10056 10057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10059 fi 10060 10061 CFLAGS="$CFLAGS -Warray-bounds" 10062 10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10064printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10065 cacheid=xorg_cv_cc_flag__Warray_bounds 10066 if eval test \${$cacheid+y} 10067then : 10068 printf %s "(cached) " >&6 10069else $as_nop 10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10071/* end confdefs.h. */ 10072int i; 10073int 10074main (void) 10075{ 10076 10077 ; 10078 return 0; 10079} 10080_ACEOF 10081if ac_fn_c_try_link "$LINENO" 10082then : 10083 eval $cacheid=yes 10084else $as_nop 10085 eval $cacheid=no 10086fi 10087rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10088 conftest$ac_exeext conftest.$ac_ext 10089fi 10090 10091 10092 CFLAGS="$xorg_testset_save_CFLAGS" 10093 10094 eval supported=\$$cacheid 10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10096printf "%s\n" "$supported" >&6; } 10097 if test "$supported" = "yes" ; then 10098 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10099 found="yes" 10100 fi 10101 fi 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117xorg_testset_save_CFLAGS="$CFLAGS" 10118 10119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10122printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10123if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10124then : 10125 printf %s "(cached) " >&6 10126else $as_nop 10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10128/* end confdefs.h. */ 10129int i; 10130_ACEOF 10131if ac_fn_c_try_compile "$LINENO" 10132then : 10133 xorg_cv_cc_flag_unknown_warning_option=yes 10134else $as_nop 10135 xorg_cv_cc_flag_unknown_warning_option=no 10136fi 10137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10138fi 10139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10142 CFLAGS="$xorg_testset_save_CFLAGS" 10143fi 10144 10145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10148 fi 10149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10152if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10153then : 10154 printf %s "(cached) " >&6 10155else $as_nop 10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10157/* end confdefs.h. */ 10158int i; 10159_ACEOF 10160if ac_fn_c_try_compile "$LINENO" 10161then : 10162 xorg_cv_cc_flag_unused_command_line_argument=yes 10163else $as_nop 10164 xorg_cv_cc_flag_unused_command_line_argument=no 10165fi 10166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10167fi 10168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10169printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10171 CFLAGS="$xorg_testset_save_CFLAGS" 10172fi 10173 10174found="no" 10175 10176 if test $found = "no" ; then 10177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10179 fi 10180 10181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10183 fi 10184 10185 CFLAGS="$CFLAGS -Wwrite-strings" 10186 10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10188printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10189 cacheid=xorg_cv_cc_flag__Wwrite_strings 10190 if eval test \${$cacheid+y} 10191then : 10192 printf %s "(cached) " >&6 10193else $as_nop 10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10195/* end confdefs.h. */ 10196int i; 10197int 10198main (void) 10199{ 10200 10201 ; 10202 return 0; 10203} 10204_ACEOF 10205if ac_fn_c_try_link "$LINENO" 10206then : 10207 eval $cacheid=yes 10208else $as_nop 10209 eval $cacheid=no 10210fi 10211rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10212 conftest$ac_exeext conftest.$ac_ext 10213fi 10214 10215 10216 CFLAGS="$xorg_testset_save_CFLAGS" 10217 10218 eval supported=\$$cacheid 10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10220printf "%s\n" "$supported" >&6; } 10221 if test "$supported" = "yes" ; then 10222 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10223 found="yes" 10224 fi 10225 fi 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241xorg_testset_save_CFLAGS="$CFLAGS" 10242 10243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10247if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10248then : 10249 printf %s "(cached) " >&6 10250else $as_nop 10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10252/* end confdefs.h. */ 10253int i; 10254_ACEOF 10255if ac_fn_c_try_compile "$LINENO" 10256then : 10257 xorg_cv_cc_flag_unknown_warning_option=yes 10258else $as_nop 10259 xorg_cv_cc_flag_unknown_warning_option=no 10260fi 10261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10262fi 10263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10266 CFLAGS="$xorg_testset_save_CFLAGS" 10267fi 10268 10269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10272 fi 10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10276if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10277then : 10278 printf %s "(cached) " >&6 10279else $as_nop 10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281/* end confdefs.h. */ 10282int i; 10283_ACEOF 10284if ac_fn_c_try_compile "$LINENO" 10285then : 10286 xorg_cv_cc_flag_unused_command_line_argument=yes 10287else $as_nop 10288 xorg_cv_cc_flag_unused_command_line_argument=no 10289fi 10290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10291fi 10292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10295 CFLAGS="$xorg_testset_save_CFLAGS" 10296fi 10297 10298found="no" 10299 10300 if test $found = "no" ; then 10301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10303 fi 10304 10305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10307 fi 10308 10309 CFLAGS="$CFLAGS -Waddress" 10310 10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10312printf %s "checking if $CC supports -Waddress... " >&6; } 10313 cacheid=xorg_cv_cc_flag__Waddress 10314 if eval test \${$cacheid+y} 10315then : 10316 printf %s "(cached) " >&6 10317else $as_nop 10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10319/* end confdefs.h. */ 10320int i; 10321int 10322main (void) 10323{ 10324 10325 ; 10326 return 0; 10327} 10328_ACEOF 10329if ac_fn_c_try_link "$LINENO" 10330then : 10331 eval $cacheid=yes 10332else $as_nop 10333 eval $cacheid=no 10334fi 10335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10336 conftest$ac_exeext conftest.$ac_ext 10337fi 10338 10339 10340 CFLAGS="$xorg_testset_save_CFLAGS" 10341 10342 eval supported=\$$cacheid 10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10344printf "%s\n" "$supported" >&6; } 10345 if test "$supported" = "yes" ; then 10346 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10347 found="yes" 10348 fi 10349 fi 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365xorg_testset_save_CFLAGS="$CFLAGS" 10366 10367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10371if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10372then : 10373 printf %s "(cached) " >&6 10374else $as_nop 10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10376/* end confdefs.h. */ 10377int i; 10378_ACEOF 10379if ac_fn_c_try_compile "$LINENO" 10380then : 10381 xorg_cv_cc_flag_unknown_warning_option=yes 10382else $as_nop 10383 xorg_cv_cc_flag_unknown_warning_option=no 10384fi 10385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10386fi 10387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10390 CFLAGS="$xorg_testset_save_CFLAGS" 10391fi 10392 10393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10396 fi 10397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10400if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10401then : 10402 printf %s "(cached) " >&6 10403else $as_nop 10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10405/* end confdefs.h. */ 10406int i; 10407_ACEOF 10408if ac_fn_c_try_compile "$LINENO" 10409then : 10410 xorg_cv_cc_flag_unused_command_line_argument=yes 10411else $as_nop 10412 xorg_cv_cc_flag_unused_command_line_argument=no 10413fi 10414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10415fi 10416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10419 CFLAGS="$xorg_testset_save_CFLAGS" 10420fi 10421 10422found="no" 10423 10424 if test $found = "no" ; then 10425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10427 fi 10428 10429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10431 fi 10432 10433 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10434 10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10436printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10437 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10438 if eval test \${$cacheid+y} 10439then : 10440 printf %s "(cached) " >&6 10441else $as_nop 10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443/* end confdefs.h. */ 10444int i; 10445int 10446main (void) 10447{ 10448 10449 ; 10450 return 0; 10451} 10452_ACEOF 10453if ac_fn_c_try_link "$LINENO" 10454then : 10455 eval $cacheid=yes 10456else $as_nop 10457 eval $cacheid=no 10458fi 10459rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10460 conftest$ac_exeext conftest.$ac_ext 10461fi 10462 10463 10464 CFLAGS="$xorg_testset_save_CFLAGS" 10465 10466 eval supported=\$$cacheid 10467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10468printf "%s\n" "$supported" >&6; } 10469 if test "$supported" = "yes" ; then 10470 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10471 found="yes" 10472 fi 10473 fi 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489xorg_testset_save_CFLAGS="$CFLAGS" 10490 10491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10495if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10496then : 10497 printf %s "(cached) " >&6 10498else $as_nop 10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10500/* end confdefs.h. */ 10501int i; 10502_ACEOF 10503if ac_fn_c_try_compile "$LINENO" 10504then : 10505 xorg_cv_cc_flag_unknown_warning_option=yes 10506else $as_nop 10507 xorg_cv_cc_flag_unknown_warning_option=no 10508fi 10509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10510fi 10511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10514 CFLAGS="$xorg_testset_save_CFLAGS" 10515fi 10516 10517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10520 fi 10521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10524if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10525then : 10526 printf %s "(cached) " >&6 10527else $as_nop 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530int i; 10531_ACEOF 10532if ac_fn_c_try_compile "$LINENO" 10533then : 10534 xorg_cv_cc_flag_unused_command_line_argument=yes 10535else $as_nop 10536 xorg_cv_cc_flag_unused_command_line_argument=no 10537fi 10538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10539fi 10540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10543 CFLAGS="$xorg_testset_save_CFLAGS" 10544fi 10545 10546found="no" 10547 10548 if test $found = "no" ; then 10549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10551 fi 10552 10553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10555 fi 10556 10557 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10558 10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10560printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10561 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10562 if eval test \${$cacheid+y} 10563then : 10564 printf %s "(cached) " >&6 10565else $as_nop 10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10567/* end confdefs.h. */ 10568int i; 10569int 10570main (void) 10571{ 10572 10573 ; 10574 return 0; 10575} 10576_ACEOF 10577if ac_fn_c_try_link "$LINENO" 10578then : 10579 eval $cacheid=yes 10580else $as_nop 10581 eval $cacheid=no 10582fi 10583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10584 conftest$ac_exeext conftest.$ac_ext 10585fi 10586 10587 10588 CFLAGS="$xorg_testset_save_CFLAGS" 10589 10590 eval supported=\$$cacheid 10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10592printf "%s\n" "$supported" >&6; } 10593 if test "$supported" = "yes" ; then 10594 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10595 found="yes" 10596 fi 10597 fi 10598 10599 10600fi 10601 10602 10603 10604 10605 10606 10607 10608 CWARNFLAGS="$BASE_CFLAGS" 10609 if test "x$GCC" = xyes ; then 10610 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10611 fi 10612 10613 10614 10615 10616 10617 10618 10619 10620# Check whether --enable-strict-compilation was given. 10621if test ${enable_strict_compilation+y} 10622then : 10623 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10624else $as_nop 10625 STRICT_COMPILE=no 10626fi 10627 10628 10629 10630 10631 10632 10633STRICT_CFLAGS="" 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647xorg_testset_save_CFLAGS="$CFLAGS" 10648 10649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10652printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10653if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10654then : 10655 printf %s "(cached) " >&6 10656else $as_nop 10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10658/* end confdefs.h. */ 10659int i; 10660_ACEOF 10661if ac_fn_c_try_compile "$LINENO" 10662then : 10663 xorg_cv_cc_flag_unknown_warning_option=yes 10664else $as_nop 10665 xorg_cv_cc_flag_unknown_warning_option=no 10666fi 10667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10668fi 10669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10670printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10672 CFLAGS="$xorg_testset_save_CFLAGS" 10673fi 10674 10675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10678 fi 10679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10681printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10682if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10683then : 10684 printf %s "(cached) " >&6 10685else $as_nop 10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10687/* end confdefs.h. */ 10688int i; 10689_ACEOF 10690if ac_fn_c_try_compile "$LINENO" 10691then : 10692 xorg_cv_cc_flag_unused_command_line_argument=yes 10693else $as_nop 10694 xorg_cv_cc_flag_unused_command_line_argument=no 10695fi 10696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10697fi 10698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10701 CFLAGS="$xorg_testset_save_CFLAGS" 10702fi 10703 10704found="no" 10705 10706 if test $found = "no" ; then 10707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10709 fi 10710 10711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10713 fi 10714 10715 CFLAGS="$CFLAGS -pedantic" 10716 10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10718printf %s "checking if $CC supports -pedantic... " >&6; } 10719 cacheid=xorg_cv_cc_flag__pedantic 10720 if eval test \${$cacheid+y} 10721then : 10722 printf %s "(cached) " >&6 10723else $as_nop 10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10725/* end confdefs.h. */ 10726int i; 10727int 10728main (void) 10729{ 10730 10731 ; 10732 return 0; 10733} 10734_ACEOF 10735if ac_fn_c_try_link "$LINENO" 10736then : 10737 eval $cacheid=yes 10738else $as_nop 10739 eval $cacheid=no 10740fi 10741rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10742 conftest$ac_exeext conftest.$ac_ext 10743fi 10744 10745 10746 CFLAGS="$xorg_testset_save_CFLAGS" 10747 10748 eval supported=\$$cacheid 10749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10750printf "%s\n" "$supported" >&6; } 10751 if test "$supported" = "yes" ; then 10752 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10753 found="yes" 10754 fi 10755 fi 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771xorg_testset_save_CFLAGS="$CFLAGS" 10772 10773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10777if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10778then : 10779 printf %s "(cached) " >&6 10780else $as_nop 10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10782/* end confdefs.h. */ 10783int i; 10784_ACEOF 10785if ac_fn_c_try_compile "$LINENO" 10786then : 10787 xorg_cv_cc_flag_unknown_warning_option=yes 10788else $as_nop 10789 xorg_cv_cc_flag_unknown_warning_option=no 10790fi 10791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10792fi 10793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10794printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10796 CFLAGS="$xorg_testset_save_CFLAGS" 10797fi 10798 10799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10802 fi 10803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10805printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10806if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10807then : 10808 printf %s "(cached) " >&6 10809else $as_nop 10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10811/* end confdefs.h. */ 10812int i; 10813_ACEOF 10814if ac_fn_c_try_compile "$LINENO" 10815then : 10816 xorg_cv_cc_flag_unused_command_line_argument=yes 10817else $as_nop 10818 xorg_cv_cc_flag_unused_command_line_argument=no 10819fi 10820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10821fi 10822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10825 CFLAGS="$xorg_testset_save_CFLAGS" 10826fi 10827 10828found="no" 10829 10830 if test $found = "no" ; then 10831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10833 fi 10834 10835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10837 fi 10838 10839 CFLAGS="$CFLAGS -Werror" 10840 10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10842printf %s "checking if $CC supports -Werror... " >&6; } 10843 cacheid=xorg_cv_cc_flag__Werror 10844 if eval test \${$cacheid+y} 10845then : 10846 printf %s "(cached) " >&6 10847else $as_nop 10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10849/* end confdefs.h. */ 10850int i; 10851int 10852main (void) 10853{ 10854 10855 ; 10856 return 0; 10857} 10858_ACEOF 10859if ac_fn_c_try_link "$LINENO" 10860then : 10861 eval $cacheid=yes 10862else $as_nop 10863 eval $cacheid=no 10864fi 10865rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10866 conftest$ac_exeext conftest.$ac_ext 10867fi 10868 10869 10870 CFLAGS="$xorg_testset_save_CFLAGS" 10871 10872 eval supported=\$$cacheid 10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10874printf "%s\n" "$supported" >&6; } 10875 if test "$supported" = "yes" ; then 10876 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10877 found="yes" 10878 fi 10879 fi 10880 10881 if test $found = "no" ; then 10882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10884 fi 10885 10886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10888 fi 10889 10890 CFLAGS="$CFLAGS -errwarn" 10891 10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10893printf %s "checking if $CC supports -errwarn... " >&6; } 10894 cacheid=xorg_cv_cc_flag__errwarn 10895 if eval test \${$cacheid+y} 10896then : 10897 printf %s "(cached) " >&6 10898else $as_nop 10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10900/* end confdefs.h. */ 10901int i; 10902int 10903main (void) 10904{ 10905 10906 ; 10907 return 0; 10908} 10909_ACEOF 10910if ac_fn_c_try_link "$LINENO" 10911then : 10912 eval $cacheid=yes 10913else $as_nop 10914 eval $cacheid=no 10915fi 10916rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10917 conftest$ac_exeext conftest.$ac_ext 10918fi 10919 10920 10921 CFLAGS="$xorg_testset_save_CFLAGS" 10922 10923 eval supported=\$$cacheid 10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10925printf "%s\n" "$supported" >&6; } 10926 if test "$supported" = "yes" ; then 10927 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10928 found="yes" 10929 fi 10930 fi 10931 10932 10933 10934# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10935# activate it with -Werror, so we add it here explicitly. 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949xorg_testset_save_CFLAGS="$CFLAGS" 10950 10951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10954printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10955if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10956then : 10957 printf %s "(cached) " >&6 10958else $as_nop 10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10960/* end confdefs.h. */ 10961int i; 10962_ACEOF 10963if ac_fn_c_try_compile "$LINENO" 10964then : 10965 xorg_cv_cc_flag_unknown_warning_option=yes 10966else $as_nop 10967 xorg_cv_cc_flag_unknown_warning_option=no 10968fi 10969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10970fi 10971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10972printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10974 CFLAGS="$xorg_testset_save_CFLAGS" 10975fi 10976 10977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10980 fi 10981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10983printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10984if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10985then : 10986 printf %s "(cached) " >&6 10987else $as_nop 10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10989/* end confdefs.h. */ 10990int i; 10991_ACEOF 10992if ac_fn_c_try_compile "$LINENO" 10993then : 10994 xorg_cv_cc_flag_unused_command_line_argument=yes 10995else $as_nop 10996 xorg_cv_cc_flag_unused_command_line_argument=no 10997fi 10998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10999fi 11000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11003 CFLAGS="$xorg_testset_save_CFLAGS" 11004fi 11005 11006found="no" 11007 11008 if test $found = "no" ; then 11009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11011 fi 11012 11013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11015 fi 11016 11017 CFLAGS="$CFLAGS -Werror=attributes" 11018 11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11020printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11021 cacheid=xorg_cv_cc_flag__Werror_attributes 11022 if eval test \${$cacheid+y} 11023then : 11024 printf %s "(cached) " >&6 11025else $as_nop 11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11027/* end confdefs.h. */ 11028int i; 11029int 11030main (void) 11031{ 11032 11033 ; 11034 return 0; 11035} 11036_ACEOF 11037if ac_fn_c_try_link "$LINENO" 11038then : 11039 eval $cacheid=yes 11040else $as_nop 11041 eval $cacheid=no 11042fi 11043rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11044 conftest$ac_exeext conftest.$ac_ext 11045fi 11046 11047 11048 CFLAGS="$xorg_testset_save_CFLAGS" 11049 11050 eval supported=\$$cacheid 11051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11052printf "%s\n" "$supported" >&6; } 11053 if test "$supported" = "yes" ; then 11054 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11055 found="yes" 11056 fi 11057 fi 11058 11059 11060 11061if test "x$STRICT_COMPILE" = "xyes"; then 11062 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11063 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11064fi 11065 11066 11067 11068 11069 11070 11071cat >>confdefs.h <<_ACEOF 11072#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11073_ACEOF 11074 11075 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11076 if test "x$PVM" = "x"; then 11077 PVM="0" 11078 fi 11079 11080printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11081 11082 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11083 if test "x$PVP" = "x"; then 11084 PVP="0" 11085 fi 11086 11087printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11088 11089 11090 11091CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11092mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11093|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11094touch \$(top_srcdir)/ChangeLog; \ 11095echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11096 11097 11098 11099 11100macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11101INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11102mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11103|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11104touch \$(top_srcdir)/INSTALL; \ 11105echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11106 11107 11108 11109 11110 11111 11112case $host_os in 11113 solaris*) 11114 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11115 # check for a man page file found in later versions that use 11116 # traditional section numbers instead 11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11118printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11119if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11120then : 11121 printf %s "(cached) " >&6 11122else $as_nop 11123 test "$cross_compiling" = yes && 11124 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11125if test -r "/usr/share/man/man7/attributes.7"; then 11126 ac_cv_file__usr_share_man_man7_attributes_7=yes 11127else 11128 ac_cv_file__usr_share_man_man7_attributes_7=no 11129fi 11130fi 11131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11132printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11133if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11134then : 11135 SYSV_MAN_SECTIONS=false 11136else $as_nop 11137 SYSV_MAN_SECTIONS=true 11138fi 11139 11140 ;; 11141 *) SYSV_MAN_SECTIONS=false ;; 11142esac 11143 11144if test x$APP_MAN_SUFFIX = x ; then 11145 APP_MAN_SUFFIX=1 11146fi 11147if test x$APP_MAN_DIR = x ; then 11148 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11149fi 11150 11151if test x$LIB_MAN_SUFFIX = x ; then 11152 LIB_MAN_SUFFIX=3 11153fi 11154if test x$LIB_MAN_DIR = x ; then 11155 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11156fi 11157 11158if test x$FILE_MAN_SUFFIX = x ; then 11159 case $SYSV_MAN_SECTIONS in 11160 true) FILE_MAN_SUFFIX=4 ;; 11161 *) FILE_MAN_SUFFIX=5 ;; 11162 esac 11163fi 11164if test x$FILE_MAN_DIR = x ; then 11165 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11166fi 11167 11168if test x$MISC_MAN_SUFFIX = x ; then 11169 case $SYSV_MAN_SECTIONS in 11170 true) MISC_MAN_SUFFIX=5 ;; 11171 *) MISC_MAN_SUFFIX=7 ;; 11172 esac 11173fi 11174if test x$MISC_MAN_DIR = x ; then 11175 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11176fi 11177 11178if test x$DRIVER_MAN_SUFFIX = x ; then 11179 case $SYSV_MAN_SECTIONS in 11180 true) DRIVER_MAN_SUFFIX=7 ;; 11181 *) DRIVER_MAN_SUFFIX=4 ;; 11182 esac 11183fi 11184if test x$DRIVER_MAN_DIR = x ; then 11185 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11186fi 11187 11188if test x$ADMIN_MAN_SUFFIX = x ; then 11189 case $SYSV_MAN_SECTIONS in 11190 true) ADMIN_MAN_SUFFIX=1m ;; 11191 *) ADMIN_MAN_SUFFIX=8 ;; 11192 esac 11193fi 11194if test x$ADMIN_MAN_DIR = x ; then 11195 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11196fi 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212XORG_MAN_PAGE="X Version 11" 11213 11214MAN_SUBSTS="\ 11215 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11216 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11217 -e 's|__xservername__|Xorg|g' \ 11218 -e 's|__xconfigfile__|xorg.conf|g' \ 11219 -e 's|__projectroot__|\$(prefix)|g' \ 11220 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11221 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11222 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11223 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11224 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11225 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11226 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11227 11228 11229 11230# Check whether --enable-silent-rules was given. 11231if test ${enable_silent_rules+y} 11232then : 11233 enableval=$enable_silent_rules; 11234fi 11235 11236case $enable_silent_rules in # ((( 11237 yes) AM_DEFAULT_VERBOSITY=0;; 11238 no) AM_DEFAULT_VERBOSITY=1;; 11239 *) AM_DEFAULT_VERBOSITY=0;; 11240esac 11241am_make=${MAKE-make} 11242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11243printf %s "checking whether $am_make supports nested variables... " >&6; } 11244if test ${am_cv_make_support_nested_variables+y} 11245then : 11246 printf %s "(cached) " >&6 11247else $as_nop 11248 if printf "%s\n" 'TRUE=$(BAR$(V)) 11249BAR0=false 11250BAR1=true 11251V=1 11252am__doit: 11253 @$(TRUE) 11254.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11255 am_cv_make_support_nested_variables=yes 11256else 11257 am_cv_make_support_nested_variables=no 11258fi 11259fi 11260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11261printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11262if test $am_cv_make_support_nested_variables = yes; then 11263 AM_V='$(V)' 11264 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11265else 11266 AM_V=$AM_DEFAULT_VERBOSITY 11267 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11268fi 11269AM_BACKSLASH='\' 11270 11271 11272 11273# Checks for pkg-config packages 11274 11275pkg_failed=no 11276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMH" >&5 11277printf %s "checking for XMH... " >&6; } 11278 11279if test -n "$XMH_CFLAGS"; then 11280 pkg_cv_XMH_CFLAGS="$XMH_CFLAGS" 11281 elif test -n "$PKG_CONFIG"; then 11282 if test -n "$PKG_CONFIG" && \ 11283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xbitmaps >= 1.1.0\""; } >&5 11284 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xbitmaps >= 1.1.0") 2>&5 11285 ac_status=$? 11286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11287 test $ac_status = 0; }; then 11288 pkg_cv_XMH_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>/dev/null` 11289 test "x$?" != "x0" && pkg_failed=yes 11290else 11291 pkg_failed=yes 11292fi 11293 else 11294 pkg_failed=untried 11295fi 11296if test -n "$XMH_LIBS"; then 11297 pkg_cv_XMH_LIBS="$XMH_LIBS" 11298 elif test -n "$PKG_CONFIG"; then 11299 if test -n "$PKG_CONFIG" && \ 11300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xbitmaps >= 1.1.0\""; } >&5 11301 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xbitmaps >= 1.1.0") 2>&5 11302 ac_status=$? 11303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11304 test $ac_status = 0; }; then 11305 pkg_cv_XMH_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>/dev/null` 11306 test "x$?" != "x0" && pkg_failed=yes 11307else 11308 pkg_failed=yes 11309fi 11310 else 11311 pkg_failed=untried 11312fi 11313 11314 11315 11316if test $pkg_failed = yes; then 11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11318printf "%s\n" "no" >&6; } 11319 11320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11321 _pkg_short_errors_supported=yes 11322else 11323 _pkg_short_errors_supported=no 11324fi 11325 if test $_pkg_short_errors_supported = yes; then 11326 XMH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>&1` 11327 else 11328 XMH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>&1` 11329 fi 11330 # Put the nasty error message in config.log where it belongs 11331 echo "$XMH_PKG_ERRORS" >&5 11332 11333 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xbitmaps >= 1.1.0) were not met: 11334 11335$XMH_PKG_ERRORS 11336 11337Consider adjusting the PKG_CONFIG_PATH environment variable if you 11338installed software in a non-standard prefix. 11339 11340Alternatively, you may set the environment variables XMH_CFLAGS 11341and XMH_LIBS to avoid the need to call pkg-config. 11342See the pkg-config man page for more details." "$LINENO" 5 11343elif test $pkg_failed = untried; then 11344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11345printf "%s\n" "no" >&6; } 11346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11347printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11348as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11349is in your PATH or set the PKG_CONFIG environment variable to the full 11350path to pkg-config. 11351 11352Alternatively, you may set the environment variables XMH_CFLAGS 11353and XMH_LIBS to avoid the need to call pkg-config. 11354See the pkg-config man page for more details. 11355 11356To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11357See \`config.log' for more details" "$LINENO" 5; } 11358else 11359 XMH_CFLAGS=$pkg_cv_XMH_CFLAGS 11360 XMH_LIBS=$pkg_cv_XMH_LIBS 11361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11362printf "%s\n" "yes" >&6; } 11363 11364fi 11365 11366 11367pkg_failed=no 11368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11369printf %s "checking for APPDEFS... " >&6; } 11370 11371if test -n "$APPDEFS_CFLAGS"; then 11372 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11373 elif test -n "$PKG_CONFIG"; then 11374 if test -n "$PKG_CONFIG" && \ 11375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11376 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11377 ac_status=$? 11378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11379 test $ac_status = 0; }; then 11380 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11381 test "x$?" != "x0" && pkg_failed=yes 11382else 11383 pkg_failed=yes 11384fi 11385 else 11386 pkg_failed=untried 11387fi 11388if test -n "$APPDEFS_LIBS"; then 11389 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11390 elif test -n "$PKG_CONFIG"; then 11391 if test -n "$PKG_CONFIG" && \ 11392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11393 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11394 ac_status=$? 11395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11396 test $ac_status = 0; }; then 11397 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11398 test "x$?" != "x0" && pkg_failed=yes 11399else 11400 pkg_failed=yes 11401fi 11402 else 11403 pkg_failed=untried 11404fi 11405 11406 11407 11408if test $pkg_failed = yes; then 11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11410printf "%s\n" "no" >&6; } 11411 11412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11413 _pkg_short_errors_supported=yes 11414else 11415 _pkg_short_errors_supported=no 11416fi 11417 if test $_pkg_short_errors_supported = yes; then 11418 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11419 else 11420 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11421 fi 11422 # Put the nasty error message in config.log where it belongs 11423 echo "$APPDEFS_PKG_ERRORS" >&5 11424 11425 as_fn_error $? "Package requirements (xt) were not met: 11426 11427$APPDEFS_PKG_ERRORS 11428 11429Consider adjusting the PKG_CONFIG_PATH environment variable if you 11430installed software in a non-standard prefix. 11431 11432Alternatively, you may set the environment variables APPDEFS_CFLAGS 11433and APPDEFS_LIBS to avoid the need to call pkg-config. 11434See the pkg-config man page for more details." "$LINENO" 5 11435elif test $pkg_failed = untried; then 11436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11437printf "%s\n" "no" >&6; } 11438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11439printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11440as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11441is in your PATH or set the PKG_CONFIG environment variable to the full 11442path to pkg-config. 11443 11444Alternatively, you may set the environment variables APPDEFS_CFLAGS 11445and APPDEFS_LIBS to avoid the need to call pkg-config. 11446See the pkg-config man page for more details. 11447 11448To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11449See \`config.log' for more details" "$LINENO" 5; } 11450else 11451 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11452 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11454printf "%s\n" "yes" >&6; } 11455 11456fi 11457xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11458 11459# Check whether --with-appdefaultdir was given. 11460if test ${with_appdefaultdir+y} 11461then : 11462 withval=$with_appdefaultdir; appdefaultdir="$withval" 11463else $as_nop 11464 appdefaultdir="${xt_appdefaultdir}" 11465fi 11466 11467 11468 11469# Checks for library functions. 11470 11471 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 11472" 11473if test "x$ac_cv_type_pid_t" = xyes 11474then : 11475 11476else $as_nop 11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11478/* end confdefs.h. */ 11479 11480 #if defined _WIN64 && !defined __CYGWIN__ 11481 LLP64 11482 #endif 11483 11484int 11485main (void) 11486{ 11487 11488 ; 11489 return 0; 11490} 11491 11492_ACEOF 11493if ac_fn_c_try_compile "$LINENO" 11494then : 11495 ac_pid_type='int' 11496else $as_nop 11497 ac_pid_type='__int64' 11498fi 11499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11500 11501printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 11502 11503 11504fi 11505 11506 11507 11508ac_func= 11509for ac_item in $ac_func_c_list 11510do 11511 if test $ac_func; then 11512 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 11513 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 11514 echo "#define $ac_item 1" >> confdefs.h 11515 fi 11516 ac_func= 11517 else 11518 ac_func=$ac_item 11519 fi 11520done 11521 11522 11523 11524if test "x$ac_cv_func_fork" = xyes; then 11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 11526printf %s "checking for working fork... " >&6; } 11527if test ${ac_cv_func_fork_works+y} 11528then : 11529 printf %s "(cached) " >&6 11530else $as_nop 11531 if test "$cross_compiling" = yes 11532then : 11533 ac_cv_func_fork_works=cross 11534else $as_nop 11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11536/* end confdefs.h. */ 11537$ac_includes_default 11538int 11539main (void) 11540{ 11541 11542 /* By Ruediger Kuhlmann. */ 11543 return fork () < 0; 11544 11545 ; 11546 return 0; 11547} 11548_ACEOF 11549if ac_fn_c_try_run "$LINENO" 11550then : 11551 ac_cv_func_fork_works=yes 11552else $as_nop 11553 ac_cv_func_fork_works=no 11554fi 11555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11556 conftest.$ac_objext conftest.beam conftest.$ac_ext 11557fi 11558 11559fi 11560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 11561printf "%s\n" "$ac_cv_func_fork_works" >&6; } 11562 11563else 11564 ac_cv_func_fork_works=$ac_cv_func_fork 11565fi 11566if test "x$ac_cv_func_fork_works" = xcross; then 11567 case $host in 11568 *-*-amigaos* | *-*-msdosdjgpp*) 11569 # Override, as these systems have only a dummy fork() stub 11570 ac_cv_func_fork_works=no 11571 ;; 11572 *) 11573 ac_cv_func_fork_works=yes 11574 ;; 11575 esac 11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 11577printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 11578fi 11579ac_cv_func_vfork_works=$ac_cv_func_vfork 11580if test "x$ac_cv_func_vfork" = xyes; then 11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 11582printf %s "checking for working vfork... " >&6; } 11583if test ${ac_cv_func_vfork_works+y} 11584then : 11585 printf %s "(cached) " >&6 11586else $as_nop 11587 if test "$cross_compiling" = yes 11588then : 11589 ac_cv_func_vfork_works=cross 11590else $as_nop 11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11592/* end confdefs.h. */ 11593/* Thanks to Paul Eggert for this test. */ 11594$ac_includes_default 11595#include <signal.h> 11596#include <sys/wait.h> 11597#ifdef HAVE_VFORK_H 11598# include <vfork.h> 11599#endif 11600 11601static void 11602do_nothing (int sig) 11603{ 11604 (void) sig; 11605} 11606 11607/* On some sparc systems, changes by the child to local and incoming 11608 argument registers are propagated back to the parent. The compiler 11609 is told about this with #include <vfork.h>, but some compilers 11610 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 11611 static variable whose address is put into a register that is 11612 clobbered by the vfork. */ 11613static void 11614sparc_address_test (int arg) 11615{ 11616 static pid_t child; 11617 if (!child) { 11618 child = vfork (); 11619 if (child < 0) { 11620 perror ("vfork"); 11621 _exit(2); 11622 } 11623 if (!child) { 11624 arg = getpid(); 11625 write(-1, "", 0); 11626 _exit (arg); 11627 } 11628 } 11629} 11630 11631int 11632main (void) 11633{ 11634 pid_t parent = getpid (); 11635 pid_t child; 11636 11637 sparc_address_test (0); 11638 11639 /* On Solaris 2.4, changes by the child to the signal handler 11640 also munge signal handlers in the parent. To detect this, 11641 start by putting the parent's handler in a known state. */ 11642 signal (SIGTERM, SIG_DFL); 11643 11644 child = vfork (); 11645 11646 if (child == 0) { 11647 /* Here is another test for sparc vfork register problems. This 11648 test uses lots of local variables, at least as many local 11649 variables as main has allocated so far including compiler 11650 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 11651 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 11652 reuse the register of parent for one of the local variables, 11653 since it will think that parent can't possibly be used any more 11654 in this routine. Assigning to the local variable will thus 11655 munge parent in the parent process. */ 11656 pid_t 11657 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 11658 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 11659 /* Convince the compiler that p..p7 are live; otherwise, it might 11660 use the same hardware register for all 8 local variables. */ 11661 if (p != p1 || p != p2 || p != p3 || p != p4 11662 || p != p5 || p != p6 || p != p7) 11663 _exit(1); 11664 11665 /* Alter the child's signal handler. */ 11666 if (signal (SIGTERM, do_nothing) != SIG_DFL) 11667 _exit(1); 11668 11669 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 11670 from child file descriptors. If the child closes a descriptor 11671 before it execs or exits, this munges the parent's descriptor 11672 as well. Test for this by closing stdout in the child. */ 11673 _exit(close(fileno(stdout)) != 0); 11674 } else { 11675 int status; 11676 struct stat st; 11677 11678 while (wait(&status) != child) 11679 ; 11680 return ( 11681 /* Was there some problem with vforking? */ 11682 child < 0 11683 11684 /* Did the child munge the parent's signal handler? */ 11685 || signal (SIGTERM, SIG_DFL) != SIG_DFL 11686 11687 /* Did the child fail? (This shouldn't happen.) */ 11688 || status 11689 11690 /* Did the vfork/compiler bug occur? */ 11691 || parent != getpid() 11692 11693 /* Did the file descriptor bug occur? */ 11694 || fstat(fileno(stdout), &st) != 0 11695 ); 11696 } 11697} 11698_ACEOF 11699if ac_fn_c_try_run "$LINENO" 11700then : 11701 ac_cv_func_vfork_works=yes 11702else $as_nop 11703 ac_cv_func_vfork_works=no 11704fi 11705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11706 conftest.$ac_objext conftest.beam conftest.$ac_ext 11707fi 11708 11709fi 11710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 11711printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 11712 11713fi; 11714if test "x$ac_cv_func_fork_works" = xcross; then 11715 ac_cv_func_vfork_works=$ac_cv_func_vfork 11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 11717printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 11718fi 11719 11720if test "x$ac_cv_func_vfork_works" = xyes; then 11721 11722printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 11723 11724else 11725 11726printf "%s\n" "#define vfork fork" >>confdefs.h 11727 11728fi 11729if test "x$ac_cv_func_fork_works" = xyes; then 11730 11731printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 11732 11733fi 11734 11735 11736ac_config_files="$ac_config_files Makefile man/Makefile" 11737 11738cat >confcache <<\_ACEOF 11739# This file is a shell script that caches the results of configure 11740# tests run on this system so they can be shared between configure 11741# scripts and configure runs, see configure's option --config-cache. 11742# It is not useful on other systems. If it contains results you don't 11743# want to keep, you may remove or edit it. 11744# 11745# config.status only pays attention to the cache file if you give it 11746# the --recheck option to rerun configure. 11747# 11748# `ac_cv_env_foo' variables (set or unset) will be overridden when 11749# loading this file, other *unset* `ac_cv_foo' will be assigned the 11750# following values. 11751 11752_ACEOF 11753 11754# The following way of writing the cache mishandles newlines in values, 11755# but we know of no workaround that is simple, portable, and efficient. 11756# So, we kill variables containing newlines. 11757# Ultrix sh set writes to stderr and can't be redirected directly, 11758# and sets the high bit in the cache file unless we assign to the vars. 11759( 11760 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11761 eval ac_val=\$$ac_var 11762 case $ac_val in #( 11763 *${as_nl}*) 11764 case $ac_var in #( 11765 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11766printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11767 esac 11768 case $ac_var in #( 11769 _ | IFS | as_nl) ;; #( 11770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11771 *) { eval $ac_var=; unset $ac_var;} ;; 11772 esac ;; 11773 esac 11774 done 11775 11776 (set) 2>&1 | 11777 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11778 *${as_nl}ac_space=\ *) 11779 # `set' does not quote correctly, so add quotes: double-quote 11780 # substitution turns \\\\ into \\, and sed turns \\ into \. 11781 sed -n \ 11782 "s/'/'\\\\''/g; 11783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11784 ;; #( 11785 *) 11786 # `set' quotes correctly as required by POSIX, so do not add quotes. 11787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11788 ;; 11789 esac | 11790 sort 11791) | 11792 sed ' 11793 /^ac_cv_env_/b end 11794 t clear 11795 :clear 11796 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11797 t end 11798 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11799 :end' >>confcache 11800if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11801 if test -w "$cache_file"; then 11802 if test "x$cache_file" != "x/dev/null"; then 11803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11804printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11805 if test ! -f "$cache_file" || test -h "$cache_file"; then 11806 cat confcache >"$cache_file" 11807 else 11808 case $cache_file in #( 11809 */* | ?:*) 11810 mv -f confcache "$cache_file"$$ && 11811 mv -f "$cache_file"$$ "$cache_file" ;; #( 11812 *) 11813 mv -f confcache "$cache_file" ;; 11814 esac 11815 fi 11816 fi 11817 else 11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11819printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11820 fi 11821fi 11822rm -f confcache 11823 11824test "x$prefix" = xNONE && prefix=$ac_default_prefix 11825# Let make expand exec_prefix. 11826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11827 11828DEFS=-DHAVE_CONFIG_H 11829 11830ac_libobjs= 11831ac_ltlibobjs= 11832U= 11833for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11834 # 1. Remove the extension, and $U if already installed. 11835 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11836 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11837 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11838 # will be set to the directory where LIBOBJS objects are built. 11839 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11840 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11841done 11842LIBOBJS=$ac_libobjs 11843 11844LTLIBOBJS=$ac_ltlibobjs 11845 11846 11847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11848printf %s "checking that generated files are newer than configure... " >&6; } 11849 if test -n "$am_sleep_pid"; then 11850 # Hide warnings about reused PIDs. 11851 wait $am_sleep_pid 2>/dev/null 11852 fi 11853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11854printf "%s\n" "done" >&6; } 11855 if test -n "$EXEEXT"; then 11856 am__EXEEXT_TRUE= 11857 am__EXEEXT_FALSE='#' 11858else 11859 am__EXEEXT_TRUE='#' 11860 am__EXEEXT_FALSE= 11861fi 11862 11863if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11864 as_fn_error $? "conditional \"AMDEP\" was never defined. 11865Usually this means the macro was only invoked conditionally." "$LINENO" 5 11866fi 11867if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11868 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11869Usually this means the macro was only invoked conditionally." "$LINENO" 5 11870fi 11871 11872: "${CONFIG_STATUS=./config.status}" 11873ac_write_fail=0 11874ac_clean_files_save=$ac_clean_files 11875ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11877printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11878as_write_fail=0 11879cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11880#! $SHELL 11881# Generated by $as_me. 11882# Run this file to recreate the current configuration. 11883# Compiler output produced by configure, useful for debugging 11884# configure, is in config.log if it exists. 11885 11886debug=false 11887ac_cs_recheck=false 11888ac_cs_silent=false 11889 11890SHELL=\${CONFIG_SHELL-$SHELL} 11891export SHELL 11892_ASEOF 11893cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11894## -------------------- ## 11895## M4sh Initialization. ## 11896## -------------------- ## 11897 11898# Be more Bourne compatible 11899DUALCASE=1; export DUALCASE # for MKS sh 11900as_nop=: 11901if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11902then : 11903 emulate sh 11904 NULLCMD=: 11905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11906 # is contrary to our usage. Disable this feature. 11907 alias -g '${1+"$@"}'='"$@"' 11908 setopt NO_GLOB_SUBST 11909else $as_nop 11910 case `(set -o) 2>/dev/null` in #( 11911 *posix*) : 11912 set -o posix ;; #( 11913 *) : 11914 ;; 11915esac 11916fi 11917 11918 11919 11920# Reset variables that may have inherited troublesome values from 11921# the environment. 11922 11923# IFS needs to be set, to space, tab, and newline, in precisely that order. 11924# (If _AS_PATH_WALK were called with IFS unset, it would have the 11925# side effect of setting IFS to empty, thus disabling word splitting.) 11926# Quoting is to prevent editors from complaining about space-tab. 11927as_nl=' 11928' 11929export as_nl 11930IFS=" "" $as_nl" 11931 11932PS1='$ ' 11933PS2='> ' 11934PS4='+ ' 11935 11936# Ensure predictable behavior from utilities with locale-dependent output. 11937LC_ALL=C 11938export LC_ALL 11939LANGUAGE=C 11940export LANGUAGE 11941 11942# We cannot yet rely on "unset" to work, but we need these variables 11943# to be unset--not just set to an empty or harmless value--now, to 11944# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11945# also avoids known problems related to "unset" and subshell syntax 11946# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11947for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11948do eval test \${$as_var+y} \ 11949 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11950done 11951 11952# Ensure that fds 0, 1, and 2 are open. 11953if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11954if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11955if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11956 11957# The user is always right. 11958if ${PATH_SEPARATOR+false} :; then 11959 PATH_SEPARATOR=: 11960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11962 PATH_SEPARATOR=';' 11963 } 11964fi 11965 11966 11967# Find who we are. Look in the path if we contain no directory separator. 11968as_myself= 11969case $0 in #(( 11970 *[\\/]* ) as_myself=$0 ;; 11971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11972for as_dir in $PATH 11973do 11974 IFS=$as_save_IFS 11975 case $as_dir in #((( 11976 '') as_dir=./ ;; 11977 */) ;; 11978 *) as_dir=$as_dir/ ;; 11979 esac 11980 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11981 done 11982IFS=$as_save_IFS 11983 11984 ;; 11985esac 11986# We did not find ourselves, most probably we were run as `sh COMMAND' 11987# in which case we are not to be found in the path. 11988if test "x$as_myself" = x; then 11989 as_myself=$0 11990fi 11991if test ! -f "$as_myself"; then 11992 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11993 exit 1 11994fi 11995 11996 11997 11998# as_fn_error STATUS ERROR [LINENO LOG_FD] 11999# ---------------------------------------- 12000# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12001# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12002# script with STATUS, using 1 if that was 0. 12003as_fn_error () 12004{ 12005 as_status=$1; test $as_status -eq 0 && as_status=1 12006 if test "$4"; then 12007 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12009 fi 12010 printf "%s\n" "$as_me: error: $2" >&2 12011 as_fn_exit $as_status 12012} # as_fn_error 12013 12014 12015 12016# as_fn_set_status STATUS 12017# ----------------------- 12018# Set $? to STATUS, without forking. 12019as_fn_set_status () 12020{ 12021 return $1 12022} # as_fn_set_status 12023 12024# as_fn_exit STATUS 12025# ----------------- 12026# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12027as_fn_exit () 12028{ 12029 set +e 12030 as_fn_set_status $1 12031 exit $1 12032} # as_fn_exit 12033 12034# as_fn_unset VAR 12035# --------------- 12036# Portably unset VAR. 12037as_fn_unset () 12038{ 12039 { eval $1=; unset $1;} 12040} 12041as_unset=as_fn_unset 12042 12043# as_fn_append VAR VALUE 12044# ---------------------- 12045# Append the text in VALUE to the end of the definition contained in VAR. Take 12046# advantage of any shell optimizations that allow amortized linear growth over 12047# repeated appends, instead of the typical quadratic growth present in naive 12048# implementations. 12049if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12050then : 12051 eval 'as_fn_append () 12052 { 12053 eval $1+=\$2 12054 }' 12055else $as_nop 12056 as_fn_append () 12057 { 12058 eval $1=\$$1\$2 12059 } 12060fi # as_fn_append 12061 12062# as_fn_arith ARG... 12063# ------------------ 12064# Perform arithmetic evaluation on the ARGs, and store the result in the 12065# global $as_val. Take advantage of shells that can avoid forks. The arguments 12066# must be portable across $(()) and expr. 12067if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12068then : 12069 eval 'as_fn_arith () 12070 { 12071 as_val=$(( $* )) 12072 }' 12073else $as_nop 12074 as_fn_arith () 12075 { 12076 as_val=`expr "$@" || test $? -eq 1` 12077 } 12078fi # as_fn_arith 12079 12080 12081if expr a : '\(a\)' >/dev/null 2>&1 && 12082 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12083 as_expr=expr 12084else 12085 as_expr=false 12086fi 12087 12088if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12089 as_basename=basename 12090else 12091 as_basename=false 12092fi 12093 12094if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12095 as_dirname=dirname 12096else 12097 as_dirname=false 12098fi 12099 12100as_me=`$as_basename -- "$0" || 12101$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12102 X"$0" : 'X\(//\)$' \| \ 12103 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12104printf "%s\n" X/"$0" | 12105 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12106 s//\1/ 12107 q 12108 } 12109 /^X\/\(\/\/\)$/{ 12110 s//\1/ 12111 q 12112 } 12113 /^X\/\(\/\).*/{ 12114 s//\1/ 12115 q 12116 } 12117 s/.*/./; q'` 12118 12119# Avoid depending upon Character Ranges. 12120as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12121as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12122as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12123as_cr_digits='0123456789' 12124as_cr_alnum=$as_cr_Letters$as_cr_digits 12125 12126 12127# Determine whether it's possible to make 'echo' print without a newline. 12128# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12129# for compatibility with existing Makefiles. 12130ECHO_C= ECHO_N= ECHO_T= 12131case `echo -n x` in #((((( 12132-n*) 12133 case `echo 'xy\c'` in 12134 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12135 xy) ECHO_C='\c';; 12136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12137 ECHO_T=' ';; 12138 esac;; 12139*) 12140 ECHO_N='-n';; 12141esac 12142 12143# For backward compatibility with old third-party macros, we provide 12144# the shell variables $as_echo and $as_echo_n. New code should use 12145# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12146as_echo='printf %s\n' 12147as_echo_n='printf %s' 12148 12149rm -f conf$$ conf$$.exe conf$$.file 12150if test -d conf$$.dir; then 12151 rm -f conf$$.dir/conf$$.file 12152else 12153 rm -f conf$$.dir 12154 mkdir conf$$.dir 2>/dev/null 12155fi 12156if (echo >conf$$.file) 2>/dev/null; then 12157 if ln -s conf$$.file conf$$ 2>/dev/null; then 12158 as_ln_s='ln -s' 12159 # ... but there are two gotchas: 12160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12162 # In both cases, we have to default to `cp -pR'. 12163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12164 as_ln_s='cp -pR' 12165 elif ln conf$$.file conf$$ 2>/dev/null; then 12166 as_ln_s=ln 12167 else 12168 as_ln_s='cp -pR' 12169 fi 12170else 12171 as_ln_s='cp -pR' 12172fi 12173rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12174rmdir conf$$.dir 2>/dev/null 12175 12176 12177# as_fn_mkdir_p 12178# ------------- 12179# Create "$as_dir" as a directory, including parents if necessary. 12180as_fn_mkdir_p () 12181{ 12182 12183 case $as_dir in #( 12184 -*) as_dir=./$as_dir;; 12185 esac 12186 test -d "$as_dir" || eval $as_mkdir_p || { 12187 as_dirs= 12188 while :; do 12189 case $as_dir in #( 12190 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12191 *) as_qdir=$as_dir;; 12192 esac 12193 as_dirs="'$as_qdir' $as_dirs" 12194 as_dir=`$as_dirname -- "$as_dir" || 12195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12196 X"$as_dir" : 'X\(//\)[^/]' \| \ 12197 X"$as_dir" : 'X\(//\)$' \| \ 12198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12199printf "%s\n" X"$as_dir" | 12200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12201 s//\1/ 12202 q 12203 } 12204 /^X\(\/\/\)[^/].*/{ 12205 s//\1/ 12206 q 12207 } 12208 /^X\(\/\/\)$/{ 12209 s//\1/ 12210 q 12211 } 12212 /^X\(\/\).*/{ 12213 s//\1/ 12214 q 12215 } 12216 s/.*/./; q'` 12217 test -d "$as_dir" && break 12218 done 12219 test -z "$as_dirs" || eval "mkdir $as_dirs" 12220 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12221 12222 12223} # as_fn_mkdir_p 12224if mkdir -p . 2>/dev/null; then 12225 as_mkdir_p='mkdir -p "$as_dir"' 12226else 12227 test -d ./-p && rmdir ./-p 12228 as_mkdir_p=false 12229fi 12230 12231 12232# as_fn_executable_p FILE 12233# ----------------------- 12234# Test if FILE is an executable regular file. 12235as_fn_executable_p () 12236{ 12237 test -f "$1" && test -x "$1" 12238} # as_fn_executable_p 12239as_test_x='test -x' 12240as_executable_p=as_fn_executable_p 12241 12242# Sed expression to map a string onto a valid CPP name. 12243as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12244 12245# Sed expression to map a string onto a valid variable name. 12246as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12247 12248 12249exec 6>&1 12250## ----------------------------------- ## 12251## Main body of $CONFIG_STATUS script. ## 12252## ----------------------------------- ## 12253_ASEOF 12254test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12255 12256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12257# Save the log message, to keep $0 and so on meaningful, and to 12258# report actual input values of CONFIG_FILES etc. instead of their 12259# values after options handling. 12260ac_log=" 12261This file was extended by xmh $as_me 1.0.4, which was 12262generated by GNU Autoconf 2.71. Invocation command line was 12263 12264 CONFIG_FILES = $CONFIG_FILES 12265 CONFIG_HEADERS = $CONFIG_HEADERS 12266 CONFIG_LINKS = $CONFIG_LINKS 12267 CONFIG_COMMANDS = $CONFIG_COMMANDS 12268 $ $0 $@ 12269 12270on `(hostname || uname -n) 2>/dev/null | sed 1q` 12271" 12272 12273_ACEOF 12274 12275case $ac_config_files in *" 12276"*) set x $ac_config_files; shift; ac_config_files=$*;; 12277esac 12278 12279case $ac_config_headers in *" 12280"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12281esac 12282 12283 12284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12285# Files that config.status was made for. 12286config_files="$ac_config_files" 12287config_headers="$ac_config_headers" 12288config_commands="$ac_config_commands" 12289 12290_ACEOF 12291 12292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12293ac_cs_usage="\ 12294\`$as_me' instantiates files and other configuration actions 12295from templates according to the current configuration. Unless the files 12296and actions are specified as TAGs, all are instantiated by default. 12297 12298Usage: $0 [OPTION]... [TAG]... 12299 12300 -h, --help print this help, then exit 12301 -V, --version print version number and configuration settings, then exit 12302 --config print configuration, then exit 12303 -q, --quiet, --silent 12304 do not print progress messages 12305 -d, --debug don't remove temporary files 12306 --recheck update $as_me by reconfiguring in the same conditions 12307 --file=FILE[:TEMPLATE] 12308 instantiate the configuration file FILE 12309 --header=FILE[:TEMPLATE] 12310 instantiate the configuration header FILE 12311 12312Configuration files: 12313$config_files 12314 12315Configuration headers: 12316$config_headers 12317 12318Configuration commands: 12319$config_commands 12320 12321Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmh/-/issues>." 12322 12323_ACEOF 12324ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12325ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12327ac_cs_config='$ac_cs_config_escaped' 12328ac_cs_version="\\ 12329xmh config.status 1.0.4 12330configured by $0, generated by GNU Autoconf 2.71, 12331 with options \\"\$ac_cs_config\\" 12332 12333Copyright (C) 2021 Free Software Foundation, Inc. 12334This config.status script is free software; the Free Software Foundation 12335gives unlimited permission to copy, distribute and modify it." 12336 12337ac_pwd='$ac_pwd' 12338srcdir='$srcdir' 12339INSTALL='$INSTALL' 12340MKDIR_P='$MKDIR_P' 12341AWK='$AWK' 12342test -n "\$AWK" || AWK=awk 12343_ACEOF 12344 12345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12346# The default lists apply if the user does not specify any file. 12347ac_need_defaults=: 12348while test $# != 0 12349do 12350 case $1 in 12351 --*=?*) 12352 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12354 ac_shift=: 12355 ;; 12356 --*=) 12357 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12358 ac_optarg= 12359 ac_shift=: 12360 ;; 12361 *) 12362 ac_option=$1 12363 ac_optarg=$2 12364 ac_shift=shift 12365 ;; 12366 esac 12367 12368 case $ac_option in 12369 # Handling of the options. 12370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12371 ac_cs_recheck=: ;; 12372 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12373 printf "%s\n" "$ac_cs_version"; exit ;; 12374 --config | --confi | --conf | --con | --co | --c ) 12375 printf "%s\n" "$ac_cs_config"; exit ;; 12376 --debug | --debu | --deb | --de | --d | -d ) 12377 debug=: ;; 12378 --file | --fil | --fi | --f ) 12379 $ac_shift 12380 case $ac_optarg in 12381 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12382 '') as_fn_error $? "missing file argument" ;; 12383 esac 12384 as_fn_append CONFIG_FILES " '$ac_optarg'" 12385 ac_need_defaults=false;; 12386 --header | --heade | --head | --hea ) 12387 $ac_shift 12388 case $ac_optarg in 12389 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12390 esac 12391 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12392 ac_need_defaults=false;; 12393 --he | --h) 12394 # Conflict between --help and --header 12395 as_fn_error $? "ambiguous option: \`$1' 12396Try \`$0 --help' for more information.";; 12397 --help | --hel | -h ) 12398 printf "%s\n" "$ac_cs_usage"; exit ;; 12399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12400 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12401 ac_cs_silent=: ;; 12402 12403 # This is an error. 12404 -*) as_fn_error $? "unrecognized option: \`$1' 12405Try \`$0 --help' for more information." ;; 12406 12407 *) as_fn_append ac_config_targets " $1" 12408 ac_need_defaults=false ;; 12409 12410 esac 12411 shift 12412done 12413 12414ac_configure_extra_args= 12415 12416if $ac_cs_silent; then 12417 exec 6>/dev/null 12418 ac_configure_extra_args="$ac_configure_extra_args --silent" 12419fi 12420 12421_ACEOF 12422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12423if \$ac_cs_recheck; then 12424 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12425 shift 12426 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12427 CONFIG_SHELL='$SHELL' 12428 export CONFIG_SHELL 12429 exec "\$@" 12430fi 12431 12432_ACEOF 12433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12434exec 5>>config.log 12435{ 12436 echo 12437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12438## Running $as_me. ## 12439_ASBOX 12440 printf "%s\n" "$ac_log" 12441} >&5 12442 12443_ACEOF 12444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12445# 12446# INIT-COMMANDS 12447# 12448AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12449 12450_ACEOF 12451 12452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12453 12454# Handling of arguments. 12455for ac_config_target in $ac_config_targets 12456do 12457 case $ac_config_target in 12458 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12459 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12460 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12461 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12462 12463 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12464 esac 12465done 12466 12467 12468# If the user did not use the arguments to specify the items to instantiate, 12469# then the envvar interface is used. Set only those that are not. 12470# We use the long form for the default assignment because of an extremely 12471# bizarre bug on SunOS 4.1.3. 12472if $ac_need_defaults; then 12473 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12474 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12475 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12476fi 12477 12478# Have a temporary directory for convenience. Make it in the build tree 12479# simply because there is no reason against having it here, and in addition, 12480# creating and moving files from /tmp can sometimes cause problems. 12481# Hook for its removal unless debugging. 12482# Note that there is a small window in which the directory will not be cleaned: 12483# after its creation but before its name has been assigned to `$tmp'. 12484$debug || 12485{ 12486 tmp= ac_tmp= 12487 trap 'exit_status=$? 12488 : "${ac_tmp:=$tmp}" 12489 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12490' 0 12491 trap 'as_fn_exit 1' 1 2 13 15 12492} 12493# Create a (secure) tmp directory for tmp files. 12494 12495{ 12496 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12497 test -d "$tmp" 12498} || 12499{ 12500 tmp=./conf$$-$RANDOM 12501 (umask 077 && mkdir "$tmp") 12502} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12503ac_tmp=$tmp 12504 12505# Set up the scripts for CONFIG_FILES section. 12506# No need to generate them if there are no CONFIG_FILES. 12507# This happens for instance with `./config.status config.h'. 12508if test -n "$CONFIG_FILES"; then 12509 12510 12511ac_cr=`echo X | tr X '\015'` 12512# On cygwin, bash can eat \r inside `` if the user requested igncr. 12513# But we know of no other shell where ac_cr would be empty at this 12514# point, so we can use a bashism as a fallback. 12515if test "x$ac_cr" = x; then 12516 eval ac_cr=\$\'\\r\' 12517fi 12518ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12519if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12520 ac_cs_awk_cr='\\r' 12521else 12522 ac_cs_awk_cr=$ac_cr 12523fi 12524 12525echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12526_ACEOF 12527 12528 12529{ 12530 echo "cat >conf$$subs.awk <<_ACEOF" && 12531 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12532 echo "_ACEOF" 12533} >conf$$subs.sh || 12534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12535ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12536ac_delim='%!_!# ' 12537for ac_last_try in false false false false false :; do 12538 . ./conf$$subs.sh || 12539 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12540 12541 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12542 if test $ac_delim_n = $ac_delim_num; then 12543 break 12544 elif $ac_last_try; then 12545 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12546 else 12547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12548 fi 12549done 12550rm -f conf$$subs.sh 12551 12552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12553cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12554_ACEOF 12555sed -n ' 12556h 12557s/^/S["/; s/!.*/"]=/ 12558p 12559g 12560s/^[^!]*!// 12561:repl 12562t repl 12563s/'"$ac_delim"'$// 12564t delim 12565:nl 12566h 12567s/\(.\{148\}\)..*/\1/ 12568t more1 12569s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12570p 12571n 12572b repl 12573:more1 12574s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12575p 12576g 12577s/.\{148\}// 12578t nl 12579:delim 12580h 12581s/\(.\{148\}\)..*/\1/ 12582t more2 12583s/["\\]/\\&/g; s/^/"/; s/$/"/ 12584p 12585b 12586:more2 12587s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12588p 12589g 12590s/.\{148\}// 12591t delim 12592' <conf$$subs.awk | sed ' 12593/^[^""]/{ 12594 N 12595 s/\n// 12596} 12597' >>$CONFIG_STATUS || ac_write_fail=1 12598rm -f conf$$subs.awk 12599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12600_ACAWK 12601cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12602 for (key in S) S_is_set[key] = 1 12603 FS = "" 12604 12605} 12606{ 12607 line = $ 0 12608 nfields = split(line, field, "@") 12609 substed = 0 12610 len = length(field[1]) 12611 for (i = 2; i < nfields; i++) { 12612 key = field[i] 12613 keylen = length(key) 12614 if (S_is_set[key]) { 12615 value = S[key] 12616 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12617 len += length(value) + length(field[++i]) 12618 substed = 1 12619 } else 12620 len += 1 + keylen 12621 } 12622 12623 print line 12624} 12625 12626_ACAWK 12627_ACEOF 12628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12629if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12630 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12631else 12632 cat 12633fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12634 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12635_ACEOF 12636 12637# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12638# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12639# trailing colons and then remove the whole line if VPATH becomes empty 12640# (actually we leave an empty line to preserve line numbers). 12641if test "x$srcdir" = x.; then 12642 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12643h 12644s/// 12645s/^/:/ 12646s/[ ]*$/:/ 12647s/:\$(srcdir):/:/g 12648s/:\${srcdir}:/:/g 12649s/:@srcdir@:/:/g 12650s/^:*// 12651s/:*$// 12652x 12653s/\(=[ ]*\).*/\1/ 12654G 12655s/\n// 12656s/^[^=]*=[ ]*$// 12657}' 12658fi 12659 12660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12661fi # test -n "$CONFIG_FILES" 12662 12663# Set up the scripts for CONFIG_HEADERS section. 12664# No need to generate them if there are no CONFIG_HEADERS. 12665# This happens for instance with `./config.status Makefile'. 12666if test -n "$CONFIG_HEADERS"; then 12667cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12668BEGIN { 12669_ACEOF 12670 12671# Transform confdefs.h into an awk script `defines.awk', embedded as 12672# here-document in config.status, that substitutes the proper values into 12673# config.h.in to produce config.h. 12674 12675# Create a delimiter string that does not exist in confdefs.h, to ease 12676# handling of long lines. 12677ac_delim='%!_!# ' 12678for ac_last_try in false false :; do 12679 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12680 if test -z "$ac_tt"; then 12681 break 12682 elif $ac_last_try; then 12683 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12684 else 12685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12686 fi 12687done 12688 12689# For the awk script, D is an array of macro values keyed by name, 12690# likewise P contains macro parameters if any. Preserve backslash 12691# newline sequences. 12692 12693ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12694sed -n ' 12695s/.\{148\}/&'"$ac_delim"'/g 12696t rset 12697:rset 12698s/^[ ]*#[ ]*define[ ][ ]*/ / 12699t def 12700d 12701:def 12702s/\\$// 12703t bsnl 12704s/["\\]/\\&/g 12705s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12706D["\1"]=" \3"/p 12707s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12708d 12709:bsnl 12710s/["\\]/\\&/g 12711s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12712D["\1"]=" \3\\\\\\n"\\/p 12713t cont 12714s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12715t cont 12716d 12717:cont 12718n 12719s/.\{148\}/&'"$ac_delim"'/g 12720t clear 12721:clear 12722s/\\$// 12723t bsnlc 12724s/["\\]/\\&/g; s/^/"/; s/$/"/p 12725d 12726:bsnlc 12727s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12728b cont 12729' <confdefs.h | sed ' 12730s/'"$ac_delim"'/"\\\ 12731"/g' >>$CONFIG_STATUS || ac_write_fail=1 12732 12733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12734 for (key in D) D_is_set[key] = 1 12735 FS = "" 12736} 12737/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12738 line = \$ 0 12739 split(line, arg, " ") 12740 if (arg[1] == "#") { 12741 defundef = arg[2] 12742 mac1 = arg[3] 12743 } else { 12744 defundef = substr(arg[1], 2) 12745 mac1 = arg[2] 12746 } 12747 split(mac1, mac2, "(") #) 12748 macro = mac2[1] 12749 prefix = substr(line, 1, index(line, defundef) - 1) 12750 if (D_is_set[macro]) { 12751 # Preserve the white space surrounding the "#". 12752 print prefix "define", macro P[macro] D[macro] 12753 next 12754 } else { 12755 # Replace #undef with comments. This is necessary, for example, 12756 # in the case of _POSIX_SOURCE, which is predefined and required 12757 # on some systems where configure will not decide to define it. 12758 if (defundef == "undef") { 12759 print "/*", prefix defundef, macro, "*/" 12760 next 12761 } 12762 } 12763} 12764{ print } 12765_ACAWK 12766_ACEOF 12767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12768 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12769fi # test -n "$CONFIG_HEADERS" 12770 12771 12772eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12773shift 12774for ac_tag 12775do 12776 case $ac_tag in 12777 :[FHLC]) ac_mode=$ac_tag; continue;; 12778 esac 12779 case $ac_mode$ac_tag in 12780 :[FHL]*:*);; 12781 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12782 :[FH]-) ac_tag=-:-;; 12783 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12784 esac 12785 ac_save_IFS=$IFS 12786 IFS=: 12787 set x $ac_tag 12788 IFS=$ac_save_IFS 12789 shift 12790 ac_file=$1 12791 shift 12792 12793 case $ac_mode in 12794 :L) ac_source=$1;; 12795 :[FH]) 12796 ac_file_inputs= 12797 for ac_f 12798 do 12799 case $ac_f in 12800 -) ac_f="$ac_tmp/stdin";; 12801 *) # Look for the file first in the build tree, then in the source tree 12802 # (if the path is not absolute). The absolute path cannot be DOS-style, 12803 # because $ac_f cannot contain `:'. 12804 test -f "$ac_f" || 12805 case $ac_f in 12806 [\\/$]*) false;; 12807 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12808 esac || 12809 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12810 esac 12811 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12812 as_fn_append ac_file_inputs " '$ac_f'" 12813 done 12814 12815 # Let's still pretend it is `configure' which instantiates (i.e., don't 12816 # use $as_me), people would be surprised to read: 12817 # /* config.h. Generated by config.status. */ 12818 configure_input='Generated from '` 12819 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12820 `' by configure.' 12821 if test x"$ac_file" != x-; then 12822 configure_input="$ac_file. $configure_input" 12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12824printf "%s\n" "$as_me: creating $ac_file" >&6;} 12825 fi 12826 # Neutralize special characters interpreted by sed in replacement strings. 12827 case $configure_input in #( 12828 *\&* | *\|* | *\\* ) 12829 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12830 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12831 *) ac_sed_conf_input=$configure_input;; 12832 esac 12833 12834 case $ac_tag in 12835 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12837 esac 12838 ;; 12839 esac 12840 12841 ac_dir=`$as_dirname -- "$ac_file" || 12842$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12843 X"$ac_file" : 'X\(//\)[^/]' \| \ 12844 X"$ac_file" : 'X\(//\)$' \| \ 12845 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12846printf "%s\n" X"$ac_file" | 12847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12848 s//\1/ 12849 q 12850 } 12851 /^X\(\/\/\)[^/].*/{ 12852 s//\1/ 12853 q 12854 } 12855 /^X\(\/\/\)$/{ 12856 s//\1/ 12857 q 12858 } 12859 /^X\(\/\).*/{ 12860 s//\1/ 12861 q 12862 } 12863 s/.*/./; q'` 12864 as_dir="$ac_dir"; as_fn_mkdir_p 12865 ac_builddir=. 12866 12867case "$ac_dir" in 12868.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12869*) 12870 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12871 # A ".." for each directory in $ac_dir_suffix. 12872 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12873 case $ac_top_builddir_sub in 12874 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12875 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12876 esac ;; 12877esac 12878ac_abs_top_builddir=$ac_pwd 12879ac_abs_builddir=$ac_pwd$ac_dir_suffix 12880# for backward compatibility: 12881ac_top_builddir=$ac_top_build_prefix 12882 12883case $srcdir in 12884 .) # We are building in place. 12885 ac_srcdir=. 12886 ac_top_srcdir=$ac_top_builddir_sub 12887 ac_abs_top_srcdir=$ac_pwd ;; 12888 [\\/]* | ?:[\\/]* ) # Absolute name. 12889 ac_srcdir=$srcdir$ac_dir_suffix; 12890 ac_top_srcdir=$srcdir 12891 ac_abs_top_srcdir=$srcdir ;; 12892 *) # Relative name. 12893 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12894 ac_top_srcdir=$ac_top_build_prefix$srcdir 12895 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12896esac 12897ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12898 12899 12900 case $ac_mode in 12901 :F) 12902 # 12903 # CONFIG_FILE 12904 # 12905 12906 case $INSTALL in 12907 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12908 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12909 esac 12910 ac_MKDIR_P=$MKDIR_P 12911 case $MKDIR_P in 12912 [\\/$]* | ?:[\\/]* ) ;; 12913 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12914 esac 12915_ACEOF 12916 12917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12918# If the template does not know about datarootdir, expand it. 12919# FIXME: This hack should be removed a few years after 2.60. 12920ac_datarootdir_hack=; ac_datarootdir_seen= 12921ac_sed_dataroot=' 12922/datarootdir/ { 12923 p 12924 q 12925} 12926/@datadir@/p 12927/@docdir@/p 12928/@infodir@/p 12929/@localedir@/p 12930/@mandir@/p' 12931case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12932*datarootdir*) ac_datarootdir_seen=yes;; 12933*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12935printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12936_ACEOF 12937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12938 ac_datarootdir_hack=' 12939 s&@datadir@&$datadir&g 12940 s&@docdir@&$docdir&g 12941 s&@infodir@&$infodir&g 12942 s&@localedir@&$localedir&g 12943 s&@mandir@&$mandir&g 12944 s&\\\${datarootdir}&$datarootdir&g' ;; 12945esac 12946_ACEOF 12947 12948# Neutralize VPATH when `$srcdir' = `.'. 12949# Shell code in configure.ac might set extrasub. 12950# FIXME: do we really want to maintain this feature? 12951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12952ac_sed_extra="$ac_vpsub 12953$extrasub 12954_ACEOF 12955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12956:t 12957/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12958s|@configure_input@|$ac_sed_conf_input|;t t 12959s&@top_builddir@&$ac_top_builddir_sub&;t t 12960s&@top_build_prefix@&$ac_top_build_prefix&;t t 12961s&@srcdir@&$ac_srcdir&;t t 12962s&@abs_srcdir@&$ac_abs_srcdir&;t t 12963s&@top_srcdir@&$ac_top_srcdir&;t t 12964s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12965s&@builddir@&$ac_builddir&;t t 12966s&@abs_builddir@&$ac_abs_builddir&;t t 12967s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12968s&@INSTALL@&$ac_INSTALL&;t t 12969s&@MKDIR_P@&$ac_MKDIR_P&;t t 12970$ac_datarootdir_hack 12971" 12972eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12973 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12974 12975test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12976 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12977 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12978 "$ac_tmp/out"`; test -z "$ac_out"; } && 12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12980which seems to be undefined. Please make sure it is defined" >&5 12981printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12982which seems to be undefined. Please make sure it is defined" >&2;} 12983 12984 rm -f "$ac_tmp/stdin" 12985 case $ac_file in 12986 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12987 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12988 esac \ 12989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12990 ;; 12991 :H) 12992 # 12993 # CONFIG_HEADER 12994 # 12995 if test x"$ac_file" != x-; then 12996 { 12997 printf "%s\n" "/* $configure_input */" >&1 \ 12998 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12999 } >"$ac_tmp/config.h" \ 13000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13001 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13003printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13004 else 13005 rm -f "$ac_file" 13006 mv "$ac_tmp/config.h" "$ac_file" \ 13007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13008 fi 13009 else 13010 printf "%s\n" "/* $configure_input */" >&1 \ 13011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13012 || as_fn_error $? "could not create -" "$LINENO" 5 13013 fi 13014# Compute "$ac_file"'s index in $config_headers. 13015_am_arg="$ac_file" 13016_am_stamp_count=1 13017for _am_header in $config_headers :; do 13018 case $_am_header in 13019 $_am_arg | $_am_arg:* ) 13020 break ;; 13021 * ) 13022 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13023 esac 13024done 13025echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13026$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13027 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13028 X"$_am_arg" : 'X\(//\)$' \| \ 13029 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13030printf "%s\n" X"$_am_arg" | 13031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13032 s//\1/ 13033 q 13034 } 13035 /^X\(\/\/\)[^/].*/{ 13036 s//\1/ 13037 q 13038 } 13039 /^X\(\/\/\)$/{ 13040 s//\1/ 13041 q 13042 } 13043 /^X\(\/\).*/{ 13044 s//\1/ 13045 q 13046 } 13047 s/.*/./; q'`/stamp-h$_am_stamp_count 13048 ;; 13049 13050 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13051printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13052 ;; 13053 esac 13054 13055 13056 case $ac_file$ac_mode in 13057 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13058 # Older Autoconf quotes --file arguments for eval, but not when files 13059 # are listed without --file. Let's play safe and only enable the eval 13060 # if we detect the quoting. 13061 # TODO: see whether this extra hack can be removed once we start 13062 # requiring Autoconf 2.70 or later. 13063 case $CONFIG_FILES in #( 13064 *\'*) : 13065 eval set x "$CONFIG_FILES" ;; #( 13066 *) : 13067 set x $CONFIG_FILES ;; #( 13068 *) : 13069 ;; 13070esac 13071 shift 13072 # Used to flag and report bootstrapping failures. 13073 am_rc=0 13074 for am_mf 13075 do 13076 # Strip MF so we end up with the name of the file. 13077 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13078 # Check whether this is an Automake generated Makefile which includes 13079 # dependency-tracking related rules and includes. 13080 # Grep'ing the whole file directly is not great: AIX grep has a line 13081 # limit of 2048, but all sed's we know have understand at least 4000. 13082 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13083 || continue 13084 am_dirpart=`$as_dirname -- "$am_mf" || 13085$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13086 X"$am_mf" : 'X\(//\)[^/]' \| \ 13087 X"$am_mf" : 'X\(//\)$' \| \ 13088 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13089printf "%s\n" X"$am_mf" | 13090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13091 s//\1/ 13092 q 13093 } 13094 /^X\(\/\/\)[^/].*/{ 13095 s//\1/ 13096 q 13097 } 13098 /^X\(\/\/\)$/{ 13099 s//\1/ 13100 q 13101 } 13102 /^X\(\/\).*/{ 13103 s//\1/ 13104 q 13105 } 13106 s/.*/./; q'` 13107 am_filepart=`$as_basename -- "$am_mf" || 13108$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13109 X"$am_mf" : 'X\(//\)$' \| \ 13110 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13111printf "%s\n" X/"$am_mf" | 13112 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13113 s//\1/ 13114 q 13115 } 13116 /^X\/\(\/\/\)$/{ 13117 s//\1/ 13118 q 13119 } 13120 /^X\/\(\/\).*/{ 13121 s//\1/ 13122 q 13123 } 13124 s/.*/./; q'` 13125 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13126 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13127 | $MAKE -f - am--depfiles" >&5 13128 (cd "$am_dirpart" \ 13129 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13130 | $MAKE -f - am--depfiles) >&5 2>&5 13131 ac_status=$? 13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13133 (exit $ac_status); } || am_rc=$? 13134 done 13135 if test $am_rc -ne 0; then 13136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13137printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13138as_fn_error $? "Something went wrong bootstrapping makefile fragments 13139 for automatic dependency tracking. If GNU make was not used, consider 13140 re-running the configure script with MAKE=\"gmake\" (or whatever is 13141 necessary). You can also try re-running configure with the 13142 '--disable-dependency-tracking' option to at least be able to build 13143 the package (albeit without support for automatic dependency tracking). 13144See \`config.log' for more details" "$LINENO" 5; } 13145 fi 13146 { am_dirpart=; unset am_dirpart;} 13147 { am_filepart=; unset am_filepart;} 13148 { am_mf=; unset am_mf;} 13149 { am_rc=; unset am_rc;} 13150 rm -f conftest-deps.mk 13151} 13152 ;; 13153 13154 esac 13155done # for ac_tag 13156 13157 13158as_fn_exit 0 13159_ACEOF 13160ac_clean_files=$ac_clean_files_save 13161 13162test $ac_write_fail = 0 || 13163 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13164 13165 13166# configure is writing to config.log, and then calls config.status. 13167# config.status does its own redirection, appending to config.log. 13168# Unfortunately, on DOS this fails, as config.log is still kept open 13169# by configure, so config.status won't be able to write to it; its 13170# output is simply discarded. So we exec the FD to /dev/null, 13171# effectively closing config.log, so it can be properly (re)opened and 13172# appended to by config.status. When coming back to configure, we 13173# need to make the FD available again. 13174if test "$no_create" != yes; then 13175 ac_cs_success=: 13176 ac_config_status_args= 13177 test "$silent" = yes && 13178 ac_config_status_args="$ac_config_status_args --quiet" 13179 exec 5>/dev/null 13180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13181 exec 5>>config.log 13182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13183 # would make configure fail if this is the last instruction. 13184 $ac_cs_success || as_fn_exit 1 13185fi 13186if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13188printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13189fi 13190 13191 13192