1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for fstobdf 1.0.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/fstobdf/-/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/fstobdf/-/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='fstobdf' 614PACKAGE_TARNAME='fstobdf' 615PACKAGE_VERSION='1.0.7' 616PACKAGE_STRING='fstobdf 1.0.7' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/fstobdf/-/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_subst_vars='am__EXEEXT_FALSE 654am__EXEEXT_TRUE 655LTLIBOBJS 656LIBOBJS 657FSTOBDF_LIBS 658FSTOBDF_CFLAGS 659MAN_SUBSTS 660XORG_MAN_PAGE 661ADMIN_MAN_DIR 662DRIVER_MAN_DIR 663MISC_MAN_DIR 664FILE_MAN_DIR 665LIB_MAN_DIR 666APP_MAN_DIR 667ADMIN_MAN_SUFFIX 668DRIVER_MAN_SUFFIX 669MISC_MAN_SUFFIX 670FILE_MAN_SUFFIX 671LIB_MAN_SUFFIX 672APP_MAN_SUFFIX 673SED 674host_os 675host_vendor 676host_cpu 677host 678build_os 679build_vendor 680build_cpu 681build 682INSTALL_CMD 683PKG_CONFIG_LIBDIR 684PKG_CONFIG_PATH 685PKG_CONFIG 686CHANGELOG_CMD 687STRICT_CFLAGS 688CWARNFLAGS 689BASE_CFLAGS 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__include 698DEPDIR 699OBJEXT 700EXEEXT 701ac_ct_CC 702CPPFLAGS 703LDFLAGS 704CFLAGS 705CC 706AM_BACKSLASH 707AM_DEFAULT_VERBOSITY 708AM_DEFAULT_V 709AM_V 710CSCOPE 711ETAGS 712CTAGS 713am__untar 714am__tar 715AMTAR 716am__leading_dot 717SET_MAKE 718AWK 719mkdir_p 720MKDIR_P 721INSTALL_STRIP_PROGRAM 722STRIP 723install_sh 724MAKEINFO 725AUTOHEADER 726AUTOMAKE 727AUTOCONF 728ACLOCAL 729VERSION 730PACKAGE 731CYGPATH_W 732am__isrc 733INSTALL_DATA 734INSTALL_SCRIPT 735INSTALL_PROGRAM 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755runstatedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL 775am__quote' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_silent_rules 780enable_dependency_tracking 781enable_selective_werror 782enable_strict_compilation 783' 784 ac_precious_vars='build_alias 785host_alias 786target_alias 787CC 788CFLAGS 789LDFLAGS 790LIBS 791CPPFLAGS 792PKG_CONFIG 793PKG_CONFIG_PATH 794PKG_CONFIG_LIBDIR 795FSTOBDF_CFLAGS 796FSTOBDF_LIBS' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 835runstatedir='${localstatedir}/run' 836includedir='${prefix}/include' 837oldincludedir='/usr/include' 838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839infodir='${datarootdir}/info' 840htmldir='${docdir}' 841dvidir='${docdir}' 842pdfdir='${docdir}' 843psdir='${docdir}' 844libdir='${exec_prefix}/lib' 845localedir='${datarootdir}/locale' 846mandir='${datarootdir}/man' 847 848ac_prev= 849ac_dashdash= 850for ac_option 851do 852 # If the previous option needs an argument, assign it. 853 if test -n "$ac_prev"; then 854 eval $ac_prev=\$ac_option 855 ac_prev= 856 continue 857 fi 858 859 case $ac_option in 860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 861 *=) ac_optarg= ;; 862 *) ac_optarg=yes ;; 863 esac 864 865 case $ac_dashdash$ac_option in 866 --) 867 ac_dashdash=yes ;; 868 869 -bindir | --bindir | --bindi | --bind | --bin | --bi) 870 ac_prev=bindir ;; 871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 872 bindir=$ac_optarg ;; 873 874 -build | --build | --buil | --bui | --bu) 875 ac_prev=build_alias ;; 876 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 877 build_alias=$ac_optarg ;; 878 879 -cache-file | --cache-file | --cache-fil | --cache-fi \ 880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 881 ac_prev=cache_file ;; 882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 884 cache_file=$ac_optarg ;; 885 886 --config-cache | -C) 887 cache_file=config.cache ;; 888 889 -datadir | --datadir | --datadi | --datad) 890 ac_prev=datadir ;; 891 -datadir=* | --datadir=* | --datadi=* | --datad=*) 892 datadir=$ac_optarg ;; 893 894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895 | --dataroo | --dataro | --datar) 896 ac_prev=datarootdir ;; 897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899 datarootdir=$ac_optarg ;; 900 901 -disable-* | --disable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: \`$ac_useropt'" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=no ;; 916 917 -docdir | --docdir | --docdi | --doc | --do) 918 ac_prev=docdir ;; 919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920 docdir=$ac_optarg ;; 921 922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923 ac_prev=dvidir ;; 924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925 dvidir=$ac_optarg ;; 926 927 -enable-* | --enable-*) 928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 929 # Reject names that are not valid shell variable names. 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931 as_fn_error $? "invalid feature name: \`$ac_useropt'" 932 ac_useropt_orig=$ac_useropt 933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 934 case $ac_user_opts in 935 *" 936"enable_$ac_useropt" 937"*) ;; 938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939 ac_unrecognized_sep=', ';; 940 esac 941 eval enable_$ac_useropt=\$ac_optarg ;; 942 943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 945 | --exec | --exe | --ex) 946 ac_prev=exec_prefix ;; 947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 949 | --exec=* | --exe=* | --ex=*) 950 exec_prefix=$ac_optarg ;; 951 952 -gas | --gas | --ga | --g) 953 # Obsolete; use --with-gas. 954 with_gas=yes ;; 955 956 -help | --help | --hel | --he | -h) 957 ac_init_help=long ;; 958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 959 ac_init_help=recursive ;; 960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 961 ac_init_help=short ;; 962 963 -host | --host | --hos | --ho) 964 ac_prev=host_alias ;; 965 -host=* | --host=* | --hos=* | --ho=*) 966 host_alias=$ac_optarg ;; 967 968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969 ac_prev=htmldir ;; 970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971 | --ht=*) 972 htmldir=$ac_optarg ;; 973 974 -includedir | --includedir | --includedi | --included | --include \ 975 | --includ | --inclu | --incl | --inc) 976 ac_prev=includedir ;; 977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 978 | --includ=* | --inclu=* | --incl=* | --inc=*) 979 includedir=$ac_optarg ;; 980 981 -infodir | --infodir | --infodi | --infod | --info | --inf) 982 ac_prev=infodir ;; 983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 984 infodir=$ac_optarg ;; 985 986 -libdir | --libdir | --libdi | --libd) 987 ac_prev=libdir ;; 988 -libdir=* | --libdir=* | --libdi=* | --libd=*) 989 libdir=$ac_optarg ;; 990 991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 992 | --libexe | --libex | --libe) 993 ac_prev=libexecdir ;; 994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 995 | --libexe=* | --libex=* | --libe=*) 996 libexecdir=$ac_optarg ;; 997 998 -localedir | --localedir | --localedi | --localed | --locale) 999 ac_prev=localedir ;; 1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001 localedir=$ac_optarg ;; 1002 1003 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004 | --localstate | --localstat | --localsta | --localst | --locals) 1005 ac_prev=localstatedir ;; 1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008 localstatedir=$ac_optarg ;; 1009 1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011 ac_prev=mandir ;; 1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013 mandir=$ac_optarg ;; 1014 1015 -nfp | --nfp | --nf) 1016 # Obsolete; use --without-fp. 1017 with_fp=no ;; 1018 1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020 | --no-cr | --no-c | -n) 1021 no_create=yes ;; 1022 1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025 no_recursion=yes ;; 1026 1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029 | --oldin | --oldi | --old | --ol | --o) 1030 ac_prev=oldincludedir ;; 1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034 oldincludedir=$ac_optarg ;; 1035 1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037 ac_prev=prefix ;; 1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039 prefix=$ac_optarg ;; 1040 1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042 | --program-pre | --program-pr | --program-p) 1043 ac_prev=program_prefix ;; 1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046 program_prefix=$ac_optarg ;; 1047 1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049 | --program-suf | --program-su | --program-s) 1050 ac_prev=program_suffix ;; 1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053 program_suffix=$ac_optarg ;; 1054 1055 -program-transform-name | --program-transform-name \ 1056 | --program-transform-nam | --program-transform-na \ 1057 | --program-transform-n | --program-transform- \ 1058 | --program-transform | --program-transfor \ 1059 | --program-transfo | --program-transf \ 1060 | --program-trans | --program-tran \ 1061 | --progr-tra | --program-tr | --program-t) 1062 ac_prev=program_transform_name ;; 1063 -program-transform-name=* | --program-transform-name=* \ 1064 | --program-transform-nam=* | --program-transform-na=* \ 1065 | --program-transform-n=* | --program-transform-=* \ 1066 | --program-transform=* | --program-transfor=* \ 1067 | --program-transfo=* | --program-transf=* \ 1068 | --program-trans=* | --program-tran=* \ 1069 | --progr-tra=* | --program-tr=* | --program-t=*) 1070 program_transform_name=$ac_optarg ;; 1071 1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073 ac_prev=pdfdir ;; 1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075 pdfdir=$ac_optarg ;; 1076 1077 -psdir | --psdir | --psdi | --psd | --ps) 1078 ac_prev=psdir ;; 1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080 psdir=$ac_optarg ;; 1081 1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083 | -silent | --silent | --silen | --sile | --sil) 1084 silent=yes ;; 1085 1086 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1087 | --runstate | --runstat | --runsta | --runst | --runs \ 1088 | --run | --ru | --r) 1089 ac_prev=runstatedir ;; 1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1092 | --run=* | --ru=* | --r=*) 1093 runstatedir=$ac_optarg ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: \`$ac_useropt'" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: \`$ac_useropt'" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=no ;; 1171 1172 --x) 1173 # Obsolete; use --with-x. 1174 with_x=yes ;; 1175 1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177 | --x-incl | --x-inc | --x-in | --x-i) 1178 ac_prev=x_includes ;; 1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181 x_includes=$ac_optarg ;; 1182 1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185 ac_prev=x_libraries ;; 1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188 x_libraries=$ac_optarg ;; 1189 1190 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1191Try \`$0 --help' for more information" 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 case $ac_envvar in #( 1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1200 esac 1201 eval $ac_envvar=\$ac_optarg 1202 export $ac_envvar ;; 1203 1204 *) 1205 # FIXME: should be removed in autoconf 3.0. 1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210 ;; 1211 1212 esac 1213done 1214 1215if test -n "$ac_prev"; then 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217 as_fn_error $? "missing argument to $ac_option" 1218fi 1219 1220if test -n "$ac_unrecognized_opts"; then 1221 case $enable_option_checking in 1222 no) ;; 1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225 esac 1226fi 1227 1228# Check all directory arguments for consistency. 1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230 datadir sysconfdir sharedstatedir localstatedir includedir \ 1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232 libdir localedir mandir runstatedir 1233do 1234 eval ac_val=\$$ac_var 1235 # Remove trailing slashes. 1236 case $ac_val in 1237 */ ) 1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239 eval $ac_var=\$ac_val;; 1240 esac 1241 # Be sure to have absolute directory names. 1242 case $ac_val in 1243 [\\/$]* | ?:[\\/]* ) continue;; 1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245 esac 1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247done 1248 1249# There might be people who depend on the old broken behavior: `$host' 1250# used to hold the argument of --host etc. 1251# FIXME: To remove some day. 1252build=$build_alias 1253host=$host_alias 1254target=$target_alias 1255 1256# FIXME: To remove some day. 1257if test "x$host_alias" != x; then 1258 if test "x$build_alias" = x; then 1259 cross_compiling=maybe 1260 elif test "x$build_alias" != "x$host_alias"; then 1261 cross_compiling=yes 1262 fi 1263fi 1264 1265ac_tool_prefix= 1266test -n "$host_alias" && ac_tool_prefix=$host_alias- 1267 1268test "$silent" = yes && exec 6>/dev/null 1269 1270 1271ac_pwd=`pwd` && test -n "$ac_pwd" && 1272ac_ls_di=`ls -di .` && 1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274 as_fn_error $? "working directory cannot be determined" 1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276 as_fn_error $? "pwd does not report name of working directory" 1277 1278 1279# Find the source files, if location was not specified. 1280if test -z "$srcdir"; then 1281 ac_srcdir_defaulted=yes 1282 # Try the directory containing this script, then the parent directory. 1283 ac_confdir=`$as_dirname -- "$as_myself" || 1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285 X"$as_myself" : 'X\(//\)[^/]' \| \ 1286 X"$as_myself" : 'X\(//\)$' \| \ 1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288printf "%s\n" X"$as_myself" | 1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)[^/].*/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\).*/{ 1302 s//\1/ 1303 q 1304 } 1305 s/.*/./; q'` 1306 srcdir=$ac_confdir 1307 if test ! -r "$srcdir/$ac_unique_file"; then 1308 srcdir=.. 1309 fi 1310else 1311 ac_srcdir_defaulted=no 1312fi 1313if test ! -r "$srcdir/$ac_unique_file"; then 1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316fi 1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1318ac_abs_confdir=`( 1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320 pwd)` 1321# When building in place, set srcdir=. 1322if test "$ac_abs_confdir" = "$ac_pwd"; then 1323 srcdir=. 1324fi 1325# Remove unnecessary trailing slashes from srcdir. 1326# Double slashes in file names in object file debugging info 1327# mess up M-x gdb in Emacs. 1328case $srcdir in 1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330esac 1331for ac_var in $ac_precious_vars; do 1332 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_env_${ac_var}_value=\$${ac_var} 1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336done 1337 1338# 1339# Report the --help message. 1340# 1341if test "$ac_init_help" = "long"; then 1342 # Omit some internal or obsolete options to make the list less imposing. 1343 # This message is too long to be a string in the A/UX 3.1 sh. 1344 cat <<_ACEOF 1345\`configure' configures fstobdf 1.0.7 to adapt to many kinds of systems. 1346 1347Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352Defaults for the options are specified in brackets. 1353 1354Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print \`checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for \`--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1364 1365Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371By default, \`make install' will install all the files in 1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1373an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1374for instance \`--prefix=\$HOME'. 1375 1376For better control, use the options below. 1377 1378Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/fstobdf] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399_ACEOF 1400 1401 cat <<\_ACEOF 1402 1403Program names: 1404 --program-prefix=PREFIX prepend PREFIX to installed program names 1405 --program-suffix=SUFFIX append SUFFIX to installed program names 1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407 1408System types: 1409 --build=BUILD configure for building on BUILD [guessed] 1410 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411_ACEOF 1412fi 1413 1414if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of fstobdf 1.0.7:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-silent-rules less verbose build output (undo: "make V=1") 1425 --disable-silent-rules verbose build output (undo: "make V=0") 1426 --enable-dependency-tracking 1427 do not reject slow dependency extractors 1428 --disable-dependency-tracking 1429 speeds up one-time build 1430 --disable-selective-werror 1431 Turn off selective compiler errors. (default: 1432 enabled) 1433 --enable-strict-compilation 1434 Enable all warnings from compiler and make them 1435 errors (default: disabled) 1436 1437Some influential environment variables: 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 PKG_CONFIG path to pkg-config utility 1446 PKG_CONFIG_PATH 1447 directories to add to pkg-config's search path 1448 PKG_CONFIG_LIBDIR 1449 path overriding pkg-config's built-in search path 1450 FSTOBDF_CFLAGS 1451 C compiler flags for FSTOBDF, overriding pkg-config 1452 FSTOBDF_LIBS 1453 linker flags for FSTOBDF, overriding pkg-config 1454 1455Use these variables to override the choices made by `configure' or to help 1456it to find libraries and programs with nonstandard names/locations. 1457 1458Report bugs to <https://gitlab.freedesktop.org/xorg/app/fstobdf/-/issues>. 1459_ACEOF 1460ac_status=$? 1461fi 1462 1463if test "$ac_init_help" = "recursive"; then 1464 # If there are subdirs, report their specific --help. 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1466 test -d "$ac_dir" || 1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1468 continue 1469 ac_builddir=. 1470 1471case "$ac_dir" in 1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473*) 1474 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1475 # A ".." for each directory in $ac_dir_suffix. 1476 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1477 case $ac_top_builddir_sub in 1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1480 esac ;; 1481esac 1482ac_abs_top_builddir=$ac_pwd 1483ac_abs_builddir=$ac_pwd$ac_dir_suffix 1484# for backward compatibility: 1485ac_top_builddir=$ac_top_build_prefix 1486 1487case $srcdir in 1488 .) # We are building in place. 1489 ac_srcdir=. 1490 ac_top_srcdir=$ac_top_builddir_sub 1491 ac_abs_top_srcdir=$ac_pwd ;; 1492 [\\/]* | ?:[\\/]* ) # Absolute name. 1493 ac_srcdir=$srcdir$ac_dir_suffix; 1494 ac_top_srcdir=$srcdir 1495 ac_abs_top_srcdir=$srcdir ;; 1496 *) # Relative name. 1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1498 ac_top_srcdir=$ac_top_build_prefix$srcdir 1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1500esac 1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1502 1503 cd "$ac_dir" || { ac_status=$?; continue; } 1504 # Check for configure.gnu first; this name is used for a wrapper for 1505 # Metaconfig's "Configure" on case-insensitive file systems. 1506 if test -f "$ac_srcdir/configure.gnu"; then 1507 echo && 1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1509 elif test -f "$ac_srcdir/configure"; then 1510 echo && 1511 $SHELL "$ac_srcdir/configure" --help=recursive 1512 else 1513 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1514 fi || ac_status=$? 1515 cd "$ac_pwd" || { ac_status=$?; break; } 1516 done 1517fi 1518 1519test -n "$ac_init_help" && exit $ac_status 1520if $ac_init_version; then 1521 cat <<\_ACEOF 1522fstobdf configure 1.0.7 1523generated by GNU Autoconf 2.71 1524 1525Copyright (C) 2021 Free Software Foundation, Inc. 1526This configure script is free software; the Free Software Foundation 1527gives unlimited permission to copy, distribute and modify it. 1528_ACEOF 1529 exit 1530fi 1531 1532## ------------------------ ## 1533## Autoconf initialization. ## 1534## ------------------------ ## 1535 1536# ac_fn_c_try_compile LINENO 1537# -------------------------- 1538# Try to compile conftest.$ac_ext, and return whether this succeeded. 1539ac_fn_c_try_compile () 1540{ 1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 rm -f conftest.$ac_objext conftest.beam 1543 if { { ac_try="$ac_compile" 1544case "(($ac_try" in 1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1546 *) ac_try_echo=$ac_try;; 1547esac 1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1549printf "%s\n" "$ac_try_echo"; } >&5 1550 (eval "$ac_compile") 2>conftest.err 1551 ac_status=$? 1552 if test -s conftest.err; then 1553 grep -v '^ *+' conftest.err >conftest.er1 1554 cat conftest.er1 >&5 1555 mv -f conftest.er1 conftest.err 1556 fi 1557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1558 test $ac_status = 0; } && { 1559 test -z "$ac_c_werror_flag" || 1560 test ! -s conftest.err 1561 } && test -s conftest.$ac_objext 1562then : 1563 ac_retval=0 1564else $as_nop 1565 printf "%s\n" "$as_me: failed program was:" >&5 1566sed 's/^/| /' conftest.$ac_ext >&5 1567 1568 ac_retval=1 1569fi 1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1571 as_fn_set_status $ac_retval 1572 1573} # ac_fn_c_try_compile 1574 1575# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1576# ------------------------------------------------------------------ 1577# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1578# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1579ac_fn_check_decl () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 as_decl_name=`echo $2|sed 's/ *(.*//'` 1583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1584printf %s "checking whether $as_decl_name is declared... " >&6; } 1585if eval test \${$3+y} 1586then : 1587 printf %s "(cached) " >&6 1588else $as_nop 1589 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1590 eval ac_save_FLAGS=\$$6 1591 as_fn_append $6 " $5" 1592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1593/* end confdefs.h. */ 1594$4 1595int 1596main (void) 1597{ 1598#ifndef $as_decl_name 1599#ifdef __cplusplus 1600 (void) $as_decl_use; 1601#else 1602 (void) $as_decl_name; 1603#endif 1604#endif 1605 1606 ; 1607 return 0; 1608} 1609_ACEOF 1610if ac_fn_c_try_compile "$LINENO" 1611then : 1612 eval "$3=yes" 1613else $as_nop 1614 eval "$3=no" 1615fi 1616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1617 eval $6=\$ac_save_FLAGS 1618 1619fi 1620eval ac_res=\$$3 1621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1622printf "%s\n" "$ac_res" >&6; } 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 1625} # ac_fn_check_decl 1626 1627# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1628# ------------------------------------------------------- 1629# Tests whether HEADER exists and can be compiled using the include files in 1630# INCLUDES, setting the cache variable VAR accordingly. 1631ac_fn_c_check_header_compile () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1635printf %s "checking for $2... " >&6; } 1636if eval test \${$3+y} 1637then : 1638 printf %s "(cached) " >&6 1639else $as_nop 1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641/* end confdefs.h. */ 1642$4 1643#include <$2> 1644_ACEOF 1645if ac_fn_c_try_compile "$LINENO" 1646then : 1647 eval "$3=yes" 1648else $as_nop 1649 eval "$3=no" 1650fi 1651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1652fi 1653eval ac_res=\$$3 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655printf "%s\n" "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658} # ac_fn_c_check_header_compile 1659 1660# ac_fn_c_try_link LINENO 1661# ----------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_link () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673printf "%s\n" "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 } 1689then : 1690 ac_retval=0 1691else $as_nop 1692 printf "%s\n" "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 1696fi 1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1699 # interfere with the next link command; also delete a directory that is 1700 # left behind by Apple's compiler. We do this before executing the actions. 1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_link 1706ac_configure_args_raw= 1707for ac_arg 1708do 1709 case $ac_arg in 1710 *\'*) 1711 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1712 esac 1713 as_fn_append ac_configure_args_raw " '$ac_arg'" 1714done 1715 1716case $ac_configure_args_raw in 1717 *$as_nl*) 1718 ac_safe_unquote= ;; 1719 *) 1720 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1721 ac_unsafe_a="$ac_unsafe_z#~" 1722 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1723 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1724esac 1725 1726cat >config.log <<_ACEOF 1727This file contains any messages produced by compilers while 1728running configure, to aid debugging if configure makes a mistake. 1729 1730It was created by fstobdf $as_me 1.0.7, which was 1731generated by GNU Autoconf 2.71. Invocation command line was 1732 1733 $ $0$ac_configure_args_raw 1734 1735_ACEOF 1736exec 5>>config.log 1737{ 1738cat <<_ASUNAME 1739## --------- ## 1740## Platform. ## 1741## --------- ## 1742 1743hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1744uname -m = `(uname -m) 2>/dev/null || echo unknown` 1745uname -r = `(uname -r) 2>/dev/null || echo unknown` 1746uname -s = `(uname -s) 2>/dev/null || echo unknown` 1747uname -v = `(uname -v) 2>/dev/null || echo unknown` 1748 1749/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1750/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1751 1752/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1753/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1754/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1755/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1756/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1757/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1758/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1759 1760_ASUNAME 1761 1762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1763for as_dir in $PATH 1764do 1765 IFS=$as_save_IFS 1766 case $as_dir in #((( 1767 '') as_dir=./ ;; 1768 */) ;; 1769 *) as_dir=$as_dir/ ;; 1770 esac 1771 printf "%s\n" "PATH: $as_dir" 1772 done 1773IFS=$as_save_IFS 1774 1775} >&5 1776 1777cat >&5 <<_ACEOF 1778 1779 1780## ----------- ## 1781## Core tests. ## 1782## ----------- ## 1783 1784_ACEOF 1785 1786 1787# Keep a trace of the command line. 1788# Strip out --no-create and --no-recursion so they do not pile up. 1789# Strip out --silent because we don't want to record it for future runs. 1790# Also quote any args containing shell meta-characters. 1791# Make two passes to allow for proper duplicate-argument suppression. 1792ac_configure_args= 1793ac_configure_args0= 1794ac_configure_args1= 1795ac_must_keep_next=false 1796for ac_pass in 1 2 1797do 1798 for ac_arg 1799 do 1800 case $ac_arg in 1801 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1803 | -silent | --silent | --silen | --sile | --sil) 1804 continue ;; 1805 *\'*) 1806 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1807 esac 1808 case $ac_pass in 1809 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1810 2) 1811 as_fn_append ac_configure_args1 " '$ac_arg'" 1812 if test $ac_must_keep_next = true; then 1813 ac_must_keep_next=false # Got value, back to normal. 1814 else 1815 case $ac_arg in 1816 *=* | --config-cache | -C | -disable-* | --disable-* \ 1817 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1818 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1819 | -with-* | --with-* | -without-* | --without-* | --x) 1820 case "$ac_configure_args0 " in 1821 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1822 esac 1823 ;; 1824 -* ) ac_must_keep_next=true ;; 1825 esac 1826 fi 1827 as_fn_append ac_configure_args " '$ac_arg'" 1828 ;; 1829 esac 1830 done 1831done 1832{ ac_configure_args0=; unset ac_configure_args0;} 1833{ ac_configure_args1=; unset ac_configure_args1;} 1834 1835# When interrupted or exit'd, cleanup temporary files, and complete 1836# config.log. We remove comments because anyway the quotes in there 1837# would cause problems or look ugly. 1838# WARNING: Use '\'' to represent an apostrophe within the trap. 1839# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1840trap 'exit_status=$? 1841 # Sanitize IFS. 1842 IFS=" "" $as_nl" 1843 # Save into config.log some information that might help in debugging. 1844 { 1845 echo 1846 1847 printf "%s\n" "## ---------------- ## 1848## Cache variables. ## 1849## ---------------- ##" 1850 echo 1851 # The following way of writing the cache mishandles newlines in values, 1852( 1853 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1854 eval ac_val=\$$ac_var 1855 case $ac_val in #( 1856 *${as_nl}*) 1857 case $ac_var in #( 1858 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1859printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1860 esac 1861 case $ac_var in #( 1862 _ | IFS | as_nl) ;; #( 1863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1864 *) { eval $ac_var=; unset $ac_var;} ;; 1865 esac ;; 1866 esac 1867 done 1868 (set) 2>&1 | 1869 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1870 *${as_nl}ac_space=\ *) 1871 sed -n \ 1872 "s/'\''/'\''\\\\'\'''\''/g; 1873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1874 ;; #( 1875 *) 1876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1877 ;; 1878 esac | 1879 sort 1880) 1881 echo 1882 1883 printf "%s\n" "## ----------------- ## 1884## Output variables. ## 1885## ----------------- ##" 1886 echo 1887 for ac_var in $ac_subst_vars 1888 do 1889 eval ac_val=\$$ac_var 1890 case $ac_val in 1891 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1892 esac 1893 printf "%s\n" "$ac_var='\''$ac_val'\''" 1894 done | sort 1895 echo 1896 1897 if test -n "$ac_subst_files"; then 1898 printf "%s\n" "## ------------------- ## 1899## File substitutions. ## 1900## ------------------- ##" 1901 echo 1902 for ac_var in $ac_subst_files 1903 do 1904 eval ac_val=\$$ac_var 1905 case $ac_val in 1906 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1907 esac 1908 printf "%s\n" "$ac_var='\''$ac_val'\''" 1909 done | sort 1910 echo 1911 fi 1912 1913 if test -s confdefs.h; then 1914 printf "%s\n" "## ----------- ## 1915## confdefs.h. ## 1916## ----------- ##" 1917 echo 1918 cat confdefs.h 1919 echo 1920 fi 1921 test "$ac_signal" != 0 && 1922 printf "%s\n" "$as_me: caught signal $ac_signal" 1923 printf "%s\n" "$as_me: exit $exit_status" 1924 } >&5 1925 rm -f core *.core core.conftest.* && 1926 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1927 exit $exit_status 1928' 0 1929for ac_signal in 1 2 13 15; do 1930 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1931done 1932ac_signal=0 1933 1934# confdefs.h avoids OS command line length limits that DEFS can exceed. 1935rm -f -r conftest* confdefs.h 1936 1937printf "%s\n" "/* confdefs.h */" > confdefs.h 1938 1939# Predefined preprocessor variables. 1940 1941printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1942 1943printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1944 1945printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1946 1947printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1948 1949printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1950 1951printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1952 1953 1954# Let the site file select an alternate cache file if it wants to. 1955# Prefer an explicitly selected file to automatically selected ones. 1956if test -n "$CONFIG_SITE"; then 1957 ac_site_files="$CONFIG_SITE" 1958elif test "x$prefix" != xNONE; then 1959 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1960else 1961 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1962fi 1963 1964for ac_site_file in $ac_site_files 1965do 1966 case $ac_site_file in #( 1967 */*) : 1968 ;; #( 1969 *) : 1970 ac_site_file=./$ac_site_file ;; 1971esac 1972 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1974printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1975 sed 's/^/| /' "$ac_site_file" >&5 1976 . "$ac_site_file" \ 1977 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1978printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1979as_fn_error $? "failed to load site script $ac_site_file 1980See \`config.log' for more details" "$LINENO" 5; } 1981 fi 1982done 1983 1984if test -r "$cache_file"; then 1985 # Some versions of bash will fail to source /dev/null (special files 1986 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1987 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1989printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1990 case $cache_file in 1991 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1992 *) . "./$cache_file";; 1993 esac 1994 fi 1995else 1996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1997printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 1998 >$cache_file 1999fi 2000 2001# Test code for whether the C compiler supports C89 (global declarations) 2002ac_c_conftest_c89_globals=' 2003/* Does the compiler advertise C89 conformance? 2004 Do not test the value of __STDC__, because some compilers set it to 0 2005 while being otherwise adequately conformant. */ 2006#if !defined __STDC__ 2007# error "Compiler does not advertise C89 conformance" 2008#endif 2009 2010#include <stddef.h> 2011#include <stdarg.h> 2012struct stat; 2013/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2014struct buf { int x; }; 2015struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2016static char *e (p, i) 2017 char **p; 2018 int i; 2019{ 2020 return p[i]; 2021} 2022static char *f (char * (*g) (char **, int), char **p, ...) 2023{ 2024 char *s; 2025 va_list v; 2026 va_start (v,p); 2027 s = g (p, va_arg (v,int)); 2028 va_end (v); 2029 return s; 2030} 2031 2032/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2033 function prototypes and stuff, but not \xHH hex character constants. 2034 These do not provoke an error unfortunately, instead are silently treated 2035 as an "x". The following induces an error, until -std is added to get 2036 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2037 array size at least. It is necessary to write \x00 == 0 to get something 2038 that is true only with -std. */ 2039int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2040 2041/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2042 inside strings and character constants. */ 2043#define FOO(x) '\''x'\'' 2044int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2045 2046int test (int i, double x); 2047struct s1 {int (*f) (int a);}; 2048struct s2 {int (*f) (double a);}; 2049int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2050 int, int);' 2051 2052# Test code for whether the C compiler supports C89 (body of main). 2053ac_c_conftest_c89_main=' 2054ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2055' 2056 2057# Test code for whether the C compiler supports C99 (global declarations) 2058ac_c_conftest_c99_globals=' 2059// Does the compiler advertise C99 conformance? 2060#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2061# error "Compiler does not advertise C99 conformance" 2062#endif 2063 2064#include <stdbool.h> 2065extern int puts (const char *); 2066extern int printf (const char *, ...); 2067extern int dprintf (int, const char *, ...); 2068extern void *malloc (size_t); 2069 2070// Check varargs macros. These examples are taken from C99 6.10.3.5. 2071// dprintf is used instead of fprintf to avoid needing to declare 2072// FILE and stderr. 2073#define debug(...) dprintf (2, __VA_ARGS__) 2074#define showlist(...) puts (#__VA_ARGS__) 2075#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2076static void 2077test_varargs_macros (void) 2078{ 2079 int x = 1234; 2080 int y = 5678; 2081 debug ("Flag"); 2082 debug ("X = %d\n", x); 2083 showlist (The first, second, and third items.); 2084 report (x>y, "x is %d but y is %d", x, y); 2085} 2086 2087// Check long long types. 2088#define BIG64 18446744073709551615ull 2089#define BIG32 4294967295ul 2090#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2091#if !BIG_OK 2092 #error "your preprocessor is broken" 2093#endif 2094#if BIG_OK 2095#else 2096 #error "your preprocessor is broken" 2097#endif 2098static long long int bignum = -9223372036854775807LL; 2099static unsigned long long int ubignum = BIG64; 2100 2101struct incomplete_array 2102{ 2103 int datasize; 2104 double data[]; 2105}; 2106 2107struct named_init { 2108 int number; 2109 const wchar_t *name; 2110 double average; 2111}; 2112 2113typedef const char *ccp; 2114 2115static inline int 2116test_restrict (ccp restrict text) 2117{ 2118 // See if C++-style comments work. 2119 // Iterate through items via the restricted pointer. 2120 // Also check for declarations in for loops. 2121 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2122 continue; 2123 return 0; 2124} 2125 2126// Check varargs and va_copy. 2127static bool 2128test_varargs (const char *format, ...) 2129{ 2130 va_list args; 2131 va_start (args, format); 2132 va_list args_copy; 2133 va_copy (args_copy, args); 2134 2135 const char *str = ""; 2136 int number = 0; 2137 float fnumber = 0; 2138 2139 while (*format) 2140 { 2141 switch (*format++) 2142 { 2143 case '\''s'\'': // string 2144 str = va_arg (args_copy, const char *); 2145 break; 2146 case '\''d'\'': // int 2147 number = va_arg (args_copy, int); 2148 break; 2149 case '\''f'\'': // float 2150 fnumber = va_arg (args_copy, double); 2151 break; 2152 default: 2153 break; 2154 } 2155 } 2156 va_end (args_copy); 2157 va_end (args); 2158 2159 return *str && number && fnumber; 2160} 2161' 2162 2163# Test code for whether the C compiler supports C99 (body of main). 2164ac_c_conftest_c99_main=' 2165 // Check bool. 2166 _Bool success = false; 2167 success |= (argc != 0); 2168 2169 // Check restrict. 2170 if (test_restrict ("String literal") == 0) 2171 success = true; 2172 char *restrict newvar = "Another string"; 2173 2174 // Check varargs. 2175 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2176 test_varargs_macros (); 2177 2178 // Check flexible array members. 2179 struct incomplete_array *ia = 2180 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2181 ia->datasize = 10; 2182 for (int i = 0; i < ia->datasize; ++i) 2183 ia->data[i] = i * 1.234; 2184 2185 // Check named initializers. 2186 struct named_init ni = { 2187 .number = 34, 2188 .name = L"Test wide string", 2189 .average = 543.34343, 2190 }; 2191 2192 ni.number = 58; 2193 2194 int dynamic_array[ni.number]; 2195 dynamic_array[0] = argv[0][0]; 2196 dynamic_array[ni.number - 1] = 543; 2197 2198 // work around unused variable warnings 2199 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2200 || dynamic_array[ni.number - 1] != 543); 2201' 2202 2203# Test code for whether the C compiler supports C11 (global declarations) 2204ac_c_conftest_c11_globals=' 2205// Does the compiler advertise C11 conformance? 2206#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2207# error "Compiler does not advertise C11 conformance" 2208#endif 2209 2210// Check _Alignas. 2211char _Alignas (double) aligned_as_double; 2212char _Alignas (0) no_special_alignment; 2213extern char aligned_as_int; 2214char _Alignas (0) _Alignas (int) aligned_as_int; 2215 2216// Check _Alignof. 2217enum 2218{ 2219 int_alignment = _Alignof (int), 2220 int_array_alignment = _Alignof (int[100]), 2221 char_alignment = _Alignof (char) 2222}; 2223_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2224 2225// Check _Noreturn. 2226int _Noreturn does_not_return (void) { for (;;) continue; } 2227 2228// Check _Static_assert. 2229struct test_static_assert 2230{ 2231 int x; 2232 _Static_assert (sizeof (int) <= sizeof (long int), 2233 "_Static_assert does not work in struct"); 2234 long int y; 2235}; 2236 2237// Check UTF-8 literals. 2238#define u8 syntax error! 2239char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2240 2241// Check duplicate typedefs. 2242typedef long *long_ptr; 2243typedef long int *long_ptr; 2244typedef long_ptr long_ptr; 2245 2246// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2247struct anonymous 2248{ 2249 union { 2250 struct { int i; int j; }; 2251 struct { int k; long int l; } w; 2252 }; 2253 int m; 2254} v1; 2255' 2256 2257# Test code for whether the C compiler supports C11 (body of main). 2258ac_c_conftest_c11_main=' 2259 _Static_assert ((offsetof (struct anonymous, i) 2260 == offsetof (struct anonymous, w.k)), 2261 "Anonymous union alignment botch"); 2262 v1.i = 2; 2263 v1.w.k = 5; 2264 ok |= v1.i != 5; 2265' 2266 2267# Test code for whether the C compiler supports C11 (complete). 2268ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2269${ac_c_conftest_c99_globals} 2270${ac_c_conftest_c11_globals} 2271 2272int 2273main (int argc, char **argv) 2274{ 2275 int ok = 0; 2276 ${ac_c_conftest_c89_main} 2277 ${ac_c_conftest_c99_main} 2278 ${ac_c_conftest_c11_main} 2279 return ok; 2280} 2281" 2282 2283# Test code for whether the C compiler supports C99 (complete). 2284ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2285${ac_c_conftest_c99_globals} 2286 2287int 2288main (int argc, char **argv) 2289{ 2290 int ok = 0; 2291 ${ac_c_conftest_c89_main} 2292 ${ac_c_conftest_c99_main} 2293 return ok; 2294} 2295" 2296 2297# Test code for whether the C compiler supports C89 (complete). 2298ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2299 2300int 2301main (int argc, char **argv) 2302{ 2303 int ok = 0; 2304 ${ac_c_conftest_c89_main} 2305 return ok; 2306} 2307" 2308 2309as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2310as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2311as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2312as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2313as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2314as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2315as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2316as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2317as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2318 2319# Auxiliary files required by this configure script. 2320ac_aux_files="config.guess config.sub compile missing install-sh" 2321 2322# Locations in which to look for auxiliary files. 2323ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2324 2325# Search for a directory containing all of the required auxiliary files, 2326# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2327# If we don't find one directory that contains all the files we need, 2328# we report the set of missing files from the *first* directory in 2329# $ac_aux_dir_candidates and give up. 2330ac_missing_aux_files="" 2331ac_first_candidate=: 2332printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2334as_found=false 2335for as_dir in $ac_aux_dir_candidates 2336do 2337 IFS=$as_save_IFS 2338 case $as_dir in #((( 2339 '') as_dir=./ ;; 2340 */) ;; 2341 *) as_dir=$as_dir/ ;; 2342 esac 2343 as_found=: 2344 2345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2346 ac_aux_dir_found=yes 2347 ac_install_sh= 2348 for ac_aux in $ac_aux_files 2349 do 2350 # As a special case, if "install-sh" is required, that requirement 2351 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2352 # and $ac_install_sh is set appropriately for whichever one is found. 2353 if test x"$ac_aux" = x"install-sh" 2354 then 2355 if test -f "${as_dir}install-sh"; then 2356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2357 ac_install_sh="${as_dir}install-sh -c" 2358 elif test -f "${as_dir}install.sh"; then 2359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2360 ac_install_sh="${as_dir}install.sh -c" 2361 elif test -f "${as_dir}shtool"; then 2362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2363 ac_install_sh="${as_dir}shtool install -c" 2364 else 2365 ac_aux_dir_found=no 2366 if $ac_first_candidate; then 2367 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2368 else 2369 break 2370 fi 2371 fi 2372 else 2373 if test -f "${as_dir}${ac_aux}"; then 2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2375 else 2376 ac_aux_dir_found=no 2377 if $ac_first_candidate; then 2378 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2379 else 2380 break 2381 fi 2382 fi 2383 fi 2384 done 2385 if test "$ac_aux_dir_found" = yes; then 2386 ac_aux_dir="$as_dir" 2387 break 2388 fi 2389 ac_first_candidate=false 2390 2391 as_found=false 2392done 2393IFS=$as_save_IFS 2394if $as_found 2395then : 2396 2397else $as_nop 2398 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2399fi 2400 2401 2402# These three variables are undocumented and unsupported, 2403# and are intended to be withdrawn in a future Autoconf release. 2404# They can cause serious problems if a builder's source tree is in a directory 2405# whose full name contains unusual characters. 2406if test -f "${ac_aux_dir}config.guess"; then 2407 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2408fi 2409if test -f "${ac_aux_dir}config.sub"; then 2410 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2411fi 2412if test -f "$ac_aux_dir/configure"; then 2413 ac_configure="$SHELL ${ac_aux_dir}configure" 2414fi 2415 2416# Check that the precious variables saved in the cache have kept the same 2417# value. 2418ac_cache_corrupted=false 2419for ac_var in $ac_precious_vars; do 2420 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2421 eval ac_new_set=\$ac_env_${ac_var}_set 2422 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2423 eval ac_new_val=\$ac_env_${ac_var}_value 2424 case $ac_old_set,$ac_new_set in 2425 set,) 2426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2427printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2428 ac_cache_corrupted=: ;; 2429 ,set) 2430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2431printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2432 ac_cache_corrupted=: ;; 2433 ,);; 2434 *) 2435 if test "x$ac_old_val" != "x$ac_new_val"; then 2436 # differences in whitespace do not lead to failure. 2437 ac_old_val_w=`echo x $ac_old_val` 2438 ac_new_val_w=`echo x $ac_new_val` 2439 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2441printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2442 ac_cache_corrupted=: 2443 else 2444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2445printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2446 eval $ac_var=\$ac_old_val 2447 fi 2448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2449printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2451printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2452 fi;; 2453 esac 2454 # Pass precious variables to config.status. 2455 if test "$ac_new_set" = set; then 2456 case $ac_new_val in 2457 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2458 *) ac_arg=$ac_var=$ac_new_val ;; 2459 esac 2460 case " $ac_configure_args " in 2461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2462 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2463 esac 2464 fi 2465done 2466if $ac_cache_corrupted; then 2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2468printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2470printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2471 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2472 and start over" "$LINENO" 5 2473fi 2474## -------------------- ## 2475## Main body of script. ## 2476## -------------------- ## 2477 2478ac_ext=c 2479ac_cpp='$CPP $CPPFLAGS' 2480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2482ac_compiler_gnu=$ac_cv_c_compiler_gnu 2483 2484 2485 2486ac_config_headers="$ac_config_headers config.h" 2487 2488 2489# Initialize Automake 2490am__api_version='1.16' 2491 2492 2493 2494 # Find a good install program. We prefer a C program (faster), 2495# so one script is as good as another. But avoid the broken or 2496# incompatible versions: 2497# SysV /etc/install, /usr/sbin/install 2498# SunOS /usr/etc/install 2499# IRIX /sbin/install 2500# AIX /bin/install 2501# AmigaOS /C/install, which installs bootblocks on floppy discs 2502# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2503# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2504# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2505# OS/2's system install, which has a completely different semantic 2506# ./install, which can be erroneously created by make from ./install.sh. 2507# Reject install programs that cannot install multiple files. 2508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2509printf %s "checking for a BSD-compatible install... " >&6; } 2510if test -z "$INSTALL"; then 2511if test ${ac_cv_path_install+y} 2512then : 2513 printf %s "(cached) " >&6 2514else $as_nop 2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2516for as_dir in $PATH 2517do 2518 IFS=$as_save_IFS 2519 case $as_dir in #((( 2520 '') as_dir=./ ;; 2521 */) ;; 2522 *) as_dir=$as_dir/ ;; 2523 esac 2524 # Account for fact that we put trailing slashes in our PATH walk. 2525case $as_dir in #(( 2526 ./ | /[cC]/* | \ 2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2529 /usr/ucb/* ) ;; 2530 *) 2531 # OSF1 and SCO ODT 3.0 have their own names for install. 2532 # Don't use installbsd from OSF since it installs stuff as root 2533 # by default. 2534 for ac_prog in ginstall scoinst install; do 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2537 if test $ac_prog = install && 2538 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2539 # AIX install. It has an incompatible calling convention. 2540 : 2541 elif test $ac_prog = install && 2542 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2543 # program-specific install script used by HP pwplus--don't use. 2544 : 2545 else 2546 rm -rf conftest.one conftest.two conftest.dir 2547 echo one > conftest.one 2548 echo two > conftest.two 2549 mkdir conftest.dir 2550 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2551 test -s conftest.one && test -s conftest.two && 2552 test -s conftest.dir/conftest.one && 2553 test -s conftest.dir/conftest.two 2554 then 2555 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2556 break 3 2557 fi 2558 fi 2559 fi 2560 done 2561 done 2562 ;; 2563esac 2564 2565 done 2566IFS=$as_save_IFS 2567 2568rm -rf conftest.one conftest.two conftest.dir 2569 2570fi 2571 if test ${ac_cv_path_install+y}; then 2572 INSTALL=$ac_cv_path_install 2573 else 2574 # As a last resort, use the slow shell script. Don't cache a 2575 # value for INSTALL within a source directory, because that will 2576 # break other packages using the cache if that directory is 2577 # removed, or if the value is a relative name. 2578 INSTALL=$ac_install_sh 2579 fi 2580fi 2581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2582printf "%s\n" "$INSTALL" >&6; } 2583 2584# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2585# It thinks the first close brace ends the variable substitution. 2586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2587 2588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2589 2590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2591 2592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2593printf %s "checking whether build environment is sane... " >&6; } 2594# Reject unsafe characters in $srcdir or the absolute working directory 2595# name. Accept space and tab only in the latter. 2596am_lf=' 2597' 2598case `pwd` in 2599 *[\\\"\#\$\&\'\`$am_lf]*) 2600 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2601esac 2602case $srcdir in 2603 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2604 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2605esac 2606 2607# Do 'set' in a subshell so we don't clobber the current shell's 2608# arguments. Must try -L first in case configure is actually a 2609# symlink; some systems play weird games with the mod time of symlinks 2610# (eg FreeBSD returns the mod time of the symlink's containing 2611# directory). 2612if ( 2613 am_has_slept=no 2614 for am_try in 1 2; do 2615 echo "timestamp, slept: $am_has_slept" > conftest.file 2616 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2617 if test "$*" = "X"; then 2618 # -L didn't work. 2619 set X `ls -t "$srcdir/configure" conftest.file` 2620 fi 2621 if test "$*" != "X $srcdir/configure conftest.file" \ 2622 && test "$*" != "X conftest.file $srcdir/configure"; then 2623 2624 # If neither matched, then we have a broken ls. This can happen 2625 # if, for instance, CONFIG_SHELL is bash and it inherits a 2626 # broken ls alias from the environment. This has actually 2627 # happened. Such a system could not be considered "sane". 2628 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2629 alias in your environment" "$LINENO" 5 2630 fi 2631 if test "$2" = conftest.file || test $am_try -eq 2; then 2632 break 2633 fi 2634 # Just in case. 2635 sleep 1 2636 am_has_slept=yes 2637 done 2638 test "$2" = conftest.file 2639 ) 2640then 2641 # Ok. 2642 : 2643else 2644 as_fn_error $? "newly created file is older than distributed files! 2645Check your system clock" "$LINENO" 5 2646fi 2647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2648printf "%s\n" "yes" >&6; } 2649# If we didn't sleep, we still need to ensure time stamps of config.status and 2650# generated files are strictly newer. 2651am_sleep_pid= 2652if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2653 ( sleep 1 ) & 2654 am_sleep_pid=$! 2655fi 2656 2657rm -f conftest.file 2658 2659test "$program_prefix" != NONE && 2660 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2661# Use a double $ so make ignores it. 2662test "$program_suffix" != NONE && 2663 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2664# Double any \ or $. 2665# By default was `s,x,x', remove it if useless. 2666ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2667program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2668 2669 2670# Expand $ac_aux_dir to an absolute path. 2671am_aux_dir=`cd "$ac_aux_dir" && pwd` 2672 2673 2674 if test x"${MISSING+set}" != xset; then 2675 MISSING="\${SHELL} '$am_aux_dir/missing'" 2676fi 2677# Use eval to expand $SHELL 2678if eval "$MISSING --is-lightweight"; then 2679 am_missing_run="$MISSING " 2680else 2681 am_missing_run= 2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2683printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2684fi 2685 2686if test x"${install_sh+set}" != xset; then 2687 case $am_aux_dir in 2688 *\ * | *\ *) 2689 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2690 *) 2691 install_sh="\${SHELL} $am_aux_dir/install-sh" 2692 esac 2693fi 2694 2695# Installed binaries are usually stripped using 'strip' when the user 2696# run "make install-strip". However 'strip' might not be the right 2697# tool to use in cross-compilation environments, therefore Automake 2698# will honor the 'STRIP' environment variable to overrule this program. 2699if test "$cross_compiling" != no; then 2700 if test -n "$ac_tool_prefix"; then 2701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2702set dummy ${ac_tool_prefix}strip; ac_word=$2 2703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2704printf %s "checking for $ac_word... " >&6; } 2705if test ${ac_cv_prog_STRIP+y} 2706then : 2707 printf %s "(cached) " >&6 2708else $as_nop 2709 if test -n "$STRIP"; then 2710 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2711else 2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2713for as_dir in $PATH 2714do 2715 IFS=$as_save_IFS 2716 case $as_dir in #((( 2717 '') as_dir=./ ;; 2718 */) ;; 2719 *) as_dir=$as_dir/ ;; 2720 esac 2721 for ac_exec_ext in '' $ac_executable_extensions; do 2722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2723 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2725 break 2 2726 fi 2727done 2728 done 2729IFS=$as_save_IFS 2730 2731fi 2732fi 2733STRIP=$ac_cv_prog_STRIP 2734if test -n "$STRIP"; then 2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2736printf "%s\n" "$STRIP" >&6; } 2737else 2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2739printf "%s\n" "no" >&6; } 2740fi 2741 2742 2743fi 2744if test -z "$ac_cv_prog_STRIP"; then 2745 ac_ct_STRIP=$STRIP 2746 # Extract the first word of "strip", so it can be a program name with args. 2747set dummy strip; ac_word=$2 2748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2749printf %s "checking for $ac_word... " >&6; } 2750if test ${ac_cv_prog_ac_ct_STRIP+y} 2751then : 2752 printf %s "(cached) " >&6 2753else $as_nop 2754 if test -n "$ac_ct_STRIP"; then 2755 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2756else 2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2758for as_dir in $PATH 2759do 2760 IFS=$as_save_IFS 2761 case $as_dir in #((( 2762 '') as_dir=./ ;; 2763 */) ;; 2764 *) as_dir=$as_dir/ ;; 2765 esac 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2768 ac_cv_prog_ac_ct_STRIP="strip" 2769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2770 break 2 2771 fi 2772done 2773 done 2774IFS=$as_save_IFS 2775 2776fi 2777fi 2778ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2779if test -n "$ac_ct_STRIP"; then 2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2781printf "%s\n" "$ac_ct_STRIP" >&6; } 2782else 2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2784printf "%s\n" "no" >&6; } 2785fi 2786 2787 if test "x$ac_ct_STRIP" = x; then 2788 STRIP=":" 2789 else 2790 case $cross_compiling:$ac_tool_warned in 2791yes:) 2792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2793printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2794ac_tool_warned=yes ;; 2795esac 2796 STRIP=$ac_ct_STRIP 2797 fi 2798else 2799 STRIP="$ac_cv_prog_STRIP" 2800fi 2801 2802fi 2803INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2804 2805 2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2807printf %s "checking for a race-free mkdir -p... " >&6; } 2808if test -z "$MKDIR_P"; then 2809 if test ${ac_cv_path_mkdir+y} 2810then : 2811 printf %s "(cached) " >&6 2812else $as_nop 2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2815do 2816 IFS=$as_save_IFS 2817 case $as_dir in #((( 2818 '') as_dir=./ ;; 2819 */) ;; 2820 *) as_dir=$as_dir/ ;; 2821 esac 2822 for ac_prog in mkdir gmkdir; do 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2825 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2826 'mkdir ('*'coreutils) '* | \ 2827 'BusyBox '* | \ 2828 'mkdir (fileutils) '4.1*) 2829 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2830 break 3;; 2831 esac 2832 done 2833 done 2834 done 2835IFS=$as_save_IFS 2836 2837fi 2838 2839 test -d ./--version && rmdir ./--version 2840 if test ${ac_cv_path_mkdir+y}; then 2841 MKDIR_P="$ac_cv_path_mkdir -p" 2842 else 2843 # As a last resort, use the slow shell script. Don't cache a 2844 # value for MKDIR_P within a source directory, because that will 2845 # break other packages using the cache if that directory is 2846 # removed, or if the value is a relative name. 2847 MKDIR_P="$ac_install_sh -d" 2848 fi 2849fi 2850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2851printf "%s\n" "$MKDIR_P" >&6; } 2852 2853for ac_prog in gawk mawk nawk awk 2854do 2855 # Extract the first word of "$ac_prog", so it can be a program name with args. 2856set dummy $ac_prog; ac_word=$2 2857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2858printf %s "checking for $ac_word... " >&6; } 2859if test ${ac_cv_prog_AWK+y} 2860then : 2861 printf %s "(cached) " >&6 2862else $as_nop 2863 if test -n "$AWK"; then 2864 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2865else 2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2867for as_dir in $PATH 2868do 2869 IFS=$as_save_IFS 2870 case $as_dir in #((( 2871 '') as_dir=./ ;; 2872 */) ;; 2873 *) as_dir=$as_dir/ ;; 2874 esac 2875 for ac_exec_ext in '' $ac_executable_extensions; do 2876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2877 ac_cv_prog_AWK="$ac_prog" 2878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2879 break 2 2880 fi 2881done 2882 done 2883IFS=$as_save_IFS 2884 2885fi 2886fi 2887AWK=$ac_cv_prog_AWK 2888if test -n "$AWK"; then 2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2890printf "%s\n" "$AWK" >&6; } 2891else 2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2893printf "%s\n" "no" >&6; } 2894fi 2895 2896 2897 test -n "$AWK" && break 2898done 2899 2900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2901printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2902set x ${MAKE-make} 2903ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2904if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2905then : 2906 printf %s "(cached) " >&6 2907else $as_nop 2908 cat >conftest.make <<\_ACEOF 2909SHELL = /bin/sh 2910all: 2911 @echo '@@@%%%=$(MAKE)=@@@%%%' 2912_ACEOF 2913# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2914case `${MAKE-make} -f conftest.make 2>/dev/null` in 2915 *@@@%%%=?*=@@@%%%*) 2916 eval ac_cv_prog_make_${ac_make}_set=yes;; 2917 *) 2918 eval ac_cv_prog_make_${ac_make}_set=no;; 2919esac 2920rm -f conftest.make 2921fi 2922if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2924printf "%s\n" "yes" >&6; } 2925 SET_MAKE= 2926else 2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2928printf "%s\n" "no" >&6; } 2929 SET_MAKE="MAKE=${MAKE-make}" 2930fi 2931 2932rm -rf .tst 2>/dev/null 2933mkdir .tst 2>/dev/null 2934if test -d .tst; then 2935 am__leading_dot=. 2936else 2937 am__leading_dot=_ 2938fi 2939rmdir .tst 2>/dev/null 2940 2941# Check whether --enable-silent-rules was given. 2942if test ${enable_silent_rules+y} 2943then : 2944 enableval=$enable_silent_rules; 2945fi 2946 2947case $enable_silent_rules in # ((( 2948 yes) AM_DEFAULT_VERBOSITY=0;; 2949 no) AM_DEFAULT_VERBOSITY=1;; 2950 *) AM_DEFAULT_VERBOSITY=1;; 2951esac 2952am_make=${MAKE-make} 2953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2954printf %s "checking whether $am_make supports nested variables... " >&6; } 2955if test ${am_cv_make_support_nested_variables+y} 2956then : 2957 printf %s "(cached) " >&6 2958else $as_nop 2959 if printf "%s\n" 'TRUE=$(BAR$(V)) 2960BAR0=false 2961BAR1=true 2962V=1 2963am__doit: 2964 @$(TRUE) 2965.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2966 am_cv_make_support_nested_variables=yes 2967else 2968 am_cv_make_support_nested_variables=no 2969fi 2970fi 2971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2972printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2973if test $am_cv_make_support_nested_variables = yes; then 2974 AM_V='$(V)' 2975 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2976else 2977 AM_V=$AM_DEFAULT_VERBOSITY 2978 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2979fi 2980AM_BACKSLASH='\' 2981 2982if test "`cd $srcdir && pwd`" != "`pwd`"; then 2983 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2984 # is not polluted with repeated "-I." 2985 am__isrc=' -I$(srcdir)' 2986 # test to see if srcdir already configured 2987 if test -f $srcdir/config.status; then 2988 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2989 fi 2990fi 2991 2992# test whether we have cygpath 2993if test -z "$CYGPATH_W"; then 2994 if (cygpath --version) >/dev/null 2>/dev/null; then 2995 CYGPATH_W='cygpath -w' 2996 else 2997 CYGPATH_W=echo 2998 fi 2999fi 3000 3001 3002# Define the identity of the package. 3003 PACKAGE='fstobdf' 3004 VERSION='1.0.7' 3005 3006 3007printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3008 3009 3010printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3011 3012# Some tools Automake needs. 3013 3014ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3015 3016 3017AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3018 3019 3020AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3021 3022 3023AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3024 3025 3026MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3027 3028# For better backward compatibility. To be removed once Automake 1.9.x 3029# dies out for good. For more background, see: 3030# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3031# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3032mkdir_p='$(MKDIR_P)' 3033 3034# We need awk for the "check" target (and possibly the TAP driver). The 3035# system "awk" is bad on some platforms. 3036# Always define AMTAR for backward compatibility. Yes, it's still used 3037# in the wild :-( We should find a proper way to deprecate it ... 3038AMTAR='$${TAR-tar}' 3039 3040 3041# We'll loop over all known methods to create a tar archive until one works. 3042_am_tools='gnutar pax cpio none' 3043 3044am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3045 3046 3047 3048 3049 3050# Variables for tags utilities; see am/tags.am 3051if test -z "$CTAGS"; then 3052 CTAGS=ctags 3053fi 3054 3055if test -z "$ETAGS"; then 3056 ETAGS=etags 3057fi 3058 3059if test -z "$CSCOPE"; then 3060 CSCOPE=cscope 3061fi 3062 3063 3064 3065# POSIX will say in a future version that running "rm -f" with no argument 3066# is OK; and we want to be able to make that assumption in our Makefile 3067# recipes. So use an aggressive probe to check that the usage we want is 3068# actually supported "in the wild" to an acceptable degree. 3069# See automake bug#10828. 3070# To make any issue more visible, cause the running configure to be aborted 3071# by default if the 'rm' program in use doesn't match our expectations; the 3072# user can still override this though. 3073if rm -f && rm -fr && rm -rf; then : OK; else 3074 cat >&2 <<'END' 3075Oops! 3076 3077Your 'rm' program seems unable to run without file operands specified 3078on the command line, even when the '-f' option is present. This is contrary 3079to the behaviour of most rm programs out there, and not conforming with 3080the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3081 3082Please tell bug-automake@gnu.org about your system, including the value 3083of your $PATH and any error possibly output before this message. This 3084can help us improve future automake versions. 3085 3086END 3087 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3088 echo 'Configuration will proceed anyway, since you have set the' >&2 3089 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3090 echo >&2 3091 else 3092 cat >&2 <<'END' 3093Aborting the configuration process, to ensure you take notice of the issue. 3094 3095You can download and install GNU coreutils to get an 'rm' implementation 3096that behaves properly: <https://www.gnu.org/software/coreutils/>. 3097 3098If you want to complete the configuration process using your problematic 3099'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3100to "yes", and re-run configure. 3101 3102END 3103 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3104 fi 3105fi 3106 3107 3108# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129DEPDIR="${am__leading_dot}deps" 3130 3131ac_config_commands="$ac_config_commands depfiles" 3132 3133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3134printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3135cat > confinc.mk << 'END' 3136am__doit: 3137 @echo this is the am__doit target >confinc.out 3138.PHONY: am__doit 3139END 3140am__include="#" 3141am__quote= 3142# BSD make does it like this. 3143echo '.include "confinc.mk" # ignored' > confmf.BSD 3144# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3145echo 'include confinc.mk # ignored' > confmf.GNU 3146_am_result=no 3147for s in GNU BSD; do 3148 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3149 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3150 ac_status=$? 3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3152 (exit $ac_status); } 3153 case $?:`cat confinc.out 2>/dev/null` in #( 3154 '0:this is the am__doit target') : 3155 case $s in #( 3156 BSD) : 3157 am__include='.include' am__quote='"' ;; #( 3158 *) : 3159 am__include='include' am__quote='' ;; 3160esac ;; #( 3161 *) : 3162 ;; 3163esac 3164 if test "$am__include" != "#"; then 3165 _am_result="yes ($s style)" 3166 break 3167 fi 3168done 3169rm -f confinc.* confmf.* 3170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3171printf "%s\n" "${_am_result}" >&6; } 3172 3173# Check whether --enable-dependency-tracking was given. 3174if test ${enable_dependency_tracking+y} 3175then : 3176 enableval=$enable_dependency_tracking; 3177fi 3178 3179if test "x$enable_dependency_tracking" != xno; then 3180 am_depcomp="$ac_aux_dir/depcomp" 3181 AMDEPBACKSLASH='\' 3182 am__nodep='_no' 3183fi 3184 if test "x$enable_dependency_tracking" != xno; then 3185 AMDEP_TRUE= 3186 AMDEP_FALSE='#' 3187else 3188 AMDEP_TRUE='#' 3189 AMDEP_FALSE= 3190fi 3191 3192 3193ac_ext=c 3194ac_cpp='$CPP $CPPFLAGS' 3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3197ac_compiler_gnu=$ac_cv_c_compiler_gnu 3198if test -n "$ac_tool_prefix"; then 3199 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3200set dummy ${ac_tool_prefix}gcc; ac_word=$2 3201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3202printf %s "checking for $ac_word... " >&6; } 3203if test ${ac_cv_prog_CC+y} 3204then : 3205 printf %s "(cached) " >&6 3206else $as_nop 3207 if test -n "$CC"; then 3208 ac_cv_prog_CC="$CC" # Let the user override the test. 3209else 3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211for as_dir in $PATH 3212do 3213 IFS=$as_save_IFS 3214 case $as_dir in #((( 3215 '') as_dir=./ ;; 3216 */) ;; 3217 *) as_dir=$as_dir/ ;; 3218 esac 3219 for ac_exec_ext in '' $ac_executable_extensions; do 3220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3221 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3223 break 2 3224 fi 3225done 3226 done 3227IFS=$as_save_IFS 3228 3229fi 3230fi 3231CC=$ac_cv_prog_CC 3232if test -n "$CC"; then 3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3234printf "%s\n" "$CC" >&6; } 3235else 3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3237printf "%s\n" "no" >&6; } 3238fi 3239 3240 3241fi 3242if test -z "$ac_cv_prog_CC"; then 3243 ac_ct_CC=$CC 3244 # Extract the first word of "gcc", so it can be a program name with args. 3245set dummy gcc; ac_word=$2 3246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3247printf %s "checking for $ac_word... " >&6; } 3248if test ${ac_cv_prog_ac_ct_CC+y} 3249then : 3250 printf %s "(cached) " >&6 3251else $as_nop 3252 if test -n "$ac_ct_CC"; then 3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3254else 3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3256for as_dir in $PATH 3257do 3258 IFS=$as_save_IFS 3259 case $as_dir in #((( 3260 '') as_dir=./ ;; 3261 */) ;; 3262 *) as_dir=$as_dir/ ;; 3263 esac 3264 for ac_exec_ext in '' $ac_executable_extensions; do 3265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3266 ac_cv_prog_ac_ct_CC="gcc" 3267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3268 break 2 3269 fi 3270done 3271 done 3272IFS=$as_save_IFS 3273 3274fi 3275fi 3276ac_ct_CC=$ac_cv_prog_ac_ct_CC 3277if test -n "$ac_ct_CC"; then 3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3279printf "%s\n" "$ac_ct_CC" >&6; } 3280else 3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3282printf "%s\n" "no" >&6; } 3283fi 3284 3285 if test "x$ac_ct_CC" = x; then 3286 CC="" 3287 else 3288 case $cross_compiling:$ac_tool_warned in 3289yes:) 3290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3291printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3292ac_tool_warned=yes ;; 3293esac 3294 CC=$ac_ct_CC 3295 fi 3296else 3297 CC="$ac_cv_prog_CC" 3298fi 3299 3300if test -z "$CC"; then 3301 if test -n "$ac_tool_prefix"; then 3302 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3303set dummy ${ac_tool_prefix}cc; ac_word=$2 3304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3305printf %s "checking for $ac_word... " >&6; } 3306if test ${ac_cv_prog_CC+y} 3307then : 3308 printf %s "(cached) " >&6 3309else $as_nop 3310 if test -n "$CC"; then 3311 ac_cv_prog_CC="$CC" # Let the user override the test. 3312else 3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3314for as_dir in $PATH 3315do 3316 IFS=$as_save_IFS 3317 case $as_dir in #((( 3318 '') as_dir=./ ;; 3319 */) ;; 3320 *) as_dir=$as_dir/ ;; 3321 esac 3322 for ac_exec_ext in '' $ac_executable_extensions; do 3323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3324 ac_cv_prog_CC="${ac_tool_prefix}cc" 3325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3326 break 2 3327 fi 3328done 3329 done 3330IFS=$as_save_IFS 3331 3332fi 3333fi 3334CC=$ac_cv_prog_CC 3335if test -n "$CC"; then 3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3337printf "%s\n" "$CC" >&6; } 3338else 3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3340printf "%s\n" "no" >&6; } 3341fi 3342 3343 3344 fi 3345fi 3346if test -z "$CC"; then 3347 # Extract the first word of "cc", so it can be a program name with args. 3348set dummy cc; ac_word=$2 3349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3350printf %s "checking for $ac_word... " >&6; } 3351if test ${ac_cv_prog_CC+y} 3352then : 3353 printf %s "(cached) " >&6 3354else $as_nop 3355 if test -n "$CC"; then 3356 ac_cv_prog_CC="$CC" # Let the user override the test. 3357else 3358 ac_prog_rejected=no 3359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3360for as_dir in $PATH 3361do 3362 IFS=$as_save_IFS 3363 case $as_dir in #((( 3364 '') as_dir=./ ;; 3365 */) ;; 3366 *) as_dir=$as_dir/ ;; 3367 esac 3368 for ac_exec_ext in '' $ac_executable_extensions; do 3369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3370 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3371 ac_prog_rejected=yes 3372 continue 3373 fi 3374 ac_cv_prog_CC="cc" 3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3376 break 2 3377 fi 3378done 3379 done 3380IFS=$as_save_IFS 3381 3382if test $ac_prog_rejected = yes; then 3383 # We found a bogon in the path, so make sure we never use it. 3384 set dummy $ac_cv_prog_CC 3385 shift 3386 if test $# != 0; then 3387 # We chose a different compiler from the bogus one. 3388 # However, it has the same basename, so the bogon will be chosen 3389 # first if we set CC to just the basename; use the full file name. 3390 shift 3391 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3392 fi 3393fi 3394fi 3395fi 3396CC=$ac_cv_prog_CC 3397if test -n "$CC"; then 3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3399printf "%s\n" "$CC" >&6; } 3400else 3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3402printf "%s\n" "no" >&6; } 3403fi 3404 3405 3406fi 3407if test -z "$CC"; then 3408 if test -n "$ac_tool_prefix"; then 3409 for ac_prog in cl.exe 3410 do 3411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3412set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3414printf %s "checking for $ac_word... " >&6; } 3415if test ${ac_cv_prog_CC+y} 3416then : 3417 printf %s "(cached) " >&6 3418else $as_nop 3419 if test -n "$CC"; then 3420 ac_cv_prog_CC="$CC" # Let the user override the test. 3421else 3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3423for as_dir in $PATH 3424do 3425 IFS=$as_save_IFS 3426 case $as_dir in #((( 3427 '') as_dir=./ ;; 3428 */) ;; 3429 *) as_dir=$as_dir/ ;; 3430 esac 3431 for ac_exec_ext in '' $ac_executable_extensions; do 3432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3435 break 2 3436 fi 3437done 3438 done 3439IFS=$as_save_IFS 3440 3441fi 3442fi 3443CC=$ac_cv_prog_CC 3444if test -n "$CC"; then 3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3446printf "%s\n" "$CC" >&6; } 3447else 3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3449printf "%s\n" "no" >&6; } 3450fi 3451 3452 3453 test -n "$CC" && break 3454 done 3455fi 3456if test -z "$CC"; then 3457 ac_ct_CC=$CC 3458 for ac_prog in cl.exe 3459do 3460 # Extract the first word of "$ac_prog", so it can be a program name with args. 3461set dummy $ac_prog; ac_word=$2 3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3463printf %s "checking for $ac_word... " >&6; } 3464if test ${ac_cv_prog_ac_ct_CC+y} 3465then : 3466 printf %s "(cached) " >&6 3467else $as_nop 3468 if test -n "$ac_ct_CC"; then 3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3470else 3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3472for as_dir in $PATH 3473do 3474 IFS=$as_save_IFS 3475 case $as_dir in #((( 3476 '') as_dir=./ ;; 3477 */) ;; 3478 *) as_dir=$as_dir/ ;; 3479 esac 3480 for ac_exec_ext in '' $ac_executable_extensions; do 3481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3482 ac_cv_prog_ac_ct_CC="$ac_prog" 3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3484 break 2 3485 fi 3486done 3487 done 3488IFS=$as_save_IFS 3489 3490fi 3491fi 3492ac_ct_CC=$ac_cv_prog_ac_ct_CC 3493if test -n "$ac_ct_CC"; then 3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3495printf "%s\n" "$ac_ct_CC" >&6; } 3496else 3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3498printf "%s\n" "no" >&6; } 3499fi 3500 3501 3502 test -n "$ac_ct_CC" && break 3503done 3504 3505 if test "x$ac_ct_CC" = x; then 3506 CC="" 3507 else 3508 case $cross_compiling:$ac_tool_warned in 3509yes:) 3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3511printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3512ac_tool_warned=yes ;; 3513esac 3514 CC=$ac_ct_CC 3515 fi 3516fi 3517 3518fi 3519if test -z "$CC"; then 3520 if test -n "$ac_tool_prefix"; then 3521 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3522set dummy ${ac_tool_prefix}clang; ac_word=$2 3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3524printf %s "checking for $ac_word... " >&6; } 3525if test ${ac_cv_prog_CC+y} 3526then : 3527 printf %s "(cached) " >&6 3528else $as_nop 3529 if test -n "$CC"; then 3530 ac_cv_prog_CC="$CC" # Let the user override the test. 3531else 3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3533for as_dir in $PATH 3534do 3535 IFS=$as_save_IFS 3536 case $as_dir in #((( 3537 '') as_dir=./ ;; 3538 */) ;; 3539 *) as_dir=$as_dir/ ;; 3540 esac 3541 for ac_exec_ext in '' $ac_executable_extensions; do 3542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3543 ac_cv_prog_CC="${ac_tool_prefix}clang" 3544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3545 break 2 3546 fi 3547done 3548 done 3549IFS=$as_save_IFS 3550 3551fi 3552fi 3553CC=$ac_cv_prog_CC 3554if test -n "$CC"; then 3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3556printf "%s\n" "$CC" >&6; } 3557else 3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3559printf "%s\n" "no" >&6; } 3560fi 3561 3562 3563fi 3564if test -z "$ac_cv_prog_CC"; then 3565 ac_ct_CC=$CC 3566 # Extract the first word of "clang", so it can be a program name with args. 3567set dummy clang; ac_word=$2 3568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3569printf %s "checking for $ac_word... " >&6; } 3570if test ${ac_cv_prog_ac_ct_CC+y} 3571then : 3572 printf %s "(cached) " >&6 3573else $as_nop 3574 if test -n "$ac_ct_CC"; then 3575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3576else 3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3578for as_dir in $PATH 3579do 3580 IFS=$as_save_IFS 3581 case $as_dir in #((( 3582 '') as_dir=./ ;; 3583 */) ;; 3584 *) as_dir=$as_dir/ ;; 3585 esac 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3588 ac_cv_prog_ac_ct_CC="clang" 3589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3590 break 2 3591 fi 3592done 3593 done 3594IFS=$as_save_IFS 3595 3596fi 3597fi 3598ac_ct_CC=$ac_cv_prog_ac_ct_CC 3599if test -n "$ac_ct_CC"; then 3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3601printf "%s\n" "$ac_ct_CC" >&6; } 3602else 3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3604printf "%s\n" "no" >&6; } 3605fi 3606 3607 if test "x$ac_ct_CC" = x; then 3608 CC="" 3609 else 3610 case $cross_compiling:$ac_tool_warned in 3611yes:) 3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3613printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3614ac_tool_warned=yes ;; 3615esac 3616 CC=$ac_ct_CC 3617 fi 3618else 3619 CC="$ac_cv_prog_CC" 3620fi 3621 3622fi 3623 3624 3625test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3626printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3627as_fn_error $? "no acceptable C compiler found in \$PATH 3628See \`config.log' for more details" "$LINENO" 5; } 3629 3630# Provide some information about the compiler. 3631printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3632set X $ac_compile 3633ac_compiler=$2 3634for ac_option in --version -v -V -qversion -version; do 3635 { { ac_try="$ac_compiler $ac_option >&5" 3636case "(($ac_try" in 3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3638 *) ac_try_echo=$ac_try;; 3639esac 3640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3641printf "%s\n" "$ac_try_echo"; } >&5 3642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3643 ac_status=$? 3644 if test -s conftest.err; then 3645 sed '10a\ 3646... rest of stderr output deleted ... 3647 10q' conftest.err >conftest.er1 3648 cat conftest.er1 >&5 3649 fi 3650 rm -f conftest.er1 conftest.err 3651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3652 test $ac_status = 0; } 3653done 3654 3655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656/* end confdefs.h. */ 3657 3658int 3659main (void) 3660{ 3661 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666ac_clean_files_save=$ac_clean_files 3667ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3668# Try to create an executable without -o first, disregard a.out. 3669# It will help us diagnose broken compilers, and finding out an intuition 3670# of exeext. 3671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3672printf %s "checking whether the C compiler works... " >&6; } 3673ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3674 3675# The possible output files: 3676ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3677 3678ac_rmfiles= 3679for ac_file in $ac_files 3680do 3681 case $ac_file in 3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3683 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3684 esac 3685done 3686rm -f $ac_rmfiles 3687 3688if { { ac_try="$ac_link_default" 3689case "(($ac_try" in 3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3691 *) ac_try_echo=$ac_try;; 3692esac 3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3694printf "%s\n" "$ac_try_echo"; } >&5 3695 (eval "$ac_link_default") 2>&5 3696 ac_status=$? 3697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3698 test $ac_status = 0; } 3699then : 3700 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3701# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3702# in a Makefile. We should not override ac_cv_exeext if it was cached, 3703# so that the user can short-circuit this test for compilers unknown to 3704# Autoconf. 3705for ac_file in $ac_files '' 3706do 3707 test -f "$ac_file" || continue 3708 case $ac_file in 3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3710 ;; 3711 [ab].out ) 3712 # We found the default executable, but exeext='' is most 3713 # certainly right. 3714 break;; 3715 *.* ) 3716 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3717 then :; else 3718 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3719 fi 3720 # We set ac_cv_exeext here because the later test for it is not 3721 # safe: cross compilers may not add the suffix if given an `-o' 3722 # argument, so we may need to know it at that point already. 3723 # Even if this section looks crufty: it has the advantage of 3724 # actually working. 3725 break;; 3726 * ) 3727 break;; 3728 esac 3729done 3730test "$ac_cv_exeext" = no && ac_cv_exeext= 3731 3732else $as_nop 3733 ac_file='' 3734fi 3735if test -z "$ac_file" 3736then : 3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3738printf "%s\n" "no" >&6; } 3739printf "%s\n" "$as_me: failed program was:" >&5 3740sed 's/^/| /' conftest.$ac_ext >&5 3741 3742{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3743printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3744as_fn_error 77 "C compiler cannot create executables 3745See \`config.log' for more details" "$LINENO" 5; } 3746else $as_nop 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3748printf "%s\n" "yes" >&6; } 3749fi 3750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3751printf %s "checking for C compiler default output file name... " >&6; } 3752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3753printf "%s\n" "$ac_file" >&6; } 3754ac_exeext=$ac_cv_exeext 3755 3756rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3757ac_clean_files=$ac_clean_files_save 3758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3759printf %s "checking for suffix of executables... " >&6; } 3760if { { ac_try="$ac_link" 3761case "(($ac_try" in 3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3763 *) ac_try_echo=$ac_try;; 3764esac 3765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3766printf "%s\n" "$ac_try_echo"; } >&5 3767 (eval "$ac_link") 2>&5 3768 ac_status=$? 3769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3770 test $ac_status = 0; } 3771then : 3772 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3773# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3774# work properly (i.e., refer to `conftest.exe'), while it won't with 3775# `rm'. 3776for ac_file in conftest.exe conftest conftest.*; do 3777 test -f "$ac_file" || continue 3778 case $ac_file in 3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3781 break;; 3782 * ) break;; 3783 esac 3784done 3785else $as_nop 3786 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3787printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3788as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3789See \`config.log' for more details" "$LINENO" 5; } 3790fi 3791rm -f conftest conftest$ac_cv_exeext 3792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3793printf "%s\n" "$ac_cv_exeext" >&6; } 3794 3795rm -f conftest.$ac_ext 3796EXEEXT=$ac_cv_exeext 3797ac_exeext=$EXEEXT 3798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3799/* end confdefs.h. */ 3800#include <stdio.h> 3801int 3802main (void) 3803{ 3804FILE *f = fopen ("conftest.out", "w"); 3805 return ferror (f) || fclose (f) != 0; 3806 3807 ; 3808 return 0; 3809} 3810_ACEOF 3811ac_clean_files="$ac_clean_files conftest.out" 3812# Check that the compiler produces executables we can run. If not, either 3813# the compiler is broken, or we cross compile. 3814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3815printf %s "checking whether we are cross compiling... " >&6; } 3816if test "$cross_compiling" != yes; then 3817 { { ac_try="$ac_link" 3818case "(($ac_try" in 3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3820 *) ac_try_echo=$ac_try;; 3821esac 3822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3823printf "%s\n" "$ac_try_echo"; } >&5 3824 (eval "$ac_link") 2>&5 3825 ac_status=$? 3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3827 test $ac_status = 0; } 3828 if { ac_try='./conftest$ac_cv_exeext' 3829 { { case "(($ac_try" in 3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3831 *) ac_try_echo=$ac_try;; 3832esac 3833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3834printf "%s\n" "$ac_try_echo"; } >&5 3835 (eval "$ac_try") 2>&5 3836 ac_status=$? 3837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3838 test $ac_status = 0; }; }; then 3839 cross_compiling=no 3840 else 3841 if test "$cross_compiling" = maybe; then 3842 cross_compiling=yes 3843 else 3844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3845printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3846as_fn_error 77 "cannot run C compiled programs. 3847If you meant to cross compile, use \`--host'. 3848See \`config.log' for more details" "$LINENO" 5; } 3849 fi 3850 fi 3851fi 3852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3853printf "%s\n" "$cross_compiling" >&6; } 3854 3855rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3856ac_clean_files=$ac_clean_files_save 3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3858printf %s "checking for suffix of object files... " >&6; } 3859if test ${ac_cv_objext+y} 3860then : 3861 printf %s "(cached) " >&6 3862else $as_nop 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865 3866int 3867main (void) 3868{ 3869 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874rm -f conftest.o conftest.obj 3875if { { ac_try="$ac_compile" 3876case "(($ac_try" in 3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3878 *) ac_try_echo=$ac_try;; 3879esac 3880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3881printf "%s\n" "$ac_try_echo"; } >&5 3882 (eval "$ac_compile") 2>&5 3883 ac_status=$? 3884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3885 test $ac_status = 0; } 3886then : 3887 for ac_file in conftest.o conftest.obj conftest.*; do 3888 test -f "$ac_file" || continue; 3889 case $ac_file in 3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3891 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3892 break;; 3893 esac 3894done 3895else $as_nop 3896 printf "%s\n" "$as_me: failed program was:" >&5 3897sed 's/^/| /' conftest.$ac_ext >&5 3898 3899{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3900printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3901as_fn_error $? "cannot compute suffix of object files: cannot compile 3902See \`config.log' for more details" "$LINENO" 5; } 3903fi 3904rm -f conftest.$ac_cv_objext conftest.$ac_ext 3905fi 3906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3907printf "%s\n" "$ac_cv_objext" >&6; } 3908OBJEXT=$ac_cv_objext 3909ac_objext=$OBJEXT 3910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3911printf %s "checking whether the compiler supports GNU C... " >&6; } 3912if test ${ac_cv_c_compiler_gnu+y} 3913then : 3914 printf %s "(cached) " >&6 3915else $as_nop 3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3917/* end confdefs.h. */ 3918 3919int 3920main (void) 3921{ 3922#ifndef __GNUC__ 3923 choke me 3924#endif 3925 3926 ; 3927 return 0; 3928} 3929_ACEOF 3930if ac_fn_c_try_compile "$LINENO" 3931then : 3932 ac_compiler_gnu=yes 3933else $as_nop 3934 ac_compiler_gnu=no 3935fi 3936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3937ac_cv_c_compiler_gnu=$ac_compiler_gnu 3938 3939fi 3940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3941printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3942ac_compiler_gnu=$ac_cv_c_compiler_gnu 3943 3944if test $ac_compiler_gnu = yes; then 3945 GCC=yes 3946else 3947 GCC= 3948fi 3949ac_test_CFLAGS=${CFLAGS+y} 3950ac_save_CFLAGS=$CFLAGS 3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3952printf %s "checking whether $CC accepts -g... " >&6; } 3953if test ${ac_cv_prog_cc_g+y} 3954then : 3955 printf %s "(cached) " >&6 3956else $as_nop 3957 ac_save_c_werror_flag=$ac_c_werror_flag 3958 ac_c_werror_flag=yes 3959 ac_cv_prog_cc_g=no 3960 CFLAGS="-g" 3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3962/* end confdefs.h. */ 3963 3964int 3965main (void) 3966{ 3967 3968 ; 3969 return 0; 3970} 3971_ACEOF 3972if ac_fn_c_try_compile "$LINENO" 3973then : 3974 ac_cv_prog_cc_g=yes 3975else $as_nop 3976 CFLAGS="" 3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3978/* end confdefs.h. */ 3979 3980int 3981main (void) 3982{ 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988if ac_fn_c_try_compile "$LINENO" 3989then : 3990 3991else $as_nop 3992 ac_c_werror_flag=$ac_save_c_werror_flag 3993 CFLAGS="-g" 3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995/* end confdefs.h. */ 3996 3997int 3998main (void) 3999{ 4000 4001 ; 4002 return 0; 4003} 4004_ACEOF 4005if ac_fn_c_try_compile "$LINENO" 4006then : 4007 ac_cv_prog_cc_g=yes 4008fi 4009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4010fi 4011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4012fi 4013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4014 ac_c_werror_flag=$ac_save_c_werror_flag 4015fi 4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4017printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4018if test $ac_test_CFLAGS; then 4019 CFLAGS=$ac_save_CFLAGS 4020elif test $ac_cv_prog_cc_g = yes; then 4021 if test "$GCC" = yes; then 4022 CFLAGS="-g -O2" 4023 else 4024 CFLAGS="-g" 4025 fi 4026else 4027 if test "$GCC" = yes; then 4028 CFLAGS="-O2" 4029 else 4030 CFLAGS= 4031 fi 4032fi 4033ac_prog_cc_stdc=no 4034if test x$ac_prog_cc_stdc = xno 4035then : 4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4037printf %s "checking for $CC option to enable C11 features... " >&6; } 4038if test ${ac_cv_prog_cc_c11+y} 4039then : 4040 printf %s "(cached) " >&6 4041else $as_nop 4042 ac_cv_prog_cc_c11=no 4043ac_save_CC=$CC 4044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4045/* end confdefs.h. */ 4046$ac_c_conftest_c11_program 4047_ACEOF 4048for ac_arg in '' -std=gnu11 4049do 4050 CC="$ac_save_CC $ac_arg" 4051 if ac_fn_c_try_compile "$LINENO" 4052then : 4053 ac_cv_prog_cc_c11=$ac_arg 4054fi 4055rm -f core conftest.err conftest.$ac_objext conftest.beam 4056 test "x$ac_cv_prog_cc_c11" != "xno" && break 4057done 4058rm -f conftest.$ac_ext 4059CC=$ac_save_CC 4060fi 4061 4062if test "x$ac_cv_prog_cc_c11" = xno 4063then : 4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4065printf "%s\n" "unsupported" >&6; } 4066else $as_nop 4067 if test "x$ac_cv_prog_cc_c11" = x 4068then : 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4070printf "%s\n" "none needed" >&6; } 4071else $as_nop 4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4073printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4074 CC="$CC $ac_cv_prog_cc_c11" 4075fi 4076 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4077 ac_prog_cc_stdc=c11 4078fi 4079fi 4080if test x$ac_prog_cc_stdc = xno 4081then : 4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4083printf %s "checking for $CC option to enable C99 features... " >&6; } 4084if test ${ac_cv_prog_cc_c99+y} 4085then : 4086 printf %s "(cached) " >&6 4087else $as_nop 4088 ac_cv_prog_cc_c99=no 4089ac_save_CC=$CC 4090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092$ac_c_conftest_c99_program 4093_ACEOF 4094for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4095do 4096 CC="$ac_save_CC $ac_arg" 4097 if ac_fn_c_try_compile "$LINENO" 4098then : 4099 ac_cv_prog_cc_c99=$ac_arg 4100fi 4101rm -f core conftest.err conftest.$ac_objext conftest.beam 4102 test "x$ac_cv_prog_cc_c99" != "xno" && break 4103done 4104rm -f conftest.$ac_ext 4105CC=$ac_save_CC 4106fi 4107 4108if test "x$ac_cv_prog_cc_c99" = xno 4109then : 4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4111printf "%s\n" "unsupported" >&6; } 4112else $as_nop 4113 if test "x$ac_cv_prog_cc_c99" = x 4114then : 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4116printf "%s\n" "none needed" >&6; } 4117else $as_nop 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4119printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4120 CC="$CC $ac_cv_prog_cc_c99" 4121fi 4122 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4123 ac_prog_cc_stdc=c99 4124fi 4125fi 4126if test x$ac_prog_cc_stdc = xno 4127then : 4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4129printf %s "checking for $CC option to enable C89 features... " >&6; } 4130if test ${ac_cv_prog_cc_c89+y} 4131then : 4132 printf %s "(cached) " >&6 4133else $as_nop 4134 ac_cv_prog_cc_c89=no 4135ac_save_CC=$CC 4136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4137/* end confdefs.h. */ 4138$ac_c_conftest_c89_program 4139_ACEOF 4140for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4141do 4142 CC="$ac_save_CC $ac_arg" 4143 if ac_fn_c_try_compile "$LINENO" 4144then : 4145 ac_cv_prog_cc_c89=$ac_arg 4146fi 4147rm -f core conftest.err conftest.$ac_objext conftest.beam 4148 test "x$ac_cv_prog_cc_c89" != "xno" && break 4149done 4150rm -f conftest.$ac_ext 4151CC=$ac_save_CC 4152fi 4153 4154if test "x$ac_cv_prog_cc_c89" = xno 4155then : 4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4157printf "%s\n" "unsupported" >&6; } 4158else $as_nop 4159 if test "x$ac_cv_prog_cc_c89" = x 4160then : 4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4162printf "%s\n" "none needed" >&6; } 4163else $as_nop 4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4165printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4166 CC="$CC $ac_cv_prog_cc_c89" 4167fi 4168 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4169 ac_prog_cc_stdc=c89 4170fi 4171fi 4172 4173ac_ext=c 4174ac_cpp='$CPP $CPPFLAGS' 4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4177ac_compiler_gnu=$ac_cv_c_compiler_gnu 4178 4179 4180 ac_ext=c 4181ac_cpp='$CPP $CPPFLAGS' 4182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4184ac_compiler_gnu=$ac_cv_c_compiler_gnu 4185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4186printf %s "checking whether $CC understands -c and -o together... " >&6; } 4187if test ${am_cv_prog_cc_c_o+y} 4188then : 4189 printf %s "(cached) " >&6 4190else $as_nop 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192/* end confdefs.h. */ 4193 4194int 4195main (void) 4196{ 4197 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202 # Make sure it works both with $CC and with simple cc. 4203 # Following AC_PROG_CC_C_O, we do the test twice because some 4204 # compilers refuse to overwrite an existing .o file with -o, 4205 # though they will create one. 4206 am_cv_prog_cc_c_o=yes 4207 for am_i in 1 2; do 4208 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4209 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4210 ac_status=$? 4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4212 (exit $ac_status); } \ 4213 && test -f conftest2.$ac_objext; then 4214 : OK 4215 else 4216 am_cv_prog_cc_c_o=no 4217 break 4218 fi 4219 done 4220 rm -f core conftest* 4221 unset am_i 4222fi 4223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4224printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4225if test "$am_cv_prog_cc_c_o" != yes; then 4226 # Losing compiler, so override with the script. 4227 # FIXME: It is wrong to rewrite CC. 4228 # But if we don't then we get into trouble of one sort or another. 4229 # A longer-term fix would be to have automake use am__CC in this case, 4230 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4231 CC="$am_aux_dir/compile $CC" 4232fi 4233ac_ext=c 4234ac_cpp='$CPP $CPPFLAGS' 4235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4237ac_compiler_gnu=$ac_cv_c_compiler_gnu 4238 4239 4240depcc="$CC" am_compiler_list= 4241 4242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4243printf %s "checking dependency style of $depcc... " >&6; } 4244if test ${am_cv_CC_dependencies_compiler_type+y} 4245then : 4246 printf %s "(cached) " >&6 4247else $as_nop 4248 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4249 # We make a subdir and do the tests there. Otherwise we can end up 4250 # making bogus files that we don't know about and never remove. For 4251 # instance it was reported that on HP-UX the gcc test will end up 4252 # making a dummy file named 'D' -- because '-MD' means "put the output 4253 # in D". 4254 rm -rf conftest.dir 4255 mkdir conftest.dir 4256 # Copy depcomp to subdir because otherwise we won't find it if we're 4257 # using a relative directory. 4258 cp "$am_depcomp" conftest.dir 4259 cd conftest.dir 4260 # We will build objects and dependencies in a subdirectory because 4261 # it helps to detect inapplicable dependency modes. For instance 4262 # both Tru64's cc and ICC support -MD to output dependencies as a 4263 # side effect of compilation, but ICC will put the dependencies in 4264 # the current directory while Tru64 will put them in the object 4265 # directory. 4266 mkdir sub 4267 4268 am_cv_CC_dependencies_compiler_type=none 4269 if test "$am_compiler_list" = ""; then 4270 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4271 fi 4272 am__universal=false 4273 case " $depcc " in #( 4274 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4275 esac 4276 4277 for depmode in $am_compiler_list; do 4278 # Setup a source with many dependencies, because some compilers 4279 # like to wrap large dependency lists on column 80 (with \), and 4280 # we should not choose a depcomp mode which is confused by this. 4281 # 4282 # We need to recreate these files for each test, as the compiler may 4283 # overwrite some of them when testing with obscure command lines. 4284 # This happens at least with the AIX C compiler. 4285 : > sub/conftest.c 4286 for i in 1 2 3 4 5 6; do 4287 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4288 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4289 # Solaris 10 /bin/sh. 4290 echo '/* dummy */' > sub/conftst$i.h 4291 done 4292 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4293 4294 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4295 # mode. It turns out that the SunPro C++ compiler does not properly 4296 # handle '-M -o', and we need to detect this. Also, some Intel 4297 # versions had trouble with output in subdirs. 4298 am__obj=sub/conftest.${OBJEXT-o} 4299 am__minus_obj="-o $am__obj" 4300 case $depmode in 4301 gcc) 4302 # This depmode causes a compiler race in universal mode. 4303 test "$am__universal" = false || continue 4304 ;; 4305 nosideeffect) 4306 # After this tag, mechanisms are not by side-effect, so they'll 4307 # only be used when explicitly requested. 4308 if test "x$enable_dependency_tracking" = xyes; then 4309 continue 4310 else 4311 break 4312 fi 4313 ;; 4314 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4315 # This compiler won't grok '-c -o', but also, the minuso test has 4316 # not run yet. These depmodes are late enough in the game, and 4317 # so weak that their functioning should not be impacted. 4318 am__obj=conftest.${OBJEXT-o} 4319 am__minus_obj= 4320 ;; 4321 none) break ;; 4322 esac 4323 if depmode=$depmode \ 4324 source=sub/conftest.c object=$am__obj \ 4325 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4326 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4327 >/dev/null 2>conftest.err && 4328 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4329 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4330 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4331 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4332 # icc doesn't choke on unknown options, it will just issue warnings 4333 # or remarks (even with -Werror). So we grep stderr for any message 4334 # that says an option was ignored or not supported. 4335 # When given -MP, icc 7.0 and 7.1 complain thusly: 4336 # icc: Command line warning: ignoring option '-M'; no argument required 4337 # The diagnosis changed in icc 8.0: 4338 # icc: Command line remark: option '-MP' not supported 4339 if (grep 'ignoring option' conftest.err || 4340 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4341 am_cv_CC_dependencies_compiler_type=$depmode 4342 break 4343 fi 4344 fi 4345 done 4346 4347 cd .. 4348 rm -rf conftest.dir 4349else 4350 am_cv_CC_dependencies_compiler_type=none 4351fi 4352 4353fi 4354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4355printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4356CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4357 4358 if 4359 test "x$enable_dependency_tracking" != xno \ 4360 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4361 am__fastdepCC_TRUE= 4362 am__fastdepCC_FALSE='#' 4363else 4364 am__fastdepCC_TRUE='#' 4365 am__fastdepCC_FALSE= 4366fi 4367 4368 4369 4370 4371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4372printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4373if test ${ac_cv_c_undeclared_builtin_options+y} 4374then : 4375 printf %s "(cached) " >&6 4376else $as_nop 4377 ac_save_CFLAGS=$CFLAGS 4378 ac_cv_c_undeclared_builtin_options='cannot detect' 4379 for ac_arg in '' -fno-builtin; do 4380 CFLAGS="$ac_save_CFLAGS $ac_arg" 4381 # This test program should *not* compile successfully. 4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4383/* end confdefs.h. */ 4384 4385int 4386main (void) 4387{ 4388(void) strchr; 4389 ; 4390 return 0; 4391} 4392_ACEOF 4393if ac_fn_c_try_compile "$LINENO" 4394then : 4395 4396else $as_nop 4397 # This test program should compile successfully. 4398 # No library function is consistently available on 4399 # freestanding implementations, so test against a dummy 4400 # declaration. Include always-available headers on the 4401 # off chance that they somehow elicit warnings. 4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4403/* end confdefs.h. */ 4404#include <float.h> 4405#include <limits.h> 4406#include <stdarg.h> 4407#include <stddef.h> 4408extern void ac_decl (int, char *); 4409 4410int 4411main (void) 4412{ 4413(void) ac_decl (0, (char *) 0); 4414 (void) ac_decl; 4415 4416 ; 4417 return 0; 4418} 4419_ACEOF 4420if ac_fn_c_try_compile "$LINENO" 4421then : 4422 if test x"$ac_arg" = x 4423then : 4424 ac_cv_c_undeclared_builtin_options='none needed' 4425else $as_nop 4426 ac_cv_c_undeclared_builtin_options=$ac_arg 4427fi 4428 break 4429fi 4430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4431fi 4432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4433 done 4434 CFLAGS=$ac_save_CFLAGS 4435 4436fi 4437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4438printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4439 case $ac_cv_c_undeclared_builtin_options in #( 4440 'cannot detect') : 4441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4442printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4443as_fn_error $? "cannot make $CC report undeclared builtins 4444See \`config.log' for more details" "$LINENO" 5; } ;; #( 4445 'none needed') : 4446 ac_c_undeclared_builtin_options='' ;; #( 4447 *) : 4448 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4449esac 4450 4451ac_header= ac_cache= 4452for ac_item in $ac_header_c_list 4453do 4454 if test $ac_cache; then 4455 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4456 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4457 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4458 fi 4459 ac_header= ac_cache= 4460 elif test $ac_header; then 4461 ac_cache=$ac_item 4462 else 4463 ac_header=$ac_item 4464 fi 4465done 4466 4467 4468 4469 4470 4471 4472 4473 4474if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4475then : 4476 4477printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4478 4479fi 4480 4481 4482 4483 4484ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4485if test "x$ac_cv_have_decl___clang__" = xyes 4486then : 4487 CLANGCC="yes" 4488else $as_nop 4489 CLANGCC="no" 4490fi 4491ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4492if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4493then : 4494 INTELCC="yes" 4495else $as_nop 4496 INTELCC="no" 4497fi 4498ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4499if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4500then : 4501 SUNCC="yes" 4502else $as_nop 4503 SUNCC="no" 4504fi 4505 4506 4507 4508 4509 4510 4511 4512 4513if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4514 if test -n "$ac_tool_prefix"; then 4515 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4516set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4518printf %s "checking for $ac_word... " >&6; } 4519if test ${ac_cv_path_PKG_CONFIG+y} 4520then : 4521 printf %s "(cached) " >&6 4522else $as_nop 4523 case $PKG_CONFIG in 4524 [\\/]* | ?:[\\/]*) 4525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4526 ;; 4527 *) 4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4529for as_dir in $PATH 4530do 4531 IFS=$as_save_IFS 4532 case $as_dir in #((( 4533 '') as_dir=./ ;; 4534 */) ;; 4535 *) as_dir=$as_dir/ ;; 4536 esac 4537 for ac_exec_ext in '' $ac_executable_extensions; do 4538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4539 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4541 break 2 4542 fi 4543done 4544 done 4545IFS=$as_save_IFS 4546 4547 ;; 4548esac 4549fi 4550PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4551if test -n "$PKG_CONFIG"; then 4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4553printf "%s\n" "$PKG_CONFIG" >&6; } 4554else 4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4556printf "%s\n" "no" >&6; } 4557fi 4558 4559 4560fi 4561if test -z "$ac_cv_path_PKG_CONFIG"; then 4562 ac_pt_PKG_CONFIG=$PKG_CONFIG 4563 # Extract the first word of "pkg-config", so it can be a program name with args. 4564set dummy pkg-config; ac_word=$2 4565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4566printf %s "checking for $ac_word... " >&6; } 4567if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4568then : 4569 printf %s "(cached) " >&6 4570else $as_nop 4571 case $ac_pt_PKG_CONFIG in 4572 [\\/]* | ?:[\\/]*) 4573 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4574 ;; 4575 *) 4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4577for as_dir in $PATH 4578do 4579 IFS=$as_save_IFS 4580 case $as_dir in #((( 4581 '') as_dir=./ ;; 4582 */) ;; 4583 *) as_dir=$as_dir/ ;; 4584 esac 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4587 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4589 break 2 4590 fi 4591done 4592 done 4593IFS=$as_save_IFS 4594 4595 ;; 4596esac 4597fi 4598ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4599if test -n "$ac_pt_PKG_CONFIG"; then 4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4601printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4602else 4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4604printf "%s\n" "no" >&6; } 4605fi 4606 4607 if test "x$ac_pt_PKG_CONFIG" = x; then 4608 PKG_CONFIG="" 4609 else 4610 case $cross_compiling:$ac_tool_warned in 4611yes:) 4612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4613printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4614ac_tool_warned=yes ;; 4615esac 4616 PKG_CONFIG=$ac_pt_PKG_CONFIG 4617 fi 4618else 4619 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4620fi 4621 4622fi 4623if test -n "$PKG_CONFIG"; then 4624 _pkg_min_version=0.9.0 4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4626printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4627 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4629printf "%s\n" "yes" >&6; } 4630 else 4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4632printf "%s\n" "no" >&6; } 4633 PKG_CONFIG="" 4634 fi 4635fi 4636 4637 4638 # Make sure we can run config.sub. 4639$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4640 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4641 4642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4643printf %s "checking build system type... " >&6; } 4644if test ${ac_cv_build+y} 4645then : 4646 printf %s "(cached) " >&6 4647else $as_nop 4648 ac_build_alias=$build_alias 4649test "x$ac_build_alias" = x && 4650 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4651test "x$ac_build_alias" = x && 4652 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4653ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4654 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4655 4656fi 4657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4658printf "%s\n" "$ac_cv_build" >&6; } 4659case $ac_cv_build in 4660*-*-*) ;; 4661*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4662esac 4663build=$ac_cv_build 4664ac_save_IFS=$IFS; IFS='-' 4665set x $ac_cv_build 4666shift 4667build_cpu=$1 4668build_vendor=$2 4669shift; shift 4670# Remember, the first character of IFS is used to create $*, 4671# except with old shells: 4672build_os=$* 4673IFS=$ac_save_IFS 4674case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4675 4676 4677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4678printf %s "checking host system type... " >&6; } 4679if test ${ac_cv_host+y} 4680then : 4681 printf %s "(cached) " >&6 4682else $as_nop 4683 if test "x$host_alias" = x; then 4684 ac_cv_host=$ac_cv_build 4685else 4686 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4687 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4688fi 4689 4690fi 4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4692printf "%s\n" "$ac_cv_host" >&6; } 4693case $ac_cv_host in 4694*-*-*) ;; 4695*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4696esac 4697host=$ac_cv_host 4698ac_save_IFS=$IFS; IFS='-' 4699set x $ac_cv_host 4700shift 4701host_cpu=$1 4702host_vendor=$2 4703shift; shift 4704# Remember, the first character of IFS is used to create $*, 4705# except with old shells: 4706host_os=$* 4707IFS=$ac_save_IFS 4708case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4709 4710 4711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4712printf %s "checking for a sed that does not truncate output... " >&6; } 4713if test ${ac_cv_path_SED+y} 4714then : 4715 printf %s "(cached) " >&6 4716else $as_nop 4717 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4718 for ac_i in 1 2 3 4 5 6 7; do 4719 ac_script="$ac_script$as_nl$ac_script" 4720 done 4721 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4722 { ac_script=; unset ac_script;} 4723 if test -z "$SED"; then 4724 ac_path_SED_found=false 4725 # Loop through the user's path and test for each of PROGNAME-LIST 4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4727for as_dir in $PATH 4728do 4729 IFS=$as_save_IFS 4730 case $as_dir in #((( 4731 '') as_dir=./ ;; 4732 */) ;; 4733 *) as_dir=$as_dir/ ;; 4734 esac 4735 for ac_prog in sed gsed 4736 do 4737 for ac_exec_ext in '' $ac_executable_extensions; do 4738 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4739 as_fn_executable_p "$ac_path_SED" || continue 4740# Check for GNU ac_path_SED and select it if it is found. 4741 # Check for GNU $ac_path_SED 4742case `"$ac_path_SED" --version 2>&1` in 4743*GNU*) 4744 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4745*) 4746 ac_count=0 4747 printf %s 0123456789 >"conftest.in" 4748 while : 4749 do 4750 cat "conftest.in" "conftest.in" >"conftest.tmp" 4751 mv "conftest.tmp" "conftest.in" 4752 cp "conftest.in" "conftest.nl" 4753 printf "%s\n" '' >> "conftest.nl" 4754 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4756 as_fn_arith $ac_count + 1 && ac_count=$as_val 4757 if test $ac_count -gt ${ac_path_SED_max-0}; then 4758 # Best one so far, save it but keep looking for a better one 4759 ac_cv_path_SED="$ac_path_SED" 4760 ac_path_SED_max=$ac_count 4761 fi 4762 # 10*(2^10) chars as input seems more than enough 4763 test $ac_count -gt 10 && break 4764 done 4765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4766esac 4767 4768 $ac_path_SED_found && break 3 4769 done 4770 done 4771 done 4772IFS=$as_save_IFS 4773 if test -z "$ac_cv_path_SED"; then 4774 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4775 fi 4776else 4777 ac_cv_path_SED=$SED 4778fi 4779 4780fi 4781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4782printf "%s\n" "$ac_cv_path_SED" >&6; } 4783 SED="$ac_cv_path_SED" 4784 rm -f conftest.sed 4785 4786 4787 4788 4789 4790 4791# Check whether --enable-selective-werror was given. 4792if test ${enable_selective_werror+y} 4793then : 4794 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4795else $as_nop 4796 SELECTIVE_WERROR=yes 4797fi 4798 4799 4800 4801 4802 4803# -v is too short to test reliably with XORG_TESTSET_CFLAG 4804if test "x$SUNCC" = "xyes"; then 4805 BASE_CFLAGS="-v" 4806else 4807 BASE_CFLAGS="" 4808fi 4809 4810# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824xorg_testset_save_CFLAGS="$CFLAGS" 4825 4826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4830if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4831then : 4832 printf %s "(cached) " >&6 4833else $as_nop 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836int i; 4837_ACEOF 4838if ac_fn_c_try_compile "$LINENO" 4839then : 4840 xorg_cv_cc_flag_unknown_warning_option=yes 4841else $as_nop 4842 xorg_cv_cc_flag_unknown_warning_option=no 4843fi 4844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4845fi 4846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4849 CFLAGS="$xorg_testset_save_CFLAGS" 4850fi 4851 4852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4855 fi 4856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4859if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4860then : 4861 printf %s "(cached) " >&6 4862else $as_nop 4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4864/* end confdefs.h. */ 4865int i; 4866_ACEOF 4867if ac_fn_c_try_compile "$LINENO" 4868then : 4869 xorg_cv_cc_flag_unused_command_line_argument=yes 4870else $as_nop 4871 xorg_cv_cc_flag_unused_command_line_argument=no 4872fi 4873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4874fi 4875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4878 CFLAGS="$xorg_testset_save_CFLAGS" 4879fi 4880 4881found="no" 4882 4883 if test $found = "no" ; then 4884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4886 fi 4887 4888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4890 fi 4891 4892 CFLAGS="$CFLAGS -Wall" 4893 4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4895printf %s "checking if $CC supports -Wall... " >&6; } 4896 cacheid=xorg_cv_cc_flag__Wall 4897 if eval test \${$cacheid+y} 4898then : 4899 printf %s "(cached) " >&6 4900else $as_nop 4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4902/* end confdefs.h. */ 4903int i; 4904int 4905main (void) 4906{ 4907 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912if ac_fn_c_try_link "$LINENO" 4913then : 4914 eval $cacheid=yes 4915else $as_nop 4916 eval $cacheid=no 4917fi 4918rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4919 conftest$ac_exeext conftest.$ac_ext 4920fi 4921 4922 4923 CFLAGS="$xorg_testset_save_CFLAGS" 4924 4925 eval supported=\$$cacheid 4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4927printf "%s\n" "$supported" >&6; } 4928 if test "$supported" = "yes" ; then 4929 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4930 found="yes" 4931 fi 4932 fi 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948xorg_testset_save_CFLAGS="$CFLAGS" 4949 4950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4953printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4954if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4955then : 4956 printf %s "(cached) " >&6 4957else $as_nop 4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959/* end confdefs.h. */ 4960int i; 4961_ACEOF 4962if ac_fn_c_try_compile "$LINENO" 4963then : 4964 xorg_cv_cc_flag_unknown_warning_option=yes 4965else $as_nop 4966 xorg_cv_cc_flag_unknown_warning_option=no 4967fi 4968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4969fi 4970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4971printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4973 CFLAGS="$xorg_testset_save_CFLAGS" 4974fi 4975 4976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4979 fi 4980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4982printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4983if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4984then : 4985 printf %s "(cached) " >&6 4986else $as_nop 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988/* end confdefs.h. */ 4989int i; 4990_ACEOF 4991if ac_fn_c_try_compile "$LINENO" 4992then : 4993 xorg_cv_cc_flag_unused_command_line_argument=yes 4994else $as_nop 4995 xorg_cv_cc_flag_unused_command_line_argument=no 4996fi 4997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4998fi 4999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5002 CFLAGS="$xorg_testset_save_CFLAGS" 5003fi 5004 5005found="no" 5006 5007 if test $found = "no" ; then 5008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5010 fi 5011 5012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5014 fi 5015 5016 CFLAGS="$CFLAGS -Wpointer-arith" 5017 5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5019printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5020 cacheid=xorg_cv_cc_flag__Wpointer_arith 5021 if eval test \${$cacheid+y} 5022then : 5023 printf %s "(cached) " >&6 5024else $as_nop 5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5026/* end confdefs.h. */ 5027int i; 5028int 5029main (void) 5030{ 5031 5032 ; 5033 return 0; 5034} 5035_ACEOF 5036if ac_fn_c_try_link "$LINENO" 5037then : 5038 eval $cacheid=yes 5039else $as_nop 5040 eval $cacheid=no 5041fi 5042rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5043 conftest$ac_exeext conftest.$ac_ext 5044fi 5045 5046 5047 CFLAGS="$xorg_testset_save_CFLAGS" 5048 5049 eval supported=\$$cacheid 5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5051printf "%s\n" "$supported" >&6; } 5052 if test "$supported" = "yes" ; then 5053 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5054 found="yes" 5055 fi 5056 fi 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072xorg_testset_save_CFLAGS="$CFLAGS" 5073 5074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5078if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5079then : 5080 printf %s "(cached) " >&6 5081else $as_nop 5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5083/* end confdefs.h. */ 5084int i; 5085_ACEOF 5086if ac_fn_c_try_compile "$LINENO" 5087then : 5088 xorg_cv_cc_flag_unknown_warning_option=yes 5089else $as_nop 5090 xorg_cv_cc_flag_unknown_warning_option=no 5091fi 5092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5093fi 5094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5095printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5097 CFLAGS="$xorg_testset_save_CFLAGS" 5098fi 5099 5100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5103 fi 5104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5106printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5107if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5108then : 5109 printf %s "(cached) " >&6 5110else $as_nop 5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113int i; 5114_ACEOF 5115if ac_fn_c_try_compile "$LINENO" 5116then : 5117 xorg_cv_cc_flag_unused_command_line_argument=yes 5118else $as_nop 5119 xorg_cv_cc_flag_unused_command_line_argument=no 5120fi 5121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5122fi 5123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5126 CFLAGS="$xorg_testset_save_CFLAGS" 5127fi 5128 5129found="no" 5130 5131 if test $found = "no" ; then 5132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5134 fi 5135 5136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5138 fi 5139 5140 CFLAGS="$CFLAGS -Wmissing-declarations" 5141 5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5143printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5144 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5145 if eval test \${$cacheid+y} 5146then : 5147 printf %s "(cached) " >&6 5148else $as_nop 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150/* end confdefs.h. */ 5151int i; 5152int 5153main (void) 5154{ 5155 5156 ; 5157 return 0; 5158} 5159_ACEOF 5160if ac_fn_c_try_link "$LINENO" 5161then : 5162 eval $cacheid=yes 5163else $as_nop 5164 eval $cacheid=no 5165fi 5166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5167 conftest$ac_exeext conftest.$ac_ext 5168fi 5169 5170 5171 CFLAGS="$xorg_testset_save_CFLAGS" 5172 5173 eval supported=\$$cacheid 5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5175printf "%s\n" "$supported" >&6; } 5176 if test "$supported" = "yes" ; then 5177 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5178 found="yes" 5179 fi 5180 fi 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196xorg_testset_save_CFLAGS="$CFLAGS" 5197 5198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5202if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5203then : 5204 printf %s "(cached) " >&6 5205else $as_nop 5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5207/* end confdefs.h. */ 5208int i; 5209_ACEOF 5210if ac_fn_c_try_compile "$LINENO" 5211then : 5212 xorg_cv_cc_flag_unknown_warning_option=yes 5213else $as_nop 5214 xorg_cv_cc_flag_unknown_warning_option=no 5215fi 5216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5217fi 5218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5221 CFLAGS="$xorg_testset_save_CFLAGS" 5222fi 5223 5224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5227 fi 5228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5231if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5232then : 5233 printf %s "(cached) " >&6 5234else $as_nop 5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5236/* end confdefs.h. */ 5237int i; 5238_ACEOF 5239if ac_fn_c_try_compile "$LINENO" 5240then : 5241 xorg_cv_cc_flag_unused_command_line_argument=yes 5242else $as_nop 5243 xorg_cv_cc_flag_unused_command_line_argument=no 5244fi 5245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5246fi 5247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5250 CFLAGS="$xorg_testset_save_CFLAGS" 5251fi 5252 5253found="no" 5254 5255 if test $found = "no" ; then 5256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5258 fi 5259 5260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5262 fi 5263 5264 CFLAGS="$CFLAGS -Wformat=2" 5265 5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5267printf %s "checking if $CC supports -Wformat=2... " >&6; } 5268 cacheid=xorg_cv_cc_flag__Wformat_2 5269 if eval test \${$cacheid+y} 5270then : 5271 printf %s "(cached) " >&6 5272else $as_nop 5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5274/* end confdefs.h. */ 5275int i; 5276int 5277main (void) 5278{ 5279 5280 ; 5281 return 0; 5282} 5283_ACEOF 5284if ac_fn_c_try_link "$LINENO" 5285then : 5286 eval $cacheid=yes 5287else $as_nop 5288 eval $cacheid=no 5289fi 5290rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5291 conftest$ac_exeext conftest.$ac_ext 5292fi 5293 5294 5295 CFLAGS="$xorg_testset_save_CFLAGS" 5296 5297 eval supported=\$$cacheid 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5299printf "%s\n" "$supported" >&6; } 5300 if test "$supported" = "yes" ; then 5301 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5302 found="yes" 5303 fi 5304 fi 5305 5306 if test $found = "no" ; then 5307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5309 fi 5310 5311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5313 fi 5314 5315 CFLAGS="$CFLAGS -Wformat" 5316 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5318printf %s "checking if $CC supports -Wformat... " >&6; } 5319 cacheid=xorg_cv_cc_flag__Wformat 5320 if eval test \${$cacheid+y} 5321then : 5322 printf %s "(cached) " >&6 5323else $as_nop 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325/* end confdefs.h. */ 5326int i; 5327int 5328main (void) 5329{ 5330 5331 ; 5332 return 0; 5333} 5334_ACEOF 5335if ac_fn_c_try_link "$LINENO" 5336then : 5337 eval $cacheid=yes 5338else $as_nop 5339 eval $cacheid=no 5340fi 5341rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5342 conftest$ac_exeext conftest.$ac_ext 5343fi 5344 5345 5346 CFLAGS="$xorg_testset_save_CFLAGS" 5347 5348 eval supported=\$$cacheid 5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5350printf "%s\n" "$supported" >&6; } 5351 if test "$supported" = "yes" ; then 5352 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5353 found="yes" 5354 fi 5355 fi 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373xorg_testset_save_CFLAGS="$CFLAGS" 5374 5375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5378printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5379if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5380then : 5381 printf %s "(cached) " >&6 5382else $as_nop 5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5384/* end confdefs.h. */ 5385int i; 5386_ACEOF 5387if ac_fn_c_try_compile "$LINENO" 5388then : 5389 xorg_cv_cc_flag_unknown_warning_option=yes 5390else $as_nop 5391 xorg_cv_cc_flag_unknown_warning_option=no 5392fi 5393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5394fi 5395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5398 CFLAGS="$xorg_testset_save_CFLAGS" 5399fi 5400 5401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5404 fi 5405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5408if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5409then : 5410 printf %s "(cached) " >&6 5411else $as_nop 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5413/* end confdefs.h. */ 5414int i; 5415_ACEOF 5416if ac_fn_c_try_compile "$LINENO" 5417then : 5418 xorg_cv_cc_flag_unused_command_line_argument=yes 5419else $as_nop 5420 xorg_cv_cc_flag_unused_command_line_argument=no 5421fi 5422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5423fi 5424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5427 CFLAGS="$xorg_testset_save_CFLAGS" 5428fi 5429 5430found="no" 5431 5432 if test $found = "no" ; then 5433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5435 fi 5436 5437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5439 fi 5440 5441 CFLAGS="$CFLAGS -Wstrict-prototypes" 5442 5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5444printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5445 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5446 if eval test \${$cacheid+y} 5447then : 5448 printf %s "(cached) " >&6 5449else $as_nop 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451/* end confdefs.h. */ 5452int i; 5453int 5454main (void) 5455{ 5456 5457 ; 5458 return 0; 5459} 5460_ACEOF 5461if ac_fn_c_try_link "$LINENO" 5462then : 5463 eval $cacheid=yes 5464else $as_nop 5465 eval $cacheid=no 5466fi 5467rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5468 conftest$ac_exeext conftest.$ac_ext 5469fi 5470 5471 5472 CFLAGS="$xorg_testset_save_CFLAGS" 5473 5474 eval supported=\$$cacheid 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5476printf "%s\n" "$supported" >&6; } 5477 if test "$supported" = "yes" ; then 5478 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5479 found="yes" 5480 fi 5481 fi 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497xorg_testset_save_CFLAGS="$CFLAGS" 5498 5499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5503if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5504then : 5505 printf %s "(cached) " >&6 5506else $as_nop 5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5508/* end confdefs.h. */ 5509int i; 5510_ACEOF 5511if ac_fn_c_try_compile "$LINENO" 5512then : 5513 xorg_cv_cc_flag_unknown_warning_option=yes 5514else $as_nop 5515 xorg_cv_cc_flag_unknown_warning_option=no 5516fi 5517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5518fi 5519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5522 CFLAGS="$xorg_testset_save_CFLAGS" 5523fi 5524 5525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5528 fi 5529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5532if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5533then : 5534 printf %s "(cached) " >&6 5535else $as_nop 5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537/* end confdefs.h. */ 5538int i; 5539_ACEOF 5540if ac_fn_c_try_compile "$LINENO" 5541then : 5542 xorg_cv_cc_flag_unused_command_line_argument=yes 5543else $as_nop 5544 xorg_cv_cc_flag_unused_command_line_argument=no 5545fi 5546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5547fi 5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5551 CFLAGS="$xorg_testset_save_CFLAGS" 5552fi 5553 5554found="no" 5555 5556 if test $found = "no" ; then 5557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5559 fi 5560 5561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5563 fi 5564 5565 CFLAGS="$CFLAGS -Wmissing-prototypes" 5566 5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5568printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5569 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5570 if eval test \${$cacheid+y} 5571then : 5572 printf %s "(cached) " >&6 5573else $as_nop 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576int i; 5577int 5578main (void) 5579{ 5580 5581 ; 5582 return 0; 5583} 5584_ACEOF 5585if ac_fn_c_try_link "$LINENO" 5586then : 5587 eval $cacheid=yes 5588else $as_nop 5589 eval $cacheid=no 5590fi 5591rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5592 conftest$ac_exeext conftest.$ac_ext 5593fi 5594 5595 5596 CFLAGS="$xorg_testset_save_CFLAGS" 5597 5598 eval supported=\$$cacheid 5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5600printf "%s\n" "$supported" >&6; } 5601 if test "$supported" = "yes" ; then 5602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5603 found="yes" 5604 fi 5605 fi 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621xorg_testset_save_CFLAGS="$CFLAGS" 5622 5623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5627if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5628then : 5629 printf %s "(cached) " >&6 5630else $as_nop 5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5632/* end confdefs.h. */ 5633int i; 5634_ACEOF 5635if ac_fn_c_try_compile "$LINENO" 5636then : 5637 xorg_cv_cc_flag_unknown_warning_option=yes 5638else $as_nop 5639 xorg_cv_cc_flag_unknown_warning_option=no 5640fi 5641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5642fi 5643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5646 CFLAGS="$xorg_testset_save_CFLAGS" 5647fi 5648 5649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5652 fi 5653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5656if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5657then : 5658 printf %s "(cached) " >&6 5659else $as_nop 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662int i; 5663_ACEOF 5664if ac_fn_c_try_compile "$LINENO" 5665then : 5666 xorg_cv_cc_flag_unused_command_line_argument=yes 5667else $as_nop 5668 xorg_cv_cc_flag_unused_command_line_argument=no 5669fi 5670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5671fi 5672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5675 CFLAGS="$xorg_testset_save_CFLAGS" 5676fi 5677 5678found="no" 5679 5680 if test $found = "no" ; then 5681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5683 fi 5684 5685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5687 fi 5688 5689 CFLAGS="$CFLAGS -Wnested-externs" 5690 5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5692printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5693 cacheid=xorg_cv_cc_flag__Wnested_externs 5694 if eval test \${$cacheid+y} 5695then : 5696 printf %s "(cached) " >&6 5697else $as_nop 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699/* end confdefs.h. */ 5700int i; 5701int 5702main (void) 5703{ 5704 5705 ; 5706 return 0; 5707} 5708_ACEOF 5709if ac_fn_c_try_link "$LINENO" 5710then : 5711 eval $cacheid=yes 5712else $as_nop 5713 eval $cacheid=no 5714fi 5715rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5716 conftest$ac_exeext conftest.$ac_ext 5717fi 5718 5719 5720 CFLAGS="$xorg_testset_save_CFLAGS" 5721 5722 eval supported=\$$cacheid 5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5724printf "%s\n" "$supported" >&6; } 5725 if test "$supported" = "yes" ; then 5726 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5727 found="yes" 5728 fi 5729 fi 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745xorg_testset_save_CFLAGS="$CFLAGS" 5746 5747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5750printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5751if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5752then : 5753 printf %s "(cached) " >&6 5754else $as_nop 5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5756/* end confdefs.h. */ 5757int i; 5758_ACEOF 5759if ac_fn_c_try_compile "$LINENO" 5760then : 5761 xorg_cv_cc_flag_unknown_warning_option=yes 5762else $as_nop 5763 xorg_cv_cc_flag_unknown_warning_option=no 5764fi 5765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5766fi 5767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5768printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5770 CFLAGS="$xorg_testset_save_CFLAGS" 5771fi 5772 5773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5776 fi 5777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5779printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5780if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5781then : 5782 printf %s "(cached) " >&6 5783else $as_nop 5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5785/* end confdefs.h. */ 5786int i; 5787_ACEOF 5788if ac_fn_c_try_compile "$LINENO" 5789then : 5790 xorg_cv_cc_flag_unused_command_line_argument=yes 5791else $as_nop 5792 xorg_cv_cc_flag_unused_command_line_argument=no 5793fi 5794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5795fi 5796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5799 CFLAGS="$xorg_testset_save_CFLAGS" 5800fi 5801 5802found="no" 5803 5804 if test $found = "no" ; then 5805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5807 fi 5808 5809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5811 fi 5812 5813 CFLAGS="$CFLAGS -Wbad-function-cast" 5814 5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5816printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5817 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5818 if eval test \${$cacheid+y} 5819then : 5820 printf %s "(cached) " >&6 5821else $as_nop 5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5823/* end confdefs.h. */ 5824int i; 5825int 5826main (void) 5827{ 5828 5829 ; 5830 return 0; 5831} 5832_ACEOF 5833if ac_fn_c_try_link "$LINENO" 5834then : 5835 eval $cacheid=yes 5836else $as_nop 5837 eval $cacheid=no 5838fi 5839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5840 conftest$ac_exeext conftest.$ac_ext 5841fi 5842 5843 5844 CFLAGS="$xorg_testset_save_CFLAGS" 5845 5846 eval supported=\$$cacheid 5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5848printf "%s\n" "$supported" >&6; } 5849 if test "$supported" = "yes" ; then 5850 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5851 found="yes" 5852 fi 5853 fi 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869xorg_testset_save_CFLAGS="$CFLAGS" 5870 5871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5874printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5875if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5876then : 5877 printf %s "(cached) " >&6 5878else $as_nop 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5880/* end confdefs.h. */ 5881int i; 5882_ACEOF 5883if ac_fn_c_try_compile "$LINENO" 5884then : 5885 xorg_cv_cc_flag_unknown_warning_option=yes 5886else $as_nop 5887 xorg_cv_cc_flag_unknown_warning_option=no 5888fi 5889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5890fi 5891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5892printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5894 CFLAGS="$xorg_testset_save_CFLAGS" 5895fi 5896 5897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5900 fi 5901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5903printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5904if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5905then : 5906 printf %s "(cached) " >&6 5907else $as_nop 5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909/* end confdefs.h. */ 5910int i; 5911_ACEOF 5912if ac_fn_c_try_compile "$LINENO" 5913then : 5914 xorg_cv_cc_flag_unused_command_line_argument=yes 5915else $as_nop 5916 xorg_cv_cc_flag_unused_command_line_argument=no 5917fi 5918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5919fi 5920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5921printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5923 CFLAGS="$xorg_testset_save_CFLAGS" 5924fi 5925 5926found="no" 5927 5928 if test $found = "no" ; then 5929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5931 fi 5932 5933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5935 fi 5936 5937 CFLAGS="$CFLAGS -Wold-style-definition" 5938 5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5940printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5941 cacheid=xorg_cv_cc_flag__Wold_style_definition 5942 if eval test \${$cacheid+y} 5943then : 5944 printf %s "(cached) " >&6 5945else $as_nop 5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5947/* end confdefs.h. */ 5948int i; 5949int 5950main (void) 5951{ 5952 5953 ; 5954 return 0; 5955} 5956_ACEOF 5957if ac_fn_c_try_link "$LINENO" 5958then : 5959 eval $cacheid=yes 5960else $as_nop 5961 eval $cacheid=no 5962fi 5963rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5964 conftest$ac_exeext conftest.$ac_ext 5965fi 5966 5967 5968 CFLAGS="$xorg_testset_save_CFLAGS" 5969 5970 eval supported=\$$cacheid 5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5972printf "%s\n" "$supported" >&6; } 5973 if test "$supported" = "yes" ; then 5974 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5975 found="yes" 5976 fi 5977 fi 5978 5979 if test $found = "no" ; then 5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5982 fi 5983 5984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5986 fi 5987 5988 CFLAGS="$CFLAGS -fd" 5989 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5991printf %s "checking if $CC supports -fd... " >&6; } 5992 cacheid=xorg_cv_cc_flag__fd 5993 if eval test \${$cacheid+y} 5994then : 5995 printf %s "(cached) " >&6 5996else $as_nop 5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999int i; 6000int 6001main (void) 6002{ 6003 6004 ; 6005 return 0; 6006} 6007_ACEOF 6008if ac_fn_c_try_link "$LINENO" 6009then : 6010 eval $cacheid=yes 6011else $as_nop 6012 eval $cacheid=no 6013fi 6014rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6015 conftest$ac_exeext conftest.$ac_ext 6016fi 6017 6018 6019 CFLAGS="$xorg_testset_save_CFLAGS" 6020 6021 eval supported=\$$cacheid 6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6023printf "%s\n" "$supported" >&6; } 6024 if test "$supported" = "yes" ; then 6025 BASE_CFLAGS="$BASE_CFLAGS -fd" 6026 found="yes" 6027 fi 6028 fi 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044xorg_testset_save_CFLAGS="$CFLAGS" 6045 6046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6050if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6051then : 6052 printf %s "(cached) " >&6 6053else $as_nop 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056int i; 6057_ACEOF 6058if ac_fn_c_try_compile "$LINENO" 6059then : 6060 xorg_cv_cc_flag_unknown_warning_option=yes 6061else $as_nop 6062 xorg_cv_cc_flag_unknown_warning_option=no 6063fi 6064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6065fi 6066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6069 CFLAGS="$xorg_testset_save_CFLAGS" 6070fi 6071 6072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6075 fi 6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6079if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6080then : 6081 printf %s "(cached) " >&6 6082else $as_nop 6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6084/* end confdefs.h. */ 6085int i; 6086_ACEOF 6087if ac_fn_c_try_compile "$LINENO" 6088then : 6089 xorg_cv_cc_flag_unused_command_line_argument=yes 6090else $as_nop 6091 xorg_cv_cc_flag_unused_command_line_argument=no 6092fi 6093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6094fi 6095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6098 CFLAGS="$xorg_testset_save_CFLAGS" 6099fi 6100 6101found="no" 6102 6103 if test $found = "no" ; then 6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6106 fi 6107 6108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6110 fi 6111 6112 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6113 6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6115printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6116 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6117 if eval test \${$cacheid+y} 6118then : 6119 printf %s "(cached) " >&6 6120else $as_nop 6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122/* end confdefs.h. */ 6123int i; 6124int 6125main (void) 6126{ 6127 6128 ; 6129 return 0; 6130} 6131_ACEOF 6132if ac_fn_c_try_link "$LINENO" 6133then : 6134 eval $cacheid=yes 6135else $as_nop 6136 eval $cacheid=no 6137fi 6138rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6139 conftest$ac_exeext conftest.$ac_ext 6140fi 6141 6142 6143 CFLAGS="$xorg_testset_save_CFLAGS" 6144 6145 eval supported=\$$cacheid 6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6147printf "%s\n" "$supported" >&6; } 6148 if test "$supported" = "yes" ; then 6149 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6150 found="yes" 6151 fi 6152 fi 6153 6154 6155 6156 6157 6158# This chunk adds additional warnings that could catch undesired effects. 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172xorg_testset_save_CFLAGS="$CFLAGS" 6173 6174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6178if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6179then : 6180 printf %s "(cached) " >&6 6181else $as_nop 6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184int i; 6185_ACEOF 6186if ac_fn_c_try_compile "$LINENO" 6187then : 6188 xorg_cv_cc_flag_unknown_warning_option=yes 6189else $as_nop 6190 xorg_cv_cc_flag_unknown_warning_option=no 6191fi 6192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6193fi 6194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6197 CFLAGS="$xorg_testset_save_CFLAGS" 6198fi 6199 6200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6203 fi 6204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6207if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6208then : 6209 printf %s "(cached) " >&6 6210else $as_nop 6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213int i; 6214_ACEOF 6215if ac_fn_c_try_compile "$LINENO" 6216then : 6217 xorg_cv_cc_flag_unused_command_line_argument=yes 6218else $as_nop 6219 xorg_cv_cc_flag_unused_command_line_argument=no 6220fi 6221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6222fi 6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6226 CFLAGS="$xorg_testset_save_CFLAGS" 6227fi 6228 6229found="no" 6230 6231 if test $found = "no" ; then 6232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 fi 6235 6236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6238 fi 6239 6240 CFLAGS="$CFLAGS -Wunused" 6241 6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6243printf %s "checking if $CC supports -Wunused... " >&6; } 6244 cacheid=xorg_cv_cc_flag__Wunused 6245 if eval test \${$cacheid+y} 6246then : 6247 printf %s "(cached) " >&6 6248else $as_nop 6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6250/* end confdefs.h. */ 6251int i; 6252int 6253main (void) 6254{ 6255 6256 ; 6257 return 0; 6258} 6259_ACEOF 6260if ac_fn_c_try_link "$LINENO" 6261then : 6262 eval $cacheid=yes 6263else $as_nop 6264 eval $cacheid=no 6265fi 6266rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6267 conftest$ac_exeext conftest.$ac_ext 6268fi 6269 6270 6271 CFLAGS="$xorg_testset_save_CFLAGS" 6272 6273 eval supported=\$$cacheid 6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6275printf "%s\n" "$supported" >&6; } 6276 if test "$supported" = "yes" ; then 6277 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6278 found="yes" 6279 fi 6280 fi 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296xorg_testset_save_CFLAGS="$CFLAGS" 6297 6298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6302if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6303then : 6304 printf %s "(cached) " >&6 6305else $as_nop 6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307/* end confdefs.h. */ 6308int i; 6309_ACEOF 6310if ac_fn_c_try_compile "$LINENO" 6311then : 6312 xorg_cv_cc_flag_unknown_warning_option=yes 6313else $as_nop 6314 xorg_cv_cc_flag_unknown_warning_option=no 6315fi 6316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6317fi 6318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6321 CFLAGS="$xorg_testset_save_CFLAGS" 6322fi 6323 6324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6327 fi 6328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6331if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6332then : 6333 printf %s "(cached) " >&6 6334else $as_nop 6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336/* end confdefs.h. */ 6337int i; 6338_ACEOF 6339if ac_fn_c_try_compile "$LINENO" 6340then : 6341 xorg_cv_cc_flag_unused_command_line_argument=yes 6342else $as_nop 6343 xorg_cv_cc_flag_unused_command_line_argument=no 6344fi 6345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6346fi 6347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6350 CFLAGS="$xorg_testset_save_CFLAGS" 6351fi 6352 6353found="no" 6354 6355 if test $found = "no" ; then 6356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6358 fi 6359 6360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6362 fi 6363 6364 CFLAGS="$CFLAGS -Wuninitialized" 6365 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6367printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6368 cacheid=xorg_cv_cc_flag__Wuninitialized 6369 if eval test \${$cacheid+y} 6370then : 6371 printf %s "(cached) " >&6 6372else $as_nop 6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6374/* end confdefs.h. */ 6375int i; 6376int 6377main (void) 6378{ 6379 6380 ; 6381 return 0; 6382} 6383_ACEOF 6384if ac_fn_c_try_link "$LINENO" 6385then : 6386 eval $cacheid=yes 6387else $as_nop 6388 eval $cacheid=no 6389fi 6390rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6391 conftest$ac_exeext conftest.$ac_ext 6392fi 6393 6394 6395 CFLAGS="$xorg_testset_save_CFLAGS" 6396 6397 eval supported=\$$cacheid 6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6399printf "%s\n" "$supported" >&6; } 6400 if test "$supported" = "yes" ; then 6401 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6402 found="yes" 6403 fi 6404 fi 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420xorg_testset_save_CFLAGS="$CFLAGS" 6421 6422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6426if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6427then : 6428 printf %s "(cached) " >&6 6429else $as_nop 6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6431/* end confdefs.h. */ 6432int i; 6433_ACEOF 6434if ac_fn_c_try_compile "$LINENO" 6435then : 6436 xorg_cv_cc_flag_unknown_warning_option=yes 6437else $as_nop 6438 xorg_cv_cc_flag_unknown_warning_option=no 6439fi 6440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6441fi 6442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6445 CFLAGS="$xorg_testset_save_CFLAGS" 6446fi 6447 6448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6451 fi 6452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6455if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6456then : 6457 printf %s "(cached) " >&6 6458else $as_nop 6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6460/* end confdefs.h. */ 6461int i; 6462_ACEOF 6463if ac_fn_c_try_compile "$LINENO" 6464then : 6465 xorg_cv_cc_flag_unused_command_line_argument=yes 6466else $as_nop 6467 xorg_cv_cc_flag_unused_command_line_argument=no 6468fi 6469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6470fi 6471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6474 CFLAGS="$xorg_testset_save_CFLAGS" 6475fi 6476 6477found="no" 6478 6479 if test $found = "no" ; then 6480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6482 fi 6483 6484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6486 fi 6487 6488 CFLAGS="$CFLAGS -Wshadow" 6489 6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6491printf %s "checking if $CC supports -Wshadow... " >&6; } 6492 cacheid=xorg_cv_cc_flag__Wshadow 6493 if eval test \${$cacheid+y} 6494then : 6495 printf %s "(cached) " >&6 6496else $as_nop 6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6498/* end confdefs.h. */ 6499int i; 6500int 6501main (void) 6502{ 6503 6504 ; 6505 return 0; 6506} 6507_ACEOF 6508if ac_fn_c_try_link "$LINENO" 6509then : 6510 eval $cacheid=yes 6511else $as_nop 6512 eval $cacheid=no 6513fi 6514rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6515 conftest$ac_exeext conftest.$ac_ext 6516fi 6517 6518 6519 CFLAGS="$xorg_testset_save_CFLAGS" 6520 6521 eval supported=\$$cacheid 6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6523printf "%s\n" "$supported" >&6; } 6524 if test "$supported" = "yes" ; then 6525 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6526 found="yes" 6527 fi 6528 fi 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544xorg_testset_save_CFLAGS="$CFLAGS" 6545 6546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6550if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6551then : 6552 printf %s "(cached) " >&6 6553else $as_nop 6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556int i; 6557_ACEOF 6558if ac_fn_c_try_compile "$LINENO" 6559then : 6560 xorg_cv_cc_flag_unknown_warning_option=yes 6561else $as_nop 6562 xorg_cv_cc_flag_unknown_warning_option=no 6563fi 6564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6565fi 6566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6569 CFLAGS="$xorg_testset_save_CFLAGS" 6570fi 6571 6572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6575 fi 6576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6579if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6580then : 6581 printf %s "(cached) " >&6 6582else $as_nop 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585int i; 6586_ACEOF 6587if ac_fn_c_try_compile "$LINENO" 6588then : 6589 xorg_cv_cc_flag_unused_command_line_argument=yes 6590else $as_nop 6591 xorg_cv_cc_flag_unused_command_line_argument=no 6592fi 6593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6594fi 6595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599fi 6600 6601found="no" 6602 6603 if test $found = "no" ; then 6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6606 fi 6607 6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6610 fi 6611 6612 CFLAGS="$CFLAGS -Wmissing-noreturn" 6613 6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6615printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6616 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6617 if eval test \${$cacheid+y} 6618then : 6619 printf %s "(cached) " >&6 6620else $as_nop 6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622/* end confdefs.h. */ 6623int i; 6624int 6625main (void) 6626{ 6627 6628 ; 6629 return 0; 6630} 6631_ACEOF 6632if ac_fn_c_try_link "$LINENO" 6633then : 6634 eval $cacheid=yes 6635else $as_nop 6636 eval $cacheid=no 6637fi 6638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6639 conftest$ac_exeext conftest.$ac_ext 6640fi 6641 6642 6643 CFLAGS="$xorg_testset_save_CFLAGS" 6644 6645 eval supported=\$$cacheid 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6647printf "%s\n" "$supported" >&6; } 6648 if test "$supported" = "yes" ; then 6649 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6650 found="yes" 6651 fi 6652 fi 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668xorg_testset_save_CFLAGS="$CFLAGS" 6669 6670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6674if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6675then : 6676 printf %s "(cached) " >&6 6677else $as_nop 6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6679/* end confdefs.h. */ 6680int i; 6681_ACEOF 6682if ac_fn_c_try_compile "$LINENO" 6683then : 6684 xorg_cv_cc_flag_unknown_warning_option=yes 6685else $as_nop 6686 xorg_cv_cc_flag_unknown_warning_option=no 6687fi 6688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6689fi 6690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6693 CFLAGS="$xorg_testset_save_CFLAGS" 6694fi 6695 6696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6699 fi 6700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6703if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6704then : 6705 printf %s "(cached) " >&6 6706else $as_nop 6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708/* end confdefs.h. */ 6709int i; 6710_ACEOF 6711if ac_fn_c_try_compile "$LINENO" 6712then : 6713 xorg_cv_cc_flag_unused_command_line_argument=yes 6714else $as_nop 6715 xorg_cv_cc_flag_unused_command_line_argument=no 6716fi 6717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6718fi 6719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6722 CFLAGS="$xorg_testset_save_CFLAGS" 6723fi 6724 6725found="no" 6726 6727 if test $found = "no" ; then 6728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6730 fi 6731 6732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6734 fi 6735 6736 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6737 6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6739printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6740 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6741 if eval test \${$cacheid+y} 6742then : 6743 printf %s "(cached) " >&6 6744else $as_nop 6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6746/* end confdefs.h. */ 6747int i; 6748int 6749main (void) 6750{ 6751 6752 ; 6753 return 0; 6754} 6755_ACEOF 6756if ac_fn_c_try_link "$LINENO" 6757then : 6758 eval $cacheid=yes 6759else $as_nop 6760 eval $cacheid=no 6761fi 6762rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6763 conftest$ac_exeext conftest.$ac_ext 6764fi 6765 6766 6767 CFLAGS="$xorg_testset_save_CFLAGS" 6768 6769 eval supported=\$$cacheid 6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6771printf "%s\n" "$supported" >&6; } 6772 if test "$supported" = "yes" ; then 6773 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6774 found="yes" 6775 fi 6776 fi 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792xorg_testset_save_CFLAGS="$CFLAGS" 6793 6794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6798if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6799then : 6800 printf %s "(cached) " >&6 6801else $as_nop 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804int i; 6805_ACEOF 6806if ac_fn_c_try_compile "$LINENO" 6807then : 6808 xorg_cv_cc_flag_unknown_warning_option=yes 6809else $as_nop 6810 xorg_cv_cc_flag_unknown_warning_option=no 6811fi 6812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6813fi 6814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6817 CFLAGS="$xorg_testset_save_CFLAGS" 6818fi 6819 6820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6823 fi 6824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6827if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6828then : 6829 printf %s "(cached) " >&6 6830else $as_nop 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833int i; 6834_ACEOF 6835if ac_fn_c_try_compile "$LINENO" 6836then : 6837 xorg_cv_cc_flag_unused_command_line_argument=yes 6838else $as_nop 6839 xorg_cv_cc_flag_unused_command_line_argument=no 6840fi 6841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6842fi 6843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6846 CFLAGS="$xorg_testset_save_CFLAGS" 6847fi 6848 6849found="no" 6850 6851 if test $found = "no" ; then 6852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6854 fi 6855 6856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6858 fi 6859 6860 CFLAGS="$CFLAGS -Wredundant-decls" 6861 6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6863printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6864 cacheid=xorg_cv_cc_flag__Wredundant_decls 6865 if eval test \${$cacheid+y} 6866then : 6867 printf %s "(cached) " >&6 6868else $as_nop 6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6870/* end confdefs.h. */ 6871int i; 6872int 6873main (void) 6874{ 6875 6876 ; 6877 return 0; 6878} 6879_ACEOF 6880if ac_fn_c_try_link "$LINENO" 6881then : 6882 eval $cacheid=yes 6883else $as_nop 6884 eval $cacheid=no 6885fi 6886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6887 conftest$ac_exeext conftest.$ac_ext 6888fi 6889 6890 6891 CFLAGS="$xorg_testset_save_CFLAGS" 6892 6893 eval supported=\$$cacheid 6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6895printf "%s\n" "$supported" >&6; } 6896 if test "$supported" = "yes" ; then 6897 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6898 found="yes" 6899 fi 6900 fi 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916xorg_testset_save_CFLAGS="$CFLAGS" 6917 6918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6923then : 6924 printf %s "(cached) " >&6 6925else $as_nop 6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6927/* end confdefs.h. */ 6928int i; 6929_ACEOF 6930if ac_fn_c_try_compile "$LINENO" 6931then : 6932 xorg_cv_cc_flag_unknown_warning_option=yes 6933else $as_nop 6934 xorg_cv_cc_flag_unknown_warning_option=no 6935fi 6936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6937fi 6938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6941 CFLAGS="$xorg_testset_save_CFLAGS" 6942fi 6943 6944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6947 fi 6948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6951if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6952then : 6953 printf %s "(cached) " >&6 6954else $as_nop 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957int i; 6958_ACEOF 6959if ac_fn_c_try_compile "$LINENO" 6960then : 6961 xorg_cv_cc_flag_unused_command_line_argument=yes 6962else $as_nop 6963 xorg_cv_cc_flag_unused_command_line_argument=no 6964fi 6965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6966fi 6967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6970 CFLAGS="$xorg_testset_save_CFLAGS" 6971fi 6972 6973found="no" 6974 6975 if test $found = "no" ; then 6976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6978 fi 6979 6980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6982 fi 6983 6984 CFLAGS="$CFLAGS -Wlogical-op" 6985 6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6987printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6988 cacheid=xorg_cv_cc_flag__Wlogical_op 6989 if eval test \${$cacheid+y} 6990then : 6991 printf %s "(cached) " >&6 6992else $as_nop 6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6994/* end confdefs.h. */ 6995int i; 6996int 6997main (void) 6998{ 6999 7000 ; 7001 return 0; 7002} 7003_ACEOF 7004if ac_fn_c_try_link "$LINENO" 7005then : 7006 eval $cacheid=yes 7007else $as_nop 7008 eval $cacheid=no 7009fi 7010rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7011 conftest$ac_exeext conftest.$ac_ext 7012fi 7013 7014 7015 CFLAGS="$xorg_testset_save_CFLAGS" 7016 7017 eval supported=\$$cacheid 7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7019printf "%s\n" "$supported" >&6; } 7020 if test "$supported" = "yes" ; then 7021 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7022 found="yes" 7023 fi 7024 fi 7025 7026 7027 7028# These are currently disabled because they are noisy. They will be enabled 7029# in the future once the codebase is sufficiently modernized to silence 7030# them. For now, I don't want them to drown out the other warnings. 7031# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7032# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7033# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7034 7035# Turn some warnings into errors, so we don't accidently get successful builds 7036# when there are problems that should be fixed. 7037 7038if test "x$SELECTIVE_WERROR" = "xyes" ; then 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052xorg_testset_save_CFLAGS="$CFLAGS" 7053 7054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7058if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7059then : 7060 printf %s "(cached) " >&6 7061else $as_nop 7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064int i; 7065_ACEOF 7066if ac_fn_c_try_compile "$LINENO" 7067then : 7068 xorg_cv_cc_flag_unknown_warning_option=yes 7069else $as_nop 7070 xorg_cv_cc_flag_unknown_warning_option=no 7071fi 7072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7073fi 7074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7077 CFLAGS="$xorg_testset_save_CFLAGS" 7078fi 7079 7080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7083 fi 7084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7087if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7088then : 7089 printf %s "(cached) " >&6 7090else $as_nop 7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092/* end confdefs.h. */ 7093int i; 7094_ACEOF 7095if ac_fn_c_try_compile "$LINENO" 7096then : 7097 xorg_cv_cc_flag_unused_command_line_argument=yes 7098else $as_nop 7099 xorg_cv_cc_flag_unused_command_line_argument=no 7100fi 7101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7102fi 7103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7106 CFLAGS="$xorg_testset_save_CFLAGS" 7107fi 7108 7109found="no" 7110 7111 if test $found = "no" ; then 7112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7114 fi 7115 7116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7118 fi 7119 7120 CFLAGS="$CFLAGS -Werror=implicit" 7121 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7123printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7124 cacheid=xorg_cv_cc_flag__Werror_implicit 7125 if eval test \${$cacheid+y} 7126then : 7127 printf %s "(cached) " >&6 7128else $as_nop 7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7130/* end confdefs.h. */ 7131int i; 7132int 7133main (void) 7134{ 7135 7136 ; 7137 return 0; 7138} 7139_ACEOF 7140if ac_fn_c_try_link "$LINENO" 7141then : 7142 eval $cacheid=yes 7143else $as_nop 7144 eval $cacheid=no 7145fi 7146rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7147 conftest$ac_exeext conftest.$ac_ext 7148fi 7149 7150 7151 CFLAGS="$xorg_testset_save_CFLAGS" 7152 7153 eval supported=\$$cacheid 7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7155printf "%s\n" "$supported" >&6; } 7156 if test "$supported" = "yes" ; then 7157 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7158 found="yes" 7159 fi 7160 fi 7161 7162 if test $found = "no" ; then 7163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7165 fi 7166 7167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7169 fi 7170 7171 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7172 7173 { 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 7174printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7175 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7176 if eval test \${$cacheid+y} 7177then : 7178 printf %s "(cached) " >&6 7179else $as_nop 7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7181/* end confdefs.h. */ 7182int i; 7183int 7184main (void) 7185{ 7186 7187 ; 7188 return 0; 7189} 7190_ACEOF 7191if ac_fn_c_try_link "$LINENO" 7192then : 7193 eval $cacheid=yes 7194else $as_nop 7195 eval $cacheid=no 7196fi 7197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7198 conftest$ac_exeext conftest.$ac_ext 7199fi 7200 7201 7202 CFLAGS="$xorg_testset_save_CFLAGS" 7203 7204 eval supported=\$$cacheid 7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7206printf "%s\n" "$supported" >&6; } 7207 if test "$supported" = "yes" ; then 7208 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7209 found="yes" 7210 fi 7211 fi 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227xorg_testset_save_CFLAGS="$CFLAGS" 7228 7229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7233if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7234then : 7235 printf %s "(cached) " >&6 7236else $as_nop 7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7238/* end confdefs.h. */ 7239int i; 7240_ACEOF 7241if ac_fn_c_try_compile "$LINENO" 7242then : 7243 xorg_cv_cc_flag_unknown_warning_option=yes 7244else $as_nop 7245 xorg_cv_cc_flag_unknown_warning_option=no 7246fi 7247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7248fi 7249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7250printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7252 CFLAGS="$xorg_testset_save_CFLAGS" 7253fi 7254 7255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7258 fi 7259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7261printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7262if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7263then : 7264 printf %s "(cached) " >&6 7265else $as_nop 7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7267/* end confdefs.h. */ 7268int i; 7269_ACEOF 7270if ac_fn_c_try_compile "$LINENO" 7271then : 7272 xorg_cv_cc_flag_unused_command_line_argument=yes 7273else $as_nop 7274 xorg_cv_cc_flag_unused_command_line_argument=no 7275fi 7276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7277fi 7278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7281 CFLAGS="$xorg_testset_save_CFLAGS" 7282fi 7283 7284found="no" 7285 7286 if test $found = "no" ; then 7287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7289 fi 7290 7291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7293 fi 7294 7295 CFLAGS="$CFLAGS -Werror=nonnull" 7296 7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7298printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7299 cacheid=xorg_cv_cc_flag__Werror_nonnull 7300 if eval test \${$cacheid+y} 7301then : 7302 printf %s "(cached) " >&6 7303else $as_nop 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306int i; 7307int 7308main (void) 7309{ 7310 7311 ; 7312 return 0; 7313} 7314_ACEOF 7315if ac_fn_c_try_link "$LINENO" 7316then : 7317 eval $cacheid=yes 7318else $as_nop 7319 eval $cacheid=no 7320fi 7321rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7322 conftest$ac_exeext conftest.$ac_ext 7323fi 7324 7325 7326 CFLAGS="$xorg_testset_save_CFLAGS" 7327 7328 eval supported=\$$cacheid 7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7330printf "%s\n" "$supported" >&6; } 7331 if test "$supported" = "yes" ; then 7332 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7333 found="yes" 7334 fi 7335 fi 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351xorg_testset_save_CFLAGS="$CFLAGS" 7352 7353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7356printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7357if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7358then : 7359 printf %s "(cached) " >&6 7360else $as_nop 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362/* end confdefs.h. */ 7363int i; 7364_ACEOF 7365if ac_fn_c_try_compile "$LINENO" 7366then : 7367 xorg_cv_cc_flag_unknown_warning_option=yes 7368else $as_nop 7369 xorg_cv_cc_flag_unknown_warning_option=no 7370fi 7371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7372fi 7373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7376 CFLAGS="$xorg_testset_save_CFLAGS" 7377fi 7378 7379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7382 fi 7383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7386if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7387then : 7388 printf %s "(cached) " >&6 7389else $as_nop 7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7391/* end confdefs.h. */ 7392int i; 7393_ACEOF 7394if ac_fn_c_try_compile "$LINENO" 7395then : 7396 xorg_cv_cc_flag_unused_command_line_argument=yes 7397else $as_nop 7398 xorg_cv_cc_flag_unused_command_line_argument=no 7399fi 7400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7401fi 7402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7405 CFLAGS="$xorg_testset_save_CFLAGS" 7406fi 7407 7408found="no" 7409 7410 if test $found = "no" ; then 7411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7413 fi 7414 7415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7417 fi 7418 7419 CFLAGS="$CFLAGS -Werror=init-self" 7420 7421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7422printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7423 cacheid=xorg_cv_cc_flag__Werror_init_self 7424 if eval test \${$cacheid+y} 7425then : 7426 printf %s "(cached) " >&6 7427else $as_nop 7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7429/* end confdefs.h. */ 7430int i; 7431int 7432main (void) 7433{ 7434 7435 ; 7436 return 0; 7437} 7438_ACEOF 7439if ac_fn_c_try_link "$LINENO" 7440then : 7441 eval $cacheid=yes 7442else $as_nop 7443 eval $cacheid=no 7444fi 7445rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7446 conftest$ac_exeext conftest.$ac_ext 7447fi 7448 7449 7450 CFLAGS="$xorg_testset_save_CFLAGS" 7451 7452 eval supported=\$$cacheid 7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7454printf "%s\n" "$supported" >&6; } 7455 if test "$supported" = "yes" ; then 7456 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7457 found="yes" 7458 fi 7459 fi 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475xorg_testset_save_CFLAGS="$CFLAGS" 7476 7477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7481if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7482then : 7483 printf %s "(cached) " >&6 7484else $as_nop 7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7486/* end confdefs.h. */ 7487int i; 7488_ACEOF 7489if ac_fn_c_try_compile "$LINENO" 7490then : 7491 xorg_cv_cc_flag_unknown_warning_option=yes 7492else $as_nop 7493 xorg_cv_cc_flag_unknown_warning_option=no 7494fi 7495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7496fi 7497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7500 CFLAGS="$xorg_testset_save_CFLAGS" 7501fi 7502 7503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7506 fi 7507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7510if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7511then : 7512 printf %s "(cached) " >&6 7513else $as_nop 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516int i; 7517_ACEOF 7518if ac_fn_c_try_compile "$LINENO" 7519then : 7520 xorg_cv_cc_flag_unused_command_line_argument=yes 7521else $as_nop 7522 xorg_cv_cc_flag_unused_command_line_argument=no 7523fi 7524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7525fi 7526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7529 CFLAGS="$xorg_testset_save_CFLAGS" 7530fi 7531 7532found="no" 7533 7534 if test $found = "no" ; then 7535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7537 fi 7538 7539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7541 fi 7542 7543 CFLAGS="$CFLAGS -Werror=main" 7544 7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7546printf %s "checking if $CC supports -Werror=main... " >&6; } 7547 cacheid=xorg_cv_cc_flag__Werror_main 7548 if eval test \${$cacheid+y} 7549then : 7550 printf %s "(cached) " >&6 7551else $as_nop 7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7553/* end confdefs.h. */ 7554int i; 7555int 7556main (void) 7557{ 7558 7559 ; 7560 return 0; 7561} 7562_ACEOF 7563if ac_fn_c_try_link "$LINENO" 7564then : 7565 eval $cacheid=yes 7566else $as_nop 7567 eval $cacheid=no 7568fi 7569rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7570 conftest$ac_exeext conftest.$ac_ext 7571fi 7572 7573 7574 CFLAGS="$xorg_testset_save_CFLAGS" 7575 7576 eval supported=\$$cacheid 7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7578printf "%s\n" "$supported" >&6; } 7579 if test "$supported" = "yes" ; then 7580 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7581 found="yes" 7582 fi 7583 fi 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599xorg_testset_save_CFLAGS="$CFLAGS" 7600 7601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7605if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7606then : 7607 printf %s "(cached) " >&6 7608else $as_nop 7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610/* end confdefs.h. */ 7611int i; 7612_ACEOF 7613if ac_fn_c_try_compile "$LINENO" 7614then : 7615 xorg_cv_cc_flag_unknown_warning_option=yes 7616else $as_nop 7617 xorg_cv_cc_flag_unknown_warning_option=no 7618fi 7619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7620fi 7621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7622printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625fi 7626 7627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7630 fi 7631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7633printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7634if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7635then : 7636 printf %s "(cached) " >&6 7637else $as_nop 7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7639/* end confdefs.h. */ 7640int i; 7641_ACEOF 7642if ac_fn_c_try_compile "$LINENO" 7643then : 7644 xorg_cv_cc_flag_unused_command_line_argument=yes 7645else $as_nop 7646 xorg_cv_cc_flag_unused_command_line_argument=no 7647fi 7648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7649fi 7650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7653 CFLAGS="$xorg_testset_save_CFLAGS" 7654fi 7655 7656found="no" 7657 7658 if test $found = "no" ; then 7659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7661 fi 7662 7663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7665 fi 7666 7667 CFLAGS="$CFLAGS -Werror=missing-braces" 7668 7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7670printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7671 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7672 if eval test \${$cacheid+y} 7673then : 7674 printf %s "(cached) " >&6 7675else $as_nop 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678int i; 7679int 7680main (void) 7681{ 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687if ac_fn_c_try_link "$LINENO" 7688then : 7689 eval $cacheid=yes 7690else $as_nop 7691 eval $cacheid=no 7692fi 7693rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7694 conftest$ac_exeext conftest.$ac_ext 7695fi 7696 7697 7698 CFLAGS="$xorg_testset_save_CFLAGS" 7699 7700 eval supported=\$$cacheid 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7702printf "%s\n" "$supported" >&6; } 7703 if test "$supported" = "yes" ; then 7704 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7705 found="yes" 7706 fi 7707 fi 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723xorg_testset_save_CFLAGS="$CFLAGS" 7724 7725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7728printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7729if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7730then : 7731 printf %s "(cached) " >&6 7732else $as_nop 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734/* end confdefs.h. */ 7735int i; 7736_ACEOF 7737if ac_fn_c_try_compile "$LINENO" 7738then : 7739 xorg_cv_cc_flag_unknown_warning_option=yes 7740else $as_nop 7741 xorg_cv_cc_flag_unknown_warning_option=no 7742fi 7743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7744fi 7745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7746printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7748 CFLAGS="$xorg_testset_save_CFLAGS" 7749fi 7750 7751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7754 fi 7755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7757printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7758if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7759then : 7760 printf %s "(cached) " >&6 7761else $as_nop 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764int i; 7765_ACEOF 7766if ac_fn_c_try_compile "$LINENO" 7767then : 7768 xorg_cv_cc_flag_unused_command_line_argument=yes 7769else $as_nop 7770 xorg_cv_cc_flag_unused_command_line_argument=no 7771fi 7772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7773fi 7774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7777 CFLAGS="$xorg_testset_save_CFLAGS" 7778fi 7779 7780found="no" 7781 7782 if test $found = "no" ; then 7783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7785 fi 7786 7787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7789 fi 7790 7791 CFLAGS="$CFLAGS -Werror=sequence-point" 7792 7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7794printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7795 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7796 if eval test \${$cacheid+y} 7797then : 7798 printf %s "(cached) " >&6 7799else $as_nop 7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7801/* end confdefs.h. */ 7802int i; 7803int 7804main (void) 7805{ 7806 7807 ; 7808 return 0; 7809} 7810_ACEOF 7811if ac_fn_c_try_link "$LINENO" 7812then : 7813 eval $cacheid=yes 7814else $as_nop 7815 eval $cacheid=no 7816fi 7817rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7818 conftest$ac_exeext conftest.$ac_ext 7819fi 7820 7821 7822 CFLAGS="$xorg_testset_save_CFLAGS" 7823 7824 eval supported=\$$cacheid 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7826printf "%s\n" "$supported" >&6; } 7827 if test "$supported" = "yes" ; then 7828 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7829 found="yes" 7830 fi 7831 fi 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847xorg_testset_save_CFLAGS="$CFLAGS" 7848 7849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7853if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7854then : 7855 printf %s "(cached) " >&6 7856else $as_nop 7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7858/* end confdefs.h. */ 7859int i; 7860_ACEOF 7861if ac_fn_c_try_compile "$LINENO" 7862then : 7863 xorg_cv_cc_flag_unknown_warning_option=yes 7864else $as_nop 7865 xorg_cv_cc_flag_unknown_warning_option=no 7866fi 7867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7868fi 7869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7872 CFLAGS="$xorg_testset_save_CFLAGS" 7873fi 7874 7875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7878 fi 7879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7882if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7883then : 7884 printf %s "(cached) " >&6 7885else $as_nop 7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7887/* end confdefs.h. */ 7888int i; 7889_ACEOF 7890if ac_fn_c_try_compile "$LINENO" 7891then : 7892 xorg_cv_cc_flag_unused_command_line_argument=yes 7893else $as_nop 7894 xorg_cv_cc_flag_unused_command_line_argument=no 7895fi 7896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7897fi 7898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7901 CFLAGS="$xorg_testset_save_CFLAGS" 7902fi 7903 7904found="no" 7905 7906 if test $found = "no" ; then 7907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7909 fi 7910 7911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7913 fi 7914 7915 CFLAGS="$CFLAGS -Werror=return-type" 7916 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7918printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7919 cacheid=xorg_cv_cc_flag__Werror_return_type 7920 if eval test \${$cacheid+y} 7921then : 7922 printf %s "(cached) " >&6 7923else $as_nop 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925/* end confdefs.h. */ 7926int i; 7927int 7928main (void) 7929{ 7930 7931 ; 7932 return 0; 7933} 7934_ACEOF 7935if ac_fn_c_try_link "$LINENO" 7936then : 7937 eval $cacheid=yes 7938else $as_nop 7939 eval $cacheid=no 7940fi 7941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7942 conftest$ac_exeext conftest.$ac_ext 7943fi 7944 7945 7946 CFLAGS="$xorg_testset_save_CFLAGS" 7947 7948 eval supported=\$$cacheid 7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7950printf "%s\n" "$supported" >&6; } 7951 if test "$supported" = "yes" ; then 7952 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7953 found="yes" 7954 fi 7955 fi 7956 7957 if test $found = "no" ; then 7958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7960 fi 7961 7962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7964 fi 7965 7966 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7967 7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7969printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7970 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7971 if eval test \${$cacheid+y} 7972then : 7973 printf %s "(cached) " >&6 7974else $as_nop 7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7976/* end confdefs.h. */ 7977int i; 7978int 7979main (void) 7980{ 7981 7982 ; 7983 return 0; 7984} 7985_ACEOF 7986if ac_fn_c_try_link "$LINENO" 7987then : 7988 eval $cacheid=yes 7989else $as_nop 7990 eval $cacheid=no 7991fi 7992rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7993 conftest$ac_exeext conftest.$ac_ext 7994fi 7995 7996 7997 CFLAGS="$xorg_testset_save_CFLAGS" 7998 7999 eval supported=\$$cacheid 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8001printf "%s\n" "$supported" >&6; } 8002 if test "$supported" = "yes" ; then 8003 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8004 found="yes" 8005 fi 8006 fi 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022xorg_testset_save_CFLAGS="$CFLAGS" 8023 8024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8028if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8029then : 8030 printf %s "(cached) " >&6 8031else $as_nop 8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8033/* end confdefs.h. */ 8034int i; 8035_ACEOF 8036if ac_fn_c_try_compile "$LINENO" 8037then : 8038 xorg_cv_cc_flag_unknown_warning_option=yes 8039else $as_nop 8040 xorg_cv_cc_flag_unknown_warning_option=no 8041fi 8042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8043fi 8044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8047 CFLAGS="$xorg_testset_save_CFLAGS" 8048fi 8049 8050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8053 fi 8054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8057if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8058then : 8059 printf %s "(cached) " >&6 8060else $as_nop 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062/* end confdefs.h. */ 8063int i; 8064_ACEOF 8065if ac_fn_c_try_compile "$LINENO" 8066then : 8067 xorg_cv_cc_flag_unused_command_line_argument=yes 8068else $as_nop 8069 xorg_cv_cc_flag_unused_command_line_argument=no 8070fi 8071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8072fi 8073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8076 CFLAGS="$xorg_testset_save_CFLAGS" 8077fi 8078 8079found="no" 8080 8081 if test $found = "no" ; then 8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8084 fi 8085 8086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8088 fi 8089 8090 CFLAGS="$CFLAGS -Werror=trigraphs" 8091 8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8093printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8094 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8095 if eval test \${$cacheid+y} 8096then : 8097 printf %s "(cached) " >&6 8098else $as_nop 8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8100/* end confdefs.h. */ 8101int i; 8102int 8103main (void) 8104{ 8105 8106 ; 8107 return 0; 8108} 8109_ACEOF 8110if ac_fn_c_try_link "$LINENO" 8111then : 8112 eval $cacheid=yes 8113else $as_nop 8114 eval $cacheid=no 8115fi 8116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8117 conftest$ac_exeext conftest.$ac_ext 8118fi 8119 8120 8121 CFLAGS="$xorg_testset_save_CFLAGS" 8122 8123 eval supported=\$$cacheid 8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8125printf "%s\n" "$supported" >&6; } 8126 if test "$supported" = "yes" ; then 8127 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8128 found="yes" 8129 fi 8130 fi 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146xorg_testset_save_CFLAGS="$CFLAGS" 8147 8148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8152if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8153then : 8154 printf %s "(cached) " >&6 8155else $as_nop 8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8157/* end confdefs.h. */ 8158int i; 8159_ACEOF 8160if ac_fn_c_try_compile "$LINENO" 8161then : 8162 xorg_cv_cc_flag_unknown_warning_option=yes 8163else $as_nop 8164 xorg_cv_cc_flag_unknown_warning_option=no 8165fi 8166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8167fi 8168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8171 CFLAGS="$xorg_testset_save_CFLAGS" 8172fi 8173 8174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8177 fi 8178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8181if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8182then : 8183 printf %s "(cached) " >&6 8184else $as_nop 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187int i; 8188_ACEOF 8189if ac_fn_c_try_compile "$LINENO" 8190then : 8191 xorg_cv_cc_flag_unused_command_line_argument=yes 8192else $as_nop 8193 xorg_cv_cc_flag_unused_command_line_argument=no 8194fi 8195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8196fi 8197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8200 CFLAGS="$xorg_testset_save_CFLAGS" 8201fi 8202 8203found="no" 8204 8205 if test $found = "no" ; then 8206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8208 fi 8209 8210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8212 fi 8213 8214 CFLAGS="$CFLAGS -Werror=array-bounds" 8215 8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8217printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8218 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8219 if eval test \${$cacheid+y} 8220then : 8221 printf %s "(cached) " >&6 8222else $as_nop 8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8224/* end confdefs.h. */ 8225int i; 8226int 8227main (void) 8228{ 8229 8230 ; 8231 return 0; 8232} 8233_ACEOF 8234if ac_fn_c_try_link "$LINENO" 8235then : 8236 eval $cacheid=yes 8237else $as_nop 8238 eval $cacheid=no 8239fi 8240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8241 conftest$ac_exeext conftest.$ac_ext 8242fi 8243 8244 8245 CFLAGS="$xorg_testset_save_CFLAGS" 8246 8247 eval supported=\$$cacheid 8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8249printf "%s\n" "$supported" >&6; } 8250 if test "$supported" = "yes" ; then 8251 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8252 found="yes" 8253 fi 8254 fi 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270xorg_testset_save_CFLAGS="$CFLAGS" 8271 8272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8276if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8277then : 8278 printf %s "(cached) " >&6 8279else $as_nop 8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8281/* end confdefs.h. */ 8282int i; 8283_ACEOF 8284if ac_fn_c_try_compile "$LINENO" 8285then : 8286 xorg_cv_cc_flag_unknown_warning_option=yes 8287else $as_nop 8288 xorg_cv_cc_flag_unknown_warning_option=no 8289fi 8290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8291fi 8292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8295 CFLAGS="$xorg_testset_save_CFLAGS" 8296fi 8297 8298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8301 fi 8302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8305if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8306then : 8307 printf %s "(cached) " >&6 8308else $as_nop 8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8310/* end confdefs.h. */ 8311int i; 8312_ACEOF 8313if ac_fn_c_try_compile "$LINENO" 8314then : 8315 xorg_cv_cc_flag_unused_command_line_argument=yes 8316else $as_nop 8317 xorg_cv_cc_flag_unused_command_line_argument=no 8318fi 8319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8320fi 8321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8324 CFLAGS="$xorg_testset_save_CFLAGS" 8325fi 8326 8327found="no" 8328 8329 if test $found = "no" ; then 8330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8332 fi 8333 8334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8336 fi 8337 8338 CFLAGS="$CFLAGS -Werror=write-strings" 8339 8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8341printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8342 cacheid=xorg_cv_cc_flag__Werror_write_strings 8343 if eval test \${$cacheid+y} 8344then : 8345 printf %s "(cached) " >&6 8346else $as_nop 8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348/* end confdefs.h. */ 8349int i; 8350int 8351main (void) 8352{ 8353 8354 ; 8355 return 0; 8356} 8357_ACEOF 8358if ac_fn_c_try_link "$LINENO" 8359then : 8360 eval $cacheid=yes 8361else $as_nop 8362 eval $cacheid=no 8363fi 8364rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8365 conftest$ac_exeext conftest.$ac_ext 8366fi 8367 8368 8369 CFLAGS="$xorg_testset_save_CFLAGS" 8370 8371 eval supported=\$$cacheid 8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8373printf "%s\n" "$supported" >&6; } 8374 if test "$supported" = "yes" ; then 8375 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8376 found="yes" 8377 fi 8378 fi 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394xorg_testset_save_CFLAGS="$CFLAGS" 8395 8396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8400if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8401then : 8402 printf %s "(cached) " >&6 8403else $as_nop 8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8405/* end confdefs.h. */ 8406int i; 8407_ACEOF 8408if ac_fn_c_try_compile "$LINENO" 8409then : 8410 xorg_cv_cc_flag_unknown_warning_option=yes 8411else $as_nop 8412 xorg_cv_cc_flag_unknown_warning_option=no 8413fi 8414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8415fi 8416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8419 CFLAGS="$xorg_testset_save_CFLAGS" 8420fi 8421 8422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8425 fi 8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8429if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8430then : 8431 printf %s "(cached) " >&6 8432else $as_nop 8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434/* end confdefs.h. */ 8435int i; 8436_ACEOF 8437if ac_fn_c_try_compile "$LINENO" 8438then : 8439 xorg_cv_cc_flag_unused_command_line_argument=yes 8440else $as_nop 8441 xorg_cv_cc_flag_unused_command_line_argument=no 8442fi 8443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8444fi 8445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8448 CFLAGS="$xorg_testset_save_CFLAGS" 8449fi 8450 8451found="no" 8452 8453 if test $found = "no" ; then 8454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8456 fi 8457 8458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8460 fi 8461 8462 CFLAGS="$CFLAGS -Werror=address" 8463 8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8465printf %s "checking if $CC supports -Werror=address... " >&6; } 8466 cacheid=xorg_cv_cc_flag__Werror_address 8467 if eval test \${$cacheid+y} 8468then : 8469 printf %s "(cached) " >&6 8470else $as_nop 8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8472/* end confdefs.h. */ 8473int i; 8474int 8475main (void) 8476{ 8477 8478 ; 8479 return 0; 8480} 8481_ACEOF 8482if ac_fn_c_try_link "$LINENO" 8483then : 8484 eval $cacheid=yes 8485else $as_nop 8486 eval $cacheid=no 8487fi 8488rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8489 conftest$ac_exeext conftest.$ac_ext 8490fi 8491 8492 8493 CFLAGS="$xorg_testset_save_CFLAGS" 8494 8495 eval supported=\$$cacheid 8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8497printf "%s\n" "$supported" >&6; } 8498 if test "$supported" = "yes" ; then 8499 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8500 found="yes" 8501 fi 8502 fi 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518xorg_testset_save_CFLAGS="$CFLAGS" 8519 8520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8524if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8525then : 8526 printf %s "(cached) " >&6 8527else $as_nop 8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8529/* end confdefs.h. */ 8530int i; 8531_ACEOF 8532if ac_fn_c_try_compile "$LINENO" 8533then : 8534 xorg_cv_cc_flag_unknown_warning_option=yes 8535else $as_nop 8536 xorg_cv_cc_flag_unknown_warning_option=no 8537fi 8538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8539fi 8540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8543 CFLAGS="$xorg_testset_save_CFLAGS" 8544fi 8545 8546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8549 fi 8550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8553if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8554then : 8555 printf %s "(cached) " >&6 8556else $as_nop 8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8558/* end confdefs.h. */ 8559int i; 8560_ACEOF 8561if ac_fn_c_try_compile "$LINENO" 8562then : 8563 xorg_cv_cc_flag_unused_command_line_argument=yes 8564else $as_nop 8565 xorg_cv_cc_flag_unused_command_line_argument=no 8566fi 8567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8568fi 8569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8572 CFLAGS="$xorg_testset_save_CFLAGS" 8573fi 8574 8575found="no" 8576 8577 if test $found = "no" ; then 8578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8580 fi 8581 8582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8584 fi 8585 8586 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8587 8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8589printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8590 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8591 if eval test \${$cacheid+y} 8592then : 8593 printf %s "(cached) " >&6 8594else $as_nop 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596/* end confdefs.h. */ 8597int i; 8598int 8599main (void) 8600{ 8601 8602 ; 8603 return 0; 8604} 8605_ACEOF 8606if ac_fn_c_try_link "$LINENO" 8607then : 8608 eval $cacheid=yes 8609else $as_nop 8610 eval $cacheid=no 8611fi 8612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8613 conftest$ac_exeext conftest.$ac_ext 8614fi 8615 8616 8617 CFLAGS="$xorg_testset_save_CFLAGS" 8618 8619 eval supported=\$$cacheid 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8621printf "%s\n" "$supported" >&6; } 8622 if test "$supported" = "yes" ; then 8623 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8624 found="yes" 8625 fi 8626 fi 8627 8628 if test $found = "no" ; then 8629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8631 fi 8632 8633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635 fi 8636 8637 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8638 8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8640printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8641 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8642 if eval test \${$cacheid+y} 8643then : 8644 printf %s "(cached) " >&6 8645else $as_nop 8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8647/* end confdefs.h. */ 8648int i; 8649int 8650main (void) 8651{ 8652 8653 ; 8654 return 0; 8655} 8656_ACEOF 8657if ac_fn_c_try_link "$LINENO" 8658then : 8659 eval $cacheid=yes 8660else $as_nop 8661 eval $cacheid=no 8662fi 8663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8664 conftest$ac_exeext conftest.$ac_ext 8665fi 8666 8667 8668 CFLAGS="$xorg_testset_save_CFLAGS" 8669 8670 eval supported=\$$cacheid 8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8672printf "%s\n" "$supported" >&6; } 8673 if test "$supported" = "yes" ; then 8674 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8675 found="yes" 8676 fi 8677 fi 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693xorg_testset_save_CFLAGS="$CFLAGS" 8694 8695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8698printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8699if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8700then : 8701 printf %s "(cached) " >&6 8702else $as_nop 8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705int i; 8706_ACEOF 8707if ac_fn_c_try_compile "$LINENO" 8708then : 8709 xorg_cv_cc_flag_unknown_warning_option=yes 8710else $as_nop 8711 xorg_cv_cc_flag_unknown_warning_option=no 8712fi 8713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8714fi 8715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8718 CFLAGS="$xorg_testset_save_CFLAGS" 8719fi 8720 8721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8724 fi 8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8728if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8729then : 8730 printf %s "(cached) " >&6 8731else $as_nop 8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8733/* end confdefs.h. */ 8734int i; 8735_ACEOF 8736if ac_fn_c_try_compile "$LINENO" 8737then : 8738 xorg_cv_cc_flag_unused_command_line_argument=yes 8739else $as_nop 8740 xorg_cv_cc_flag_unused_command_line_argument=no 8741fi 8742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8743fi 8744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8745printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8747 CFLAGS="$xorg_testset_save_CFLAGS" 8748fi 8749 8750found="no" 8751 8752 if test $found = "no" ; then 8753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8755 fi 8756 8757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8759 fi 8760 8761 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8762 8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8764printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8765 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8766 if eval test \${$cacheid+y} 8767then : 8768 printf %s "(cached) " >&6 8769else $as_nop 8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8771/* end confdefs.h. */ 8772int i; 8773int 8774main (void) 8775{ 8776 8777 ; 8778 return 0; 8779} 8780_ACEOF 8781if ac_fn_c_try_link "$LINENO" 8782then : 8783 eval $cacheid=yes 8784else $as_nop 8785 eval $cacheid=no 8786fi 8787rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8788 conftest$ac_exeext conftest.$ac_ext 8789fi 8790 8791 8792 CFLAGS="$xorg_testset_save_CFLAGS" 8793 8794 eval supported=\$$cacheid 8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8796printf "%s\n" "$supported" >&6; } 8797 if test "$supported" = "yes" ; then 8798 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8799 found="yes" 8800 fi 8801 fi 8802 8803 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8804else 8805{ 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 8806printf "%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;} 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820xorg_testset_save_CFLAGS="$CFLAGS" 8821 8822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8826if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8827then : 8828 printf %s "(cached) " >&6 8829else $as_nop 8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831/* end confdefs.h. */ 8832int i; 8833_ACEOF 8834if ac_fn_c_try_compile "$LINENO" 8835then : 8836 xorg_cv_cc_flag_unknown_warning_option=yes 8837else $as_nop 8838 xorg_cv_cc_flag_unknown_warning_option=no 8839fi 8840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8841fi 8842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8843printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8845 CFLAGS="$xorg_testset_save_CFLAGS" 8846fi 8847 8848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8851 fi 8852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8854printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8855if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8856then : 8857 printf %s "(cached) " >&6 8858else $as_nop 8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8860/* end confdefs.h. */ 8861int i; 8862_ACEOF 8863if ac_fn_c_try_compile "$LINENO" 8864then : 8865 xorg_cv_cc_flag_unused_command_line_argument=yes 8866else $as_nop 8867 xorg_cv_cc_flag_unused_command_line_argument=no 8868fi 8869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8870fi 8871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8872printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8874 CFLAGS="$xorg_testset_save_CFLAGS" 8875fi 8876 8877found="no" 8878 8879 if test $found = "no" ; then 8880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8882 fi 8883 8884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8886 fi 8887 8888 CFLAGS="$CFLAGS -Wimplicit" 8889 8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8891printf %s "checking if $CC supports -Wimplicit... " >&6; } 8892 cacheid=xorg_cv_cc_flag__Wimplicit 8893 if eval test \${$cacheid+y} 8894then : 8895 printf %s "(cached) " >&6 8896else $as_nop 8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898/* end confdefs.h. */ 8899int i; 8900int 8901main (void) 8902{ 8903 8904 ; 8905 return 0; 8906} 8907_ACEOF 8908if ac_fn_c_try_link "$LINENO" 8909then : 8910 eval $cacheid=yes 8911else $as_nop 8912 eval $cacheid=no 8913fi 8914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8915 conftest$ac_exeext conftest.$ac_ext 8916fi 8917 8918 8919 CFLAGS="$xorg_testset_save_CFLAGS" 8920 8921 eval supported=\$$cacheid 8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8923printf "%s\n" "$supported" >&6; } 8924 if test "$supported" = "yes" ; then 8925 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8926 found="yes" 8927 fi 8928 fi 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944xorg_testset_save_CFLAGS="$CFLAGS" 8945 8946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8950if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8951then : 8952 printf %s "(cached) " >&6 8953else $as_nop 8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8955/* end confdefs.h. */ 8956int i; 8957_ACEOF 8958if ac_fn_c_try_compile "$LINENO" 8959then : 8960 xorg_cv_cc_flag_unknown_warning_option=yes 8961else $as_nop 8962 xorg_cv_cc_flag_unknown_warning_option=no 8963fi 8964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8965fi 8966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8969 CFLAGS="$xorg_testset_save_CFLAGS" 8970fi 8971 8972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8975 fi 8976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8979if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8980then : 8981 printf %s "(cached) " >&6 8982else $as_nop 8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984/* end confdefs.h. */ 8985int i; 8986_ACEOF 8987if ac_fn_c_try_compile "$LINENO" 8988then : 8989 xorg_cv_cc_flag_unused_command_line_argument=yes 8990else $as_nop 8991 xorg_cv_cc_flag_unused_command_line_argument=no 8992fi 8993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8994fi 8995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8998 CFLAGS="$xorg_testset_save_CFLAGS" 8999fi 9000 9001found="no" 9002 9003 if test $found = "no" ; then 9004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9006 fi 9007 9008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9010 fi 9011 9012 CFLAGS="$CFLAGS -Wnonnull" 9013 9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9015printf %s "checking if $CC supports -Wnonnull... " >&6; } 9016 cacheid=xorg_cv_cc_flag__Wnonnull 9017 if eval test \${$cacheid+y} 9018then : 9019 printf %s "(cached) " >&6 9020else $as_nop 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9022/* end confdefs.h. */ 9023int i; 9024int 9025main (void) 9026{ 9027 9028 ; 9029 return 0; 9030} 9031_ACEOF 9032if ac_fn_c_try_link "$LINENO" 9033then : 9034 eval $cacheid=yes 9035else $as_nop 9036 eval $cacheid=no 9037fi 9038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9039 conftest$ac_exeext conftest.$ac_ext 9040fi 9041 9042 9043 CFLAGS="$xorg_testset_save_CFLAGS" 9044 9045 eval supported=\$$cacheid 9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9047printf "%s\n" "$supported" >&6; } 9048 if test "$supported" = "yes" ; then 9049 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9050 found="yes" 9051 fi 9052 fi 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068xorg_testset_save_CFLAGS="$CFLAGS" 9069 9070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9074if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9075then : 9076 printf %s "(cached) " >&6 9077else $as_nop 9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079/* end confdefs.h. */ 9080int i; 9081_ACEOF 9082if ac_fn_c_try_compile "$LINENO" 9083then : 9084 xorg_cv_cc_flag_unknown_warning_option=yes 9085else $as_nop 9086 xorg_cv_cc_flag_unknown_warning_option=no 9087fi 9088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9089fi 9090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9093 CFLAGS="$xorg_testset_save_CFLAGS" 9094fi 9095 9096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9099 fi 9100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9103if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9104then : 9105 printf %s "(cached) " >&6 9106else $as_nop 9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9108/* end confdefs.h. */ 9109int i; 9110_ACEOF 9111if ac_fn_c_try_compile "$LINENO" 9112then : 9113 xorg_cv_cc_flag_unused_command_line_argument=yes 9114else $as_nop 9115 xorg_cv_cc_flag_unused_command_line_argument=no 9116fi 9117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9118fi 9119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9122 CFLAGS="$xorg_testset_save_CFLAGS" 9123fi 9124 9125found="no" 9126 9127 if test $found = "no" ; then 9128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9130 fi 9131 9132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9134 fi 9135 9136 CFLAGS="$CFLAGS -Winit-self" 9137 9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9139printf %s "checking if $CC supports -Winit-self... " >&6; } 9140 cacheid=xorg_cv_cc_flag__Winit_self 9141 if eval test \${$cacheid+y} 9142then : 9143 printf %s "(cached) " >&6 9144else $as_nop 9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9146/* end confdefs.h. */ 9147int i; 9148int 9149main (void) 9150{ 9151 9152 ; 9153 return 0; 9154} 9155_ACEOF 9156if ac_fn_c_try_link "$LINENO" 9157then : 9158 eval $cacheid=yes 9159else $as_nop 9160 eval $cacheid=no 9161fi 9162rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9163 conftest$ac_exeext conftest.$ac_ext 9164fi 9165 9166 9167 CFLAGS="$xorg_testset_save_CFLAGS" 9168 9169 eval supported=\$$cacheid 9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9171printf "%s\n" "$supported" >&6; } 9172 if test "$supported" = "yes" ; then 9173 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9174 found="yes" 9175 fi 9176 fi 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192xorg_testset_save_CFLAGS="$CFLAGS" 9193 9194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9198if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9199then : 9200 printf %s "(cached) " >&6 9201else $as_nop 9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9203/* end confdefs.h. */ 9204int i; 9205_ACEOF 9206if ac_fn_c_try_compile "$LINENO" 9207then : 9208 xorg_cv_cc_flag_unknown_warning_option=yes 9209else $as_nop 9210 xorg_cv_cc_flag_unknown_warning_option=no 9211fi 9212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9213fi 9214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9217 CFLAGS="$xorg_testset_save_CFLAGS" 9218fi 9219 9220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9223 fi 9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9227if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9228then : 9229 printf %s "(cached) " >&6 9230else $as_nop 9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9232/* end confdefs.h. */ 9233int i; 9234_ACEOF 9235if ac_fn_c_try_compile "$LINENO" 9236then : 9237 xorg_cv_cc_flag_unused_command_line_argument=yes 9238else $as_nop 9239 xorg_cv_cc_flag_unused_command_line_argument=no 9240fi 9241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9242fi 9243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9246 CFLAGS="$xorg_testset_save_CFLAGS" 9247fi 9248 9249found="no" 9250 9251 if test $found = "no" ; then 9252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9254 fi 9255 9256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9258 fi 9259 9260 CFLAGS="$CFLAGS -Wmain" 9261 9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9263printf %s "checking if $CC supports -Wmain... " >&6; } 9264 cacheid=xorg_cv_cc_flag__Wmain 9265 if eval test \${$cacheid+y} 9266then : 9267 printf %s "(cached) " >&6 9268else $as_nop 9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270/* end confdefs.h. */ 9271int i; 9272int 9273main (void) 9274{ 9275 9276 ; 9277 return 0; 9278} 9279_ACEOF 9280if ac_fn_c_try_link "$LINENO" 9281then : 9282 eval $cacheid=yes 9283else $as_nop 9284 eval $cacheid=no 9285fi 9286rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9287 conftest$ac_exeext conftest.$ac_ext 9288fi 9289 9290 9291 CFLAGS="$xorg_testset_save_CFLAGS" 9292 9293 eval supported=\$$cacheid 9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9295printf "%s\n" "$supported" >&6; } 9296 if test "$supported" = "yes" ; then 9297 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9298 found="yes" 9299 fi 9300 fi 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316xorg_testset_save_CFLAGS="$CFLAGS" 9317 9318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9322if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9323then : 9324 printf %s "(cached) " >&6 9325else $as_nop 9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9327/* end confdefs.h. */ 9328int i; 9329_ACEOF 9330if ac_fn_c_try_compile "$LINENO" 9331then : 9332 xorg_cv_cc_flag_unknown_warning_option=yes 9333else $as_nop 9334 xorg_cv_cc_flag_unknown_warning_option=no 9335fi 9336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9337fi 9338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9341 CFLAGS="$xorg_testset_save_CFLAGS" 9342fi 9343 9344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9347 fi 9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9351if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9352then : 9353 printf %s "(cached) " >&6 9354else $as_nop 9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9356/* end confdefs.h. */ 9357int i; 9358_ACEOF 9359if ac_fn_c_try_compile "$LINENO" 9360then : 9361 xorg_cv_cc_flag_unused_command_line_argument=yes 9362else $as_nop 9363 xorg_cv_cc_flag_unused_command_line_argument=no 9364fi 9365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9366fi 9367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9370 CFLAGS="$xorg_testset_save_CFLAGS" 9371fi 9372 9373found="no" 9374 9375 if test $found = "no" ; then 9376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9378 fi 9379 9380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9382 fi 9383 9384 CFLAGS="$CFLAGS -Wmissing-braces" 9385 9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9387printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9388 cacheid=xorg_cv_cc_flag__Wmissing_braces 9389 if eval test \${$cacheid+y} 9390then : 9391 printf %s "(cached) " >&6 9392else $as_nop 9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394/* end confdefs.h. */ 9395int i; 9396int 9397main (void) 9398{ 9399 9400 ; 9401 return 0; 9402} 9403_ACEOF 9404if ac_fn_c_try_link "$LINENO" 9405then : 9406 eval $cacheid=yes 9407else $as_nop 9408 eval $cacheid=no 9409fi 9410rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9411 conftest$ac_exeext conftest.$ac_ext 9412fi 9413 9414 9415 CFLAGS="$xorg_testset_save_CFLAGS" 9416 9417 eval supported=\$$cacheid 9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9419printf "%s\n" "$supported" >&6; } 9420 if test "$supported" = "yes" ; then 9421 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9422 found="yes" 9423 fi 9424 fi 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440xorg_testset_save_CFLAGS="$CFLAGS" 9441 9442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9446if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9447then : 9448 printf %s "(cached) " >&6 9449else $as_nop 9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9451/* end confdefs.h. */ 9452int i; 9453_ACEOF 9454if ac_fn_c_try_compile "$LINENO" 9455then : 9456 xorg_cv_cc_flag_unknown_warning_option=yes 9457else $as_nop 9458 xorg_cv_cc_flag_unknown_warning_option=no 9459fi 9460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9461fi 9462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9465 CFLAGS="$xorg_testset_save_CFLAGS" 9466fi 9467 9468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9471 fi 9472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9475if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9476then : 9477 printf %s "(cached) " >&6 9478else $as_nop 9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480/* end confdefs.h. */ 9481int i; 9482_ACEOF 9483if ac_fn_c_try_compile "$LINENO" 9484then : 9485 xorg_cv_cc_flag_unused_command_line_argument=yes 9486else $as_nop 9487 xorg_cv_cc_flag_unused_command_line_argument=no 9488fi 9489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9490fi 9491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9494 CFLAGS="$xorg_testset_save_CFLAGS" 9495fi 9496 9497found="no" 9498 9499 if test $found = "no" ; then 9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9502 fi 9503 9504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9506 fi 9507 9508 CFLAGS="$CFLAGS -Wsequence-point" 9509 9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9511printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9512 cacheid=xorg_cv_cc_flag__Wsequence_point 9513 if eval test \${$cacheid+y} 9514then : 9515 printf %s "(cached) " >&6 9516else $as_nop 9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518/* end confdefs.h. */ 9519int i; 9520int 9521main (void) 9522{ 9523 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528if ac_fn_c_try_link "$LINENO" 9529then : 9530 eval $cacheid=yes 9531else $as_nop 9532 eval $cacheid=no 9533fi 9534rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9535 conftest$ac_exeext conftest.$ac_ext 9536fi 9537 9538 9539 CFLAGS="$xorg_testset_save_CFLAGS" 9540 9541 eval supported=\$$cacheid 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9543printf "%s\n" "$supported" >&6; } 9544 if test "$supported" = "yes" ; then 9545 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9546 found="yes" 9547 fi 9548 fi 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564xorg_testset_save_CFLAGS="$CFLAGS" 9565 9566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9570if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9571then : 9572 printf %s "(cached) " >&6 9573else $as_nop 9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9575/* end confdefs.h. */ 9576int i; 9577_ACEOF 9578if ac_fn_c_try_compile "$LINENO" 9579then : 9580 xorg_cv_cc_flag_unknown_warning_option=yes 9581else $as_nop 9582 xorg_cv_cc_flag_unknown_warning_option=no 9583fi 9584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9585fi 9586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9589 CFLAGS="$xorg_testset_save_CFLAGS" 9590fi 9591 9592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9595 fi 9596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9599if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9600then : 9601 printf %s "(cached) " >&6 9602else $as_nop 9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9604/* end confdefs.h. */ 9605int i; 9606_ACEOF 9607if ac_fn_c_try_compile "$LINENO" 9608then : 9609 xorg_cv_cc_flag_unused_command_line_argument=yes 9610else $as_nop 9611 xorg_cv_cc_flag_unused_command_line_argument=no 9612fi 9613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9614fi 9615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9618 CFLAGS="$xorg_testset_save_CFLAGS" 9619fi 9620 9621found="no" 9622 9623 if test $found = "no" ; then 9624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9626 fi 9627 9628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9630 fi 9631 9632 CFLAGS="$CFLAGS -Wreturn-type" 9633 9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9635printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9636 cacheid=xorg_cv_cc_flag__Wreturn_type 9637 if eval test \${$cacheid+y} 9638then : 9639 printf %s "(cached) " >&6 9640else $as_nop 9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9642/* end confdefs.h. */ 9643int i; 9644int 9645main (void) 9646{ 9647 9648 ; 9649 return 0; 9650} 9651_ACEOF 9652if ac_fn_c_try_link "$LINENO" 9653then : 9654 eval $cacheid=yes 9655else $as_nop 9656 eval $cacheid=no 9657fi 9658rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9659 conftest$ac_exeext conftest.$ac_ext 9660fi 9661 9662 9663 CFLAGS="$xorg_testset_save_CFLAGS" 9664 9665 eval supported=\$$cacheid 9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9667printf "%s\n" "$supported" >&6; } 9668 if test "$supported" = "yes" ; then 9669 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9670 found="yes" 9671 fi 9672 fi 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688xorg_testset_save_CFLAGS="$CFLAGS" 9689 9690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9694if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9695then : 9696 printf %s "(cached) " >&6 9697else $as_nop 9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9699/* end confdefs.h. */ 9700int i; 9701_ACEOF 9702if ac_fn_c_try_compile "$LINENO" 9703then : 9704 xorg_cv_cc_flag_unknown_warning_option=yes 9705else $as_nop 9706 xorg_cv_cc_flag_unknown_warning_option=no 9707fi 9708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9709fi 9710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9713 CFLAGS="$xorg_testset_save_CFLAGS" 9714fi 9715 9716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9719 fi 9720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9723if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9724then : 9725 printf %s "(cached) " >&6 9726else $as_nop 9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9728/* end confdefs.h. */ 9729int i; 9730_ACEOF 9731if ac_fn_c_try_compile "$LINENO" 9732then : 9733 xorg_cv_cc_flag_unused_command_line_argument=yes 9734else $as_nop 9735 xorg_cv_cc_flag_unused_command_line_argument=no 9736fi 9737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9738fi 9739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9742 CFLAGS="$xorg_testset_save_CFLAGS" 9743fi 9744 9745found="no" 9746 9747 if test $found = "no" ; then 9748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9750 fi 9751 9752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9754 fi 9755 9756 CFLAGS="$CFLAGS -Wtrigraphs" 9757 9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9759printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9760 cacheid=xorg_cv_cc_flag__Wtrigraphs 9761 if eval test \${$cacheid+y} 9762then : 9763 printf %s "(cached) " >&6 9764else $as_nop 9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9766/* end confdefs.h. */ 9767int i; 9768int 9769main (void) 9770{ 9771 9772 ; 9773 return 0; 9774} 9775_ACEOF 9776if ac_fn_c_try_link "$LINENO" 9777then : 9778 eval $cacheid=yes 9779else $as_nop 9780 eval $cacheid=no 9781fi 9782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9783 conftest$ac_exeext conftest.$ac_ext 9784fi 9785 9786 9787 CFLAGS="$xorg_testset_save_CFLAGS" 9788 9789 eval supported=\$$cacheid 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9791printf "%s\n" "$supported" >&6; } 9792 if test "$supported" = "yes" ; then 9793 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9794 found="yes" 9795 fi 9796 fi 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812xorg_testset_save_CFLAGS="$CFLAGS" 9813 9814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9818if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9819then : 9820 printf %s "(cached) " >&6 9821else $as_nop 9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823/* end confdefs.h. */ 9824int i; 9825_ACEOF 9826if ac_fn_c_try_compile "$LINENO" 9827then : 9828 xorg_cv_cc_flag_unknown_warning_option=yes 9829else $as_nop 9830 xorg_cv_cc_flag_unknown_warning_option=no 9831fi 9832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9833fi 9834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9837 CFLAGS="$xorg_testset_save_CFLAGS" 9838fi 9839 9840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9843 fi 9844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9847if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9848then : 9849 printf %s "(cached) " >&6 9850else $as_nop 9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853int i; 9854_ACEOF 9855if ac_fn_c_try_compile "$LINENO" 9856then : 9857 xorg_cv_cc_flag_unused_command_line_argument=yes 9858else $as_nop 9859 xorg_cv_cc_flag_unused_command_line_argument=no 9860fi 9861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9862fi 9863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9866 CFLAGS="$xorg_testset_save_CFLAGS" 9867fi 9868 9869found="no" 9870 9871 if test $found = "no" ; then 9872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9874 fi 9875 9876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9878 fi 9879 9880 CFLAGS="$CFLAGS -Warray-bounds" 9881 9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9883printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9884 cacheid=xorg_cv_cc_flag__Warray_bounds 9885 if eval test \${$cacheid+y} 9886then : 9887 printf %s "(cached) " >&6 9888else $as_nop 9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9890/* end confdefs.h. */ 9891int i; 9892int 9893main (void) 9894{ 9895 9896 ; 9897 return 0; 9898} 9899_ACEOF 9900if ac_fn_c_try_link "$LINENO" 9901then : 9902 eval $cacheid=yes 9903else $as_nop 9904 eval $cacheid=no 9905fi 9906rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9907 conftest$ac_exeext conftest.$ac_ext 9908fi 9909 9910 9911 CFLAGS="$xorg_testset_save_CFLAGS" 9912 9913 eval supported=\$$cacheid 9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9915printf "%s\n" "$supported" >&6; } 9916 if test "$supported" = "yes" ; then 9917 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9918 found="yes" 9919 fi 9920 fi 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936xorg_testset_save_CFLAGS="$CFLAGS" 9937 9938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9942if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9943then : 9944 printf %s "(cached) " >&6 9945else $as_nop 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947/* end confdefs.h. */ 9948int i; 9949_ACEOF 9950if ac_fn_c_try_compile "$LINENO" 9951then : 9952 xorg_cv_cc_flag_unknown_warning_option=yes 9953else $as_nop 9954 xorg_cv_cc_flag_unknown_warning_option=no 9955fi 9956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9957fi 9958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9961 CFLAGS="$xorg_testset_save_CFLAGS" 9962fi 9963 9964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9967 fi 9968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9971if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9972then : 9973 printf %s "(cached) " >&6 9974else $as_nop 9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976/* end confdefs.h. */ 9977int i; 9978_ACEOF 9979if ac_fn_c_try_compile "$LINENO" 9980then : 9981 xorg_cv_cc_flag_unused_command_line_argument=yes 9982else $as_nop 9983 xorg_cv_cc_flag_unused_command_line_argument=no 9984fi 9985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9986fi 9987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9990 CFLAGS="$xorg_testset_save_CFLAGS" 9991fi 9992 9993found="no" 9994 9995 if test $found = "no" ; then 9996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9998 fi 9999 10000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10002 fi 10003 10004 CFLAGS="$CFLAGS -Wwrite-strings" 10005 10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10007printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10008 cacheid=xorg_cv_cc_flag__Wwrite_strings 10009 if eval test \${$cacheid+y} 10010then : 10011 printf %s "(cached) " >&6 10012else $as_nop 10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10014/* end confdefs.h. */ 10015int i; 10016int 10017main (void) 10018{ 10019 10020 ; 10021 return 0; 10022} 10023_ACEOF 10024if ac_fn_c_try_link "$LINENO" 10025then : 10026 eval $cacheid=yes 10027else $as_nop 10028 eval $cacheid=no 10029fi 10030rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10031 conftest$ac_exeext conftest.$ac_ext 10032fi 10033 10034 10035 CFLAGS="$xorg_testset_save_CFLAGS" 10036 10037 eval supported=\$$cacheid 10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10039printf "%s\n" "$supported" >&6; } 10040 if test "$supported" = "yes" ; then 10041 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10042 found="yes" 10043 fi 10044 fi 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060xorg_testset_save_CFLAGS="$CFLAGS" 10061 10062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10066if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10067then : 10068 printf %s "(cached) " >&6 10069else $as_nop 10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10071/* end confdefs.h. */ 10072int i; 10073_ACEOF 10074if ac_fn_c_try_compile "$LINENO" 10075then : 10076 xorg_cv_cc_flag_unknown_warning_option=yes 10077else $as_nop 10078 xorg_cv_cc_flag_unknown_warning_option=no 10079fi 10080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10081fi 10082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10085 CFLAGS="$xorg_testset_save_CFLAGS" 10086fi 10087 10088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10091 fi 10092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10095if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10096then : 10097 printf %s "(cached) " >&6 10098else $as_nop 10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10100/* end confdefs.h. */ 10101int i; 10102_ACEOF 10103if ac_fn_c_try_compile "$LINENO" 10104then : 10105 xorg_cv_cc_flag_unused_command_line_argument=yes 10106else $as_nop 10107 xorg_cv_cc_flag_unused_command_line_argument=no 10108fi 10109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10110fi 10111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10114 CFLAGS="$xorg_testset_save_CFLAGS" 10115fi 10116 10117found="no" 10118 10119 if test $found = "no" ; then 10120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10122 fi 10123 10124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10126 fi 10127 10128 CFLAGS="$CFLAGS -Waddress" 10129 10130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10131printf %s "checking if $CC supports -Waddress... " >&6; } 10132 cacheid=xorg_cv_cc_flag__Waddress 10133 if eval test \${$cacheid+y} 10134then : 10135 printf %s "(cached) " >&6 10136else $as_nop 10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10138/* end confdefs.h. */ 10139int i; 10140int 10141main (void) 10142{ 10143 10144 ; 10145 return 0; 10146} 10147_ACEOF 10148if ac_fn_c_try_link "$LINENO" 10149then : 10150 eval $cacheid=yes 10151else $as_nop 10152 eval $cacheid=no 10153fi 10154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10155 conftest$ac_exeext conftest.$ac_ext 10156fi 10157 10158 10159 CFLAGS="$xorg_testset_save_CFLAGS" 10160 10161 eval supported=\$$cacheid 10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10163printf "%s\n" "$supported" >&6; } 10164 if test "$supported" = "yes" ; then 10165 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10166 found="yes" 10167 fi 10168 fi 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184xorg_testset_save_CFLAGS="$CFLAGS" 10185 10186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10189printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10190if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10191then : 10192 printf %s "(cached) " >&6 10193else $as_nop 10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10195/* end confdefs.h. */ 10196int i; 10197_ACEOF 10198if ac_fn_c_try_compile "$LINENO" 10199then : 10200 xorg_cv_cc_flag_unknown_warning_option=yes 10201else $as_nop 10202 xorg_cv_cc_flag_unknown_warning_option=no 10203fi 10204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10205fi 10206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10209 CFLAGS="$xorg_testset_save_CFLAGS" 10210fi 10211 10212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10215 fi 10216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10219if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10220then : 10221 printf %s "(cached) " >&6 10222else $as_nop 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225int i; 10226_ACEOF 10227if ac_fn_c_try_compile "$LINENO" 10228then : 10229 xorg_cv_cc_flag_unused_command_line_argument=yes 10230else $as_nop 10231 xorg_cv_cc_flag_unused_command_line_argument=no 10232fi 10233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10234fi 10235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10238 CFLAGS="$xorg_testset_save_CFLAGS" 10239fi 10240 10241found="no" 10242 10243 if test $found = "no" ; then 10244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10246 fi 10247 10248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10250 fi 10251 10252 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10253 10254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10255printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10256 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10257 if eval test \${$cacheid+y} 10258then : 10259 printf %s "(cached) " >&6 10260else $as_nop 10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10262/* end confdefs.h. */ 10263int i; 10264int 10265main (void) 10266{ 10267 10268 ; 10269 return 0; 10270} 10271_ACEOF 10272if ac_fn_c_try_link "$LINENO" 10273then : 10274 eval $cacheid=yes 10275else $as_nop 10276 eval $cacheid=no 10277fi 10278rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10279 conftest$ac_exeext conftest.$ac_ext 10280fi 10281 10282 10283 CFLAGS="$xorg_testset_save_CFLAGS" 10284 10285 eval supported=\$$cacheid 10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10287printf "%s\n" "$supported" >&6; } 10288 if test "$supported" = "yes" ; then 10289 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10290 found="yes" 10291 fi 10292 fi 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308xorg_testset_save_CFLAGS="$CFLAGS" 10309 10310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10313printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10314if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10315then : 10316 printf %s "(cached) " >&6 10317else $as_nop 10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10319/* end confdefs.h. */ 10320int i; 10321_ACEOF 10322if ac_fn_c_try_compile "$LINENO" 10323then : 10324 xorg_cv_cc_flag_unknown_warning_option=yes 10325else $as_nop 10326 xorg_cv_cc_flag_unknown_warning_option=no 10327fi 10328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10329fi 10330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10333 CFLAGS="$xorg_testset_save_CFLAGS" 10334fi 10335 10336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10339 fi 10340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10343if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10344then : 10345 printf %s "(cached) " >&6 10346else $as_nop 10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10348/* end confdefs.h. */ 10349int i; 10350_ACEOF 10351if ac_fn_c_try_compile "$LINENO" 10352then : 10353 xorg_cv_cc_flag_unused_command_line_argument=yes 10354else $as_nop 10355 xorg_cv_cc_flag_unused_command_line_argument=no 10356fi 10357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10358fi 10359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10360printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10362 CFLAGS="$xorg_testset_save_CFLAGS" 10363fi 10364 10365found="no" 10366 10367 if test $found = "no" ; then 10368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10370 fi 10371 10372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10374 fi 10375 10376 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10377 10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10379printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10380 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10381 if eval test \${$cacheid+y} 10382then : 10383 printf %s "(cached) " >&6 10384else $as_nop 10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10386/* end confdefs.h. */ 10387int i; 10388int 10389main (void) 10390{ 10391 10392 ; 10393 return 0; 10394} 10395_ACEOF 10396if ac_fn_c_try_link "$LINENO" 10397then : 10398 eval $cacheid=yes 10399else $as_nop 10400 eval $cacheid=no 10401fi 10402rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10403 conftest$ac_exeext conftest.$ac_ext 10404fi 10405 10406 10407 CFLAGS="$xorg_testset_save_CFLAGS" 10408 10409 eval supported=\$$cacheid 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10411printf "%s\n" "$supported" >&6; } 10412 if test "$supported" = "yes" ; then 10413 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10414 found="yes" 10415 fi 10416 fi 10417 10418 10419fi 10420 10421 10422 10423 10424 10425 10426 10427 CWARNFLAGS="$BASE_CFLAGS" 10428 if test "x$GCC" = xyes ; then 10429 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10430 fi 10431 10432 10433 10434 10435 10436 10437 10438 10439# Check whether --enable-strict-compilation was given. 10440if test ${enable_strict_compilation+y} 10441then : 10442 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10443else $as_nop 10444 STRICT_COMPILE=no 10445fi 10446 10447 10448 10449 10450 10451 10452STRICT_CFLAGS="" 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466xorg_testset_save_CFLAGS="$CFLAGS" 10467 10468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10472if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10473then : 10474 printf %s "(cached) " >&6 10475else $as_nop 10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10477/* end confdefs.h. */ 10478int i; 10479_ACEOF 10480if ac_fn_c_try_compile "$LINENO" 10481then : 10482 xorg_cv_cc_flag_unknown_warning_option=yes 10483else $as_nop 10484 xorg_cv_cc_flag_unknown_warning_option=no 10485fi 10486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10487fi 10488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10491 CFLAGS="$xorg_testset_save_CFLAGS" 10492fi 10493 10494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10497 fi 10498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10501if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10502then : 10503 printf %s "(cached) " >&6 10504else $as_nop 10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10506/* end confdefs.h. */ 10507int i; 10508_ACEOF 10509if ac_fn_c_try_compile "$LINENO" 10510then : 10511 xorg_cv_cc_flag_unused_command_line_argument=yes 10512else $as_nop 10513 xorg_cv_cc_flag_unused_command_line_argument=no 10514fi 10515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10516fi 10517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10520 CFLAGS="$xorg_testset_save_CFLAGS" 10521fi 10522 10523found="no" 10524 10525 if test $found = "no" ; then 10526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10528 fi 10529 10530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10532 fi 10533 10534 CFLAGS="$CFLAGS -pedantic" 10535 10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10537printf %s "checking if $CC supports -pedantic... " >&6; } 10538 cacheid=xorg_cv_cc_flag__pedantic 10539 if eval test \${$cacheid+y} 10540then : 10541 printf %s "(cached) " >&6 10542else $as_nop 10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10544/* end confdefs.h. */ 10545int i; 10546int 10547main (void) 10548{ 10549 10550 ; 10551 return 0; 10552} 10553_ACEOF 10554if ac_fn_c_try_link "$LINENO" 10555then : 10556 eval $cacheid=yes 10557else $as_nop 10558 eval $cacheid=no 10559fi 10560rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10561 conftest$ac_exeext conftest.$ac_ext 10562fi 10563 10564 10565 CFLAGS="$xorg_testset_save_CFLAGS" 10566 10567 eval supported=\$$cacheid 10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10569printf "%s\n" "$supported" >&6; } 10570 if test "$supported" = "yes" ; then 10571 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10572 found="yes" 10573 fi 10574 fi 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590xorg_testset_save_CFLAGS="$CFLAGS" 10591 10592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10596if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10597then : 10598 printf %s "(cached) " >&6 10599else $as_nop 10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10601/* end confdefs.h. */ 10602int i; 10603_ACEOF 10604if ac_fn_c_try_compile "$LINENO" 10605then : 10606 xorg_cv_cc_flag_unknown_warning_option=yes 10607else $as_nop 10608 xorg_cv_cc_flag_unknown_warning_option=no 10609fi 10610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10611fi 10612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10615 CFLAGS="$xorg_testset_save_CFLAGS" 10616fi 10617 10618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10621 fi 10622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10625if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10626then : 10627 printf %s "(cached) " >&6 10628else $as_nop 10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10630/* end confdefs.h. */ 10631int i; 10632_ACEOF 10633if ac_fn_c_try_compile "$LINENO" 10634then : 10635 xorg_cv_cc_flag_unused_command_line_argument=yes 10636else $as_nop 10637 xorg_cv_cc_flag_unused_command_line_argument=no 10638fi 10639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10640fi 10641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10644 CFLAGS="$xorg_testset_save_CFLAGS" 10645fi 10646 10647found="no" 10648 10649 if test $found = "no" ; then 10650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10652 fi 10653 10654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10656 fi 10657 10658 CFLAGS="$CFLAGS -Werror" 10659 10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10661printf %s "checking if $CC supports -Werror... " >&6; } 10662 cacheid=xorg_cv_cc_flag__Werror 10663 if eval test \${$cacheid+y} 10664then : 10665 printf %s "(cached) " >&6 10666else $as_nop 10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10668/* end confdefs.h. */ 10669int i; 10670int 10671main (void) 10672{ 10673 10674 ; 10675 return 0; 10676} 10677_ACEOF 10678if ac_fn_c_try_link "$LINENO" 10679then : 10680 eval $cacheid=yes 10681else $as_nop 10682 eval $cacheid=no 10683fi 10684rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10685 conftest$ac_exeext conftest.$ac_ext 10686fi 10687 10688 10689 CFLAGS="$xorg_testset_save_CFLAGS" 10690 10691 eval supported=\$$cacheid 10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10693printf "%s\n" "$supported" >&6; } 10694 if test "$supported" = "yes" ; then 10695 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10696 found="yes" 10697 fi 10698 fi 10699 10700 if test $found = "no" ; then 10701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10703 fi 10704 10705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10707 fi 10708 10709 CFLAGS="$CFLAGS -errwarn" 10710 10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10712printf %s "checking if $CC supports -errwarn... " >&6; } 10713 cacheid=xorg_cv_cc_flag__errwarn 10714 if eval test \${$cacheid+y} 10715then : 10716 printf %s "(cached) " >&6 10717else $as_nop 10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10719/* end confdefs.h. */ 10720int i; 10721int 10722main (void) 10723{ 10724 10725 ; 10726 return 0; 10727} 10728_ACEOF 10729if ac_fn_c_try_link "$LINENO" 10730then : 10731 eval $cacheid=yes 10732else $as_nop 10733 eval $cacheid=no 10734fi 10735rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10736 conftest$ac_exeext conftest.$ac_ext 10737fi 10738 10739 10740 CFLAGS="$xorg_testset_save_CFLAGS" 10741 10742 eval supported=\$$cacheid 10743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10744printf "%s\n" "$supported" >&6; } 10745 if test "$supported" = "yes" ; then 10746 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10747 found="yes" 10748 fi 10749 fi 10750 10751 10752 10753# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10754# activate it with -Werror, so we add it here explicitly. 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768xorg_testset_save_CFLAGS="$CFLAGS" 10769 10770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10773printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10774if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10775then : 10776 printf %s "(cached) " >&6 10777else $as_nop 10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10779/* end confdefs.h. */ 10780int i; 10781_ACEOF 10782if ac_fn_c_try_compile "$LINENO" 10783then : 10784 xorg_cv_cc_flag_unknown_warning_option=yes 10785else $as_nop 10786 xorg_cv_cc_flag_unknown_warning_option=no 10787fi 10788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10789fi 10790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10793 CFLAGS="$xorg_testset_save_CFLAGS" 10794fi 10795 10796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10799 fi 10800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10803if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10804then : 10805 printf %s "(cached) " >&6 10806else $as_nop 10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10808/* end confdefs.h. */ 10809int i; 10810_ACEOF 10811if ac_fn_c_try_compile "$LINENO" 10812then : 10813 xorg_cv_cc_flag_unused_command_line_argument=yes 10814else $as_nop 10815 xorg_cv_cc_flag_unused_command_line_argument=no 10816fi 10817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10818fi 10819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10820printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10822 CFLAGS="$xorg_testset_save_CFLAGS" 10823fi 10824 10825found="no" 10826 10827 if test $found = "no" ; then 10828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10830 fi 10831 10832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10834 fi 10835 10836 CFLAGS="$CFLAGS -Werror=attributes" 10837 10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10839printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10840 cacheid=xorg_cv_cc_flag__Werror_attributes 10841 if eval test \${$cacheid+y} 10842then : 10843 printf %s "(cached) " >&6 10844else $as_nop 10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10846/* end confdefs.h. */ 10847int i; 10848int 10849main (void) 10850{ 10851 10852 ; 10853 return 0; 10854} 10855_ACEOF 10856if ac_fn_c_try_link "$LINENO" 10857then : 10858 eval $cacheid=yes 10859else $as_nop 10860 eval $cacheid=no 10861fi 10862rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10863 conftest$ac_exeext conftest.$ac_ext 10864fi 10865 10866 10867 CFLAGS="$xorg_testset_save_CFLAGS" 10868 10869 eval supported=\$$cacheid 10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10871printf "%s\n" "$supported" >&6; } 10872 if test "$supported" = "yes" ; then 10873 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10874 found="yes" 10875 fi 10876 fi 10877 10878 10879 10880if test "x$STRICT_COMPILE" = "xyes"; then 10881 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10882 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10883fi 10884 10885 10886 10887 10888 10889 10890cat >>confdefs.h <<_ACEOF 10891#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10892_ACEOF 10893 10894 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10895 if test "x$PVM" = "x"; then 10896 PVM="0" 10897 fi 10898 10899printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10900 10901 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10902 if test "x$PVP" = "x"; then 10903 PVP="0" 10904 fi 10905 10906printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10907 10908 10909 10910CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10911mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10912|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10913touch \$(top_srcdir)/ChangeLog; \ 10914echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10915 10916 10917 10918 10919macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10920INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10921mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10922|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10923touch \$(top_srcdir)/INSTALL; \ 10924echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10925 10926 10927 10928 10929 10930 10931case $host_os in 10932 solaris*) 10933 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10934 # check for a man page file found in later versions that use 10935 # traditional section numbers instead 10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10937printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10938if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10939then : 10940 printf %s "(cached) " >&6 10941else $as_nop 10942 test "$cross_compiling" = yes && 10943 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10944if test -r "/usr/share/man/man7/attributes.7"; then 10945 ac_cv_file__usr_share_man_man7_attributes_7=yes 10946else 10947 ac_cv_file__usr_share_man_man7_attributes_7=no 10948fi 10949fi 10950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10951printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10952if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10953then : 10954 SYSV_MAN_SECTIONS=false 10955else $as_nop 10956 SYSV_MAN_SECTIONS=true 10957fi 10958 10959 ;; 10960 *) SYSV_MAN_SECTIONS=false ;; 10961esac 10962 10963if test x$APP_MAN_SUFFIX = x ; then 10964 APP_MAN_SUFFIX=1 10965fi 10966if test x$APP_MAN_DIR = x ; then 10967 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10968fi 10969 10970if test x$LIB_MAN_SUFFIX = x ; then 10971 LIB_MAN_SUFFIX=3 10972fi 10973if test x$LIB_MAN_DIR = x ; then 10974 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10975fi 10976 10977if test x$FILE_MAN_SUFFIX = x ; then 10978 case $SYSV_MAN_SECTIONS in 10979 true) FILE_MAN_SUFFIX=4 ;; 10980 *) FILE_MAN_SUFFIX=5 ;; 10981 esac 10982fi 10983if test x$FILE_MAN_DIR = x ; then 10984 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10985fi 10986 10987if test x$MISC_MAN_SUFFIX = x ; then 10988 case $SYSV_MAN_SECTIONS in 10989 true) MISC_MAN_SUFFIX=5 ;; 10990 *) MISC_MAN_SUFFIX=7 ;; 10991 esac 10992fi 10993if test x$MISC_MAN_DIR = x ; then 10994 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10995fi 10996 10997if test x$DRIVER_MAN_SUFFIX = x ; then 10998 case $SYSV_MAN_SECTIONS in 10999 true) DRIVER_MAN_SUFFIX=7 ;; 11000 *) DRIVER_MAN_SUFFIX=4 ;; 11001 esac 11002fi 11003if test x$DRIVER_MAN_DIR = x ; then 11004 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11005fi 11006 11007if test x$ADMIN_MAN_SUFFIX = x ; then 11008 case $SYSV_MAN_SECTIONS in 11009 true) ADMIN_MAN_SUFFIX=1m ;; 11010 *) ADMIN_MAN_SUFFIX=8 ;; 11011 esac 11012fi 11013if test x$ADMIN_MAN_DIR = x ; then 11014 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11015fi 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031XORG_MAN_PAGE="X Version 11" 11032 11033MAN_SUBSTS="\ 11034 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11035 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11036 -e 's|__xservername__|Xorg|g' \ 11037 -e 's|__xconfigfile__|xorg.conf|g' \ 11038 -e 's|__projectroot__|\$(prefix)|g' \ 11039 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11040 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11041 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11042 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11043 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11044 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11045 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11046 11047 11048 11049# Check whether --enable-silent-rules was given. 11050if test ${enable_silent_rules+y} 11051then : 11052 enableval=$enable_silent_rules; 11053fi 11054 11055case $enable_silent_rules in # ((( 11056 yes) AM_DEFAULT_VERBOSITY=0;; 11057 no) AM_DEFAULT_VERBOSITY=1;; 11058 *) AM_DEFAULT_VERBOSITY=0;; 11059esac 11060am_make=${MAKE-make} 11061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11062printf %s "checking whether $am_make supports nested variables... " >&6; } 11063if test ${am_cv_make_support_nested_variables+y} 11064then : 11065 printf %s "(cached) " >&6 11066else $as_nop 11067 if printf "%s\n" 'TRUE=$(BAR$(V)) 11068BAR0=false 11069BAR1=true 11070V=1 11071am__doit: 11072 @$(TRUE) 11073.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11074 am_cv_make_support_nested_variables=yes 11075else 11076 am_cv_make_support_nested_variables=no 11077fi 11078fi 11079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11080printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11081if test $am_cv_make_support_nested_variables = yes; then 11082 AM_V='$(V)' 11083 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11084else 11085 AM_V=$AM_DEFAULT_VERBOSITY 11086 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11087fi 11088AM_BACKSLASH='\' 11089 11090 11091 11092# Checks for pkg-config packages 11093 11094pkg_failed=no 11095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FSTOBDF" >&5 11096printf %s "checking for FSTOBDF... " >&6; } 11097 11098if test -n "$FSTOBDF_CFLAGS"; then 11099 pkg_cv_FSTOBDF_CFLAGS="$FSTOBDF_CFLAGS" 11100 elif test -n "$PKG_CONFIG"; then 11101 if test -n "$PKG_CONFIG" && \ 11102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 x11 libfs\""; } >&5 11103 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 x11 libfs") 2>&5 11104 ac_status=$? 11105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11106 test $ac_status = 0; }; then 11107 pkg_cv_FSTOBDF_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25 x11 libfs" 2>/dev/null` 11108 test "x$?" != "x0" && pkg_failed=yes 11109else 11110 pkg_failed=yes 11111fi 11112 else 11113 pkg_failed=untried 11114fi 11115if test -n "$FSTOBDF_LIBS"; then 11116 pkg_cv_FSTOBDF_LIBS="$FSTOBDF_LIBS" 11117 elif test -n "$PKG_CONFIG"; then 11118 if test -n "$PKG_CONFIG" && \ 11119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 x11 libfs\""; } >&5 11120 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 x11 libfs") 2>&5 11121 ac_status=$? 11122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11123 test $ac_status = 0; }; then 11124 pkg_cv_FSTOBDF_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25 x11 libfs" 2>/dev/null` 11125 test "x$?" != "x0" && pkg_failed=yes 11126else 11127 pkg_failed=yes 11128fi 11129 else 11130 pkg_failed=untried 11131fi 11132 11133 11134 11135if test $pkg_failed = yes; then 11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11137printf "%s\n" "no" >&6; } 11138 11139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11140 _pkg_short_errors_supported=yes 11141else 11142 _pkg_short_errors_supported=no 11143fi 11144 if test $_pkg_short_errors_supported = yes; then 11145 FSTOBDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25 x11 libfs" 2>&1` 11146 else 11147 FSTOBDF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25 x11 libfs" 2>&1` 11148 fi 11149 # Put the nasty error message in config.log where it belongs 11150 echo "$FSTOBDF_PKG_ERRORS" >&5 11151 11152 as_fn_error $? "Package requirements (xproto >= 7.0.25 x11 libfs) were not met: 11153 11154$FSTOBDF_PKG_ERRORS 11155 11156Consider adjusting the PKG_CONFIG_PATH environment variable if you 11157installed software in a non-standard prefix. 11158 11159Alternatively, you may set the environment variables FSTOBDF_CFLAGS 11160and FSTOBDF_LIBS to avoid the need to call pkg-config. 11161See the pkg-config man page for more details." "$LINENO" 5 11162elif test $pkg_failed = untried; then 11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11164printf "%s\n" "no" >&6; } 11165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11166printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11167as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11168is in your PATH or set the PKG_CONFIG environment variable to the full 11169path to pkg-config. 11170 11171Alternatively, you may set the environment variables FSTOBDF_CFLAGS 11172and FSTOBDF_LIBS to avoid the need to call pkg-config. 11173See the pkg-config man page for more details. 11174 11175To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11176See \`config.log' for more details" "$LINENO" 5; } 11177else 11178 FSTOBDF_CFLAGS=$pkg_cv_FSTOBDF_CFLAGS 11179 FSTOBDF_LIBS=$pkg_cv_FSTOBDF_LIBS 11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11181printf "%s\n" "yes" >&6; } 11182 11183fi 11184 11185ac_config_files="$ac_config_files Makefile man/Makefile" 11186 11187cat >confcache <<\_ACEOF 11188# This file is a shell script that caches the results of configure 11189# tests run on this system so they can be shared between configure 11190# scripts and configure runs, see configure's option --config-cache. 11191# It is not useful on other systems. If it contains results you don't 11192# want to keep, you may remove or edit it. 11193# 11194# config.status only pays attention to the cache file if you give it 11195# the --recheck option to rerun configure. 11196# 11197# `ac_cv_env_foo' variables (set or unset) will be overridden when 11198# loading this file, other *unset* `ac_cv_foo' will be assigned the 11199# following values. 11200 11201_ACEOF 11202 11203# The following way of writing the cache mishandles newlines in values, 11204# but we know of no workaround that is simple, portable, and efficient. 11205# So, we kill variables containing newlines. 11206# Ultrix sh set writes to stderr and can't be redirected directly, 11207# and sets the high bit in the cache file unless we assign to the vars. 11208( 11209 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11210 eval ac_val=\$$ac_var 11211 case $ac_val in #( 11212 *${as_nl}*) 11213 case $ac_var in #( 11214 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11215printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11216 esac 11217 case $ac_var in #( 11218 _ | IFS | as_nl) ;; #( 11219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11220 *) { eval $ac_var=; unset $ac_var;} ;; 11221 esac ;; 11222 esac 11223 done 11224 11225 (set) 2>&1 | 11226 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11227 *${as_nl}ac_space=\ *) 11228 # `set' does not quote correctly, so add quotes: double-quote 11229 # substitution turns \\\\ into \\, and sed turns \\ into \. 11230 sed -n \ 11231 "s/'/'\\\\''/g; 11232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11233 ;; #( 11234 *) 11235 # `set' quotes correctly as required by POSIX, so do not add quotes. 11236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11237 ;; 11238 esac | 11239 sort 11240) | 11241 sed ' 11242 /^ac_cv_env_/b end 11243 t clear 11244 :clear 11245 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11246 t end 11247 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11248 :end' >>confcache 11249if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11250 if test -w "$cache_file"; then 11251 if test "x$cache_file" != "x/dev/null"; then 11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11253printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11254 if test ! -f "$cache_file" || test -h "$cache_file"; then 11255 cat confcache >"$cache_file" 11256 else 11257 case $cache_file in #( 11258 */* | ?:*) 11259 mv -f confcache "$cache_file"$$ && 11260 mv -f "$cache_file"$$ "$cache_file" ;; #( 11261 *) 11262 mv -f confcache "$cache_file" ;; 11263 esac 11264 fi 11265 fi 11266 else 11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11268printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11269 fi 11270fi 11271rm -f confcache 11272 11273test "x$prefix" = xNONE && prefix=$ac_default_prefix 11274# Let make expand exec_prefix. 11275test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11276 11277DEFS=-DHAVE_CONFIG_H 11278 11279ac_libobjs= 11280ac_ltlibobjs= 11281U= 11282for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11283 # 1. Remove the extension, and $U if already installed. 11284 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11285 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11287 # will be set to the directory where LIBOBJS objects are built. 11288 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11289 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11290done 11291LIBOBJS=$ac_libobjs 11292 11293LTLIBOBJS=$ac_ltlibobjs 11294 11295 11296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11297printf %s "checking that generated files are newer than configure... " >&6; } 11298 if test -n "$am_sleep_pid"; then 11299 # Hide warnings about reused PIDs. 11300 wait $am_sleep_pid 2>/dev/null 11301 fi 11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11303printf "%s\n" "done" >&6; } 11304 if test -n "$EXEEXT"; then 11305 am__EXEEXT_TRUE= 11306 am__EXEEXT_FALSE='#' 11307else 11308 am__EXEEXT_TRUE='#' 11309 am__EXEEXT_FALSE= 11310fi 11311 11312if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11313 as_fn_error $? "conditional \"AMDEP\" was never defined. 11314Usually this means the macro was only invoked conditionally." "$LINENO" 5 11315fi 11316if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11317 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11318Usually this means the macro was only invoked conditionally." "$LINENO" 5 11319fi 11320 11321: "${CONFIG_STATUS=./config.status}" 11322ac_write_fail=0 11323ac_clean_files_save=$ac_clean_files 11324ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11326printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11327as_write_fail=0 11328cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11329#! $SHELL 11330# Generated by $as_me. 11331# Run this file to recreate the current configuration. 11332# Compiler output produced by configure, useful for debugging 11333# configure, is in config.log if it exists. 11334 11335debug=false 11336ac_cs_recheck=false 11337ac_cs_silent=false 11338 11339SHELL=\${CONFIG_SHELL-$SHELL} 11340export SHELL 11341_ASEOF 11342cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11343## -------------------- ## 11344## M4sh Initialization. ## 11345## -------------------- ## 11346 11347# Be more Bourne compatible 11348DUALCASE=1; export DUALCASE # for MKS sh 11349as_nop=: 11350if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11351then : 11352 emulate sh 11353 NULLCMD=: 11354 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11355 # is contrary to our usage. Disable this feature. 11356 alias -g '${1+"$@"}'='"$@"' 11357 setopt NO_GLOB_SUBST 11358else $as_nop 11359 case `(set -o) 2>/dev/null` in #( 11360 *posix*) : 11361 set -o posix ;; #( 11362 *) : 11363 ;; 11364esac 11365fi 11366 11367 11368 11369# Reset variables that may have inherited troublesome values from 11370# the environment. 11371 11372# IFS needs to be set, to space, tab, and newline, in precisely that order. 11373# (If _AS_PATH_WALK were called with IFS unset, it would have the 11374# side effect of setting IFS to empty, thus disabling word splitting.) 11375# Quoting is to prevent editors from complaining about space-tab. 11376as_nl=' 11377' 11378export as_nl 11379IFS=" "" $as_nl" 11380 11381PS1='$ ' 11382PS2='> ' 11383PS4='+ ' 11384 11385# Ensure predictable behavior from utilities with locale-dependent output. 11386LC_ALL=C 11387export LC_ALL 11388LANGUAGE=C 11389export LANGUAGE 11390 11391# We cannot yet rely on "unset" to work, but we need these variables 11392# to be unset--not just set to an empty or harmless value--now, to 11393# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11394# also avoids known problems related to "unset" and subshell syntax 11395# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11396for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11397do eval test \${$as_var+y} \ 11398 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11399done 11400 11401# Ensure that fds 0, 1, and 2 are open. 11402if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11403if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11404if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11405 11406# The user is always right. 11407if ${PATH_SEPARATOR+false} :; then 11408 PATH_SEPARATOR=: 11409 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11410 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11411 PATH_SEPARATOR=';' 11412 } 11413fi 11414 11415 11416# Find who we are. Look in the path if we contain no directory separator. 11417as_myself= 11418case $0 in #(( 11419 *[\\/]* ) as_myself=$0 ;; 11420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11421for as_dir in $PATH 11422do 11423 IFS=$as_save_IFS 11424 case $as_dir in #((( 11425 '') as_dir=./ ;; 11426 */) ;; 11427 *) as_dir=$as_dir/ ;; 11428 esac 11429 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11430 done 11431IFS=$as_save_IFS 11432 11433 ;; 11434esac 11435# We did not find ourselves, most probably we were run as `sh COMMAND' 11436# in which case we are not to be found in the path. 11437if test "x$as_myself" = x; then 11438 as_myself=$0 11439fi 11440if test ! -f "$as_myself"; then 11441 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11442 exit 1 11443fi 11444 11445 11446 11447# as_fn_error STATUS ERROR [LINENO LOG_FD] 11448# ---------------------------------------- 11449# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11450# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11451# script with STATUS, using 1 if that was 0. 11452as_fn_error () 11453{ 11454 as_status=$1; test $as_status -eq 0 && as_status=1 11455 if test "$4"; then 11456 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11458 fi 11459 printf "%s\n" "$as_me: error: $2" >&2 11460 as_fn_exit $as_status 11461} # as_fn_error 11462 11463 11464 11465# as_fn_set_status STATUS 11466# ----------------------- 11467# Set $? to STATUS, without forking. 11468as_fn_set_status () 11469{ 11470 return $1 11471} # as_fn_set_status 11472 11473# as_fn_exit STATUS 11474# ----------------- 11475# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11476as_fn_exit () 11477{ 11478 set +e 11479 as_fn_set_status $1 11480 exit $1 11481} # as_fn_exit 11482 11483# as_fn_unset VAR 11484# --------------- 11485# Portably unset VAR. 11486as_fn_unset () 11487{ 11488 { eval $1=; unset $1;} 11489} 11490as_unset=as_fn_unset 11491 11492# as_fn_append VAR VALUE 11493# ---------------------- 11494# Append the text in VALUE to the end of the definition contained in VAR. Take 11495# advantage of any shell optimizations that allow amortized linear growth over 11496# repeated appends, instead of the typical quadratic growth present in naive 11497# implementations. 11498if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11499then : 11500 eval 'as_fn_append () 11501 { 11502 eval $1+=\$2 11503 }' 11504else $as_nop 11505 as_fn_append () 11506 { 11507 eval $1=\$$1\$2 11508 } 11509fi # as_fn_append 11510 11511# as_fn_arith ARG... 11512# ------------------ 11513# Perform arithmetic evaluation on the ARGs, and store the result in the 11514# global $as_val. Take advantage of shells that can avoid forks. The arguments 11515# must be portable across $(()) and expr. 11516if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11517then : 11518 eval 'as_fn_arith () 11519 { 11520 as_val=$(( $* )) 11521 }' 11522else $as_nop 11523 as_fn_arith () 11524 { 11525 as_val=`expr "$@" || test $? -eq 1` 11526 } 11527fi # as_fn_arith 11528 11529 11530if expr a : '\(a\)' >/dev/null 2>&1 && 11531 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11532 as_expr=expr 11533else 11534 as_expr=false 11535fi 11536 11537if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11538 as_basename=basename 11539else 11540 as_basename=false 11541fi 11542 11543if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11544 as_dirname=dirname 11545else 11546 as_dirname=false 11547fi 11548 11549as_me=`$as_basename -- "$0" || 11550$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11551 X"$0" : 'X\(//\)$' \| \ 11552 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11553printf "%s\n" X/"$0" | 11554 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11555 s//\1/ 11556 q 11557 } 11558 /^X\/\(\/\/\)$/{ 11559 s//\1/ 11560 q 11561 } 11562 /^X\/\(\/\).*/{ 11563 s//\1/ 11564 q 11565 } 11566 s/.*/./; q'` 11567 11568# Avoid depending upon Character Ranges. 11569as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11570as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11571as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11572as_cr_digits='0123456789' 11573as_cr_alnum=$as_cr_Letters$as_cr_digits 11574 11575 11576# Determine whether it's possible to make 'echo' print without a newline. 11577# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11578# for compatibility with existing Makefiles. 11579ECHO_C= ECHO_N= ECHO_T= 11580case `echo -n x` in #((((( 11581-n*) 11582 case `echo 'xy\c'` in 11583 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11584 xy) ECHO_C='\c';; 11585 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11586 ECHO_T=' ';; 11587 esac;; 11588*) 11589 ECHO_N='-n';; 11590esac 11591 11592# For backward compatibility with old third-party macros, we provide 11593# the shell variables $as_echo and $as_echo_n. New code should use 11594# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11595as_echo='printf %s\n' 11596as_echo_n='printf %s' 11597 11598rm -f conf$$ conf$$.exe conf$$.file 11599if test -d conf$$.dir; then 11600 rm -f conf$$.dir/conf$$.file 11601else 11602 rm -f conf$$.dir 11603 mkdir conf$$.dir 2>/dev/null 11604fi 11605if (echo >conf$$.file) 2>/dev/null; then 11606 if ln -s conf$$.file conf$$ 2>/dev/null; then 11607 as_ln_s='ln -s' 11608 # ... but there are two gotchas: 11609 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11610 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11611 # In both cases, we have to default to `cp -pR'. 11612 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11613 as_ln_s='cp -pR' 11614 elif ln conf$$.file conf$$ 2>/dev/null; then 11615 as_ln_s=ln 11616 else 11617 as_ln_s='cp -pR' 11618 fi 11619else 11620 as_ln_s='cp -pR' 11621fi 11622rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11623rmdir conf$$.dir 2>/dev/null 11624 11625 11626# as_fn_mkdir_p 11627# ------------- 11628# Create "$as_dir" as a directory, including parents if necessary. 11629as_fn_mkdir_p () 11630{ 11631 11632 case $as_dir in #( 11633 -*) as_dir=./$as_dir;; 11634 esac 11635 test -d "$as_dir" || eval $as_mkdir_p || { 11636 as_dirs= 11637 while :; do 11638 case $as_dir in #( 11639 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11640 *) as_qdir=$as_dir;; 11641 esac 11642 as_dirs="'$as_qdir' $as_dirs" 11643 as_dir=`$as_dirname -- "$as_dir" || 11644$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11645 X"$as_dir" : 'X\(//\)[^/]' \| \ 11646 X"$as_dir" : 'X\(//\)$' \| \ 11647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11648printf "%s\n" X"$as_dir" | 11649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11650 s//\1/ 11651 q 11652 } 11653 /^X\(\/\/\)[^/].*/{ 11654 s//\1/ 11655 q 11656 } 11657 /^X\(\/\/\)$/{ 11658 s//\1/ 11659 q 11660 } 11661 /^X\(\/\).*/{ 11662 s//\1/ 11663 q 11664 } 11665 s/.*/./; q'` 11666 test -d "$as_dir" && break 11667 done 11668 test -z "$as_dirs" || eval "mkdir $as_dirs" 11669 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11670 11671 11672} # as_fn_mkdir_p 11673if mkdir -p . 2>/dev/null; then 11674 as_mkdir_p='mkdir -p "$as_dir"' 11675else 11676 test -d ./-p && rmdir ./-p 11677 as_mkdir_p=false 11678fi 11679 11680 11681# as_fn_executable_p FILE 11682# ----------------------- 11683# Test if FILE is an executable regular file. 11684as_fn_executable_p () 11685{ 11686 test -f "$1" && test -x "$1" 11687} # as_fn_executable_p 11688as_test_x='test -x' 11689as_executable_p=as_fn_executable_p 11690 11691# Sed expression to map a string onto a valid CPP name. 11692as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11693 11694# Sed expression to map a string onto a valid variable name. 11695as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11696 11697 11698exec 6>&1 11699## ----------------------------------- ## 11700## Main body of $CONFIG_STATUS script. ## 11701## ----------------------------------- ## 11702_ASEOF 11703test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11704 11705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11706# Save the log message, to keep $0 and so on meaningful, and to 11707# report actual input values of CONFIG_FILES etc. instead of their 11708# values after options handling. 11709ac_log=" 11710This file was extended by fstobdf $as_me 1.0.7, which was 11711generated by GNU Autoconf 2.71. Invocation command line was 11712 11713 CONFIG_FILES = $CONFIG_FILES 11714 CONFIG_HEADERS = $CONFIG_HEADERS 11715 CONFIG_LINKS = $CONFIG_LINKS 11716 CONFIG_COMMANDS = $CONFIG_COMMANDS 11717 $ $0 $@ 11718 11719on `(hostname || uname -n) 2>/dev/null | sed 1q` 11720" 11721 11722_ACEOF 11723 11724case $ac_config_files in *" 11725"*) set x $ac_config_files; shift; ac_config_files=$*;; 11726esac 11727 11728case $ac_config_headers in *" 11729"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11730esac 11731 11732 11733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11734# Files that config.status was made for. 11735config_files="$ac_config_files" 11736config_headers="$ac_config_headers" 11737config_commands="$ac_config_commands" 11738 11739_ACEOF 11740 11741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11742ac_cs_usage="\ 11743\`$as_me' instantiates files and other configuration actions 11744from templates according to the current configuration. Unless the files 11745and actions are specified as TAGs, all are instantiated by default. 11746 11747Usage: $0 [OPTION]... [TAG]... 11748 11749 -h, --help print this help, then exit 11750 -V, --version print version number and configuration settings, then exit 11751 --config print configuration, then exit 11752 -q, --quiet, --silent 11753 do not print progress messages 11754 -d, --debug don't remove temporary files 11755 --recheck update $as_me by reconfiguring in the same conditions 11756 --file=FILE[:TEMPLATE] 11757 instantiate the configuration file FILE 11758 --header=FILE[:TEMPLATE] 11759 instantiate the configuration header FILE 11760 11761Configuration files: 11762$config_files 11763 11764Configuration headers: 11765$config_headers 11766 11767Configuration commands: 11768$config_commands 11769 11770Report bugs to <https://gitlab.freedesktop.org/xorg/app/fstobdf/-/issues>." 11771 11772_ACEOF 11773ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11774ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11776ac_cs_config='$ac_cs_config_escaped' 11777ac_cs_version="\\ 11778fstobdf config.status 1.0.7 11779configured by $0, generated by GNU Autoconf 2.71, 11780 with options \\"\$ac_cs_config\\" 11781 11782Copyright (C) 2021 Free Software Foundation, Inc. 11783This config.status script is free software; the Free Software Foundation 11784gives unlimited permission to copy, distribute and modify it." 11785 11786ac_pwd='$ac_pwd' 11787srcdir='$srcdir' 11788INSTALL='$INSTALL' 11789MKDIR_P='$MKDIR_P' 11790AWK='$AWK' 11791test -n "\$AWK" || AWK=awk 11792_ACEOF 11793 11794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11795# The default lists apply if the user does not specify any file. 11796ac_need_defaults=: 11797while test $# != 0 11798do 11799 case $1 in 11800 --*=?*) 11801 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11803 ac_shift=: 11804 ;; 11805 --*=) 11806 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11807 ac_optarg= 11808 ac_shift=: 11809 ;; 11810 *) 11811 ac_option=$1 11812 ac_optarg=$2 11813 ac_shift=shift 11814 ;; 11815 esac 11816 11817 case $ac_option in 11818 # Handling of the options. 11819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11820 ac_cs_recheck=: ;; 11821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11822 printf "%s\n" "$ac_cs_version"; exit ;; 11823 --config | --confi | --conf | --con | --co | --c ) 11824 printf "%s\n" "$ac_cs_config"; exit ;; 11825 --debug | --debu | --deb | --de | --d | -d ) 11826 debug=: ;; 11827 --file | --fil | --fi | --f ) 11828 $ac_shift 11829 case $ac_optarg in 11830 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11831 '') as_fn_error $? "missing file argument" ;; 11832 esac 11833 as_fn_append CONFIG_FILES " '$ac_optarg'" 11834 ac_need_defaults=false;; 11835 --header | --heade | --head | --hea ) 11836 $ac_shift 11837 case $ac_optarg in 11838 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11839 esac 11840 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11841 ac_need_defaults=false;; 11842 --he | --h) 11843 # Conflict between --help and --header 11844 as_fn_error $? "ambiguous option: \`$1' 11845Try \`$0 --help' for more information.";; 11846 --help | --hel | -h ) 11847 printf "%s\n" "$ac_cs_usage"; exit ;; 11848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11849 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11850 ac_cs_silent=: ;; 11851 11852 # This is an error. 11853 -*) as_fn_error $? "unrecognized option: \`$1' 11854Try \`$0 --help' for more information." ;; 11855 11856 *) as_fn_append ac_config_targets " $1" 11857 ac_need_defaults=false ;; 11858 11859 esac 11860 shift 11861done 11862 11863ac_configure_extra_args= 11864 11865if $ac_cs_silent; then 11866 exec 6>/dev/null 11867 ac_configure_extra_args="$ac_configure_extra_args --silent" 11868fi 11869 11870_ACEOF 11871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11872if \$ac_cs_recheck; then 11873 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11874 shift 11875 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11876 CONFIG_SHELL='$SHELL' 11877 export CONFIG_SHELL 11878 exec "\$@" 11879fi 11880 11881_ACEOF 11882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11883exec 5>>config.log 11884{ 11885 echo 11886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11887## Running $as_me. ## 11888_ASBOX 11889 printf "%s\n" "$ac_log" 11890} >&5 11891 11892_ACEOF 11893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11894# 11895# INIT-COMMANDS 11896# 11897AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11898 11899_ACEOF 11900 11901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11902 11903# Handling of arguments. 11904for ac_config_target in $ac_config_targets 11905do 11906 case $ac_config_target in 11907 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11908 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11909 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11910 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11911 11912 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11913 esac 11914done 11915 11916 11917# If the user did not use the arguments to specify the items to instantiate, 11918# then the envvar interface is used. Set only those that are not. 11919# We use the long form for the default assignment because of an extremely 11920# bizarre bug on SunOS 4.1.3. 11921if $ac_need_defaults; then 11922 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11923 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 11924 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11925fi 11926 11927# Have a temporary directory for convenience. Make it in the build tree 11928# simply because there is no reason against having it here, and in addition, 11929# creating and moving files from /tmp can sometimes cause problems. 11930# Hook for its removal unless debugging. 11931# Note that there is a small window in which the directory will not be cleaned: 11932# after its creation but before its name has been assigned to `$tmp'. 11933$debug || 11934{ 11935 tmp= ac_tmp= 11936 trap 'exit_status=$? 11937 : "${ac_tmp:=$tmp}" 11938 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11939' 0 11940 trap 'as_fn_exit 1' 1 2 13 15 11941} 11942# Create a (secure) tmp directory for tmp files. 11943 11944{ 11945 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11946 test -d "$tmp" 11947} || 11948{ 11949 tmp=./conf$$-$RANDOM 11950 (umask 077 && mkdir "$tmp") 11951} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11952ac_tmp=$tmp 11953 11954# Set up the scripts for CONFIG_FILES section. 11955# No need to generate them if there are no CONFIG_FILES. 11956# This happens for instance with `./config.status config.h'. 11957if test -n "$CONFIG_FILES"; then 11958 11959 11960ac_cr=`echo X | tr X '\015'` 11961# On cygwin, bash can eat \r inside `` if the user requested igncr. 11962# But we know of no other shell where ac_cr would be empty at this 11963# point, so we can use a bashism as a fallback. 11964if test "x$ac_cr" = x; then 11965 eval ac_cr=\$\'\\r\' 11966fi 11967ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11968if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11969 ac_cs_awk_cr='\\r' 11970else 11971 ac_cs_awk_cr=$ac_cr 11972fi 11973 11974echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11975_ACEOF 11976 11977 11978{ 11979 echo "cat >conf$$subs.awk <<_ACEOF" && 11980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11981 echo "_ACEOF" 11982} >conf$$subs.sh || 11983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11984ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11985ac_delim='%!_!# ' 11986for ac_last_try in false false false false false :; do 11987 . ./conf$$subs.sh || 11988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11989 11990 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11991 if test $ac_delim_n = $ac_delim_num; then 11992 break 11993 elif $ac_last_try; then 11994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11995 else 11996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11997 fi 11998done 11999rm -f conf$$subs.sh 12000 12001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12002cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12003_ACEOF 12004sed -n ' 12005h 12006s/^/S["/; s/!.*/"]=/ 12007p 12008g 12009s/^[^!]*!// 12010:repl 12011t repl 12012s/'"$ac_delim"'$// 12013t delim 12014:nl 12015h 12016s/\(.\{148\}\)..*/\1/ 12017t more1 12018s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12019p 12020n 12021b repl 12022:more1 12023s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12024p 12025g 12026s/.\{148\}// 12027t nl 12028:delim 12029h 12030s/\(.\{148\}\)..*/\1/ 12031t more2 12032s/["\\]/\\&/g; s/^/"/; s/$/"/ 12033p 12034b 12035:more2 12036s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12037p 12038g 12039s/.\{148\}// 12040t delim 12041' <conf$$subs.awk | sed ' 12042/^[^""]/{ 12043 N 12044 s/\n// 12045} 12046' >>$CONFIG_STATUS || ac_write_fail=1 12047rm -f conf$$subs.awk 12048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12049_ACAWK 12050cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12051 for (key in S) S_is_set[key] = 1 12052 FS = "" 12053 12054} 12055{ 12056 line = $ 0 12057 nfields = split(line, field, "@") 12058 substed = 0 12059 len = length(field[1]) 12060 for (i = 2; i < nfields; i++) { 12061 key = field[i] 12062 keylen = length(key) 12063 if (S_is_set[key]) { 12064 value = S[key] 12065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12066 len += length(value) + length(field[++i]) 12067 substed = 1 12068 } else 12069 len += 1 + keylen 12070 } 12071 12072 print line 12073} 12074 12075_ACAWK 12076_ACEOF 12077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12078if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12080else 12081 cat 12082fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12083 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12084_ACEOF 12085 12086# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12087# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12088# trailing colons and then remove the whole line if VPATH becomes empty 12089# (actually we leave an empty line to preserve line numbers). 12090if test "x$srcdir" = x.; then 12091 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12092h 12093s/// 12094s/^/:/ 12095s/[ ]*$/:/ 12096s/:\$(srcdir):/:/g 12097s/:\${srcdir}:/:/g 12098s/:@srcdir@:/:/g 12099s/^:*// 12100s/:*$// 12101x 12102s/\(=[ ]*\).*/\1/ 12103G 12104s/\n// 12105s/^[^=]*=[ ]*$// 12106}' 12107fi 12108 12109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12110fi # test -n "$CONFIG_FILES" 12111 12112# Set up the scripts for CONFIG_HEADERS section. 12113# No need to generate them if there are no CONFIG_HEADERS. 12114# This happens for instance with `./config.status Makefile'. 12115if test -n "$CONFIG_HEADERS"; then 12116cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12117BEGIN { 12118_ACEOF 12119 12120# Transform confdefs.h into an awk script `defines.awk', embedded as 12121# here-document in config.status, that substitutes the proper values into 12122# config.h.in to produce config.h. 12123 12124# Create a delimiter string that does not exist in confdefs.h, to ease 12125# handling of long lines. 12126ac_delim='%!_!# ' 12127for ac_last_try in false false :; do 12128 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12129 if test -z "$ac_tt"; then 12130 break 12131 elif $ac_last_try; then 12132 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12133 else 12134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12135 fi 12136done 12137 12138# For the awk script, D is an array of macro values keyed by name, 12139# likewise P contains macro parameters if any. Preserve backslash 12140# newline sequences. 12141 12142ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12143sed -n ' 12144s/.\{148\}/&'"$ac_delim"'/g 12145t rset 12146:rset 12147s/^[ ]*#[ ]*define[ ][ ]*/ / 12148t def 12149d 12150:def 12151s/\\$// 12152t bsnl 12153s/["\\]/\\&/g 12154s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12155D["\1"]=" \3"/p 12156s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12157d 12158:bsnl 12159s/["\\]/\\&/g 12160s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12161D["\1"]=" \3\\\\\\n"\\/p 12162t cont 12163s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12164t cont 12165d 12166:cont 12167n 12168s/.\{148\}/&'"$ac_delim"'/g 12169t clear 12170:clear 12171s/\\$// 12172t bsnlc 12173s/["\\]/\\&/g; s/^/"/; s/$/"/p 12174d 12175:bsnlc 12176s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12177b cont 12178' <confdefs.h | sed ' 12179s/'"$ac_delim"'/"\\\ 12180"/g' >>$CONFIG_STATUS || ac_write_fail=1 12181 12182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12183 for (key in D) D_is_set[key] = 1 12184 FS = "" 12185} 12186/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12187 line = \$ 0 12188 split(line, arg, " ") 12189 if (arg[1] == "#") { 12190 defundef = arg[2] 12191 mac1 = arg[3] 12192 } else { 12193 defundef = substr(arg[1], 2) 12194 mac1 = arg[2] 12195 } 12196 split(mac1, mac2, "(") #) 12197 macro = mac2[1] 12198 prefix = substr(line, 1, index(line, defundef) - 1) 12199 if (D_is_set[macro]) { 12200 # Preserve the white space surrounding the "#". 12201 print prefix "define", macro P[macro] D[macro] 12202 next 12203 } else { 12204 # Replace #undef with comments. This is necessary, for example, 12205 # in the case of _POSIX_SOURCE, which is predefined and required 12206 # on some systems where configure will not decide to define it. 12207 if (defundef == "undef") { 12208 print "/*", prefix defundef, macro, "*/" 12209 next 12210 } 12211 } 12212} 12213{ print } 12214_ACAWK 12215_ACEOF 12216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12217 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12218fi # test -n "$CONFIG_HEADERS" 12219 12220 12221eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12222shift 12223for ac_tag 12224do 12225 case $ac_tag in 12226 :[FHLC]) ac_mode=$ac_tag; continue;; 12227 esac 12228 case $ac_mode$ac_tag in 12229 :[FHL]*:*);; 12230 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12231 :[FH]-) ac_tag=-:-;; 12232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12233 esac 12234 ac_save_IFS=$IFS 12235 IFS=: 12236 set x $ac_tag 12237 IFS=$ac_save_IFS 12238 shift 12239 ac_file=$1 12240 shift 12241 12242 case $ac_mode in 12243 :L) ac_source=$1;; 12244 :[FH]) 12245 ac_file_inputs= 12246 for ac_f 12247 do 12248 case $ac_f in 12249 -) ac_f="$ac_tmp/stdin";; 12250 *) # Look for the file first in the build tree, then in the source tree 12251 # (if the path is not absolute). The absolute path cannot be DOS-style, 12252 # because $ac_f cannot contain `:'. 12253 test -f "$ac_f" || 12254 case $ac_f in 12255 [\\/$]*) false;; 12256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12257 esac || 12258 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12259 esac 12260 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12261 as_fn_append ac_file_inputs " '$ac_f'" 12262 done 12263 12264 # Let's still pretend it is `configure' which instantiates (i.e., don't 12265 # use $as_me), people would be surprised to read: 12266 # /* config.h. Generated by config.status. */ 12267 configure_input='Generated from '` 12268 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12269 `' by configure.' 12270 if test x"$ac_file" != x-; then 12271 configure_input="$ac_file. $configure_input" 12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12273printf "%s\n" "$as_me: creating $ac_file" >&6;} 12274 fi 12275 # Neutralize special characters interpreted by sed in replacement strings. 12276 case $configure_input in #( 12277 *\&* | *\|* | *\\* ) 12278 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12279 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12280 *) ac_sed_conf_input=$configure_input;; 12281 esac 12282 12283 case $ac_tag in 12284 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12286 esac 12287 ;; 12288 esac 12289 12290 ac_dir=`$as_dirname -- "$ac_file" || 12291$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12292 X"$ac_file" : 'X\(//\)[^/]' \| \ 12293 X"$ac_file" : 'X\(//\)$' \| \ 12294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12295printf "%s\n" X"$ac_file" | 12296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12297 s//\1/ 12298 q 12299 } 12300 /^X\(\/\/\)[^/].*/{ 12301 s//\1/ 12302 q 12303 } 12304 /^X\(\/\/\)$/{ 12305 s//\1/ 12306 q 12307 } 12308 /^X\(\/\).*/{ 12309 s//\1/ 12310 q 12311 } 12312 s/.*/./; q'` 12313 as_dir="$ac_dir"; as_fn_mkdir_p 12314 ac_builddir=. 12315 12316case "$ac_dir" in 12317.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12318*) 12319 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12320 # A ".." for each directory in $ac_dir_suffix. 12321 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12322 case $ac_top_builddir_sub in 12323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12325 esac ;; 12326esac 12327ac_abs_top_builddir=$ac_pwd 12328ac_abs_builddir=$ac_pwd$ac_dir_suffix 12329# for backward compatibility: 12330ac_top_builddir=$ac_top_build_prefix 12331 12332case $srcdir in 12333 .) # We are building in place. 12334 ac_srcdir=. 12335 ac_top_srcdir=$ac_top_builddir_sub 12336 ac_abs_top_srcdir=$ac_pwd ;; 12337 [\\/]* | ?:[\\/]* ) # Absolute name. 12338 ac_srcdir=$srcdir$ac_dir_suffix; 12339 ac_top_srcdir=$srcdir 12340 ac_abs_top_srcdir=$srcdir ;; 12341 *) # Relative name. 12342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12343 ac_top_srcdir=$ac_top_build_prefix$srcdir 12344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12345esac 12346ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12347 12348 12349 case $ac_mode in 12350 :F) 12351 # 12352 # CONFIG_FILE 12353 # 12354 12355 case $INSTALL in 12356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12357 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12358 esac 12359 ac_MKDIR_P=$MKDIR_P 12360 case $MKDIR_P in 12361 [\\/$]* | ?:[\\/]* ) ;; 12362 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12363 esac 12364_ACEOF 12365 12366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12367# If the template does not know about datarootdir, expand it. 12368# FIXME: This hack should be removed a few years after 2.60. 12369ac_datarootdir_hack=; ac_datarootdir_seen= 12370ac_sed_dataroot=' 12371/datarootdir/ { 12372 p 12373 q 12374} 12375/@datadir@/p 12376/@docdir@/p 12377/@infodir@/p 12378/@localedir@/p 12379/@mandir@/p' 12380case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12381*datarootdir*) ac_datarootdir_seen=yes;; 12382*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12384printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12385_ACEOF 12386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12387 ac_datarootdir_hack=' 12388 s&@datadir@&$datadir&g 12389 s&@docdir@&$docdir&g 12390 s&@infodir@&$infodir&g 12391 s&@localedir@&$localedir&g 12392 s&@mandir@&$mandir&g 12393 s&\\\${datarootdir}&$datarootdir&g' ;; 12394esac 12395_ACEOF 12396 12397# Neutralize VPATH when `$srcdir' = `.'. 12398# Shell code in configure.ac might set extrasub. 12399# FIXME: do we really want to maintain this feature? 12400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12401ac_sed_extra="$ac_vpsub 12402$extrasub 12403_ACEOF 12404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12405:t 12406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12407s|@configure_input@|$ac_sed_conf_input|;t t 12408s&@top_builddir@&$ac_top_builddir_sub&;t t 12409s&@top_build_prefix@&$ac_top_build_prefix&;t t 12410s&@srcdir@&$ac_srcdir&;t t 12411s&@abs_srcdir@&$ac_abs_srcdir&;t t 12412s&@top_srcdir@&$ac_top_srcdir&;t t 12413s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12414s&@builddir@&$ac_builddir&;t t 12415s&@abs_builddir@&$ac_abs_builddir&;t t 12416s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12417s&@INSTALL@&$ac_INSTALL&;t t 12418s&@MKDIR_P@&$ac_MKDIR_P&;t t 12419$ac_datarootdir_hack 12420" 12421eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12422 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12423 12424test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12425 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12427 "$ac_tmp/out"`; test -z "$ac_out"; } && 12428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12429which seems to be undefined. Please make sure it is defined" >&5 12430printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12431which seems to be undefined. Please make sure it is defined" >&2;} 12432 12433 rm -f "$ac_tmp/stdin" 12434 case $ac_file in 12435 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12436 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12437 esac \ 12438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12439 ;; 12440 :H) 12441 # 12442 # CONFIG_HEADER 12443 # 12444 if test x"$ac_file" != x-; then 12445 { 12446 printf "%s\n" "/* $configure_input */" >&1 \ 12447 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12448 } >"$ac_tmp/config.h" \ 12449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12450 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12452printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12453 else 12454 rm -f "$ac_file" 12455 mv "$ac_tmp/config.h" "$ac_file" \ 12456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12457 fi 12458 else 12459 printf "%s\n" "/* $configure_input */" >&1 \ 12460 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12461 || as_fn_error $? "could not create -" "$LINENO" 5 12462 fi 12463# Compute "$ac_file"'s index in $config_headers. 12464_am_arg="$ac_file" 12465_am_stamp_count=1 12466for _am_header in $config_headers :; do 12467 case $_am_header in 12468 $_am_arg | $_am_arg:* ) 12469 break ;; 12470 * ) 12471 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12472 esac 12473done 12474echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12475$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12476 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12477 X"$_am_arg" : 'X\(//\)$' \| \ 12478 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12479printf "%s\n" X"$_am_arg" | 12480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12481 s//\1/ 12482 q 12483 } 12484 /^X\(\/\/\)[^/].*/{ 12485 s//\1/ 12486 q 12487 } 12488 /^X\(\/\/\)$/{ 12489 s//\1/ 12490 q 12491 } 12492 /^X\(\/\).*/{ 12493 s//\1/ 12494 q 12495 } 12496 s/.*/./; q'`/stamp-h$_am_stamp_count 12497 ;; 12498 12499 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12500printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12501 ;; 12502 esac 12503 12504 12505 case $ac_file$ac_mode in 12506 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12507 # Older Autoconf quotes --file arguments for eval, but not when files 12508 # are listed without --file. Let's play safe and only enable the eval 12509 # if we detect the quoting. 12510 # TODO: see whether this extra hack can be removed once we start 12511 # requiring Autoconf 2.70 or later. 12512 case $CONFIG_FILES in #( 12513 *\'*) : 12514 eval set x "$CONFIG_FILES" ;; #( 12515 *) : 12516 set x $CONFIG_FILES ;; #( 12517 *) : 12518 ;; 12519esac 12520 shift 12521 # Used to flag and report bootstrapping failures. 12522 am_rc=0 12523 for am_mf 12524 do 12525 # Strip MF so we end up with the name of the file. 12526 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12527 # Check whether this is an Automake generated Makefile which includes 12528 # dependency-tracking related rules and includes. 12529 # Grep'ing the whole file directly is not great: AIX grep has a line 12530 # limit of 2048, but all sed's we know have understand at least 4000. 12531 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12532 || continue 12533 am_dirpart=`$as_dirname -- "$am_mf" || 12534$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12535 X"$am_mf" : 'X\(//\)[^/]' \| \ 12536 X"$am_mf" : 'X\(//\)$' \| \ 12537 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12538printf "%s\n" X"$am_mf" | 12539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12540 s//\1/ 12541 q 12542 } 12543 /^X\(\/\/\)[^/].*/{ 12544 s//\1/ 12545 q 12546 } 12547 /^X\(\/\/\)$/{ 12548 s//\1/ 12549 q 12550 } 12551 /^X\(\/\).*/{ 12552 s//\1/ 12553 q 12554 } 12555 s/.*/./; q'` 12556 am_filepart=`$as_basename -- "$am_mf" || 12557$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12558 X"$am_mf" : 'X\(//\)$' \| \ 12559 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12560printf "%s\n" X/"$am_mf" | 12561 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12562 s//\1/ 12563 q 12564 } 12565 /^X\/\(\/\/\)$/{ 12566 s//\1/ 12567 q 12568 } 12569 /^X\/\(\/\).*/{ 12570 s//\1/ 12571 q 12572 } 12573 s/.*/./; q'` 12574 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12575 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12576 | $MAKE -f - am--depfiles" >&5 12577 (cd "$am_dirpart" \ 12578 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12579 | $MAKE -f - am--depfiles) >&5 2>&5 12580 ac_status=$? 12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12582 (exit $ac_status); } || am_rc=$? 12583 done 12584 if test $am_rc -ne 0; then 12585 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12586printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12587as_fn_error $? "Something went wrong bootstrapping makefile fragments 12588 for automatic dependency tracking. If GNU make was not used, consider 12589 re-running the configure script with MAKE=\"gmake\" (or whatever is 12590 necessary). You can also try re-running configure with the 12591 '--disable-dependency-tracking' option to at least be able to build 12592 the package (albeit without support for automatic dependency tracking). 12593See \`config.log' for more details" "$LINENO" 5; } 12594 fi 12595 { am_dirpart=; unset am_dirpart;} 12596 { am_filepart=; unset am_filepart;} 12597 { am_mf=; unset am_mf;} 12598 { am_rc=; unset am_rc;} 12599 rm -f conftest-deps.mk 12600} 12601 ;; 12602 12603 esac 12604done # for ac_tag 12605 12606 12607as_fn_exit 0 12608_ACEOF 12609ac_clean_files=$ac_clean_files_save 12610 12611test $ac_write_fail = 0 || 12612 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12613 12614 12615# configure is writing to config.log, and then calls config.status. 12616# config.status does its own redirection, appending to config.log. 12617# Unfortunately, on DOS this fails, as config.log is still kept open 12618# by configure, so config.status won't be able to write to it; its 12619# output is simply discarded. So we exec the FD to /dev/null, 12620# effectively closing config.log, so it can be properly (re)opened and 12621# appended to by config.status. When coming back to configure, we 12622# need to make the FD available again. 12623if test "$no_create" != yes; then 12624 ac_cs_success=: 12625 ac_config_status_args= 12626 test "$silent" = yes && 12627 ac_config_status_args="$ac_config_status_args --quiet" 12628 exec 5>/dev/null 12629 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12630 exec 5>>config.log 12631 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12632 # would make configure fail if this is the last instruction. 12633 $ac_cs_success || as_fn_exit 1 12634fi 12635if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12637printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12638fi 12639 12640 12641