configure revision 3458e6c2
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xcmsdb 1.0.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcmsdb/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/xcmsdb/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='xcmsdb' 614PACKAGE_TARNAME='xcmsdb' 615PACKAGE_VERSION='1.0.6' 616PACKAGE_STRING='xcmsdb 1.0.6' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xcmsdb/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 657XCMSDB_LIBS 658XCMSDB_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 795XCMSDB_CFLAGS 796XCMSDB_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 xcmsdb 1.0.6 to adapt to many kinds of systems. 1346 1347Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352Defaults for the options are specified in brackets. 1353 1354Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print \`checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for \`--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1364 1365Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371By default, \`make install' will install all the files in 1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1373an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1374for instance \`--prefix=\$HOME'. 1375 1376For better control, use the options below. 1377 1378Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/xcmsdb] 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 xcmsdb 1.0.6:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-silent-rules less verbose build output (undo: "make V=1") 1425 --disable-silent-rules verbose build output (undo: "make V=0") 1426 --enable-dependency-tracking 1427 do not reject slow dependency extractors 1428 --disable-dependency-tracking 1429 speeds up one-time build 1430 --disable-selective-werror 1431 Turn off selective compiler errors. (default: 1432 enabled) 1433 --enable-strict-compilation 1434 Enable all warnings from compiler and make them 1435 errors (default: disabled) 1436 1437Some influential environment variables: 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 PKG_CONFIG path to pkg-config utility 1446 PKG_CONFIG_PATH 1447 directories to add to pkg-config's search path 1448 PKG_CONFIG_LIBDIR 1449 path overriding pkg-config's built-in search path 1450 XCMSDB_CFLAGS 1451 C compiler flags for XCMSDB, overriding pkg-config 1452 XCMSDB_LIBS linker flags for XCMSDB, overriding pkg-config 1453 1454Use these variables to override the choices made by `configure' or to help 1455it to find libraries and programs with nonstandard names/locations. 1456 1457Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcmsdb/issues>. 1458_ACEOF 1459ac_status=$? 1460fi 1461 1462if test "$ac_init_help" = "recursive"; then 1463 # If there are subdirs, report their specific --help. 1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1465 test -d "$ac_dir" || 1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1467 continue 1468 ac_builddir=. 1469 1470case "$ac_dir" in 1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1472*) 1473 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1474 # A ".." for each directory in $ac_dir_suffix. 1475 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1476 case $ac_top_builddir_sub in 1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1479 esac ;; 1480esac 1481ac_abs_top_builddir=$ac_pwd 1482ac_abs_builddir=$ac_pwd$ac_dir_suffix 1483# for backward compatibility: 1484ac_top_builddir=$ac_top_build_prefix 1485 1486case $srcdir in 1487 .) # We are building in place. 1488 ac_srcdir=. 1489 ac_top_srcdir=$ac_top_builddir_sub 1490 ac_abs_top_srcdir=$ac_pwd ;; 1491 [\\/]* | ?:[\\/]* ) # Absolute name. 1492 ac_srcdir=$srcdir$ac_dir_suffix; 1493 ac_top_srcdir=$srcdir 1494 ac_abs_top_srcdir=$srcdir ;; 1495 *) # Relative name. 1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1497 ac_top_srcdir=$ac_top_build_prefix$srcdir 1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1499esac 1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1501 1502 cd "$ac_dir" || { ac_status=$?; continue; } 1503 # Check for configure.gnu first; this name is used for a wrapper for 1504 # Metaconfig's "Configure" on case-insensitive file systems. 1505 if test -f "$ac_srcdir/configure.gnu"; then 1506 echo && 1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1508 elif test -f "$ac_srcdir/configure"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure" --help=recursive 1511 else 1512 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1513 fi || ac_status=$? 1514 cd "$ac_pwd" || { ac_status=$?; break; } 1515 done 1516fi 1517 1518test -n "$ac_init_help" && exit $ac_status 1519if $ac_init_version; then 1520 cat <<\_ACEOF 1521xcmsdb configure 1.0.6 1522generated by GNU Autoconf 2.71 1523 1524Copyright (C) 2021 Free Software Foundation, Inc. 1525This configure script is free software; the Free Software Foundation 1526gives unlimited permission to copy, distribute and modify it. 1527_ACEOF 1528 exit 1529fi 1530 1531## ------------------------ ## 1532## Autoconf initialization. ## 1533## ------------------------ ## 1534 1535# ac_fn_c_try_compile LINENO 1536# -------------------------- 1537# Try to compile conftest.$ac_ext, and return whether this succeeded. 1538ac_fn_c_try_compile () 1539{ 1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1541 rm -f conftest.$ac_objext conftest.beam 1542 if { { ac_try="$ac_compile" 1543case "(($ac_try" in 1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1545 *) ac_try_echo=$ac_try;; 1546esac 1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1548printf "%s\n" "$ac_try_echo"; } >&5 1549 (eval "$ac_compile") 2>conftest.err 1550 ac_status=$? 1551 if test -s conftest.err; then 1552 grep -v '^ *+' conftest.err >conftest.er1 1553 cat conftest.er1 >&5 1554 mv -f conftest.er1 conftest.err 1555 fi 1556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1557 test $ac_status = 0; } && { 1558 test -z "$ac_c_werror_flag" || 1559 test ! -s conftest.err 1560 } && test -s conftest.$ac_objext 1561then : 1562 ac_retval=0 1563else $as_nop 1564 printf "%s\n" "$as_me: failed program was:" >&5 1565sed 's/^/| /' conftest.$ac_ext >&5 1566 1567 ac_retval=1 1568fi 1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1570 as_fn_set_status $ac_retval 1571 1572} # ac_fn_c_try_compile 1573 1574# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1575# ------------------------------------------------------------------ 1576# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1577# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1578ac_fn_check_decl () 1579{ 1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1581 as_decl_name=`echo $2|sed 's/ *(.*//'` 1582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1583printf %s "checking whether $as_decl_name is declared... " >&6; } 1584if eval test \${$3+y} 1585then : 1586 printf %s "(cached) " >&6 1587else $as_nop 1588 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1589 eval ac_save_FLAGS=\$$6 1590 as_fn_append $6 " $5" 1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1592/* end confdefs.h. */ 1593$4 1594int 1595main (void) 1596{ 1597#ifndef $as_decl_name 1598#ifdef __cplusplus 1599 (void) $as_decl_use; 1600#else 1601 (void) $as_decl_name; 1602#endif 1603#endif 1604 1605 ; 1606 return 0; 1607} 1608_ACEOF 1609if ac_fn_c_try_compile "$LINENO" 1610then : 1611 eval "$3=yes" 1612else $as_nop 1613 eval "$3=no" 1614fi 1615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1616 eval $6=\$ac_save_FLAGS 1617 1618fi 1619eval ac_res=\$$3 1620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1621printf "%s\n" "$ac_res" >&6; } 1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1623 1624} # ac_fn_check_decl 1625 1626# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1627# ------------------------------------------------------- 1628# Tests whether HEADER exists and can be compiled using the include files in 1629# INCLUDES, setting the cache variable VAR accordingly. 1630ac_fn_c_check_header_compile () 1631{ 1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1634printf %s "checking for $2... " >&6; } 1635if eval test \${$3+y} 1636then : 1637 printf %s "(cached) " >&6 1638else $as_nop 1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1640/* end confdefs.h. */ 1641$4 1642#include <$2> 1643_ACEOF 1644if ac_fn_c_try_compile "$LINENO" 1645then : 1646 eval "$3=yes" 1647else $as_nop 1648 eval "$3=no" 1649fi 1650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1651fi 1652eval ac_res=\$$3 1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654printf "%s\n" "$ac_res" >&6; } 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 1657} # ac_fn_c_check_header_compile 1658 1659# ac_fn_c_try_link LINENO 1660# ----------------------- 1661# Try to link conftest.$ac_ext, and return whether this succeeded. 1662ac_fn_c_try_link () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1666 if { { ac_try="$ac_link" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672printf "%s\n" "$ac_try_echo"; } >&5 1673 (eval "$ac_link") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } && { 1682 test -z "$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 } && test -s conftest$ac_exeext && { 1685 test "$cross_compiling" = yes || 1686 test -x conftest$ac_exeext 1687 } 1688then : 1689 ac_retval=0 1690else $as_nop 1691 printf "%s\n" "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 1695fi 1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1698 # interfere with the next link command; also delete a directory that is 1699 # left behind by Apple's compiler. We do this before executing the actions. 1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702 as_fn_set_status $ac_retval 1703 1704} # ac_fn_c_try_link 1705ac_configure_args_raw= 1706for ac_arg 1707do 1708 case $ac_arg in 1709 *\'*) 1710 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1711 esac 1712 as_fn_append ac_configure_args_raw " '$ac_arg'" 1713done 1714 1715case $ac_configure_args_raw in 1716 *$as_nl*) 1717 ac_safe_unquote= ;; 1718 *) 1719 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1720 ac_unsafe_a="$ac_unsafe_z#~" 1721 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1722 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1723esac 1724 1725cat >config.log <<_ACEOF 1726This file contains any messages produced by compilers while 1727running configure, to aid debugging if configure makes a mistake. 1728 1729It was created by xcmsdb $as_me 1.0.6, which was 1730generated by GNU Autoconf 2.71. Invocation command line was 1731 1732 $ $0$ac_configure_args_raw 1733 1734_ACEOF 1735exec 5>>config.log 1736{ 1737cat <<_ASUNAME 1738## --------- ## 1739## Platform. ## 1740## --------- ## 1741 1742hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1743uname -m = `(uname -m) 2>/dev/null || echo unknown` 1744uname -r = `(uname -r) 2>/dev/null || echo unknown` 1745uname -s = `(uname -s) 2>/dev/null || echo unknown` 1746uname -v = `(uname -v) 2>/dev/null || echo unknown` 1747 1748/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1749/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1750 1751/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1752/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1753/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1754/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1755/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1756/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1757/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1758 1759_ASUNAME 1760 1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1762for as_dir in $PATH 1763do 1764 IFS=$as_save_IFS 1765 case $as_dir in #((( 1766 '') as_dir=./ ;; 1767 */) ;; 1768 *) as_dir=$as_dir/ ;; 1769 esac 1770 printf "%s\n" "PATH: $as_dir" 1771 done 1772IFS=$as_save_IFS 1773 1774} >&5 1775 1776cat >&5 <<_ACEOF 1777 1778 1779## ----------- ## 1780## Core tests. ## 1781## ----------- ## 1782 1783_ACEOF 1784 1785 1786# Keep a trace of the command line. 1787# Strip out --no-create and --no-recursion so they do not pile up. 1788# Strip out --silent because we don't want to record it for future runs. 1789# Also quote any args containing shell meta-characters. 1790# Make two passes to allow for proper duplicate-argument suppression. 1791ac_configure_args= 1792ac_configure_args0= 1793ac_configure_args1= 1794ac_must_keep_next=false 1795for ac_pass in 1 2 1796do 1797 for ac_arg 1798 do 1799 case $ac_arg in 1800 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1802 | -silent | --silent | --silen | --sile | --sil) 1803 continue ;; 1804 *\'*) 1805 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1806 esac 1807 case $ac_pass in 1808 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1809 2) 1810 as_fn_append ac_configure_args1 " '$ac_arg'" 1811 if test $ac_must_keep_next = true; then 1812 ac_must_keep_next=false # Got value, back to normal. 1813 else 1814 case $ac_arg in 1815 *=* | --config-cache | -C | -disable-* | --disable-* \ 1816 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1817 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1818 | -with-* | --with-* | -without-* | --without-* | --x) 1819 case "$ac_configure_args0 " in 1820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1821 esac 1822 ;; 1823 -* ) ac_must_keep_next=true ;; 1824 esac 1825 fi 1826 as_fn_append ac_configure_args " '$ac_arg'" 1827 ;; 1828 esac 1829 done 1830done 1831{ ac_configure_args0=; unset ac_configure_args0;} 1832{ ac_configure_args1=; unset ac_configure_args1;} 1833 1834# When interrupted or exit'd, cleanup temporary files, and complete 1835# config.log. We remove comments because anyway the quotes in there 1836# would cause problems or look ugly. 1837# WARNING: Use '\'' to represent an apostrophe within the trap. 1838# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1839trap 'exit_status=$? 1840 # Sanitize IFS. 1841 IFS=" "" $as_nl" 1842 # Save into config.log some information that might help in debugging. 1843 { 1844 echo 1845 1846 printf "%s\n" "## ---------------- ## 1847## Cache variables. ## 1848## ---------------- ##" 1849 echo 1850 # The following way of writing the cache mishandles newlines in values, 1851( 1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1853 eval ac_val=\$$ac_var 1854 case $ac_val in #( 1855 *${as_nl}*) 1856 case $ac_var in #( 1857 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1858printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1859 esac 1860 case $ac_var in #( 1861 _ | IFS | as_nl) ;; #( 1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1863 *) { eval $ac_var=; unset $ac_var;} ;; 1864 esac ;; 1865 esac 1866 done 1867 (set) 2>&1 | 1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1869 *${as_nl}ac_space=\ *) 1870 sed -n \ 1871 "s/'\''/'\''\\\\'\'''\''/g; 1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1873 ;; #( 1874 *) 1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1876 ;; 1877 esac | 1878 sort 1879) 1880 echo 1881 1882 printf "%s\n" "## ----------------- ## 1883## Output variables. ## 1884## ----------------- ##" 1885 echo 1886 for ac_var in $ac_subst_vars 1887 do 1888 eval ac_val=\$$ac_var 1889 case $ac_val in 1890 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1891 esac 1892 printf "%s\n" "$ac_var='\''$ac_val'\''" 1893 done | sort 1894 echo 1895 1896 if test -n "$ac_subst_files"; then 1897 printf "%s\n" "## ------------------- ## 1898## File substitutions. ## 1899## ------------------- ##" 1900 echo 1901 for ac_var in $ac_subst_files 1902 do 1903 eval ac_val=\$$ac_var 1904 case $ac_val in 1905 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1906 esac 1907 printf "%s\n" "$ac_var='\''$ac_val'\''" 1908 done | sort 1909 echo 1910 fi 1911 1912 if test -s confdefs.h; then 1913 printf "%s\n" "## ----------- ## 1914## confdefs.h. ## 1915## ----------- ##" 1916 echo 1917 cat confdefs.h 1918 echo 1919 fi 1920 test "$ac_signal" != 0 && 1921 printf "%s\n" "$as_me: caught signal $ac_signal" 1922 printf "%s\n" "$as_me: exit $exit_status" 1923 } >&5 1924 rm -f core *.core core.conftest.* && 1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1926 exit $exit_status 1927' 0 1928for ac_signal in 1 2 13 15; do 1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1930done 1931ac_signal=0 1932 1933# confdefs.h avoids OS command line length limits that DEFS can exceed. 1934rm -f -r conftest* confdefs.h 1935 1936printf "%s\n" "/* confdefs.h */" > confdefs.h 1937 1938# Predefined preprocessor variables. 1939 1940printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1941 1942printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1943 1944printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1945 1946printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1947 1948printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1949 1950printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1951 1952 1953# Let the site file select an alternate cache file if it wants to. 1954# Prefer an explicitly selected file to automatically selected ones. 1955if test -n "$CONFIG_SITE"; then 1956 ac_site_files="$CONFIG_SITE" 1957elif test "x$prefix" != xNONE; then 1958 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1959else 1960 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1961fi 1962 1963for ac_site_file in $ac_site_files 1964do 1965 case $ac_site_file in #( 1966 */*) : 1967 ;; #( 1968 *) : 1969 ac_site_file=./$ac_site_file ;; 1970esac 1971 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1973printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1974 sed 's/^/| /' "$ac_site_file" >&5 1975 . "$ac_site_file" \ 1976 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1977printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1978as_fn_error $? "failed to load site script $ac_site_file 1979See \`config.log' for more details" "$LINENO" 5; } 1980 fi 1981done 1982 1983if test -r "$cache_file"; then 1984 # Some versions of bash will fail to source /dev/null (special files 1985 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1986 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1988printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1989 case $cache_file in 1990 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1991 *) . "./$cache_file";; 1992 esac 1993 fi 1994else 1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1996printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 1997 >$cache_file 1998fi 1999 2000# Test code for whether the C compiler supports C89 (global declarations) 2001ac_c_conftest_c89_globals=' 2002/* Does the compiler advertise C89 conformance? 2003 Do not test the value of __STDC__, because some compilers set it to 0 2004 while being otherwise adequately conformant. */ 2005#if !defined __STDC__ 2006# error "Compiler does not advertise C89 conformance" 2007#endif 2008 2009#include <stddef.h> 2010#include <stdarg.h> 2011struct stat; 2012/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2013struct buf { int x; }; 2014struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2015static char *e (p, i) 2016 char **p; 2017 int i; 2018{ 2019 return p[i]; 2020} 2021static char *f (char * (*g) (char **, int), char **p, ...) 2022{ 2023 char *s; 2024 va_list v; 2025 va_start (v,p); 2026 s = g (p, va_arg (v,int)); 2027 va_end (v); 2028 return s; 2029} 2030 2031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2032 function prototypes and stuff, but not \xHH hex character constants. 2033 These do not provoke an error unfortunately, instead are silently treated 2034 as an "x". The following induces an error, until -std is added to get 2035 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2036 array size at least. It is necessary to write \x00 == 0 to get something 2037 that is true only with -std. */ 2038int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2039 2040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2041 inside strings and character constants. */ 2042#define FOO(x) '\''x'\'' 2043int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2044 2045int test (int i, double x); 2046struct s1 {int (*f) (int a);}; 2047struct s2 {int (*f) (double a);}; 2048int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2049 int, int);' 2050 2051# Test code for whether the C compiler supports C89 (body of main). 2052ac_c_conftest_c89_main=' 2053ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2054' 2055 2056# Test code for whether the C compiler supports C99 (global declarations) 2057ac_c_conftest_c99_globals=' 2058// Does the compiler advertise C99 conformance? 2059#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2060# error "Compiler does not advertise C99 conformance" 2061#endif 2062 2063#include <stdbool.h> 2064extern int puts (const char *); 2065extern int printf (const char *, ...); 2066extern int dprintf (int, const char *, ...); 2067extern void *malloc (size_t); 2068 2069// Check varargs macros. These examples are taken from C99 6.10.3.5. 2070// dprintf is used instead of fprintf to avoid needing to declare 2071// FILE and stderr. 2072#define debug(...) dprintf (2, __VA_ARGS__) 2073#define showlist(...) puts (#__VA_ARGS__) 2074#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2075static void 2076test_varargs_macros (void) 2077{ 2078 int x = 1234; 2079 int y = 5678; 2080 debug ("Flag"); 2081 debug ("X = %d\n", x); 2082 showlist (The first, second, and third items.); 2083 report (x>y, "x is %d but y is %d", x, y); 2084} 2085 2086// Check long long types. 2087#define BIG64 18446744073709551615ull 2088#define BIG32 4294967295ul 2089#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2090#if !BIG_OK 2091 #error "your preprocessor is broken" 2092#endif 2093#if BIG_OK 2094#else 2095 #error "your preprocessor is broken" 2096#endif 2097static long long int bignum = -9223372036854775807LL; 2098static unsigned long long int ubignum = BIG64; 2099 2100struct incomplete_array 2101{ 2102 int datasize; 2103 double data[]; 2104}; 2105 2106struct named_init { 2107 int number; 2108 const wchar_t *name; 2109 double average; 2110}; 2111 2112typedef const char *ccp; 2113 2114static inline int 2115test_restrict (ccp restrict text) 2116{ 2117 // See if C++-style comments work. 2118 // Iterate through items via the restricted pointer. 2119 // Also check for declarations in for loops. 2120 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2121 continue; 2122 return 0; 2123} 2124 2125// Check varargs and va_copy. 2126static bool 2127test_varargs (const char *format, ...) 2128{ 2129 va_list args; 2130 va_start (args, format); 2131 va_list args_copy; 2132 va_copy (args_copy, args); 2133 2134 const char *str = ""; 2135 int number = 0; 2136 float fnumber = 0; 2137 2138 while (*format) 2139 { 2140 switch (*format++) 2141 { 2142 case '\''s'\'': // string 2143 str = va_arg (args_copy, const char *); 2144 break; 2145 case '\''d'\'': // int 2146 number = va_arg (args_copy, int); 2147 break; 2148 case '\''f'\'': // float 2149 fnumber = va_arg (args_copy, double); 2150 break; 2151 default: 2152 break; 2153 } 2154 } 2155 va_end (args_copy); 2156 va_end (args); 2157 2158 return *str && number && fnumber; 2159} 2160' 2161 2162# Test code for whether the C compiler supports C99 (body of main). 2163ac_c_conftest_c99_main=' 2164 // Check bool. 2165 _Bool success = false; 2166 success |= (argc != 0); 2167 2168 // Check restrict. 2169 if (test_restrict ("String literal") == 0) 2170 success = true; 2171 char *restrict newvar = "Another string"; 2172 2173 // Check varargs. 2174 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2175 test_varargs_macros (); 2176 2177 // Check flexible array members. 2178 struct incomplete_array *ia = 2179 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2180 ia->datasize = 10; 2181 for (int i = 0; i < ia->datasize; ++i) 2182 ia->data[i] = i * 1.234; 2183 2184 // Check named initializers. 2185 struct named_init ni = { 2186 .number = 34, 2187 .name = L"Test wide string", 2188 .average = 543.34343, 2189 }; 2190 2191 ni.number = 58; 2192 2193 int dynamic_array[ni.number]; 2194 dynamic_array[0] = argv[0][0]; 2195 dynamic_array[ni.number - 1] = 543; 2196 2197 // work around unused variable warnings 2198 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2199 || dynamic_array[ni.number - 1] != 543); 2200' 2201 2202# Test code for whether the C compiler supports C11 (global declarations) 2203ac_c_conftest_c11_globals=' 2204// Does the compiler advertise C11 conformance? 2205#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2206# error "Compiler does not advertise C11 conformance" 2207#endif 2208 2209// Check _Alignas. 2210char _Alignas (double) aligned_as_double; 2211char _Alignas (0) no_special_alignment; 2212extern char aligned_as_int; 2213char _Alignas (0) _Alignas (int) aligned_as_int; 2214 2215// Check _Alignof. 2216enum 2217{ 2218 int_alignment = _Alignof (int), 2219 int_array_alignment = _Alignof (int[100]), 2220 char_alignment = _Alignof (char) 2221}; 2222_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2223 2224// Check _Noreturn. 2225int _Noreturn does_not_return (void) { for (;;) continue; } 2226 2227// Check _Static_assert. 2228struct test_static_assert 2229{ 2230 int x; 2231 _Static_assert (sizeof (int) <= sizeof (long int), 2232 "_Static_assert does not work in struct"); 2233 long int y; 2234}; 2235 2236// Check UTF-8 literals. 2237#define u8 syntax error! 2238char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2239 2240// Check duplicate typedefs. 2241typedef long *long_ptr; 2242typedef long int *long_ptr; 2243typedef long_ptr long_ptr; 2244 2245// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2246struct anonymous 2247{ 2248 union { 2249 struct { int i; int j; }; 2250 struct { int k; long int l; } w; 2251 }; 2252 int m; 2253} v1; 2254' 2255 2256# Test code for whether the C compiler supports C11 (body of main). 2257ac_c_conftest_c11_main=' 2258 _Static_assert ((offsetof (struct anonymous, i) 2259 == offsetof (struct anonymous, w.k)), 2260 "Anonymous union alignment botch"); 2261 v1.i = 2; 2262 v1.w.k = 5; 2263 ok |= v1.i != 5; 2264' 2265 2266# Test code for whether the C compiler supports C11 (complete). 2267ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2268${ac_c_conftest_c99_globals} 2269${ac_c_conftest_c11_globals} 2270 2271int 2272main (int argc, char **argv) 2273{ 2274 int ok = 0; 2275 ${ac_c_conftest_c89_main} 2276 ${ac_c_conftest_c99_main} 2277 ${ac_c_conftest_c11_main} 2278 return ok; 2279} 2280" 2281 2282# Test code for whether the C compiler supports C99 (complete). 2283ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2284${ac_c_conftest_c99_globals} 2285 2286int 2287main (int argc, char **argv) 2288{ 2289 int ok = 0; 2290 ${ac_c_conftest_c89_main} 2291 ${ac_c_conftest_c99_main} 2292 return ok; 2293} 2294" 2295 2296# Test code for whether the C compiler supports C89 (complete). 2297ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2298 2299int 2300main (int argc, char **argv) 2301{ 2302 int ok = 0; 2303 ${ac_c_conftest_c89_main} 2304 return ok; 2305} 2306" 2307 2308as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2309as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2310as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2311as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2312as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2313as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2314as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2315as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2316as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2317 2318# Auxiliary files required by this configure script. 2319ac_aux_files="config.guess config.sub compile missing install-sh" 2320 2321# Locations in which to look for auxiliary files. 2322ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2323 2324# Search for a directory containing all of the required auxiliary files, 2325# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2326# If we don't find one directory that contains all the files we need, 2327# we report the set of missing files from the *first* directory in 2328# $ac_aux_dir_candidates and give up. 2329ac_missing_aux_files="" 2330ac_first_candidate=: 2331printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2333as_found=false 2334for as_dir in $ac_aux_dir_candidates 2335do 2336 IFS=$as_save_IFS 2337 case $as_dir in #((( 2338 '') as_dir=./ ;; 2339 */) ;; 2340 *) as_dir=$as_dir/ ;; 2341 esac 2342 as_found=: 2343 2344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2345 ac_aux_dir_found=yes 2346 ac_install_sh= 2347 for ac_aux in $ac_aux_files 2348 do 2349 # As a special case, if "install-sh" is required, that requirement 2350 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2351 # and $ac_install_sh is set appropriately for whichever one is found. 2352 if test x"$ac_aux" = x"install-sh" 2353 then 2354 if test -f "${as_dir}install-sh"; then 2355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2356 ac_install_sh="${as_dir}install-sh -c" 2357 elif test -f "${as_dir}install.sh"; then 2358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2359 ac_install_sh="${as_dir}install.sh -c" 2360 elif test -f "${as_dir}shtool"; then 2361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2362 ac_install_sh="${as_dir}shtool install -c" 2363 else 2364 ac_aux_dir_found=no 2365 if $ac_first_candidate; then 2366 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2367 else 2368 break 2369 fi 2370 fi 2371 else 2372 if test -f "${as_dir}${ac_aux}"; then 2373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2374 else 2375 ac_aux_dir_found=no 2376 if $ac_first_candidate; then 2377 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2378 else 2379 break 2380 fi 2381 fi 2382 fi 2383 done 2384 if test "$ac_aux_dir_found" = yes; then 2385 ac_aux_dir="$as_dir" 2386 break 2387 fi 2388 ac_first_candidate=false 2389 2390 as_found=false 2391done 2392IFS=$as_save_IFS 2393if $as_found 2394then : 2395 2396else $as_nop 2397 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2398fi 2399 2400 2401# These three variables are undocumented and unsupported, 2402# and are intended to be withdrawn in a future Autoconf release. 2403# They can cause serious problems if a builder's source tree is in a directory 2404# whose full name contains unusual characters. 2405if test -f "${ac_aux_dir}config.guess"; then 2406 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2407fi 2408if test -f "${ac_aux_dir}config.sub"; then 2409 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2410fi 2411if test -f "$ac_aux_dir/configure"; then 2412 ac_configure="$SHELL ${ac_aux_dir}configure" 2413fi 2414 2415# Check that the precious variables saved in the cache have kept the same 2416# value. 2417ac_cache_corrupted=false 2418for ac_var in $ac_precious_vars; do 2419 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2420 eval ac_new_set=\$ac_env_${ac_var}_set 2421 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2422 eval ac_new_val=\$ac_env_${ac_var}_value 2423 case $ac_old_set,$ac_new_set in 2424 set,) 2425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2426printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2427 ac_cache_corrupted=: ;; 2428 ,set) 2429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2430printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2431 ac_cache_corrupted=: ;; 2432 ,);; 2433 *) 2434 if test "x$ac_old_val" != "x$ac_new_val"; then 2435 # differences in whitespace do not lead to failure. 2436 ac_old_val_w=`echo x $ac_old_val` 2437 ac_new_val_w=`echo x $ac_new_val` 2438 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2440printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2441 ac_cache_corrupted=: 2442 else 2443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2444printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2445 eval $ac_var=\$ac_old_val 2446 fi 2447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2448printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2450printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2451 fi;; 2452 esac 2453 # Pass precious variables to config.status. 2454 if test "$ac_new_set" = set; then 2455 case $ac_new_val in 2456 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2457 *) ac_arg=$ac_var=$ac_new_val ;; 2458 esac 2459 case " $ac_configure_args " in 2460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2461 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2462 esac 2463 fi 2464done 2465if $ac_cache_corrupted; then 2466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2467printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2469printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2470 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2471 and start over" "$LINENO" 5 2472fi 2473## -------------------- ## 2474## Main body of script. ## 2475## -------------------- ## 2476 2477ac_ext=c 2478ac_cpp='$CPP $CPPFLAGS' 2479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2481ac_compiler_gnu=$ac_cv_c_compiler_gnu 2482 2483 2484ac_config_headers="$ac_config_headers config.h" 2485 2486 2487 2488# Initialize Automake 2489am__api_version='1.16' 2490 2491 2492 2493 # Find a good install program. We prefer a C program (faster), 2494# so one script is as good as another. But avoid the broken or 2495# incompatible versions: 2496# SysV /etc/install, /usr/sbin/install 2497# SunOS /usr/etc/install 2498# IRIX /sbin/install 2499# AIX /bin/install 2500# AmigaOS /C/install, which installs bootblocks on floppy discs 2501# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2502# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2503# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2504# OS/2's system install, which has a completely different semantic 2505# ./install, which can be erroneously created by make from ./install.sh. 2506# Reject install programs that cannot install multiple files. 2507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2508printf %s "checking for a BSD-compatible install... " >&6; } 2509if test -z "$INSTALL"; then 2510if test ${ac_cv_path_install+y} 2511then : 2512 printf %s "(cached) " >&6 2513else $as_nop 2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515for as_dir in $PATH 2516do 2517 IFS=$as_save_IFS 2518 case $as_dir in #((( 2519 '') as_dir=./ ;; 2520 */) ;; 2521 *) as_dir=$as_dir/ ;; 2522 esac 2523 # Account for fact that we put trailing slashes in our PATH walk. 2524case $as_dir in #(( 2525 ./ | /[cC]/* | \ 2526 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2527 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2528 /usr/ucb/* ) ;; 2529 *) 2530 # OSF1 and SCO ODT 3.0 have their own names for install. 2531 # Don't use installbsd from OSF since it installs stuff as root 2532 # by default. 2533 for ac_prog in ginstall scoinst install; do 2534 for ac_exec_ext in '' $ac_executable_extensions; do 2535 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2536 if test $ac_prog = install && 2537 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2538 # AIX install. It has an incompatible calling convention. 2539 : 2540 elif test $ac_prog = install && 2541 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2542 # program-specific install script used by HP pwplus--don't use. 2543 : 2544 else 2545 rm -rf conftest.one conftest.two conftest.dir 2546 echo one > conftest.one 2547 echo two > conftest.two 2548 mkdir conftest.dir 2549 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2550 test -s conftest.one && test -s conftest.two && 2551 test -s conftest.dir/conftest.one && 2552 test -s conftest.dir/conftest.two 2553 then 2554 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2555 break 3 2556 fi 2557 fi 2558 fi 2559 done 2560 done 2561 ;; 2562esac 2563 2564 done 2565IFS=$as_save_IFS 2566 2567rm -rf conftest.one conftest.two conftest.dir 2568 2569fi 2570 if test ${ac_cv_path_install+y}; then 2571 INSTALL=$ac_cv_path_install 2572 else 2573 # As a last resort, use the slow shell script. Don't cache a 2574 # value for INSTALL within a source directory, because that will 2575 # break other packages using the cache if that directory is 2576 # removed, or if the value is a relative name. 2577 INSTALL=$ac_install_sh 2578 fi 2579fi 2580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2581printf "%s\n" "$INSTALL" >&6; } 2582 2583# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2584# It thinks the first close brace ends the variable substitution. 2585test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2586 2587test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2588 2589test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2590 2591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2592printf %s "checking whether build environment is sane... " >&6; } 2593# Reject unsafe characters in $srcdir or the absolute working directory 2594# name. Accept space and tab only in the latter. 2595am_lf=' 2596' 2597case `pwd` in 2598 *[\\\"\#\$\&\'\`$am_lf]*) 2599 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2600esac 2601case $srcdir in 2602 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2603 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2604esac 2605 2606# Do 'set' in a subshell so we don't clobber the current shell's 2607# arguments. Must try -L first in case configure is actually a 2608# symlink; some systems play weird games with the mod time of symlinks 2609# (eg FreeBSD returns the mod time of the symlink's containing 2610# directory). 2611if ( 2612 am_has_slept=no 2613 for am_try in 1 2; do 2614 echo "timestamp, slept: $am_has_slept" > conftest.file 2615 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2616 if test "$*" = "X"; then 2617 # -L didn't work. 2618 set X `ls -t "$srcdir/configure" conftest.file` 2619 fi 2620 if test "$*" != "X $srcdir/configure conftest.file" \ 2621 && test "$*" != "X conftest.file $srcdir/configure"; then 2622 2623 # If neither matched, then we have a broken ls. This can happen 2624 # if, for instance, CONFIG_SHELL is bash and it inherits a 2625 # broken ls alias from the environment. This has actually 2626 # happened. Such a system could not be considered "sane". 2627 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2628 alias in your environment" "$LINENO" 5 2629 fi 2630 if test "$2" = conftest.file || test $am_try -eq 2; then 2631 break 2632 fi 2633 # Just in case. 2634 sleep 1 2635 am_has_slept=yes 2636 done 2637 test "$2" = conftest.file 2638 ) 2639then 2640 # Ok. 2641 : 2642else 2643 as_fn_error $? "newly created file is older than distributed files! 2644Check your system clock" "$LINENO" 5 2645fi 2646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2647printf "%s\n" "yes" >&6; } 2648# If we didn't sleep, we still need to ensure time stamps of config.status and 2649# generated files are strictly newer. 2650am_sleep_pid= 2651if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2652 ( sleep 1 ) & 2653 am_sleep_pid=$! 2654fi 2655 2656rm -f conftest.file 2657 2658test "$program_prefix" != NONE && 2659 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2660# Use a double $ so make ignores it. 2661test "$program_suffix" != NONE && 2662 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2663# Double any \ or $. 2664# By default was `s,x,x', remove it if useless. 2665ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2666program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2667 2668 2669# Expand $ac_aux_dir to an absolute path. 2670am_aux_dir=`cd "$ac_aux_dir" && pwd` 2671 2672 2673 if test x"${MISSING+set}" != xset; then 2674 MISSING="\${SHELL} '$am_aux_dir/missing'" 2675fi 2676# Use eval to expand $SHELL 2677if eval "$MISSING --is-lightweight"; then 2678 am_missing_run="$MISSING " 2679else 2680 am_missing_run= 2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2682printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2683fi 2684 2685if test x"${install_sh+set}" != xset; then 2686 case $am_aux_dir in 2687 *\ * | *\ *) 2688 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2689 *) 2690 install_sh="\${SHELL} $am_aux_dir/install-sh" 2691 esac 2692fi 2693 2694# Installed binaries are usually stripped using 'strip' when the user 2695# run "make install-strip". However 'strip' might not be the right 2696# tool to use in cross-compilation environments, therefore Automake 2697# will honor the 'STRIP' environment variable to overrule this program. 2698if test "$cross_compiling" != no; then 2699 if test -n "$ac_tool_prefix"; then 2700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2701set dummy ${ac_tool_prefix}strip; ac_word=$2 2702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2703printf %s "checking for $ac_word... " >&6; } 2704if test ${ac_cv_prog_STRIP+y} 2705then : 2706 printf %s "(cached) " >&6 2707else $as_nop 2708 if test -n "$STRIP"; then 2709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2710else 2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2712for as_dir in $PATH 2713do 2714 IFS=$as_save_IFS 2715 case $as_dir in #((( 2716 '') as_dir=./ ;; 2717 */) ;; 2718 *) as_dir=$as_dir/ ;; 2719 esac 2720 for ac_exec_ext in '' $ac_executable_extensions; do 2721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2722 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2724 break 2 2725 fi 2726done 2727 done 2728IFS=$as_save_IFS 2729 2730fi 2731fi 2732STRIP=$ac_cv_prog_STRIP 2733if test -n "$STRIP"; then 2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2735printf "%s\n" "$STRIP" >&6; } 2736else 2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2738printf "%s\n" "no" >&6; } 2739fi 2740 2741 2742fi 2743if test -z "$ac_cv_prog_STRIP"; then 2744 ac_ct_STRIP=$STRIP 2745 # Extract the first word of "strip", so it can be a program name with args. 2746set dummy strip; ac_word=$2 2747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2748printf %s "checking for $ac_word... " >&6; } 2749if test ${ac_cv_prog_ac_ct_STRIP+y} 2750then : 2751 printf %s "(cached) " >&6 2752else $as_nop 2753 if test -n "$ac_ct_STRIP"; then 2754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2755else 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 case $as_dir in #((( 2761 '') as_dir=./ ;; 2762 */) ;; 2763 *) as_dir=$as_dir/ ;; 2764 esac 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2767 ac_cv_prog_ac_ct_STRIP="strip" 2768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2769 break 2 2770 fi 2771done 2772 done 2773IFS=$as_save_IFS 2774 2775fi 2776fi 2777ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2778if test -n "$ac_ct_STRIP"; then 2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2780printf "%s\n" "$ac_ct_STRIP" >&6; } 2781else 2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2783printf "%s\n" "no" >&6; } 2784fi 2785 2786 if test "x$ac_ct_STRIP" = x; then 2787 STRIP=":" 2788 else 2789 case $cross_compiling:$ac_tool_warned in 2790yes:) 2791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2792printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2793ac_tool_warned=yes ;; 2794esac 2795 STRIP=$ac_ct_STRIP 2796 fi 2797else 2798 STRIP="$ac_cv_prog_STRIP" 2799fi 2800 2801fi 2802INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2803 2804 2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2806printf %s "checking for a race-free mkdir -p... " >&6; } 2807if test -z "$MKDIR_P"; then 2808 if test ${ac_cv_path_mkdir+y} 2809then : 2810 printf %s "(cached) " >&6 2811else $as_nop 2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2814do 2815 IFS=$as_save_IFS 2816 case $as_dir in #((( 2817 '') as_dir=./ ;; 2818 */) ;; 2819 *) as_dir=$as_dir/ ;; 2820 esac 2821 for ac_prog in mkdir gmkdir; do 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2824 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2825 'mkdir ('*'coreutils) '* | \ 2826 'BusyBox '* | \ 2827 'mkdir (fileutils) '4.1*) 2828 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2829 break 3;; 2830 esac 2831 done 2832 done 2833 done 2834IFS=$as_save_IFS 2835 2836fi 2837 2838 test -d ./--version && rmdir ./--version 2839 if test ${ac_cv_path_mkdir+y}; then 2840 MKDIR_P="$ac_cv_path_mkdir -p" 2841 else 2842 # As a last resort, use the slow shell script. Don't cache a 2843 # value for MKDIR_P within a source directory, because that will 2844 # break other packages using the cache if that directory is 2845 # removed, or if the value is a relative name. 2846 MKDIR_P="$ac_install_sh -d" 2847 fi 2848fi 2849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2850printf "%s\n" "$MKDIR_P" >&6; } 2851 2852for ac_prog in gawk mawk nawk awk 2853do 2854 # Extract the first word of "$ac_prog", so it can be a program name with args. 2855set dummy $ac_prog; ac_word=$2 2856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2857printf %s "checking for $ac_word... " >&6; } 2858if test ${ac_cv_prog_AWK+y} 2859then : 2860 printf %s "(cached) " >&6 2861else $as_nop 2862 if test -n "$AWK"; then 2863 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2864else 2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2866for as_dir in $PATH 2867do 2868 IFS=$as_save_IFS 2869 case $as_dir in #((( 2870 '') as_dir=./ ;; 2871 */) ;; 2872 *) as_dir=$as_dir/ ;; 2873 esac 2874 for ac_exec_ext in '' $ac_executable_extensions; do 2875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2876 ac_cv_prog_AWK="$ac_prog" 2877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2878 break 2 2879 fi 2880done 2881 done 2882IFS=$as_save_IFS 2883 2884fi 2885fi 2886AWK=$ac_cv_prog_AWK 2887if test -n "$AWK"; then 2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2889printf "%s\n" "$AWK" >&6; } 2890else 2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2892printf "%s\n" "no" >&6; } 2893fi 2894 2895 2896 test -n "$AWK" && break 2897done 2898 2899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2900printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2901set x ${MAKE-make} 2902ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2903if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2904then : 2905 printf %s "(cached) " >&6 2906else $as_nop 2907 cat >conftest.make <<\_ACEOF 2908SHELL = /bin/sh 2909all: 2910 @echo '@@@%%%=$(MAKE)=@@@%%%' 2911_ACEOF 2912# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2913case `${MAKE-make} -f conftest.make 2>/dev/null` in 2914 *@@@%%%=?*=@@@%%%*) 2915 eval ac_cv_prog_make_${ac_make}_set=yes;; 2916 *) 2917 eval ac_cv_prog_make_${ac_make}_set=no;; 2918esac 2919rm -f conftest.make 2920fi 2921if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2923printf "%s\n" "yes" >&6; } 2924 SET_MAKE= 2925else 2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927printf "%s\n" "no" >&6; } 2928 SET_MAKE="MAKE=${MAKE-make}" 2929fi 2930 2931rm -rf .tst 2>/dev/null 2932mkdir .tst 2>/dev/null 2933if test -d .tst; then 2934 am__leading_dot=. 2935else 2936 am__leading_dot=_ 2937fi 2938rmdir .tst 2>/dev/null 2939 2940# Check whether --enable-silent-rules was given. 2941if test ${enable_silent_rules+y} 2942then : 2943 enableval=$enable_silent_rules; 2944fi 2945 2946case $enable_silent_rules in # ((( 2947 yes) AM_DEFAULT_VERBOSITY=0;; 2948 no) AM_DEFAULT_VERBOSITY=1;; 2949 *) AM_DEFAULT_VERBOSITY=1;; 2950esac 2951am_make=${MAKE-make} 2952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2953printf %s "checking whether $am_make supports nested variables... " >&6; } 2954if test ${am_cv_make_support_nested_variables+y} 2955then : 2956 printf %s "(cached) " >&6 2957else $as_nop 2958 if printf "%s\n" 'TRUE=$(BAR$(V)) 2959BAR0=false 2960BAR1=true 2961V=1 2962am__doit: 2963 @$(TRUE) 2964.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2965 am_cv_make_support_nested_variables=yes 2966else 2967 am_cv_make_support_nested_variables=no 2968fi 2969fi 2970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2971printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2972if test $am_cv_make_support_nested_variables = yes; then 2973 AM_V='$(V)' 2974 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2975else 2976 AM_V=$AM_DEFAULT_VERBOSITY 2977 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2978fi 2979AM_BACKSLASH='\' 2980 2981if test "`cd $srcdir && pwd`" != "`pwd`"; then 2982 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2983 # is not polluted with repeated "-I." 2984 am__isrc=' -I$(srcdir)' 2985 # test to see if srcdir already configured 2986 if test -f $srcdir/config.status; then 2987 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2988 fi 2989fi 2990 2991# test whether we have cygpath 2992if test -z "$CYGPATH_W"; then 2993 if (cygpath --version) >/dev/null 2>/dev/null; then 2994 CYGPATH_W='cygpath -w' 2995 else 2996 CYGPATH_W=echo 2997 fi 2998fi 2999 3000 3001# Define the identity of the package. 3002 PACKAGE='xcmsdb' 3003 VERSION='1.0.6' 3004 3005 3006printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3007 3008 3009printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3010 3011# Some tools Automake needs. 3012 3013ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3014 3015 3016AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3017 3018 3019AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3020 3021 3022AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3023 3024 3025MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3026 3027# For better backward compatibility. To be removed once Automake 1.9.x 3028# dies out for good. For more background, see: 3029# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3030# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3031mkdir_p='$(MKDIR_P)' 3032 3033# We need awk for the "check" target (and possibly the TAP driver). The 3034# system "awk" is bad on some platforms. 3035# Always define AMTAR for backward compatibility. Yes, it's still used 3036# in the wild :-( We should find a proper way to deprecate it ... 3037AMTAR='$${TAR-tar}' 3038 3039 3040# We'll loop over all known methods to create a tar archive until one works. 3041_am_tools='gnutar pax cpio none' 3042 3043am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3044 3045 3046 3047 3048 3049# Variables for tags utilities; see am/tags.am 3050if test -z "$CTAGS"; then 3051 CTAGS=ctags 3052fi 3053 3054if test -z "$ETAGS"; then 3055 ETAGS=etags 3056fi 3057 3058if test -z "$CSCOPE"; then 3059 CSCOPE=cscope 3060fi 3061 3062 3063 3064# POSIX will say in a future version that running "rm -f" with no argument 3065# is OK; and we want to be able to make that assumption in our Makefile 3066# recipes. So use an aggressive probe to check that the usage we want is 3067# actually supported "in the wild" to an acceptable degree. 3068# See automake bug#10828. 3069# To make any issue more visible, cause the running configure to be aborted 3070# by default if the 'rm' program in use doesn't match our expectations; the 3071# user can still override this though. 3072if rm -f && rm -fr && rm -rf; then : OK; else 3073 cat >&2 <<'END' 3074Oops! 3075 3076Your 'rm' program seems unable to run without file operands specified 3077on the command line, even when the '-f' option is present. This is contrary 3078to the behaviour of most rm programs out there, and not conforming with 3079the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3080 3081Please tell bug-automake@gnu.org about your system, including the value 3082of your $PATH and any error possibly output before this message. This 3083can help us improve future automake versions. 3084 3085END 3086 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3087 echo 'Configuration will proceed anyway, since you have set the' >&2 3088 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3089 echo >&2 3090 else 3091 cat >&2 <<'END' 3092Aborting the configuration process, to ensure you take notice of the issue. 3093 3094You can download and install GNU coreutils to get an 'rm' implementation 3095that behaves properly: <https://www.gnu.org/software/coreutils/>. 3096 3097If you want to complete the configuration process using your problematic 3098'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3099to "yes", and re-run configure. 3100 3101END 3102 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3103 fi 3104fi 3105 3106 3107# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128DEPDIR="${am__leading_dot}deps" 3129 3130ac_config_commands="$ac_config_commands depfiles" 3131 3132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3133printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3134cat > confinc.mk << 'END' 3135am__doit: 3136 @echo this is the am__doit target >confinc.out 3137.PHONY: am__doit 3138END 3139am__include="#" 3140am__quote= 3141# BSD make does it like this. 3142echo '.include "confinc.mk" # ignored' > confmf.BSD 3143# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3144echo 'include confinc.mk # ignored' > confmf.GNU 3145_am_result=no 3146for s in GNU BSD; do 3147 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3148 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3149 ac_status=$? 3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3151 (exit $ac_status); } 3152 case $?:`cat confinc.out 2>/dev/null` in #( 3153 '0:this is the am__doit target') : 3154 case $s in #( 3155 BSD) : 3156 am__include='.include' am__quote='"' ;; #( 3157 *) : 3158 am__include='include' am__quote='' ;; 3159esac ;; #( 3160 *) : 3161 ;; 3162esac 3163 if test "$am__include" != "#"; then 3164 _am_result="yes ($s style)" 3165 break 3166 fi 3167done 3168rm -f confinc.* confmf.* 3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3170printf "%s\n" "${_am_result}" >&6; } 3171 3172# Check whether --enable-dependency-tracking was given. 3173if test ${enable_dependency_tracking+y} 3174then : 3175 enableval=$enable_dependency_tracking; 3176fi 3177 3178if test "x$enable_dependency_tracking" != xno; then 3179 am_depcomp="$ac_aux_dir/depcomp" 3180 AMDEPBACKSLASH='\' 3181 am__nodep='_no' 3182fi 3183 if test "x$enable_dependency_tracking" != xno; then 3184 AMDEP_TRUE= 3185 AMDEP_FALSE='#' 3186else 3187 AMDEP_TRUE='#' 3188 AMDEP_FALSE= 3189fi 3190 3191 3192ac_ext=c 3193ac_cpp='$CPP $CPPFLAGS' 3194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3196ac_compiler_gnu=$ac_cv_c_compiler_gnu 3197if test -n "$ac_tool_prefix"; then 3198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3199set dummy ${ac_tool_prefix}gcc; ac_word=$2 3200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3201printf %s "checking for $ac_word... " >&6; } 3202if test ${ac_cv_prog_CC+y} 3203then : 3204 printf %s "(cached) " >&6 3205else $as_nop 3206 if test -n "$CC"; then 3207 ac_cv_prog_CC="$CC" # Let the user override the test. 3208else 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210for as_dir in $PATH 3211do 3212 IFS=$as_save_IFS 3213 case $as_dir in #((( 3214 '') as_dir=./ ;; 3215 */) ;; 3216 *) as_dir=$as_dir/ ;; 3217 esac 3218 for ac_exec_ext in '' $ac_executable_extensions; do 3219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3220 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3222 break 2 3223 fi 3224done 3225 done 3226IFS=$as_save_IFS 3227 3228fi 3229fi 3230CC=$ac_cv_prog_CC 3231if test -n "$CC"; then 3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3233printf "%s\n" "$CC" >&6; } 3234else 3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3236printf "%s\n" "no" >&6; } 3237fi 3238 3239 3240fi 3241if test -z "$ac_cv_prog_CC"; then 3242 ac_ct_CC=$CC 3243 # Extract the first word of "gcc", so it can be a program name with args. 3244set dummy gcc; ac_word=$2 3245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3246printf %s "checking for $ac_word... " >&6; } 3247if test ${ac_cv_prog_ac_ct_CC+y} 3248then : 3249 printf %s "(cached) " >&6 3250else $as_nop 3251 if test -n "$ac_ct_CC"; then 3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3253else 3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255for as_dir in $PATH 3256do 3257 IFS=$as_save_IFS 3258 case $as_dir in #((( 3259 '') as_dir=./ ;; 3260 */) ;; 3261 *) as_dir=$as_dir/ ;; 3262 esac 3263 for ac_exec_ext in '' $ac_executable_extensions; do 3264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3265 ac_cv_prog_ac_ct_CC="gcc" 3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3267 break 2 3268 fi 3269done 3270 done 3271IFS=$as_save_IFS 3272 3273fi 3274fi 3275ac_ct_CC=$ac_cv_prog_ac_ct_CC 3276if test -n "$ac_ct_CC"; then 3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3278printf "%s\n" "$ac_ct_CC" >&6; } 3279else 3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3281printf "%s\n" "no" >&6; } 3282fi 3283 3284 if test "x$ac_ct_CC" = x; then 3285 CC="" 3286 else 3287 case $cross_compiling:$ac_tool_warned in 3288yes:) 3289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3290printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3291ac_tool_warned=yes ;; 3292esac 3293 CC=$ac_ct_CC 3294 fi 3295else 3296 CC="$ac_cv_prog_CC" 3297fi 3298 3299if test -z "$CC"; then 3300 if test -n "$ac_tool_prefix"; then 3301 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3302set dummy ${ac_tool_prefix}cc; ac_word=$2 3303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3304printf %s "checking for $ac_word... " >&6; } 3305if test ${ac_cv_prog_CC+y} 3306then : 3307 printf %s "(cached) " >&6 3308else $as_nop 3309 if test -n "$CC"; then 3310 ac_cv_prog_CC="$CC" # Let the user override the test. 3311else 3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3313for as_dir in $PATH 3314do 3315 IFS=$as_save_IFS 3316 case $as_dir in #((( 3317 '') as_dir=./ ;; 3318 */) ;; 3319 *) as_dir=$as_dir/ ;; 3320 esac 3321 for ac_exec_ext in '' $ac_executable_extensions; do 3322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3323 ac_cv_prog_CC="${ac_tool_prefix}cc" 3324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3325 break 2 3326 fi 3327done 3328 done 3329IFS=$as_save_IFS 3330 3331fi 3332fi 3333CC=$ac_cv_prog_CC 3334if test -n "$CC"; then 3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3336printf "%s\n" "$CC" >&6; } 3337else 3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339printf "%s\n" "no" >&6; } 3340fi 3341 3342 3343 fi 3344fi 3345if test -z "$CC"; then 3346 # Extract the first word of "cc", so it can be a program name with args. 3347set dummy cc; ac_word=$2 3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3349printf %s "checking for $ac_word... " >&6; } 3350if test ${ac_cv_prog_CC+y} 3351then : 3352 printf %s "(cached) " >&6 3353else $as_nop 3354 if test -n "$CC"; then 3355 ac_cv_prog_CC="$CC" # Let the user override the test. 3356else 3357 ac_prog_rejected=no 3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3359for as_dir in $PATH 3360do 3361 IFS=$as_save_IFS 3362 case $as_dir in #((( 3363 '') as_dir=./ ;; 3364 */) ;; 3365 *) as_dir=$as_dir/ ;; 3366 esac 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3369 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3370 ac_prog_rejected=yes 3371 continue 3372 fi 3373 ac_cv_prog_CC="cc" 3374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377done 3378 done 3379IFS=$as_save_IFS 3380 3381if test $ac_prog_rejected = yes; then 3382 # We found a bogon in the path, so make sure we never use it. 3383 set dummy $ac_cv_prog_CC 3384 shift 3385 if test $# != 0; then 3386 # We chose a different compiler from the bogus one. 3387 # However, it has the same basename, so the bogon will be chosen 3388 # first if we set CC to just the basename; use the full file name. 3389 shift 3390 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3391 fi 3392fi 3393fi 3394fi 3395CC=$ac_cv_prog_CC 3396if test -n "$CC"; then 3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3398printf "%s\n" "$CC" >&6; } 3399else 3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3401printf "%s\n" "no" >&6; } 3402fi 3403 3404 3405fi 3406if test -z "$CC"; then 3407 if test -n "$ac_tool_prefix"; then 3408 for ac_prog in cl.exe 3409 do 3410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3411set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3413printf %s "checking for $ac_word... " >&6; } 3414if test ${ac_cv_prog_CC+y} 3415then : 3416 printf %s "(cached) " >&6 3417else $as_nop 3418 if test -n "$CC"; then 3419 ac_cv_prog_CC="$CC" # Let the user override the test. 3420else 3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3422for as_dir in $PATH 3423do 3424 IFS=$as_save_IFS 3425 case $as_dir in #((( 3426 '') as_dir=./ ;; 3427 */) ;; 3428 *) as_dir=$as_dir/ ;; 3429 esac 3430 for ac_exec_ext in '' $ac_executable_extensions; do 3431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3434 break 2 3435 fi 3436done 3437 done 3438IFS=$as_save_IFS 3439 3440fi 3441fi 3442CC=$ac_cv_prog_CC 3443if test -n "$CC"; then 3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3445printf "%s\n" "$CC" >&6; } 3446else 3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3448printf "%s\n" "no" >&6; } 3449fi 3450 3451 3452 test -n "$CC" && break 3453 done 3454fi 3455if test -z "$CC"; then 3456 ac_ct_CC=$CC 3457 for ac_prog in cl.exe 3458do 3459 # Extract the first word of "$ac_prog", so it can be a program name with args. 3460set dummy $ac_prog; ac_word=$2 3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3462printf %s "checking for $ac_word... " >&6; } 3463if test ${ac_cv_prog_ac_ct_CC+y} 3464then : 3465 printf %s "(cached) " >&6 3466else $as_nop 3467 if test -n "$ac_ct_CC"; then 3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3469else 3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3471for as_dir in $PATH 3472do 3473 IFS=$as_save_IFS 3474 case $as_dir in #((( 3475 '') as_dir=./ ;; 3476 */) ;; 3477 *) as_dir=$as_dir/ ;; 3478 esac 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3481 ac_cv_prog_ac_ct_CC="$ac_prog" 3482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3483 break 2 3484 fi 3485done 3486 done 3487IFS=$as_save_IFS 3488 3489fi 3490fi 3491ac_ct_CC=$ac_cv_prog_ac_ct_CC 3492if test -n "$ac_ct_CC"; then 3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3494printf "%s\n" "$ac_ct_CC" >&6; } 3495else 3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3497printf "%s\n" "no" >&6; } 3498fi 3499 3500 3501 test -n "$ac_ct_CC" && break 3502done 3503 3504 if test "x$ac_ct_CC" = x; then 3505 CC="" 3506 else 3507 case $cross_compiling:$ac_tool_warned in 3508yes:) 3509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3510printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3511ac_tool_warned=yes ;; 3512esac 3513 CC=$ac_ct_CC 3514 fi 3515fi 3516 3517fi 3518if test -z "$CC"; then 3519 if test -n "$ac_tool_prefix"; then 3520 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3521set dummy ${ac_tool_prefix}clang; ac_word=$2 3522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3523printf %s "checking for $ac_word... " >&6; } 3524if test ${ac_cv_prog_CC+y} 3525then : 3526 printf %s "(cached) " >&6 3527else $as_nop 3528 if test -n "$CC"; then 3529 ac_cv_prog_CC="$CC" # Let the user override the test. 3530else 3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3532for as_dir in $PATH 3533do 3534 IFS=$as_save_IFS 3535 case $as_dir in #((( 3536 '') as_dir=./ ;; 3537 */) ;; 3538 *) as_dir=$as_dir/ ;; 3539 esac 3540 for ac_exec_ext in '' $ac_executable_extensions; do 3541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3542 ac_cv_prog_CC="${ac_tool_prefix}clang" 3543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3544 break 2 3545 fi 3546done 3547 done 3548IFS=$as_save_IFS 3549 3550fi 3551fi 3552CC=$ac_cv_prog_CC 3553if test -n "$CC"; then 3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3555printf "%s\n" "$CC" >&6; } 3556else 3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3558printf "%s\n" "no" >&6; } 3559fi 3560 3561 3562fi 3563if test -z "$ac_cv_prog_CC"; then 3564 ac_ct_CC=$CC 3565 # Extract the first word of "clang", so it can be a program name with args. 3566set dummy clang; ac_word=$2 3567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3568printf %s "checking for $ac_word... " >&6; } 3569if test ${ac_cv_prog_ac_ct_CC+y} 3570then : 3571 printf %s "(cached) " >&6 3572else $as_nop 3573 if test -n "$ac_ct_CC"; then 3574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3575else 3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3577for as_dir in $PATH 3578do 3579 IFS=$as_save_IFS 3580 case $as_dir in #((( 3581 '') as_dir=./ ;; 3582 */) ;; 3583 *) as_dir=$as_dir/ ;; 3584 esac 3585 for ac_exec_ext in '' $ac_executable_extensions; do 3586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3587 ac_cv_prog_ac_ct_CC="clang" 3588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3589 break 2 3590 fi 3591done 3592 done 3593IFS=$as_save_IFS 3594 3595fi 3596fi 3597ac_ct_CC=$ac_cv_prog_ac_ct_CC 3598if test -n "$ac_ct_CC"; then 3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3600printf "%s\n" "$ac_ct_CC" >&6; } 3601else 3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3603printf "%s\n" "no" >&6; } 3604fi 3605 3606 if test "x$ac_ct_CC" = x; then 3607 CC="" 3608 else 3609 case $cross_compiling:$ac_tool_warned in 3610yes:) 3611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3612printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3613ac_tool_warned=yes ;; 3614esac 3615 CC=$ac_ct_CC 3616 fi 3617else 3618 CC="$ac_cv_prog_CC" 3619fi 3620 3621fi 3622 3623 3624test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3625printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3626as_fn_error $? "no acceptable C compiler found in \$PATH 3627See \`config.log' for more details" "$LINENO" 5; } 3628 3629# Provide some information about the compiler. 3630printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3631set X $ac_compile 3632ac_compiler=$2 3633for ac_option in --version -v -V -qversion -version; do 3634 { { ac_try="$ac_compiler $ac_option >&5" 3635case "(($ac_try" in 3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3637 *) ac_try_echo=$ac_try;; 3638esac 3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3640printf "%s\n" "$ac_try_echo"; } >&5 3641 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3642 ac_status=$? 3643 if test -s conftest.err; then 3644 sed '10a\ 3645... rest of stderr output deleted ... 3646 10q' conftest.err >conftest.er1 3647 cat conftest.er1 >&5 3648 fi 3649 rm -f conftest.er1 conftest.err 3650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3651 test $ac_status = 0; } 3652done 3653 3654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656 3657int 3658main (void) 3659{ 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665ac_clean_files_save=$ac_clean_files 3666ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3667# Try to create an executable without -o first, disregard a.out. 3668# It will help us diagnose broken compilers, and finding out an intuition 3669# of exeext. 3670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3671printf %s "checking whether the C compiler works... " >&6; } 3672ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3673 3674# The possible output files: 3675ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3676 3677ac_rmfiles= 3678for ac_file in $ac_files 3679do 3680 case $ac_file in 3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3682 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3683 esac 3684done 3685rm -f $ac_rmfiles 3686 3687if { { ac_try="$ac_link_default" 3688case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3693printf "%s\n" "$ac_try_echo"; } >&5 3694 (eval "$ac_link_default") 2>&5 3695 ac_status=$? 3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3697 test $ac_status = 0; } 3698then : 3699 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3700# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3701# in a Makefile. We should not override ac_cv_exeext if it was cached, 3702# so that the user can short-circuit this test for compilers unknown to 3703# Autoconf. 3704for ac_file in $ac_files '' 3705do 3706 test -f "$ac_file" || continue 3707 case $ac_file in 3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3709 ;; 3710 [ab].out ) 3711 # We found the default executable, but exeext='' is most 3712 # certainly right. 3713 break;; 3714 *.* ) 3715 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3716 then :; else 3717 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3718 fi 3719 # We set ac_cv_exeext here because the later test for it is not 3720 # safe: cross compilers may not add the suffix if given an `-o' 3721 # argument, so we may need to know it at that point already. 3722 # Even if this section looks crufty: it has the advantage of 3723 # actually working. 3724 break;; 3725 * ) 3726 break;; 3727 esac 3728done 3729test "$ac_cv_exeext" = no && ac_cv_exeext= 3730 3731else $as_nop 3732 ac_file='' 3733fi 3734if test -z "$ac_file" 3735then : 3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3737printf "%s\n" "no" >&6; } 3738printf "%s\n" "$as_me: failed program was:" >&5 3739sed 's/^/| /' conftest.$ac_ext >&5 3740 3741{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3742printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3743as_fn_error 77 "C compiler cannot create executables 3744See \`config.log' for more details" "$LINENO" 5; } 3745else $as_nop 3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3747printf "%s\n" "yes" >&6; } 3748fi 3749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3750printf %s "checking for C compiler default output file name... " >&6; } 3751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3752printf "%s\n" "$ac_file" >&6; } 3753ac_exeext=$ac_cv_exeext 3754 3755rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3756ac_clean_files=$ac_clean_files_save 3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3758printf %s "checking for suffix of executables... " >&6; } 3759if { { ac_try="$ac_link" 3760case "(($ac_try" in 3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3762 *) ac_try_echo=$ac_try;; 3763esac 3764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3765printf "%s\n" "$ac_try_echo"; } >&5 3766 (eval "$ac_link") 2>&5 3767 ac_status=$? 3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3769 test $ac_status = 0; } 3770then : 3771 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3772# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3773# work properly (i.e., refer to `conftest.exe'), while it won't with 3774# `rm'. 3775for ac_file in conftest.exe conftest conftest.*; do 3776 test -f "$ac_file" || continue 3777 case $ac_file in 3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3779 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3780 break;; 3781 * ) break;; 3782 esac 3783done 3784else $as_nop 3785 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3786printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3787as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3788See \`config.log' for more details" "$LINENO" 5; } 3789fi 3790rm -f conftest conftest$ac_cv_exeext 3791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3792printf "%s\n" "$ac_cv_exeext" >&6; } 3793 3794rm -f conftest.$ac_ext 3795EXEEXT=$ac_cv_exeext 3796ac_exeext=$EXEEXT 3797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3798/* end confdefs.h. */ 3799#include <stdio.h> 3800int 3801main (void) 3802{ 3803FILE *f = fopen ("conftest.out", "w"); 3804 return ferror (f) || fclose (f) != 0; 3805 3806 ; 3807 return 0; 3808} 3809_ACEOF 3810ac_clean_files="$ac_clean_files conftest.out" 3811# Check that the compiler produces executables we can run. If not, either 3812# the compiler is broken, or we cross compile. 3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3814printf %s "checking whether we are cross compiling... " >&6; } 3815if test "$cross_compiling" != yes; then 3816 { { ac_try="$ac_link" 3817case "(($ac_try" in 3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3819 *) ac_try_echo=$ac_try;; 3820esac 3821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3822printf "%s\n" "$ac_try_echo"; } >&5 3823 (eval "$ac_link") 2>&5 3824 ac_status=$? 3825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3826 test $ac_status = 0; } 3827 if { ac_try='./conftest$ac_cv_exeext' 3828 { { case "(($ac_try" in 3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3830 *) ac_try_echo=$ac_try;; 3831esac 3832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3833printf "%s\n" "$ac_try_echo"; } >&5 3834 (eval "$ac_try") 2>&5 3835 ac_status=$? 3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3837 test $ac_status = 0; }; }; then 3838 cross_compiling=no 3839 else 3840 if test "$cross_compiling" = maybe; then 3841 cross_compiling=yes 3842 else 3843 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3844printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3845as_fn_error 77 "cannot run C compiled programs. 3846If you meant to cross compile, use \`--host'. 3847See \`config.log' for more details" "$LINENO" 5; } 3848 fi 3849 fi 3850fi 3851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3852printf "%s\n" "$cross_compiling" >&6; } 3853 3854rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3855ac_clean_files=$ac_clean_files_save 3856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3857printf %s "checking for suffix of object files... " >&6; } 3858if test ${ac_cv_objext+y} 3859then : 3860 printf %s "(cached) " >&6 3861else $as_nop 3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3863/* end confdefs.h. */ 3864 3865int 3866main (void) 3867{ 3868 3869 ; 3870 return 0; 3871} 3872_ACEOF 3873rm -f conftest.o conftest.obj 3874if { { ac_try="$ac_compile" 3875case "(($ac_try" in 3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3877 *) ac_try_echo=$ac_try;; 3878esac 3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3880printf "%s\n" "$ac_try_echo"; } >&5 3881 (eval "$ac_compile") 2>&5 3882 ac_status=$? 3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3884 test $ac_status = 0; } 3885then : 3886 for ac_file in conftest.o conftest.obj conftest.*; do 3887 test -f "$ac_file" || continue; 3888 case $ac_file in 3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3890 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3891 break;; 3892 esac 3893done 3894else $as_nop 3895 printf "%s\n" "$as_me: failed program was:" >&5 3896sed 's/^/| /' conftest.$ac_ext >&5 3897 3898{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3899printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3900as_fn_error $? "cannot compute suffix of object files: cannot compile 3901See \`config.log' for more details" "$LINENO" 5; } 3902fi 3903rm -f conftest.$ac_cv_objext conftest.$ac_ext 3904fi 3905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3906printf "%s\n" "$ac_cv_objext" >&6; } 3907OBJEXT=$ac_cv_objext 3908ac_objext=$OBJEXT 3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3910printf %s "checking whether the compiler supports GNU C... " >&6; } 3911if test ${ac_cv_c_compiler_gnu+y} 3912then : 3913 printf %s "(cached) " >&6 3914else $as_nop 3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3916/* end confdefs.h. */ 3917 3918int 3919main (void) 3920{ 3921#ifndef __GNUC__ 3922 choke me 3923#endif 3924 3925 ; 3926 return 0; 3927} 3928_ACEOF 3929if ac_fn_c_try_compile "$LINENO" 3930then : 3931 ac_compiler_gnu=yes 3932else $as_nop 3933 ac_compiler_gnu=no 3934fi 3935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3936ac_cv_c_compiler_gnu=$ac_compiler_gnu 3937 3938fi 3939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3940printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3941ac_compiler_gnu=$ac_cv_c_compiler_gnu 3942 3943if test $ac_compiler_gnu = yes; then 3944 GCC=yes 3945else 3946 GCC= 3947fi 3948ac_test_CFLAGS=${CFLAGS+y} 3949ac_save_CFLAGS=$CFLAGS 3950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3951printf %s "checking whether $CC accepts -g... " >&6; } 3952if test ${ac_cv_prog_cc_g+y} 3953then : 3954 printf %s "(cached) " >&6 3955else $as_nop 3956 ac_save_c_werror_flag=$ac_c_werror_flag 3957 ac_c_werror_flag=yes 3958 ac_cv_prog_cc_g=no 3959 CFLAGS="-g" 3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3961/* end confdefs.h. */ 3962 3963int 3964main (void) 3965{ 3966 3967 ; 3968 return 0; 3969} 3970_ACEOF 3971if ac_fn_c_try_compile "$LINENO" 3972then : 3973 ac_cv_prog_cc_g=yes 3974else $as_nop 3975 CFLAGS="" 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978 3979int 3980main (void) 3981{ 3982 3983 ; 3984 return 0; 3985} 3986_ACEOF 3987if ac_fn_c_try_compile "$LINENO" 3988then : 3989 3990else $as_nop 3991 ac_c_werror_flag=$ac_save_c_werror_flag 3992 CFLAGS="-g" 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995 3996int 3997main (void) 3998{ 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004if ac_fn_c_try_compile "$LINENO" 4005then : 4006 ac_cv_prog_cc_g=yes 4007fi 4008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4009fi 4010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4011fi 4012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4013 ac_c_werror_flag=$ac_save_c_werror_flag 4014fi 4015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4016printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4017if test $ac_test_CFLAGS; then 4018 CFLAGS=$ac_save_CFLAGS 4019elif test $ac_cv_prog_cc_g = yes; then 4020 if test "$GCC" = yes; then 4021 CFLAGS="-g -O2" 4022 else 4023 CFLAGS="-g" 4024 fi 4025else 4026 if test "$GCC" = yes; then 4027 CFLAGS="-O2" 4028 else 4029 CFLAGS= 4030 fi 4031fi 4032ac_prog_cc_stdc=no 4033if test x$ac_prog_cc_stdc = xno 4034then : 4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4036printf %s "checking for $CC option to enable C11 features... " >&6; } 4037if test ${ac_cv_prog_cc_c11+y} 4038then : 4039 printf %s "(cached) " >&6 4040else $as_nop 4041 ac_cv_prog_cc_c11=no 4042ac_save_CC=$CC 4043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045$ac_c_conftest_c11_program 4046_ACEOF 4047for ac_arg in '' -std=gnu11 4048do 4049 CC="$ac_save_CC $ac_arg" 4050 if ac_fn_c_try_compile "$LINENO" 4051then : 4052 ac_cv_prog_cc_c11=$ac_arg 4053fi 4054rm -f core conftest.err conftest.$ac_objext conftest.beam 4055 test "x$ac_cv_prog_cc_c11" != "xno" && break 4056done 4057rm -f conftest.$ac_ext 4058CC=$ac_save_CC 4059fi 4060 4061if test "x$ac_cv_prog_cc_c11" = xno 4062then : 4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4064printf "%s\n" "unsupported" >&6; } 4065else $as_nop 4066 if test "x$ac_cv_prog_cc_c11" = x 4067then : 4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4069printf "%s\n" "none needed" >&6; } 4070else $as_nop 4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4072printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4073 CC="$CC $ac_cv_prog_cc_c11" 4074fi 4075 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4076 ac_prog_cc_stdc=c11 4077fi 4078fi 4079if test x$ac_prog_cc_stdc = xno 4080then : 4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4082printf %s "checking for $CC option to enable C99 features... " >&6; } 4083if test ${ac_cv_prog_cc_c99+y} 4084then : 4085 printf %s "(cached) " >&6 4086else $as_nop 4087 ac_cv_prog_cc_c99=no 4088ac_save_CC=$CC 4089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090/* end confdefs.h. */ 4091$ac_c_conftest_c99_program 4092_ACEOF 4093for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4094do 4095 CC="$ac_save_CC $ac_arg" 4096 if ac_fn_c_try_compile "$LINENO" 4097then : 4098 ac_cv_prog_cc_c99=$ac_arg 4099fi 4100rm -f core conftest.err conftest.$ac_objext conftest.beam 4101 test "x$ac_cv_prog_cc_c99" != "xno" && break 4102done 4103rm -f conftest.$ac_ext 4104CC=$ac_save_CC 4105fi 4106 4107if test "x$ac_cv_prog_cc_c99" = xno 4108then : 4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4110printf "%s\n" "unsupported" >&6; } 4111else $as_nop 4112 if test "x$ac_cv_prog_cc_c99" = x 4113then : 4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4115printf "%s\n" "none needed" >&6; } 4116else $as_nop 4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4118printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4119 CC="$CC $ac_cv_prog_cc_c99" 4120fi 4121 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4122 ac_prog_cc_stdc=c99 4123fi 4124fi 4125if test x$ac_prog_cc_stdc = xno 4126then : 4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4128printf %s "checking for $CC option to enable C89 features... " >&6; } 4129if test ${ac_cv_prog_cc_c89+y} 4130then : 4131 printf %s "(cached) " >&6 4132else $as_nop 4133 ac_cv_prog_cc_c89=no 4134ac_save_CC=$CC 4135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137$ac_c_conftest_c89_program 4138_ACEOF 4139for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4140do 4141 CC="$ac_save_CC $ac_arg" 4142 if ac_fn_c_try_compile "$LINENO" 4143then : 4144 ac_cv_prog_cc_c89=$ac_arg 4145fi 4146rm -f core conftest.err conftest.$ac_objext conftest.beam 4147 test "x$ac_cv_prog_cc_c89" != "xno" && break 4148done 4149rm -f conftest.$ac_ext 4150CC=$ac_save_CC 4151fi 4152 4153if test "x$ac_cv_prog_cc_c89" = xno 4154then : 4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4156printf "%s\n" "unsupported" >&6; } 4157else $as_nop 4158 if test "x$ac_cv_prog_cc_c89" = x 4159then : 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4161printf "%s\n" "none needed" >&6; } 4162else $as_nop 4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4164printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4165 CC="$CC $ac_cv_prog_cc_c89" 4166fi 4167 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4168 ac_prog_cc_stdc=c89 4169fi 4170fi 4171 4172ac_ext=c 4173ac_cpp='$CPP $CPPFLAGS' 4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4176ac_compiler_gnu=$ac_cv_c_compiler_gnu 4177 4178 4179 ac_ext=c 4180ac_cpp='$CPP $CPPFLAGS' 4181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4183ac_compiler_gnu=$ac_cv_c_compiler_gnu 4184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4185printf %s "checking whether $CC understands -c and -o together... " >&6; } 4186if test ${am_cv_prog_cc_c_o+y} 4187then : 4188 printf %s "(cached) " >&6 4189else $as_nop 4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4191/* end confdefs.h. */ 4192 4193int 4194main (void) 4195{ 4196 4197 ; 4198 return 0; 4199} 4200_ACEOF 4201 # Make sure it works both with $CC and with simple cc. 4202 # Following AC_PROG_CC_C_O, we do the test twice because some 4203 # compilers refuse to overwrite an existing .o file with -o, 4204 # though they will create one. 4205 am_cv_prog_cc_c_o=yes 4206 for am_i in 1 2; do 4207 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4208 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4209 ac_status=$? 4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4211 (exit $ac_status); } \ 4212 && test -f conftest2.$ac_objext; then 4213 : OK 4214 else 4215 am_cv_prog_cc_c_o=no 4216 break 4217 fi 4218 done 4219 rm -f core conftest* 4220 unset am_i 4221fi 4222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4223printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4224if test "$am_cv_prog_cc_c_o" != yes; then 4225 # Losing compiler, so override with the script. 4226 # FIXME: It is wrong to rewrite CC. 4227 # But if we don't then we get into trouble of one sort or another. 4228 # A longer-term fix would be to have automake use am__CC in this case, 4229 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4230 CC="$am_aux_dir/compile $CC" 4231fi 4232ac_ext=c 4233ac_cpp='$CPP $CPPFLAGS' 4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4236ac_compiler_gnu=$ac_cv_c_compiler_gnu 4237 4238 4239depcc="$CC" am_compiler_list= 4240 4241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4242printf %s "checking dependency style of $depcc... " >&6; } 4243if test ${am_cv_CC_dependencies_compiler_type+y} 4244then : 4245 printf %s "(cached) " >&6 4246else $as_nop 4247 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4248 # We make a subdir and do the tests there. Otherwise we can end up 4249 # making bogus files that we don't know about and never remove. For 4250 # instance it was reported that on HP-UX the gcc test will end up 4251 # making a dummy file named 'D' -- because '-MD' means "put the output 4252 # in D". 4253 rm -rf conftest.dir 4254 mkdir conftest.dir 4255 # Copy depcomp to subdir because otherwise we won't find it if we're 4256 # using a relative directory. 4257 cp "$am_depcomp" conftest.dir 4258 cd conftest.dir 4259 # We will build objects and dependencies in a subdirectory because 4260 # it helps to detect inapplicable dependency modes. For instance 4261 # both Tru64's cc and ICC support -MD to output dependencies as a 4262 # side effect of compilation, but ICC will put the dependencies in 4263 # the current directory while Tru64 will put them in the object 4264 # directory. 4265 mkdir sub 4266 4267 am_cv_CC_dependencies_compiler_type=none 4268 if test "$am_compiler_list" = ""; then 4269 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4270 fi 4271 am__universal=false 4272 case " $depcc " in #( 4273 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4274 esac 4275 4276 for depmode in $am_compiler_list; do 4277 # Setup a source with many dependencies, because some compilers 4278 # like to wrap large dependency lists on column 80 (with \), and 4279 # we should not choose a depcomp mode which is confused by this. 4280 # 4281 # We need to recreate these files for each test, as the compiler may 4282 # overwrite some of them when testing with obscure command lines. 4283 # This happens at least with the AIX C compiler. 4284 : > sub/conftest.c 4285 for i in 1 2 3 4 5 6; do 4286 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4287 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4288 # Solaris 10 /bin/sh. 4289 echo '/* dummy */' > sub/conftst$i.h 4290 done 4291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4292 4293 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4294 # mode. It turns out that the SunPro C++ compiler does not properly 4295 # handle '-M -o', and we need to detect this. Also, some Intel 4296 # versions had trouble with output in subdirs. 4297 am__obj=sub/conftest.${OBJEXT-o} 4298 am__minus_obj="-o $am__obj" 4299 case $depmode in 4300 gcc) 4301 # This depmode causes a compiler race in universal mode. 4302 test "$am__universal" = false || continue 4303 ;; 4304 nosideeffect) 4305 # After this tag, mechanisms are not by side-effect, so they'll 4306 # only be used when explicitly requested. 4307 if test "x$enable_dependency_tracking" = xyes; then 4308 continue 4309 else 4310 break 4311 fi 4312 ;; 4313 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4314 # This compiler won't grok '-c -o', but also, the minuso test has 4315 # not run yet. These depmodes are late enough in the game, and 4316 # so weak that their functioning should not be impacted. 4317 am__obj=conftest.${OBJEXT-o} 4318 am__minus_obj= 4319 ;; 4320 none) break ;; 4321 esac 4322 if depmode=$depmode \ 4323 source=sub/conftest.c object=$am__obj \ 4324 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4325 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4326 >/dev/null 2>conftest.err && 4327 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4328 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4329 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4330 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4331 # icc doesn't choke on unknown options, it will just issue warnings 4332 # or remarks (even with -Werror). So we grep stderr for any message 4333 # that says an option was ignored or not supported. 4334 # When given -MP, icc 7.0 and 7.1 complain thusly: 4335 # icc: Command line warning: ignoring option '-M'; no argument required 4336 # The diagnosis changed in icc 8.0: 4337 # icc: Command line remark: option '-MP' not supported 4338 if (grep 'ignoring option' conftest.err || 4339 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4340 am_cv_CC_dependencies_compiler_type=$depmode 4341 break 4342 fi 4343 fi 4344 done 4345 4346 cd .. 4347 rm -rf conftest.dir 4348else 4349 am_cv_CC_dependencies_compiler_type=none 4350fi 4351 4352fi 4353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4354printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4355CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4356 4357 if 4358 test "x$enable_dependency_tracking" != xno \ 4359 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4360 am__fastdepCC_TRUE= 4361 am__fastdepCC_FALSE='#' 4362else 4363 am__fastdepCC_TRUE='#' 4364 am__fastdepCC_FALSE= 4365fi 4366 4367 4368 4369 4370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4371printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4372if test ${ac_cv_c_undeclared_builtin_options+y} 4373then : 4374 printf %s "(cached) " >&6 4375else $as_nop 4376 ac_save_CFLAGS=$CFLAGS 4377 ac_cv_c_undeclared_builtin_options='cannot detect' 4378 for ac_arg in '' -fno-builtin; do 4379 CFLAGS="$ac_save_CFLAGS $ac_arg" 4380 # This test program should *not* compile successfully. 4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4382/* end confdefs.h. */ 4383 4384int 4385main (void) 4386{ 4387(void) strchr; 4388 ; 4389 return 0; 4390} 4391_ACEOF 4392if ac_fn_c_try_compile "$LINENO" 4393then : 4394 4395else $as_nop 4396 # This test program should compile successfully. 4397 # No library function is consistently available on 4398 # freestanding implementations, so test against a dummy 4399 # declaration. Include always-available headers on the 4400 # off chance that they somehow elicit warnings. 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402/* end confdefs.h. */ 4403#include <float.h> 4404#include <limits.h> 4405#include <stdarg.h> 4406#include <stddef.h> 4407extern void ac_decl (int, char *); 4408 4409int 4410main (void) 4411{ 4412(void) ac_decl (0, (char *) 0); 4413 (void) ac_decl; 4414 4415 ; 4416 return 0; 4417} 4418_ACEOF 4419if ac_fn_c_try_compile "$LINENO" 4420then : 4421 if test x"$ac_arg" = x 4422then : 4423 ac_cv_c_undeclared_builtin_options='none needed' 4424else $as_nop 4425 ac_cv_c_undeclared_builtin_options=$ac_arg 4426fi 4427 break 4428fi 4429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4430fi 4431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4432 done 4433 CFLAGS=$ac_save_CFLAGS 4434 4435fi 4436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4437printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4438 case $ac_cv_c_undeclared_builtin_options in #( 4439 'cannot detect') : 4440 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4441printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4442as_fn_error $? "cannot make $CC report undeclared builtins 4443See \`config.log' for more details" "$LINENO" 5; } ;; #( 4444 'none needed') : 4445 ac_c_undeclared_builtin_options='' ;; #( 4446 *) : 4447 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4448esac 4449 4450ac_header= ac_cache= 4451for ac_item in $ac_header_c_list 4452do 4453 if test $ac_cache; then 4454 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4455 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4456 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4457 fi 4458 ac_header= ac_cache= 4459 elif test $ac_header; then 4460 ac_cache=$ac_item 4461 else 4462 ac_header=$ac_item 4463 fi 4464done 4465 4466 4467 4468 4469 4470 4471 4472 4473if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4474then : 4475 4476printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4477 4478fi 4479 4480 4481 4482 4483ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4484if test "x$ac_cv_have_decl___clang__" = xyes 4485then : 4486 CLANGCC="yes" 4487else $as_nop 4488 CLANGCC="no" 4489fi 4490ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4491if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4492then : 4493 INTELCC="yes" 4494else $as_nop 4495 INTELCC="no" 4496fi 4497ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4498if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4499then : 4500 SUNCC="yes" 4501else $as_nop 4502 SUNCC="no" 4503fi 4504 4505 4506 4507 4508 4509 4510 4511 4512if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4513 if test -n "$ac_tool_prefix"; then 4514 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4515set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4517printf %s "checking for $ac_word... " >&6; } 4518if test ${ac_cv_path_PKG_CONFIG+y} 4519then : 4520 printf %s "(cached) " >&6 4521else $as_nop 4522 case $PKG_CONFIG in 4523 [\\/]* | ?:[\\/]*) 4524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4525 ;; 4526 *) 4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528for as_dir in $PATH 4529do 4530 IFS=$as_save_IFS 4531 case $as_dir in #((( 4532 '') as_dir=./ ;; 4533 */) ;; 4534 *) as_dir=$as_dir/ ;; 4535 esac 4536 for ac_exec_ext in '' $ac_executable_extensions; do 4537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4538 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4540 break 2 4541 fi 4542done 4543 done 4544IFS=$as_save_IFS 4545 4546 ;; 4547esac 4548fi 4549PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4550if test -n "$PKG_CONFIG"; then 4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4552printf "%s\n" "$PKG_CONFIG" >&6; } 4553else 4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4555printf "%s\n" "no" >&6; } 4556fi 4557 4558 4559fi 4560if test -z "$ac_cv_path_PKG_CONFIG"; then 4561 ac_pt_PKG_CONFIG=$PKG_CONFIG 4562 # Extract the first word of "pkg-config", so it can be a program name with args. 4563set dummy pkg-config; ac_word=$2 4564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4565printf %s "checking for $ac_word... " >&6; } 4566if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4567then : 4568 printf %s "(cached) " >&6 4569else $as_nop 4570 case $ac_pt_PKG_CONFIG in 4571 [\\/]* | ?:[\\/]*) 4572 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4573 ;; 4574 *) 4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4576for as_dir in $PATH 4577do 4578 IFS=$as_save_IFS 4579 case $as_dir in #((( 4580 '') as_dir=./ ;; 4581 */) ;; 4582 *) as_dir=$as_dir/ ;; 4583 esac 4584 for ac_exec_ext in '' $ac_executable_extensions; do 4585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4586 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4588 break 2 4589 fi 4590done 4591 done 4592IFS=$as_save_IFS 4593 4594 ;; 4595esac 4596fi 4597ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4598if test -n "$ac_pt_PKG_CONFIG"; then 4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4600printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4601else 4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4603printf "%s\n" "no" >&6; } 4604fi 4605 4606 if test "x$ac_pt_PKG_CONFIG" = x; then 4607 PKG_CONFIG="" 4608 else 4609 case $cross_compiling:$ac_tool_warned in 4610yes:) 4611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4612printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4613ac_tool_warned=yes ;; 4614esac 4615 PKG_CONFIG=$ac_pt_PKG_CONFIG 4616 fi 4617else 4618 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4619fi 4620 4621fi 4622if test -n "$PKG_CONFIG"; then 4623 _pkg_min_version=0.9.0 4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4625printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4626 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4628printf "%s\n" "yes" >&6; } 4629 else 4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4631printf "%s\n" "no" >&6; } 4632 PKG_CONFIG="" 4633 fi 4634fi 4635 4636 4637 # Make sure we can run config.sub. 4638$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4639 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4640 4641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4642printf %s "checking build system type... " >&6; } 4643if test ${ac_cv_build+y} 4644then : 4645 printf %s "(cached) " >&6 4646else $as_nop 4647 ac_build_alias=$build_alias 4648test "x$ac_build_alias" = x && 4649 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4650test "x$ac_build_alias" = x && 4651 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4652ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4653 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4654 4655fi 4656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4657printf "%s\n" "$ac_cv_build" >&6; } 4658case $ac_cv_build in 4659*-*-*) ;; 4660*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4661esac 4662build=$ac_cv_build 4663ac_save_IFS=$IFS; IFS='-' 4664set x $ac_cv_build 4665shift 4666build_cpu=$1 4667build_vendor=$2 4668shift; shift 4669# Remember, the first character of IFS is used to create $*, 4670# except with old shells: 4671build_os=$* 4672IFS=$ac_save_IFS 4673case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4674 4675 4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4677printf %s "checking host system type... " >&6; } 4678if test ${ac_cv_host+y} 4679then : 4680 printf %s "(cached) " >&6 4681else $as_nop 4682 if test "x$host_alias" = x; then 4683 ac_cv_host=$ac_cv_build 4684else 4685 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4686 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4687fi 4688 4689fi 4690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4691printf "%s\n" "$ac_cv_host" >&6; } 4692case $ac_cv_host in 4693*-*-*) ;; 4694*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4695esac 4696host=$ac_cv_host 4697ac_save_IFS=$IFS; IFS='-' 4698set x $ac_cv_host 4699shift 4700host_cpu=$1 4701host_vendor=$2 4702shift; shift 4703# Remember, the first character of IFS is used to create $*, 4704# except with old shells: 4705host_os=$* 4706IFS=$ac_save_IFS 4707case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4708 4709 4710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4711printf %s "checking for a sed that does not truncate output... " >&6; } 4712if test ${ac_cv_path_SED+y} 4713then : 4714 printf %s "(cached) " >&6 4715else $as_nop 4716 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4717 for ac_i in 1 2 3 4 5 6 7; do 4718 ac_script="$ac_script$as_nl$ac_script" 4719 done 4720 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4721 { ac_script=; unset ac_script;} 4722 if test -z "$SED"; then 4723 ac_path_SED_found=false 4724 # Loop through the user's path and test for each of PROGNAME-LIST 4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4726for as_dir in $PATH 4727do 4728 IFS=$as_save_IFS 4729 case $as_dir in #((( 4730 '') as_dir=./ ;; 4731 */) ;; 4732 *) as_dir=$as_dir/ ;; 4733 esac 4734 for ac_prog in sed gsed 4735 do 4736 for ac_exec_ext in '' $ac_executable_extensions; do 4737 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4738 as_fn_executable_p "$ac_path_SED" || continue 4739# Check for GNU ac_path_SED and select it if it is found. 4740 # Check for GNU $ac_path_SED 4741case `"$ac_path_SED" --version 2>&1` in 4742*GNU*) 4743 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4744*) 4745 ac_count=0 4746 printf %s 0123456789 >"conftest.in" 4747 while : 4748 do 4749 cat "conftest.in" "conftest.in" >"conftest.tmp" 4750 mv "conftest.tmp" "conftest.in" 4751 cp "conftest.in" "conftest.nl" 4752 printf "%s\n" '' >> "conftest.nl" 4753 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4755 as_fn_arith $ac_count + 1 && ac_count=$as_val 4756 if test $ac_count -gt ${ac_path_SED_max-0}; then 4757 # Best one so far, save it but keep looking for a better one 4758 ac_cv_path_SED="$ac_path_SED" 4759 ac_path_SED_max=$ac_count 4760 fi 4761 # 10*(2^10) chars as input seems more than enough 4762 test $ac_count -gt 10 && break 4763 done 4764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4765esac 4766 4767 $ac_path_SED_found && break 3 4768 done 4769 done 4770 done 4771IFS=$as_save_IFS 4772 if test -z "$ac_cv_path_SED"; then 4773 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4774 fi 4775else 4776 ac_cv_path_SED=$SED 4777fi 4778 4779fi 4780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4781printf "%s\n" "$ac_cv_path_SED" >&6; } 4782 SED="$ac_cv_path_SED" 4783 rm -f conftest.sed 4784 4785 4786 4787 4788 4789 4790# Check whether --enable-selective-werror was given. 4791if test ${enable_selective_werror+y} 4792then : 4793 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4794else $as_nop 4795 SELECTIVE_WERROR=yes 4796fi 4797 4798 4799 4800 4801 4802# -v is too short to test reliably with XORG_TESTSET_CFLAG 4803if test "x$SUNCC" = "xyes"; then 4804 BASE_CFLAGS="-v" 4805else 4806 BASE_CFLAGS="" 4807fi 4808 4809# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823xorg_testset_save_CFLAGS="$CFLAGS" 4824 4825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4829if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4830then : 4831 printf %s "(cached) " >&6 4832else $as_nop 4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4834/* end confdefs.h. */ 4835int i; 4836_ACEOF 4837if ac_fn_c_try_compile "$LINENO" 4838then : 4839 xorg_cv_cc_flag_unknown_warning_option=yes 4840else $as_nop 4841 xorg_cv_cc_flag_unknown_warning_option=no 4842fi 4843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4844fi 4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4848 CFLAGS="$xorg_testset_save_CFLAGS" 4849fi 4850 4851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4854 fi 4855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4858if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4859then : 4860 printf %s "(cached) " >&6 4861else $as_nop 4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4863/* end confdefs.h. */ 4864int i; 4865_ACEOF 4866if ac_fn_c_try_compile "$LINENO" 4867then : 4868 xorg_cv_cc_flag_unused_command_line_argument=yes 4869else $as_nop 4870 xorg_cv_cc_flag_unused_command_line_argument=no 4871fi 4872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4873fi 4874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4877 CFLAGS="$xorg_testset_save_CFLAGS" 4878fi 4879 4880found="no" 4881 4882 if test $found = "no" ; then 4883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4885 fi 4886 4887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4889 fi 4890 4891 CFLAGS="$CFLAGS -Wall" 4892 4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4894printf %s "checking if $CC supports -Wall... " >&6; } 4895 cacheid=xorg_cv_cc_flag__Wall 4896 if eval test \${$cacheid+y} 4897then : 4898 printf %s "(cached) " >&6 4899else $as_nop 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901/* end confdefs.h. */ 4902int i; 4903int 4904main (void) 4905{ 4906 4907 ; 4908 return 0; 4909} 4910_ACEOF 4911if ac_fn_c_try_link "$LINENO" 4912then : 4913 eval $cacheid=yes 4914else $as_nop 4915 eval $cacheid=no 4916fi 4917rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4918 conftest$ac_exeext conftest.$ac_ext 4919fi 4920 4921 4922 CFLAGS="$xorg_testset_save_CFLAGS" 4923 4924 eval supported=\$$cacheid 4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4926printf "%s\n" "$supported" >&6; } 4927 if test "$supported" = "yes" ; then 4928 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4929 found="yes" 4930 fi 4931 fi 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947xorg_testset_save_CFLAGS="$CFLAGS" 4948 4949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4953if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4954then : 4955 printf %s "(cached) " >&6 4956else $as_nop 4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4958/* end confdefs.h. */ 4959int i; 4960_ACEOF 4961if ac_fn_c_try_compile "$LINENO" 4962then : 4963 xorg_cv_cc_flag_unknown_warning_option=yes 4964else $as_nop 4965 xorg_cv_cc_flag_unknown_warning_option=no 4966fi 4967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4968fi 4969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4972 CFLAGS="$xorg_testset_save_CFLAGS" 4973fi 4974 4975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4978 fi 4979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4982if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4983then : 4984 printf %s "(cached) " >&6 4985else $as_nop 4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4987/* end confdefs.h. */ 4988int i; 4989_ACEOF 4990if ac_fn_c_try_compile "$LINENO" 4991then : 4992 xorg_cv_cc_flag_unused_command_line_argument=yes 4993else $as_nop 4994 xorg_cv_cc_flag_unused_command_line_argument=no 4995fi 4996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4997fi 4998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5001 CFLAGS="$xorg_testset_save_CFLAGS" 5002fi 5003 5004found="no" 5005 5006 if test $found = "no" ; then 5007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5009 fi 5010 5011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5013 fi 5014 5015 CFLAGS="$CFLAGS -Wpointer-arith" 5016 5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5018printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5019 cacheid=xorg_cv_cc_flag__Wpointer_arith 5020 if eval test \${$cacheid+y} 5021then : 5022 printf %s "(cached) " >&6 5023else $as_nop 5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5025/* end confdefs.h. */ 5026int i; 5027int 5028main (void) 5029{ 5030 5031 ; 5032 return 0; 5033} 5034_ACEOF 5035if ac_fn_c_try_link "$LINENO" 5036then : 5037 eval $cacheid=yes 5038else $as_nop 5039 eval $cacheid=no 5040fi 5041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5042 conftest$ac_exeext conftest.$ac_ext 5043fi 5044 5045 5046 CFLAGS="$xorg_testset_save_CFLAGS" 5047 5048 eval supported=\$$cacheid 5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5050printf "%s\n" "$supported" >&6; } 5051 if test "$supported" = "yes" ; then 5052 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5053 found="yes" 5054 fi 5055 fi 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071xorg_testset_save_CFLAGS="$CFLAGS" 5072 5073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5076printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5077if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5078then : 5079 printf %s "(cached) " >&6 5080else $as_nop 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082/* end confdefs.h. */ 5083int i; 5084_ACEOF 5085if ac_fn_c_try_compile "$LINENO" 5086then : 5087 xorg_cv_cc_flag_unknown_warning_option=yes 5088else $as_nop 5089 xorg_cv_cc_flag_unknown_warning_option=no 5090fi 5091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5092fi 5093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5096 CFLAGS="$xorg_testset_save_CFLAGS" 5097fi 5098 5099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5102 fi 5103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5106if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5107then : 5108 printf %s "(cached) " >&6 5109else $as_nop 5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5111/* end confdefs.h. */ 5112int i; 5113_ACEOF 5114if ac_fn_c_try_compile "$LINENO" 5115then : 5116 xorg_cv_cc_flag_unused_command_line_argument=yes 5117else $as_nop 5118 xorg_cv_cc_flag_unused_command_line_argument=no 5119fi 5120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5121fi 5122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5125 CFLAGS="$xorg_testset_save_CFLAGS" 5126fi 5127 5128found="no" 5129 5130 if test $found = "no" ; then 5131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5133 fi 5134 5135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5137 fi 5138 5139 CFLAGS="$CFLAGS -Wmissing-declarations" 5140 5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5142printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5143 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5144 if eval test \${$cacheid+y} 5145then : 5146 printf %s "(cached) " >&6 5147else $as_nop 5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5149/* end confdefs.h. */ 5150int i; 5151int 5152main (void) 5153{ 5154 5155 ; 5156 return 0; 5157} 5158_ACEOF 5159if ac_fn_c_try_link "$LINENO" 5160then : 5161 eval $cacheid=yes 5162else $as_nop 5163 eval $cacheid=no 5164fi 5165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5166 conftest$ac_exeext conftest.$ac_ext 5167fi 5168 5169 5170 CFLAGS="$xorg_testset_save_CFLAGS" 5171 5172 eval supported=\$$cacheid 5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5174printf "%s\n" "$supported" >&6; } 5175 if test "$supported" = "yes" ; then 5176 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5177 found="yes" 5178 fi 5179 fi 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195xorg_testset_save_CFLAGS="$CFLAGS" 5196 5197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5201if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5202then : 5203 printf %s "(cached) " >&6 5204else $as_nop 5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5206/* end confdefs.h. */ 5207int i; 5208_ACEOF 5209if ac_fn_c_try_compile "$LINENO" 5210then : 5211 xorg_cv_cc_flag_unknown_warning_option=yes 5212else $as_nop 5213 xorg_cv_cc_flag_unknown_warning_option=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5216fi 5217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5220 CFLAGS="$xorg_testset_save_CFLAGS" 5221fi 5222 5223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5226 fi 5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5230if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5231then : 5232 printf %s "(cached) " >&6 5233else $as_nop 5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5235/* end confdefs.h. */ 5236int i; 5237_ACEOF 5238if ac_fn_c_try_compile "$LINENO" 5239then : 5240 xorg_cv_cc_flag_unused_command_line_argument=yes 5241else $as_nop 5242 xorg_cv_cc_flag_unused_command_line_argument=no 5243fi 5244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5245fi 5246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5249 CFLAGS="$xorg_testset_save_CFLAGS" 5250fi 5251 5252found="no" 5253 5254 if test $found = "no" ; then 5255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5257 fi 5258 5259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5261 fi 5262 5263 CFLAGS="$CFLAGS -Wformat=2" 5264 5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5266printf %s "checking if $CC supports -Wformat=2... " >&6; } 5267 cacheid=xorg_cv_cc_flag__Wformat_2 5268 if eval test \${$cacheid+y} 5269then : 5270 printf %s "(cached) " >&6 5271else $as_nop 5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273/* end confdefs.h. */ 5274int i; 5275int 5276main (void) 5277{ 5278 5279 ; 5280 return 0; 5281} 5282_ACEOF 5283if ac_fn_c_try_link "$LINENO" 5284then : 5285 eval $cacheid=yes 5286else $as_nop 5287 eval $cacheid=no 5288fi 5289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5290 conftest$ac_exeext conftest.$ac_ext 5291fi 5292 5293 5294 CFLAGS="$xorg_testset_save_CFLAGS" 5295 5296 eval supported=\$$cacheid 5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5298printf "%s\n" "$supported" >&6; } 5299 if test "$supported" = "yes" ; then 5300 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5301 found="yes" 5302 fi 5303 fi 5304 5305 if test $found = "no" ; then 5306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5308 fi 5309 5310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5312 fi 5313 5314 CFLAGS="$CFLAGS -Wformat" 5315 5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5317printf %s "checking if $CC supports -Wformat... " >&6; } 5318 cacheid=xorg_cv_cc_flag__Wformat 5319 if eval test \${$cacheid+y} 5320then : 5321 printf %s "(cached) " >&6 5322else $as_nop 5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5324/* end confdefs.h. */ 5325int i; 5326int 5327main (void) 5328{ 5329 5330 ; 5331 return 0; 5332} 5333_ACEOF 5334if ac_fn_c_try_link "$LINENO" 5335then : 5336 eval $cacheid=yes 5337else $as_nop 5338 eval $cacheid=no 5339fi 5340rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5341 conftest$ac_exeext conftest.$ac_ext 5342fi 5343 5344 5345 CFLAGS="$xorg_testset_save_CFLAGS" 5346 5347 eval supported=\$$cacheid 5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5349printf "%s\n" "$supported" >&6; } 5350 if test "$supported" = "yes" ; then 5351 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5352 found="yes" 5353 fi 5354 fi 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372xorg_testset_save_CFLAGS="$CFLAGS" 5373 5374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5377printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5378if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5379then : 5380 printf %s "(cached) " >&6 5381else $as_nop 5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5383/* end confdefs.h. */ 5384int i; 5385_ACEOF 5386if ac_fn_c_try_compile "$LINENO" 5387then : 5388 xorg_cv_cc_flag_unknown_warning_option=yes 5389else $as_nop 5390 xorg_cv_cc_flag_unknown_warning_option=no 5391fi 5392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5393fi 5394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5395printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5397 CFLAGS="$xorg_testset_save_CFLAGS" 5398fi 5399 5400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5403 fi 5404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5406printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5407if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5408then : 5409 printf %s "(cached) " >&6 5410else $as_nop 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412/* end confdefs.h. */ 5413int i; 5414_ACEOF 5415if ac_fn_c_try_compile "$LINENO" 5416then : 5417 xorg_cv_cc_flag_unused_command_line_argument=yes 5418else $as_nop 5419 xorg_cv_cc_flag_unused_command_line_argument=no 5420fi 5421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5422fi 5423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5424printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5426 CFLAGS="$xorg_testset_save_CFLAGS" 5427fi 5428 5429found="no" 5430 5431 if test $found = "no" ; then 5432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5434 fi 5435 5436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5438 fi 5439 5440 CFLAGS="$CFLAGS -Wstrict-prototypes" 5441 5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5443printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5444 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5445 if eval test \${$cacheid+y} 5446then : 5447 printf %s "(cached) " >&6 5448else $as_nop 5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5450/* end confdefs.h. */ 5451int i; 5452int 5453main (void) 5454{ 5455 5456 ; 5457 return 0; 5458} 5459_ACEOF 5460if ac_fn_c_try_link "$LINENO" 5461then : 5462 eval $cacheid=yes 5463else $as_nop 5464 eval $cacheid=no 5465fi 5466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5467 conftest$ac_exeext conftest.$ac_ext 5468fi 5469 5470 5471 CFLAGS="$xorg_testset_save_CFLAGS" 5472 5473 eval supported=\$$cacheid 5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5475printf "%s\n" "$supported" >&6; } 5476 if test "$supported" = "yes" ; then 5477 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5478 found="yes" 5479 fi 5480 fi 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496xorg_testset_save_CFLAGS="$CFLAGS" 5497 5498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5501printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5502if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5503then : 5504 printf %s "(cached) " >&6 5505else $as_nop 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508int i; 5509_ACEOF 5510if ac_fn_c_try_compile "$LINENO" 5511then : 5512 xorg_cv_cc_flag_unknown_warning_option=yes 5513else $as_nop 5514 xorg_cv_cc_flag_unknown_warning_option=no 5515fi 5516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5517fi 5518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5519printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5521 CFLAGS="$xorg_testset_save_CFLAGS" 5522fi 5523 5524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5527 fi 5528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5530printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5531if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5532then : 5533 printf %s "(cached) " >&6 5534else $as_nop 5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536/* end confdefs.h. */ 5537int i; 5538_ACEOF 5539if ac_fn_c_try_compile "$LINENO" 5540then : 5541 xorg_cv_cc_flag_unused_command_line_argument=yes 5542else $as_nop 5543 xorg_cv_cc_flag_unused_command_line_argument=no 5544fi 5545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5546fi 5547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5548printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5550 CFLAGS="$xorg_testset_save_CFLAGS" 5551fi 5552 5553found="no" 5554 5555 if test $found = "no" ; then 5556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 fi 5559 5560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5562 fi 5563 5564 CFLAGS="$CFLAGS -Wmissing-prototypes" 5565 5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5567printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5568 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5569 if eval test \${$cacheid+y} 5570then : 5571 printf %s "(cached) " >&6 5572else $as_nop 5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574/* end confdefs.h. */ 5575int i; 5576int 5577main (void) 5578{ 5579 5580 ; 5581 return 0; 5582} 5583_ACEOF 5584if ac_fn_c_try_link "$LINENO" 5585then : 5586 eval $cacheid=yes 5587else $as_nop 5588 eval $cacheid=no 5589fi 5590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5591 conftest$ac_exeext conftest.$ac_ext 5592fi 5593 5594 5595 CFLAGS="$xorg_testset_save_CFLAGS" 5596 5597 eval supported=\$$cacheid 5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5599printf "%s\n" "$supported" >&6; } 5600 if test "$supported" = "yes" ; then 5601 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5602 found="yes" 5603 fi 5604 fi 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620xorg_testset_save_CFLAGS="$CFLAGS" 5621 5622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5625printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5626if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5627then : 5628 printf %s "(cached) " >&6 5629else $as_nop 5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631/* end confdefs.h. */ 5632int i; 5633_ACEOF 5634if ac_fn_c_try_compile "$LINENO" 5635then : 5636 xorg_cv_cc_flag_unknown_warning_option=yes 5637else $as_nop 5638 xorg_cv_cc_flag_unknown_warning_option=no 5639fi 5640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5641fi 5642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5645 CFLAGS="$xorg_testset_save_CFLAGS" 5646fi 5647 5648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5651 fi 5652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5655if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5656then : 5657 printf %s "(cached) " >&6 5658else $as_nop 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661int i; 5662_ACEOF 5663if ac_fn_c_try_compile "$LINENO" 5664then : 5665 xorg_cv_cc_flag_unused_command_line_argument=yes 5666else $as_nop 5667 xorg_cv_cc_flag_unused_command_line_argument=no 5668fi 5669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5670fi 5671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5672printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5674 CFLAGS="$xorg_testset_save_CFLAGS" 5675fi 5676 5677found="no" 5678 5679 if test $found = "no" ; then 5680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5682 fi 5683 5684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5686 fi 5687 5688 CFLAGS="$CFLAGS -Wnested-externs" 5689 5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5691printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5692 cacheid=xorg_cv_cc_flag__Wnested_externs 5693 if eval test \${$cacheid+y} 5694then : 5695 printf %s "(cached) " >&6 5696else $as_nop 5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5698/* end confdefs.h. */ 5699int i; 5700int 5701main (void) 5702{ 5703 5704 ; 5705 return 0; 5706} 5707_ACEOF 5708if ac_fn_c_try_link "$LINENO" 5709then : 5710 eval $cacheid=yes 5711else $as_nop 5712 eval $cacheid=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5715 conftest$ac_exeext conftest.$ac_ext 5716fi 5717 5718 5719 CFLAGS="$xorg_testset_save_CFLAGS" 5720 5721 eval supported=\$$cacheid 5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5723printf "%s\n" "$supported" >&6; } 5724 if test "$supported" = "yes" ; then 5725 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5726 found="yes" 5727 fi 5728 fi 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744xorg_testset_save_CFLAGS="$CFLAGS" 5745 5746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5749printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5750if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5751then : 5752 printf %s "(cached) " >&6 5753else $as_nop 5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5755/* end confdefs.h. */ 5756int i; 5757_ACEOF 5758if ac_fn_c_try_compile "$LINENO" 5759then : 5760 xorg_cv_cc_flag_unknown_warning_option=yes 5761else $as_nop 5762 xorg_cv_cc_flag_unknown_warning_option=no 5763fi 5764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5765fi 5766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5769 CFLAGS="$xorg_testset_save_CFLAGS" 5770fi 5771 5772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5775 fi 5776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5779if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5780then : 5781 printf %s "(cached) " >&6 5782else $as_nop 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5784/* end confdefs.h. */ 5785int i; 5786_ACEOF 5787if ac_fn_c_try_compile "$LINENO" 5788then : 5789 xorg_cv_cc_flag_unused_command_line_argument=yes 5790else $as_nop 5791 xorg_cv_cc_flag_unused_command_line_argument=no 5792fi 5793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5794fi 5795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5796printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5798 CFLAGS="$xorg_testset_save_CFLAGS" 5799fi 5800 5801found="no" 5802 5803 if test $found = "no" ; then 5804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5806 fi 5807 5808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5810 fi 5811 5812 CFLAGS="$CFLAGS -Wbad-function-cast" 5813 5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5815printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5816 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5817 if eval test \${$cacheid+y} 5818then : 5819 printf %s "(cached) " >&6 5820else $as_nop 5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5822/* end confdefs.h. */ 5823int i; 5824int 5825main (void) 5826{ 5827 5828 ; 5829 return 0; 5830} 5831_ACEOF 5832if ac_fn_c_try_link "$LINENO" 5833then : 5834 eval $cacheid=yes 5835else $as_nop 5836 eval $cacheid=no 5837fi 5838rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5839 conftest$ac_exeext conftest.$ac_ext 5840fi 5841 5842 5843 CFLAGS="$xorg_testset_save_CFLAGS" 5844 5845 eval supported=\$$cacheid 5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5847printf "%s\n" "$supported" >&6; } 5848 if test "$supported" = "yes" ; then 5849 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5850 found="yes" 5851 fi 5852 fi 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868xorg_testset_save_CFLAGS="$CFLAGS" 5869 5870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5873printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5874if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5875then : 5876 printf %s "(cached) " >&6 5877else $as_nop 5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879/* end confdefs.h. */ 5880int i; 5881_ACEOF 5882if ac_fn_c_try_compile "$LINENO" 5883then : 5884 xorg_cv_cc_flag_unknown_warning_option=yes 5885else $as_nop 5886 xorg_cv_cc_flag_unknown_warning_option=no 5887fi 5888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5889fi 5890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5891printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5893 CFLAGS="$xorg_testset_save_CFLAGS" 5894fi 5895 5896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5899 fi 5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5902printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5903if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5904then : 5905 printf %s "(cached) " >&6 5906else $as_nop 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909int i; 5910_ACEOF 5911if ac_fn_c_try_compile "$LINENO" 5912then : 5913 xorg_cv_cc_flag_unused_command_line_argument=yes 5914else $as_nop 5915 xorg_cv_cc_flag_unused_command_line_argument=no 5916fi 5917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5918fi 5919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5920printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5922 CFLAGS="$xorg_testset_save_CFLAGS" 5923fi 5924 5925found="no" 5926 5927 if test $found = "no" ; then 5928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5930 fi 5931 5932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5934 fi 5935 5936 CFLAGS="$CFLAGS -Wold-style-definition" 5937 5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5939printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5940 cacheid=xorg_cv_cc_flag__Wold_style_definition 5941 if eval test \${$cacheid+y} 5942then : 5943 printf %s "(cached) " >&6 5944else $as_nop 5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5946/* end confdefs.h. */ 5947int i; 5948int 5949main (void) 5950{ 5951 5952 ; 5953 return 0; 5954} 5955_ACEOF 5956if ac_fn_c_try_link "$LINENO" 5957then : 5958 eval $cacheid=yes 5959else $as_nop 5960 eval $cacheid=no 5961fi 5962rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5963 conftest$ac_exeext conftest.$ac_ext 5964fi 5965 5966 5967 CFLAGS="$xorg_testset_save_CFLAGS" 5968 5969 eval supported=\$$cacheid 5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5971printf "%s\n" "$supported" >&6; } 5972 if test "$supported" = "yes" ; then 5973 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5974 found="yes" 5975 fi 5976 fi 5977 5978 if test $found = "no" ; then 5979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5981 fi 5982 5983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5985 fi 5986 5987 CFLAGS="$CFLAGS -fd" 5988 5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5990printf %s "checking if $CC supports -fd... " >&6; } 5991 cacheid=xorg_cv_cc_flag__fd 5992 if eval test \${$cacheid+y} 5993then : 5994 printf %s "(cached) " >&6 5995else $as_nop 5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997/* end confdefs.h. */ 5998int i; 5999int 6000main (void) 6001{ 6002 6003 ; 6004 return 0; 6005} 6006_ACEOF 6007if ac_fn_c_try_link "$LINENO" 6008then : 6009 eval $cacheid=yes 6010else $as_nop 6011 eval $cacheid=no 6012fi 6013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6014 conftest$ac_exeext conftest.$ac_ext 6015fi 6016 6017 6018 CFLAGS="$xorg_testset_save_CFLAGS" 6019 6020 eval supported=\$$cacheid 6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6022printf "%s\n" "$supported" >&6; } 6023 if test "$supported" = "yes" ; then 6024 BASE_CFLAGS="$BASE_CFLAGS -fd" 6025 found="yes" 6026 fi 6027 fi 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043xorg_testset_save_CFLAGS="$CFLAGS" 6044 6045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6049if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6050then : 6051 printf %s "(cached) " >&6 6052else $as_nop 6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054/* end confdefs.h. */ 6055int i; 6056_ACEOF 6057if ac_fn_c_try_compile "$LINENO" 6058then : 6059 xorg_cv_cc_flag_unknown_warning_option=yes 6060else $as_nop 6061 xorg_cv_cc_flag_unknown_warning_option=no 6062fi 6063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6064fi 6065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6066printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6068 CFLAGS="$xorg_testset_save_CFLAGS" 6069fi 6070 6071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6074 fi 6075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6077printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6078if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6079then : 6080 printf %s "(cached) " >&6 6081else $as_nop 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084int i; 6085_ACEOF 6086if ac_fn_c_try_compile "$LINENO" 6087then : 6088 xorg_cv_cc_flag_unused_command_line_argument=yes 6089else $as_nop 6090 xorg_cv_cc_flag_unused_command_line_argument=no 6091fi 6092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6093fi 6094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6095printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6097 CFLAGS="$xorg_testset_save_CFLAGS" 6098fi 6099 6100found="no" 6101 6102 if test $found = "no" ; then 6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 fi 6106 6107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6109 fi 6110 6111 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6112 6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6114printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6115 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6116 if eval test \${$cacheid+y} 6117then : 6118 printf %s "(cached) " >&6 6119else $as_nop 6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121/* end confdefs.h. */ 6122int i; 6123int 6124main (void) 6125{ 6126 6127 ; 6128 return 0; 6129} 6130_ACEOF 6131if ac_fn_c_try_link "$LINENO" 6132then : 6133 eval $cacheid=yes 6134else $as_nop 6135 eval $cacheid=no 6136fi 6137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6138 conftest$ac_exeext conftest.$ac_ext 6139fi 6140 6141 6142 CFLAGS="$xorg_testset_save_CFLAGS" 6143 6144 eval supported=\$$cacheid 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6146printf "%s\n" "$supported" >&6; } 6147 if test "$supported" = "yes" ; then 6148 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6149 found="yes" 6150 fi 6151 fi 6152 6153 6154 6155 6156 6157# This chunk adds additional warnings that could catch undesired effects. 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171xorg_testset_save_CFLAGS="$CFLAGS" 6172 6173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6176printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6177if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6178then : 6179 printf %s "(cached) " >&6 6180else $as_nop 6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6182/* end confdefs.h. */ 6183int i; 6184_ACEOF 6185if ac_fn_c_try_compile "$LINENO" 6186then : 6187 xorg_cv_cc_flag_unknown_warning_option=yes 6188else $as_nop 6189 xorg_cv_cc_flag_unknown_warning_option=no 6190fi 6191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6192fi 6193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6196 CFLAGS="$xorg_testset_save_CFLAGS" 6197fi 6198 6199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6202 fi 6203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6206if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6207then : 6208 printf %s "(cached) " >&6 6209else $as_nop 6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6211/* end confdefs.h. */ 6212int i; 6213_ACEOF 6214if ac_fn_c_try_compile "$LINENO" 6215then : 6216 xorg_cv_cc_flag_unused_command_line_argument=yes 6217else $as_nop 6218 xorg_cv_cc_flag_unused_command_line_argument=no 6219fi 6220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6221fi 6222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6223printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6225 CFLAGS="$xorg_testset_save_CFLAGS" 6226fi 6227 6228found="no" 6229 6230 if test $found = "no" ; then 6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6233 fi 6234 6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6237 fi 6238 6239 CFLAGS="$CFLAGS -Wunused" 6240 6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6242printf %s "checking if $CC supports -Wunused... " >&6; } 6243 cacheid=xorg_cv_cc_flag__Wunused 6244 if eval test \${$cacheid+y} 6245then : 6246 printf %s "(cached) " >&6 6247else $as_nop 6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6249/* end confdefs.h. */ 6250int i; 6251int 6252main (void) 6253{ 6254 6255 ; 6256 return 0; 6257} 6258_ACEOF 6259if ac_fn_c_try_link "$LINENO" 6260then : 6261 eval $cacheid=yes 6262else $as_nop 6263 eval $cacheid=no 6264fi 6265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6266 conftest$ac_exeext conftest.$ac_ext 6267fi 6268 6269 6270 CFLAGS="$xorg_testset_save_CFLAGS" 6271 6272 eval supported=\$$cacheid 6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6274printf "%s\n" "$supported" >&6; } 6275 if test "$supported" = "yes" ; then 6276 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6277 found="yes" 6278 fi 6279 fi 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295xorg_testset_save_CFLAGS="$CFLAGS" 6296 6297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6301if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6302then : 6303 printf %s "(cached) " >&6 6304else $as_nop 6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6306/* end confdefs.h. */ 6307int i; 6308_ACEOF 6309if ac_fn_c_try_compile "$LINENO" 6310then : 6311 xorg_cv_cc_flag_unknown_warning_option=yes 6312else $as_nop 6313 xorg_cv_cc_flag_unknown_warning_option=no 6314fi 6315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6316fi 6317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6318printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6320 CFLAGS="$xorg_testset_save_CFLAGS" 6321fi 6322 6323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6326 fi 6327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6329printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6330if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6331then : 6332 printf %s "(cached) " >&6 6333else $as_nop 6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6335/* end confdefs.h. */ 6336int i; 6337_ACEOF 6338if ac_fn_c_try_compile "$LINENO" 6339then : 6340 xorg_cv_cc_flag_unused_command_line_argument=yes 6341else $as_nop 6342 xorg_cv_cc_flag_unused_command_line_argument=no 6343fi 6344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6345fi 6346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6349 CFLAGS="$xorg_testset_save_CFLAGS" 6350fi 6351 6352found="no" 6353 6354 if test $found = "no" ; then 6355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6357 fi 6358 6359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6361 fi 6362 6363 CFLAGS="$CFLAGS -Wuninitialized" 6364 6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6366printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6367 cacheid=xorg_cv_cc_flag__Wuninitialized 6368 if eval test \${$cacheid+y} 6369then : 6370 printf %s "(cached) " >&6 6371else $as_nop 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374int i; 6375int 6376main (void) 6377{ 6378 6379 ; 6380 return 0; 6381} 6382_ACEOF 6383if ac_fn_c_try_link "$LINENO" 6384then : 6385 eval $cacheid=yes 6386else $as_nop 6387 eval $cacheid=no 6388fi 6389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6390 conftest$ac_exeext conftest.$ac_ext 6391fi 6392 6393 6394 CFLAGS="$xorg_testset_save_CFLAGS" 6395 6396 eval supported=\$$cacheid 6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6398printf "%s\n" "$supported" >&6; } 6399 if test "$supported" = "yes" ; then 6400 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6401 found="yes" 6402 fi 6403 fi 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419xorg_testset_save_CFLAGS="$CFLAGS" 6420 6421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6424printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6425if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6426then : 6427 printf %s "(cached) " >&6 6428else $as_nop 6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6430/* end confdefs.h. */ 6431int i; 6432_ACEOF 6433if ac_fn_c_try_compile "$LINENO" 6434then : 6435 xorg_cv_cc_flag_unknown_warning_option=yes 6436else $as_nop 6437 xorg_cv_cc_flag_unknown_warning_option=no 6438fi 6439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6440fi 6441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6442printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6444 CFLAGS="$xorg_testset_save_CFLAGS" 6445fi 6446 6447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6450 fi 6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6453printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6454if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6455then : 6456 printf %s "(cached) " >&6 6457else $as_nop 6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6459/* end confdefs.h. */ 6460int i; 6461_ACEOF 6462if ac_fn_c_try_compile "$LINENO" 6463then : 6464 xorg_cv_cc_flag_unused_command_line_argument=yes 6465else $as_nop 6466 xorg_cv_cc_flag_unused_command_line_argument=no 6467fi 6468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6469fi 6470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6471printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6473 CFLAGS="$xorg_testset_save_CFLAGS" 6474fi 6475 6476found="no" 6477 6478 if test $found = "no" ; then 6479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6481 fi 6482 6483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6485 fi 6486 6487 CFLAGS="$CFLAGS -Wshadow" 6488 6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6490printf %s "checking if $CC supports -Wshadow... " >&6; } 6491 cacheid=xorg_cv_cc_flag__Wshadow 6492 if eval test \${$cacheid+y} 6493then : 6494 printf %s "(cached) " >&6 6495else $as_nop 6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6497/* end confdefs.h. */ 6498int i; 6499int 6500main (void) 6501{ 6502 6503 ; 6504 return 0; 6505} 6506_ACEOF 6507if ac_fn_c_try_link "$LINENO" 6508then : 6509 eval $cacheid=yes 6510else $as_nop 6511 eval $cacheid=no 6512fi 6513rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6514 conftest$ac_exeext conftest.$ac_ext 6515fi 6516 6517 6518 CFLAGS="$xorg_testset_save_CFLAGS" 6519 6520 eval supported=\$$cacheid 6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6522printf "%s\n" "$supported" >&6; } 6523 if test "$supported" = "yes" ; then 6524 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6525 found="yes" 6526 fi 6527 fi 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543xorg_testset_save_CFLAGS="$CFLAGS" 6544 6545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6548printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6549if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6550then : 6551 printf %s "(cached) " >&6 6552else $as_nop 6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6554/* end confdefs.h. */ 6555int i; 6556_ACEOF 6557if ac_fn_c_try_compile "$LINENO" 6558then : 6559 xorg_cv_cc_flag_unknown_warning_option=yes 6560else $as_nop 6561 xorg_cv_cc_flag_unknown_warning_option=no 6562fi 6563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6564fi 6565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6566printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6568 CFLAGS="$xorg_testset_save_CFLAGS" 6569fi 6570 6571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6574 fi 6575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6577printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6578if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6579then : 6580 printf %s "(cached) " >&6 6581else $as_nop 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583/* end confdefs.h. */ 6584int i; 6585_ACEOF 6586if ac_fn_c_try_compile "$LINENO" 6587then : 6588 xorg_cv_cc_flag_unused_command_line_argument=yes 6589else $as_nop 6590 xorg_cv_cc_flag_unused_command_line_argument=no 6591fi 6592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6593fi 6594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6597 CFLAGS="$xorg_testset_save_CFLAGS" 6598fi 6599 6600found="no" 6601 6602 if test $found = "no" ; then 6603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6605 fi 6606 6607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6609 fi 6610 6611 CFLAGS="$CFLAGS -Wmissing-noreturn" 6612 6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6614printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6615 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6616 if eval test \${$cacheid+y} 6617then : 6618 printf %s "(cached) " >&6 6619else $as_nop 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622int i; 6623int 6624main (void) 6625{ 6626 6627 ; 6628 return 0; 6629} 6630_ACEOF 6631if ac_fn_c_try_link "$LINENO" 6632then : 6633 eval $cacheid=yes 6634else $as_nop 6635 eval $cacheid=no 6636fi 6637rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6638 conftest$ac_exeext conftest.$ac_ext 6639fi 6640 6641 6642 CFLAGS="$xorg_testset_save_CFLAGS" 6643 6644 eval supported=\$$cacheid 6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6646printf "%s\n" "$supported" >&6; } 6647 if test "$supported" = "yes" ; then 6648 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6649 found="yes" 6650 fi 6651 fi 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667xorg_testset_save_CFLAGS="$CFLAGS" 6668 6669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6673if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6674then : 6675 printf %s "(cached) " >&6 6676else $as_nop 6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6678/* end confdefs.h. */ 6679int i; 6680_ACEOF 6681if ac_fn_c_try_compile "$LINENO" 6682then : 6683 xorg_cv_cc_flag_unknown_warning_option=yes 6684else $as_nop 6685 xorg_cv_cc_flag_unknown_warning_option=no 6686fi 6687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6688fi 6689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6692 CFLAGS="$xorg_testset_save_CFLAGS" 6693fi 6694 6695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 fi 6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6702if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6703then : 6704 printf %s "(cached) " >&6 6705else $as_nop 6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707/* end confdefs.h. */ 6708int i; 6709_ACEOF 6710if ac_fn_c_try_compile "$LINENO" 6711then : 6712 xorg_cv_cc_flag_unused_command_line_argument=yes 6713else $as_nop 6714 xorg_cv_cc_flag_unused_command_line_argument=no 6715fi 6716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6717fi 6718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6721 CFLAGS="$xorg_testset_save_CFLAGS" 6722fi 6723 6724found="no" 6725 6726 if test $found = "no" ; then 6727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6729 fi 6730 6731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6733 fi 6734 6735 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6736 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6738printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6739 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6740 if eval test \${$cacheid+y} 6741then : 6742 printf %s "(cached) " >&6 6743else $as_nop 6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745/* end confdefs.h. */ 6746int i; 6747int 6748main (void) 6749{ 6750 6751 ; 6752 return 0; 6753} 6754_ACEOF 6755if ac_fn_c_try_link "$LINENO" 6756then : 6757 eval $cacheid=yes 6758else $as_nop 6759 eval $cacheid=no 6760fi 6761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6762 conftest$ac_exeext conftest.$ac_ext 6763fi 6764 6765 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767 6768 eval supported=\$$cacheid 6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6770printf "%s\n" "$supported" >&6; } 6771 if test "$supported" = "yes" ; then 6772 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6773 found="yes" 6774 fi 6775 fi 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791xorg_testset_save_CFLAGS="$CFLAGS" 6792 6793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6797if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6798then : 6799 printf %s "(cached) " >&6 6800else $as_nop 6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6802/* end confdefs.h. */ 6803int i; 6804_ACEOF 6805if ac_fn_c_try_compile "$LINENO" 6806then : 6807 xorg_cv_cc_flag_unknown_warning_option=yes 6808else $as_nop 6809 xorg_cv_cc_flag_unknown_warning_option=no 6810fi 6811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6812fi 6813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6816 CFLAGS="$xorg_testset_save_CFLAGS" 6817fi 6818 6819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822 fi 6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6826if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6827then : 6828 printf %s "(cached) " >&6 6829else $as_nop 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831/* end confdefs.h. */ 6832int i; 6833_ACEOF 6834if ac_fn_c_try_compile "$LINENO" 6835then : 6836 xorg_cv_cc_flag_unused_command_line_argument=yes 6837else $as_nop 6838 xorg_cv_cc_flag_unused_command_line_argument=no 6839fi 6840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6841fi 6842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6845 CFLAGS="$xorg_testset_save_CFLAGS" 6846fi 6847 6848found="no" 6849 6850 if test $found = "no" ; then 6851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6853 fi 6854 6855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6857 fi 6858 6859 CFLAGS="$CFLAGS -Wredundant-decls" 6860 6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6862printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6863 cacheid=xorg_cv_cc_flag__Wredundant_decls 6864 if eval test \${$cacheid+y} 6865then : 6866 printf %s "(cached) " >&6 6867else $as_nop 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869/* end confdefs.h. */ 6870int i; 6871int 6872main (void) 6873{ 6874 6875 ; 6876 return 0; 6877} 6878_ACEOF 6879if ac_fn_c_try_link "$LINENO" 6880then : 6881 eval $cacheid=yes 6882else $as_nop 6883 eval $cacheid=no 6884fi 6885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6886 conftest$ac_exeext conftest.$ac_ext 6887fi 6888 6889 6890 CFLAGS="$xorg_testset_save_CFLAGS" 6891 6892 eval supported=\$$cacheid 6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6894printf "%s\n" "$supported" >&6; } 6895 if test "$supported" = "yes" ; then 6896 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6897 found="yes" 6898 fi 6899 fi 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915xorg_testset_save_CFLAGS="$CFLAGS" 6916 6917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6921if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6922then : 6923 printf %s "(cached) " >&6 6924else $as_nop 6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6926/* end confdefs.h. */ 6927int i; 6928_ACEOF 6929if ac_fn_c_try_compile "$LINENO" 6930then : 6931 xorg_cv_cc_flag_unknown_warning_option=yes 6932else $as_nop 6933 xorg_cv_cc_flag_unknown_warning_option=no 6934fi 6935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6936fi 6937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6940 CFLAGS="$xorg_testset_save_CFLAGS" 6941fi 6942 6943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6946 fi 6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6950if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6951then : 6952 printf %s "(cached) " >&6 6953else $as_nop 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955/* end confdefs.h. */ 6956int i; 6957_ACEOF 6958if ac_fn_c_try_compile "$LINENO" 6959then : 6960 xorg_cv_cc_flag_unused_command_line_argument=yes 6961else $as_nop 6962 xorg_cv_cc_flag_unused_command_line_argument=no 6963fi 6964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6965fi 6966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6967printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6969 CFLAGS="$xorg_testset_save_CFLAGS" 6970fi 6971 6972found="no" 6973 6974 if test $found = "no" ; then 6975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6977 fi 6978 6979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6981 fi 6982 6983 CFLAGS="$CFLAGS -Wlogical-op" 6984 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6986printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6987 cacheid=xorg_cv_cc_flag__Wlogical_op 6988 if eval test \${$cacheid+y} 6989then : 6990 printf %s "(cached) " >&6 6991else $as_nop 6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6993/* end confdefs.h. */ 6994int i; 6995int 6996main (void) 6997{ 6998 6999 ; 7000 return 0; 7001} 7002_ACEOF 7003if ac_fn_c_try_link "$LINENO" 7004then : 7005 eval $cacheid=yes 7006else $as_nop 7007 eval $cacheid=no 7008fi 7009rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7010 conftest$ac_exeext conftest.$ac_ext 7011fi 7012 7013 7014 CFLAGS="$xorg_testset_save_CFLAGS" 7015 7016 eval supported=\$$cacheid 7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7018printf "%s\n" "$supported" >&6; } 7019 if test "$supported" = "yes" ; then 7020 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7021 found="yes" 7022 fi 7023 fi 7024 7025 7026 7027# These are currently disabled because they are noisy. They will be enabled 7028# in the future once the codebase is sufficiently modernized to silence 7029# them. For now, I don't want them to drown out the other warnings. 7030# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7031# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7032# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7033 7034# Turn some warnings into errors, so we don't accidently get successful builds 7035# when there are problems that should be fixed. 7036 7037if test "x$SELECTIVE_WERROR" = "xyes" ; then 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051xorg_testset_save_CFLAGS="$CFLAGS" 7052 7053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7056printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7057if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7058then : 7059 printf %s "(cached) " >&6 7060else $as_nop 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062/* end confdefs.h. */ 7063int i; 7064_ACEOF 7065if ac_fn_c_try_compile "$LINENO" 7066then : 7067 xorg_cv_cc_flag_unknown_warning_option=yes 7068else $as_nop 7069 xorg_cv_cc_flag_unknown_warning_option=no 7070fi 7071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7072fi 7073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7074printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7076 CFLAGS="$xorg_testset_save_CFLAGS" 7077fi 7078 7079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7082 fi 7083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7085printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7086if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7087then : 7088 printf %s "(cached) " >&6 7089else $as_nop 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092int i; 7093_ACEOF 7094if ac_fn_c_try_compile "$LINENO" 7095then : 7096 xorg_cv_cc_flag_unused_command_line_argument=yes 7097else $as_nop 7098 xorg_cv_cc_flag_unused_command_line_argument=no 7099fi 7100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7101fi 7102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7103printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7105 CFLAGS="$xorg_testset_save_CFLAGS" 7106fi 7107 7108found="no" 7109 7110 if test $found = "no" ; then 7111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7113 fi 7114 7115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7117 fi 7118 7119 CFLAGS="$CFLAGS -Werror=implicit" 7120 7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7122printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7123 cacheid=xorg_cv_cc_flag__Werror_implicit 7124 if eval test \${$cacheid+y} 7125then : 7126 printf %s "(cached) " >&6 7127else $as_nop 7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7129/* end confdefs.h. */ 7130int i; 7131int 7132main (void) 7133{ 7134 7135 ; 7136 return 0; 7137} 7138_ACEOF 7139if ac_fn_c_try_link "$LINENO" 7140then : 7141 eval $cacheid=yes 7142else $as_nop 7143 eval $cacheid=no 7144fi 7145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7146 conftest$ac_exeext conftest.$ac_ext 7147fi 7148 7149 7150 CFLAGS="$xorg_testset_save_CFLAGS" 7151 7152 eval supported=\$$cacheid 7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7154printf "%s\n" "$supported" >&6; } 7155 if test "$supported" = "yes" ; then 7156 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7157 found="yes" 7158 fi 7159 fi 7160 7161 if test $found = "no" ; then 7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7164 fi 7165 7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7168 fi 7169 7170 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7171 7172 { 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 7173printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7174 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7175 if eval test \${$cacheid+y} 7176then : 7177 printf %s "(cached) " >&6 7178else $as_nop 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180/* end confdefs.h. */ 7181int i; 7182int 7183main (void) 7184{ 7185 7186 ; 7187 return 0; 7188} 7189_ACEOF 7190if ac_fn_c_try_link "$LINENO" 7191then : 7192 eval $cacheid=yes 7193else $as_nop 7194 eval $cacheid=no 7195fi 7196rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7197 conftest$ac_exeext conftest.$ac_ext 7198fi 7199 7200 7201 CFLAGS="$xorg_testset_save_CFLAGS" 7202 7203 eval supported=\$$cacheid 7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7205printf "%s\n" "$supported" >&6; } 7206 if test "$supported" = "yes" ; then 7207 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7208 found="yes" 7209 fi 7210 fi 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226xorg_testset_save_CFLAGS="$CFLAGS" 7227 7228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7232if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7233then : 7234 printf %s "(cached) " >&6 7235else $as_nop 7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7237/* end confdefs.h. */ 7238int i; 7239_ACEOF 7240if ac_fn_c_try_compile "$LINENO" 7241then : 7242 xorg_cv_cc_flag_unknown_warning_option=yes 7243else $as_nop 7244 xorg_cv_cc_flag_unknown_warning_option=no 7245fi 7246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7247fi 7248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7251 CFLAGS="$xorg_testset_save_CFLAGS" 7252fi 7253 7254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7257 fi 7258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7261if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7262then : 7263 printf %s "(cached) " >&6 7264else $as_nop 7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7266/* end confdefs.h. */ 7267int i; 7268_ACEOF 7269if ac_fn_c_try_compile "$LINENO" 7270then : 7271 xorg_cv_cc_flag_unused_command_line_argument=yes 7272else $as_nop 7273 xorg_cv_cc_flag_unused_command_line_argument=no 7274fi 7275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7276fi 7277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7280 CFLAGS="$xorg_testset_save_CFLAGS" 7281fi 7282 7283found="no" 7284 7285 if test $found = "no" ; then 7286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7288 fi 7289 7290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7292 fi 7293 7294 CFLAGS="$CFLAGS -Werror=nonnull" 7295 7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7297printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7298 cacheid=xorg_cv_cc_flag__Werror_nonnull 7299 if eval test \${$cacheid+y} 7300then : 7301 printf %s "(cached) " >&6 7302else $as_nop 7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7304/* end confdefs.h. */ 7305int i; 7306int 7307main (void) 7308{ 7309 7310 ; 7311 return 0; 7312} 7313_ACEOF 7314if ac_fn_c_try_link "$LINENO" 7315then : 7316 eval $cacheid=yes 7317else $as_nop 7318 eval $cacheid=no 7319fi 7320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7321 conftest$ac_exeext conftest.$ac_ext 7322fi 7323 7324 7325 CFLAGS="$xorg_testset_save_CFLAGS" 7326 7327 eval supported=\$$cacheid 7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7329printf "%s\n" "$supported" >&6; } 7330 if test "$supported" = "yes" ; then 7331 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7332 found="yes" 7333 fi 7334 fi 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350xorg_testset_save_CFLAGS="$CFLAGS" 7351 7352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7355printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7356if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7357then : 7358 printf %s "(cached) " >&6 7359else $as_nop 7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361/* end confdefs.h. */ 7362int i; 7363_ACEOF 7364if ac_fn_c_try_compile "$LINENO" 7365then : 7366 xorg_cv_cc_flag_unknown_warning_option=yes 7367else $as_nop 7368 xorg_cv_cc_flag_unknown_warning_option=no 7369fi 7370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7371fi 7372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7375 CFLAGS="$xorg_testset_save_CFLAGS" 7376fi 7377 7378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7381 fi 7382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7385if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7386then : 7387 printf %s "(cached) " >&6 7388else $as_nop 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7390/* end confdefs.h. */ 7391int i; 7392_ACEOF 7393if ac_fn_c_try_compile "$LINENO" 7394then : 7395 xorg_cv_cc_flag_unused_command_line_argument=yes 7396else $as_nop 7397 xorg_cv_cc_flag_unused_command_line_argument=no 7398fi 7399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7400fi 7401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7404 CFLAGS="$xorg_testset_save_CFLAGS" 7405fi 7406 7407found="no" 7408 7409 if test $found = "no" ; then 7410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7412 fi 7413 7414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7416 fi 7417 7418 CFLAGS="$CFLAGS -Werror=init-self" 7419 7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7421printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7422 cacheid=xorg_cv_cc_flag__Werror_init_self 7423 if eval test \${$cacheid+y} 7424then : 7425 printf %s "(cached) " >&6 7426else $as_nop 7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429int i; 7430int 7431main (void) 7432{ 7433 7434 ; 7435 return 0; 7436} 7437_ACEOF 7438if ac_fn_c_try_link "$LINENO" 7439then : 7440 eval $cacheid=yes 7441else $as_nop 7442 eval $cacheid=no 7443fi 7444rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7445 conftest$ac_exeext conftest.$ac_ext 7446fi 7447 7448 7449 CFLAGS="$xorg_testset_save_CFLAGS" 7450 7451 eval supported=\$$cacheid 7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7453printf "%s\n" "$supported" >&6; } 7454 if test "$supported" = "yes" ; then 7455 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7456 found="yes" 7457 fi 7458 fi 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474xorg_testset_save_CFLAGS="$CFLAGS" 7475 7476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7479printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7480if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7481then : 7482 printf %s "(cached) " >&6 7483else $as_nop 7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7485/* end confdefs.h. */ 7486int i; 7487_ACEOF 7488if ac_fn_c_try_compile "$LINENO" 7489then : 7490 xorg_cv_cc_flag_unknown_warning_option=yes 7491else $as_nop 7492 xorg_cv_cc_flag_unknown_warning_option=no 7493fi 7494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7495fi 7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7497printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7499 CFLAGS="$xorg_testset_save_CFLAGS" 7500fi 7501 7502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7505 fi 7506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7508printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7509if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7510then : 7511 printf %s "(cached) " >&6 7512else $as_nop 7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7514/* end confdefs.h. */ 7515int i; 7516_ACEOF 7517if ac_fn_c_try_compile "$LINENO" 7518then : 7519 xorg_cv_cc_flag_unused_command_line_argument=yes 7520else $as_nop 7521 xorg_cv_cc_flag_unused_command_line_argument=no 7522fi 7523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7524fi 7525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7528 CFLAGS="$xorg_testset_save_CFLAGS" 7529fi 7530 7531found="no" 7532 7533 if test $found = "no" ; then 7534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7536 fi 7537 7538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7540 fi 7541 7542 CFLAGS="$CFLAGS -Werror=main" 7543 7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7545printf %s "checking if $CC supports -Werror=main... " >&6; } 7546 cacheid=xorg_cv_cc_flag__Werror_main 7547 if eval test \${$cacheid+y} 7548then : 7549 printf %s "(cached) " >&6 7550else $as_nop 7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7552/* end confdefs.h. */ 7553int i; 7554int 7555main (void) 7556{ 7557 7558 ; 7559 return 0; 7560} 7561_ACEOF 7562if ac_fn_c_try_link "$LINENO" 7563then : 7564 eval $cacheid=yes 7565else $as_nop 7566 eval $cacheid=no 7567fi 7568rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7569 conftest$ac_exeext conftest.$ac_ext 7570fi 7571 7572 7573 CFLAGS="$xorg_testset_save_CFLAGS" 7574 7575 eval supported=\$$cacheid 7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7577printf "%s\n" "$supported" >&6; } 7578 if test "$supported" = "yes" ; then 7579 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7580 found="yes" 7581 fi 7582 fi 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598xorg_testset_save_CFLAGS="$CFLAGS" 7599 7600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7603printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7604if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7605then : 7606 printf %s "(cached) " >&6 7607else $as_nop 7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610int i; 7611_ACEOF 7612if ac_fn_c_try_compile "$LINENO" 7613then : 7614 xorg_cv_cc_flag_unknown_warning_option=yes 7615else $as_nop 7616 xorg_cv_cc_flag_unknown_warning_option=no 7617fi 7618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7619fi 7620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7621printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7623 CFLAGS="$xorg_testset_save_CFLAGS" 7624fi 7625 7626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7629 fi 7630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7632printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7633if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7634then : 7635 printf %s "(cached) " >&6 7636else $as_nop 7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7638/* end confdefs.h. */ 7639int i; 7640_ACEOF 7641if ac_fn_c_try_compile "$LINENO" 7642then : 7643 xorg_cv_cc_flag_unused_command_line_argument=yes 7644else $as_nop 7645 xorg_cv_cc_flag_unused_command_line_argument=no 7646fi 7647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7648fi 7649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7650printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7652 CFLAGS="$xorg_testset_save_CFLAGS" 7653fi 7654 7655found="no" 7656 7657 if test $found = "no" ; then 7658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7660 fi 7661 7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7664 fi 7665 7666 CFLAGS="$CFLAGS -Werror=missing-braces" 7667 7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7669printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7670 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7671 if eval test \${$cacheid+y} 7672then : 7673 printf %s "(cached) " >&6 7674else $as_nop 7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7676/* end confdefs.h. */ 7677int i; 7678int 7679main (void) 7680{ 7681 7682 ; 7683 return 0; 7684} 7685_ACEOF 7686if ac_fn_c_try_link "$LINENO" 7687then : 7688 eval $cacheid=yes 7689else $as_nop 7690 eval $cacheid=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7693 conftest$ac_exeext conftest.$ac_ext 7694fi 7695 7696 7697 CFLAGS="$xorg_testset_save_CFLAGS" 7698 7699 eval supported=\$$cacheid 7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7701printf "%s\n" "$supported" >&6; } 7702 if test "$supported" = "yes" ; then 7703 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7704 found="yes" 7705 fi 7706 fi 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722xorg_testset_save_CFLAGS="$CFLAGS" 7723 7724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7727printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7728if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7729then : 7730 printf %s "(cached) " >&6 7731else $as_nop 7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7733/* end confdefs.h. */ 7734int i; 7735_ACEOF 7736if ac_fn_c_try_compile "$LINENO" 7737then : 7738 xorg_cv_cc_flag_unknown_warning_option=yes 7739else $as_nop 7740 xorg_cv_cc_flag_unknown_warning_option=no 7741fi 7742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7743fi 7744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7745printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7747 CFLAGS="$xorg_testset_save_CFLAGS" 7748fi 7749 7750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7753 fi 7754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7756printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7757if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7758then : 7759 printf %s "(cached) " >&6 7760else $as_nop 7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762/* end confdefs.h. */ 7763int i; 7764_ACEOF 7765if ac_fn_c_try_compile "$LINENO" 7766then : 7767 xorg_cv_cc_flag_unused_command_line_argument=yes 7768else $as_nop 7769 xorg_cv_cc_flag_unused_command_line_argument=no 7770fi 7771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7772fi 7773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7776 CFLAGS="$xorg_testset_save_CFLAGS" 7777fi 7778 7779found="no" 7780 7781 if test $found = "no" ; then 7782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7784 fi 7785 7786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7788 fi 7789 7790 CFLAGS="$CFLAGS -Werror=sequence-point" 7791 7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7793printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7794 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7795 if eval test \${$cacheid+y} 7796then : 7797 printf %s "(cached) " >&6 7798else $as_nop 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801int i; 7802int 7803main (void) 7804{ 7805 7806 ; 7807 return 0; 7808} 7809_ACEOF 7810if ac_fn_c_try_link "$LINENO" 7811then : 7812 eval $cacheid=yes 7813else $as_nop 7814 eval $cacheid=no 7815fi 7816rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7817 conftest$ac_exeext conftest.$ac_ext 7818fi 7819 7820 7821 CFLAGS="$xorg_testset_save_CFLAGS" 7822 7823 eval supported=\$$cacheid 7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7825printf "%s\n" "$supported" >&6; } 7826 if test "$supported" = "yes" ; then 7827 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7828 found="yes" 7829 fi 7830 fi 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846xorg_testset_save_CFLAGS="$CFLAGS" 7847 7848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7852if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7853then : 7854 printf %s "(cached) " >&6 7855else $as_nop 7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858int i; 7859_ACEOF 7860if ac_fn_c_try_compile "$LINENO" 7861then : 7862 xorg_cv_cc_flag_unknown_warning_option=yes 7863else $as_nop 7864 xorg_cv_cc_flag_unknown_warning_option=no 7865fi 7866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7867fi 7868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7871 CFLAGS="$xorg_testset_save_CFLAGS" 7872fi 7873 7874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7877 fi 7878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7881if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7882then : 7883 printf %s "(cached) " >&6 7884else $as_nop 7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7886/* end confdefs.h. */ 7887int i; 7888_ACEOF 7889if ac_fn_c_try_compile "$LINENO" 7890then : 7891 xorg_cv_cc_flag_unused_command_line_argument=yes 7892else $as_nop 7893 xorg_cv_cc_flag_unused_command_line_argument=no 7894fi 7895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7896fi 7897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7900 CFLAGS="$xorg_testset_save_CFLAGS" 7901fi 7902 7903found="no" 7904 7905 if test $found = "no" ; then 7906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7908 fi 7909 7910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7912 fi 7913 7914 CFLAGS="$CFLAGS -Werror=return-type" 7915 7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7917printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7918 cacheid=xorg_cv_cc_flag__Werror_return_type 7919 if eval test \${$cacheid+y} 7920then : 7921 printf %s "(cached) " >&6 7922else $as_nop 7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7924/* end confdefs.h. */ 7925int i; 7926int 7927main (void) 7928{ 7929 7930 ; 7931 return 0; 7932} 7933_ACEOF 7934if ac_fn_c_try_link "$LINENO" 7935then : 7936 eval $cacheid=yes 7937else $as_nop 7938 eval $cacheid=no 7939fi 7940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7941 conftest$ac_exeext conftest.$ac_ext 7942fi 7943 7944 7945 CFLAGS="$xorg_testset_save_CFLAGS" 7946 7947 eval supported=\$$cacheid 7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7949printf "%s\n" "$supported" >&6; } 7950 if test "$supported" = "yes" ; then 7951 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7952 found="yes" 7953 fi 7954 fi 7955 7956 if test $found = "no" ; then 7957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7959 fi 7960 7961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7963 fi 7964 7965 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7966 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7968printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7969 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7970 if eval test \${$cacheid+y} 7971then : 7972 printf %s "(cached) " >&6 7973else $as_nop 7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7975/* end confdefs.h. */ 7976int i; 7977int 7978main (void) 7979{ 7980 7981 ; 7982 return 0; 7983} 7984_ACEOF 7985if ac_fn_c_try_link "$LINENO" 7986then : 7987 eval $cacheid=yes 7988else $as_nop 7989 eval $cacheid=no 7990fi 7991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7992 conftest$ac_exeext conftest.$ac_ext 7993fi 7994 7995 7996 CFLAGS="$xorg_testset_save_CFLAGS" 7997 7998 eval supported=\$$cacheid 7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8000printf "%s\n" "$supported" >&6; } 8001 if test "$supported" = "yes" ; then 8002 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8003 found="yes" 8004 fi 8005 fi 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021xorg_testset_save_CFLAGS="$CFLAGS" 8022 8023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8028then : 8029 printf %s "(cached) " >&6 8030else $as_nop 8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8032/* end confdefs.h. */ 8033int i; 8034_ACEOF 8035if ac_fn_c_try_compile "$LINENO" 8036then : 8037 xorg_cv_cc_flag_unknown_warning_option=yes 8038else $as_nop 8039 xorg_cv_cc_flag_unknown_warning_option=no 8040fi 8041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8042fi 8043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8046 CFLAGS="$xorg_testset_save_CFLAGS" 8047fi 8048 8049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8052 fi 8053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8057then : 8058 printf %s "(cached) " >&6 8059else $as_nop 8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8061/* end confdefs.h. */ 8062int i; 8063_ACEOF 8064if ac_fn_c_try_compile "$LINENO" 8065then : 8066 xorg_cv_cc_flag_unused_command_line_argument=yes 8067else $as_nop 8068 xorg_cv_cc_flag_unused_command_line_argument=no 8069fi 8070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8071fi 8072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8075 CFLAGS="$xorg_testset_save_CFLAGS" 8076fi 8077 8078found="no" 8079 8080 if test $found = "no" ; then 8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8083 fi 8084 8085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8087 fi 8088 8089 CFLAGS="$CFLAGS -Werror=trigraphs" 8090 8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8092printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8093 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8094 if eval test \${$cacheid+y} 8095then : 8096 printf %s "(cached) " >&6 8097else $as_nop 8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8099/* end confdefs.h. */ 8100int i; 8101int 8102main (void) 8103{ 8104 8105 ; 8106 return 0; 8107} 8108_ACEOF 8109if ac_fn_c_try_link "$LINENO" 8110then : 8111 eval $cacheid=yes 8112else $as_nop 8113 eval $cacheid=no 8114fi 8115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8116 conftest$ac_exeext conftest.$ac_ext 8117fi 8118 8119 8120 CFLAGS="$xorg_testset_save_CFLAGS" 8121 8122 eval supported=\$$cacheid 8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8124printf "%s\n" "$supported" >&6; } 8125 if test "$supported" = "yes" ; then 8126 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8127 found="yes" 8128 fi 8129 fi 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145xorg_testset_save_CFLAGS="$CFLAGS" 8146 8147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8152then : 8153 printf %s "(cached) " >&6 8154else $as_nop 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8156/* end confdefs.h. */ 8157int i; 8158_ACEOF 8159if ac_fn_c_try_compile "$LINENO" 8160then : 8161 xorg_cv_cc_flag_unknown_warning_option=yes 8162else $as_nop 8163 xorg_cv_cc_flag_unknown_warning_option=no 8164fi 8165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8166fi 8167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8170 CFLAGS="$xorg_testset_save_CFLAGS" 8171fi 8172 8173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8176 fi 8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8181then : 8182 printf %s "(cached) " >&6 8183else $as_nop 8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185/* end confdefs.h. */ 8186int i; 8187_ACEOF 8188if ac_fn_c_try_compile "$LINENO" 8189then : 8190 xorg_cv_cc_flag_unused_command_line_argument=yes 8191else $as_nop 8192 xorg_cv_cc_flag_unused_command_line_argument=no 8193fi 8194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8195fi 8196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8199 CFLAGS="$xorg_testset_save_CFLAGS" 8200fi 8201 8202found="no" 8203 8204 if test $found = "no" ; then 8205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8207 fi 8208 8209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8211 fi 8212 8213 CFLAGS="$CFLAGS -Werror=array-bounds" 8214 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8216printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8217 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8218 if eval test \${$cacheid+y} 8219then : 8220 printf %s "(cached) " >&6 8221else $as_nop 8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8223/* end confdefs.h. */ 8224int i; 8225int 8226main (void) 8227{ 8228 8229 ; 8230 return 0; 8231} 8232_ACEOF 8233if ac_fn_c_try_link "$LINENO" 8234then : 8235 eval $cacheid=yes 8236else $as_nop 8237 eval $cacheid=no 8238fi 8239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8240 conftest$ac_exeext conftest.$ac_ext 8241fi 8242 8243 8244 CFLAGS="$xorg_testset_save_CFLAGS" 8245 8246 eval supported=\$$cacheid 8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8248printf "%s\n" "$supported" >&6; } 8249 if test "$supported" = "yes" ; then 8250 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8251 found="yes" 8252 fi 8253 fi 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269xorg_testset_save_CFLAGS="$CFLAGS" 8270 8271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8275if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8276then : 8277 printf %s "(cached) " >&6 8278else $as_nop 8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8280/* end confdefs.h. */ 8281int i; 8282_ACEOF 8283if ac_fn_c_try_compile "$LINENO" 8284then : 8285 xorg_cv_cc_flag_unknown_warning_option=yes 8286else $as_nop 8287 xorg_cv_cc_flag_unknown_warning_option=no 8288fi 8289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8290fi 8291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8294 CFLAGS="$xorg_testset_save_CFLAGS" 8295fi 8296 8297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8300 fi 8301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8304if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8305then : 8306 printf %s "(cached) " >&6 8307else $as_nop 8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8309/* end confdefs.h. */ 8310int i; 8311_ACEOF 8312if ac_fn_c_try_compile "$LINENO" 8313then : 8314 xorg_cv_cc_flag_unused_command_line_argument=yes 8315else $as_nop 8316 xorg_cv_cc_flag_unused_command_line_argument=no 8317fi 8318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8319fi 8320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8323 CFLAGS="$xorg_testset_save_CFLAGS" 8324fi 8325 8326found="no" 8327 8328 if test $found = "no" ; then 8329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8331 fi 8332 8333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8335 fi 8336 8337 CFLAGS="$CFLAGS -Werror=write-strings" 8338 8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8340printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8341 cacheid=xorg_cv_cc_flag__Werror_write_strings 8342 if eval test \${$cacheid+y} 8343then : 8344 printf %s "(cached) " >&6 8345else $as_nop 8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347/* end confdefs.h. */ 8348int i; 8349int 8350main (void) 8351{ 8352 8353 ; 8354 return 0; 8355} 8356_ACEOF 8357if ac_fn_c_try_link "$LINENO" 8358then : 8359 eval $cacheid=yes 8360else $as_nop 8361 eval $cacheid=no 8362fi 8363rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8364 conftest$ac_exeext conftest.$ac_ext 8365fi 8366 8367 8368 CFLAGS="$xorg_testset_save_CFLAGS" 8369 8370 eval supported=\$$cacheid 8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8372printf "%s\n" "$supported" >&6; } 8373 if test "$supported" = "yes" ; then 8374 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8375 found="yes" 8376 fi 8377 fi 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393xorg_testset_save_CFLAGS="$CFLAGS" 8394 8395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8399if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8400then : 8401 printf %s "(cached) " >&6 8402else $as_nop 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405int i; 8406_ACEOF 8407if ac_fn_c_try_compile "$LINENO" 8408then : 8409 xorg_cv_cc_flag_unknown_warning_option=yes 8410else $as_nop 8411 xorg_cv_cc_flag_unknown_warning_option=no 8412fi 8413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8414fi 8415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8418 CFLAGS="$xorg_testset_save_CFLAGS" 8419fi 8420 8421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8424 fi 8425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8428if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8429then : 8430 printf %s "(cached) " >&6 8431else $as_nop 8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8433/* end confdefs.h. */ 8434int i; 8435_ACEOF 8436if ac_fn_c_try_compile "$LINENO" 8437then : 8438 xorg_cv_cc_flag_unused_command_line_argument=yes 8439else $as_nop 8440 xorg_cv_cc_flag_unused_command_line_argument=no 8441fi 8442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8443fi 8444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8447 CFLAGS="$xorg_testset_save_CFLAGS" 8448fi 8449 8450found="no" 8451 8452 if test $found = "no" ; then 8453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8455 fi 8456 8457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8459 fi 8460 8461 CFLAGS="$CFLAGS -Werror=address" 8462 8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8464printf %s "checking if $CC supports -Werror=address... " >&6; } 8465 cacheid=xorg_cv_cc_flag__Werror_address 8466 if eval test \${$cacheid+y} 8467then : 8468 printf %s "(cached) " >&6 8469else $as_nop 8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8471/* end confdefs.h. */ 8472int i; 8473int 8474main (void) 8475{ 8476 8477 ; 8478 return 0; 8479} 8480_ACEOF 8481if ac_fn_c_try_link "$LINENO" 8482then : 8483 eval $cacheid=yes 8484else $as_nop 8485 eval $cacheid=no 8486fi 8487rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8488 conftest$ac_exeext conftest.$ac_ext 8489fi 8490 8491 8492 CFLAGS="$xorg_testset_save_CFLAGS" 8493 8494 eval supported=\$$cacheid 8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8496printf "%s\n" "$supported" >&6; } 8497 if test "$supported" = "yes" ; then 8498 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8499 found="yes" 8500 fi 8501 fi 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517xorg_testset_save_CFLAGS="$CFLAGS" 8518 8519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8522printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8523if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8524then : 8525 printf %s "(cached) " >&6 8526else $as_nop 8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8528/* end confdefs.h. */ 8529int i; 8530_ACEOF 8531if ac_fn_c_try_compile "$LINENO" 8532then : 8533 xorg_cv_cc_flag_unknown_warning_option=yes 8534else $as_nop 8535 xorg_cv_cc_flag_unknown_warning_option=no 8536fi 8537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8538fi 8539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8540printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8542 CFLAGS="$xorg_testset_save_CFLAGS" 8543fi 8544 8545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8548 fi 8549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8551printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8552if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8553then : 8554 printf %s "(cached) " >&6 8555else $as_nop 8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8557/* end confdefs.h. */ 8558int i; 8559_ACEOF 8560if ac_fn_c_try_compile "$LINENO" 8561then : 8562 xorg_cv_cc_flag_unused_command_line_argument=yes 8563else $as_nop 8564 xorg_cv_cc_flag_unused_command_line_argument=no 8565fi 8566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8567fi 8568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8571 CFLAGS="$xorg_testset_save_CFLAGS" 8572fi 8573 8574found="no" 8575 8576 if test $found = "no" ; then 8577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8579 fi 8580 8581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8583 fi 8584 8585 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8586 8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8588printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8589 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8590 if eval test \${$cacheid+y} 8591then : 8592 printf %s "(cached) " >&6 8593else $as_nop 8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8595/* end confdefs.h. */ 8596int i; 8597int 8598main (void) 8599{ 8600 8601 ; 8602 return 0; 8603} 8604_ACEOF 8605if ac_fn_c_try_link "$LINENO" 8606then : 8607 eval $cacheid=yes 8608else $as_nop 8609 eval $cacheid=no 8610fi 8611rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8612 conftest$ac_exeext conftest.$ac_ext 8613fi 8614 8615 8616 CFLAGS="$xorg_testset_save_CFLAGS" 8617 8618 eval supported=\$$cacheid 8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8620printf "%s\n" "$supported" >&6; } 8621 if test "$supported" = "yes" ; then 8622 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8623 found="yes" 8624 fi 8625 fi 8626 8627 if test $found = "no" ; then 8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8630 fi 8631 8632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8634 fi 8635 8636 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8637 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8639printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8640 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8641 if eval test \${$cacheid+y} 8642then : 8643 printf %s "(cached) " >&6 8644else $as_nop 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646/* end confdefs.h. */ 8647int i; 8648int 8649main (void) 8650{ 8651 8652 ; 8653 return 0; 8654} 8655_ACEOF 8656if ac_fn_c_try_link "$LINENO" 8657then : 8658 eval $cacheid=yes 8659else $as_nop 8660 eval $cacheid=no 8661fi 8662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8663 conftest$ac_exeext conftest.$ac_ext 8664fi 8665 8666 8667 CFLAGS="$xorg_testset_save_CFLAGS" 8668 8669 eval supported=\$$cacheid 8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8671printf "%s\n" "$supported" >&6; } 8672 if test "$supported" = "yes" ; then 8673 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8674 found="yes" 8675 fi 8676 fi 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692xorg_testset_save_CFLAGS="$CFLAGS" 8693 8694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8698if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8699then : 8700 printf %s "(cached) " >&6 8701else $as_nop 8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8703/* end confdefs.h. */ 8704int i; 8705_ACEOF 8706if ac_fn_c_try_compile "$LINENO" 8707then : 8708 xorg_cv_cc_flag_unknown_warning_option=yes 8709else $as_nop 8710 xorg_cv_cc_flag_unknown_warning_option=no 8711fi 8712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8713fi 8714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8717 CFLAGS="$xorg_testset_save_CFLAGS" 8718fi 8719 8720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8723 fi 8724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8727if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8728then : 8729 printf %s "(cached) " >&6 8730else $as_nop 8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8732/* end confdefs.h. */ 8733int i; 8734_ACEOF 8735if ac_fn_c_try_compile "$LINENO" 8736then : 8737 xorg_cv_cc_flag_unused_command_line_argument=yes 8738else $as_nop 8739 xorg_cv_cc_flag_unused_command_line_argument=no 8740fi 8741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8742fi 8743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8744printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8746 CFLAGS="$xorg_testset_save_CFLAGS" 8747fi 8748 8749found="no" 8750 8751 if test $found = "no" ; then 8752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8754 fi 8755 8756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8758 fi 8759 8760 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8761 8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8763printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8764 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8765 if eval test \${$cacheid+y} 8766then : 8767 printf %s "(cached) " >&6 8768else $as_nop 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770/* end confdefs.h. */ 8771int i; 8772int 8773main (void) 8774{ 8775 8776 ; 8777 return 0; 8778} 8779_ACEOF 8780if ac_fn_c_try_link "$LINENO" 8781then : 8782 eval $cacheid=yes 8783else $as_nop 8784 eval $cacheid=no 8785fi 8786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8787 conftest$ac_exeext conftest.$ac_ext 8788fi 8789 8790 8791 CFLAGS="$xorg_testset_save_CFLAGS" 8792 8793 eval supported=\$$cacheid 8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8795printf "%s\n" "$supported" >&6; } 8796 if test "$supported" = "yes" ; then 8797 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8798 found="yes" 8799 fi 8800 fi 8801 8802 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8803else 8804{ 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 8805printf "%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;} 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819xorg_testset_save_CFLAGS="$CFLAGS" 8820 8821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8824printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8825if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8826then : 8827 printf %s "(cached) " >&6 8828else $as_nop 8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8830/* end confdefs.h. */ 8831int i; 8832_ACEOF 8833if ac_fn_c_try_compile "$LINENO" 8834then : 8835 xorg_cv_cc_flag_unknown_warning_option=yes 8836else $as_nop 8837 xorg_cv_cc_flag_unknown_warning_option=no 8838fi 8839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8840fi 8841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8842printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8844 CFLAGS="$xorg_testset_save_CFLAGS" 8845fi 8846 8847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8850 fi 8851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8853printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8854if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8855then : 8856 printf %s "(cached) " >&6 8857else $as_nop 8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8859/* end confdefs.h. */ 8860int i; 8861_ACEOF 8862if ac_fn_c_try_compile "$LINENO" 8863then : 8864 xorg_cv_cc_flag_unused_command_line_argument=yes 8865else $as_nop 8866 xorg_cv_cc_flag_unused_command_line_argument=no 8867fi 8868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8869fi 8870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8871printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8873 CFLAGS="$xorg_testset_save_CFLAGS" 8874fi 8875 8876found="no" 8877 8878 if test $found = "no" ; then 8879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8881 fi 8882 8883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8885 fi 8886 8887 CFLAGS="$CFLAGS -Wimplicit" 8888 8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8890printf %s "checking if $CC supports -Wimplicit... " >&6; } 8891 cacheid=xorg_cv_cc_flag__Wimplicit 8892 if eval test \${$cacheid+y} 8893then : 8894 printf %s "(cached) " >&6 8895else $as_nop 8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8897/* end confdefs.h. */ 8898int i; 8899int 8900main (void) 8901{ 8902 8903 ; 8904 return 0; 8905} 8906_ACEOF 8907if ac_fn_c_try_link "$LINENO" 8908then : 8909 eval $cacheid=yes 8910else $as_nop 8911 eval $cacheid=no 8912fi 8913rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8914 conftest$ac_exeext conftest.$ac_ext 8915fi 8916 8917 8918 CFLAGS="$xorg_testset_save_CFLAGS" 8919 8920 eval supported=\$$cacheid 8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8922printf "%s\n" "$supported" >&6; } 8923 if test "$supported" = "yes" ; then 8924 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8925 found="yes" 8926 fi 8927 fi 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943xorg_testset_save_CFLAGS="$CFLAGS" 8944 8945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8949if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8950then : 8951 printf %s "(cached) " >&6 8952else $as_nop 8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8954/* end confdefs.h. */ 8955int i; 8956_ACEOF 8957if ac_fn_c_try_compile "$LINENO" 8958then : 8959 xorg_cv_cc_flag_unknown_warning_option=yes 8960else $as_nop 8961 xorg_cv_cc_flag_unknown_warning_option=no 8962fi 8963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8964fi 8965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8966printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8968 CFLAGS="$xorg_testset_save_CFLAGS" 8969fi 8970 8971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8974 fi 8975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8977printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8978if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8979then : 8980 printf %s "(cached) " >&6 8981else $as_nop 8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8983/* end confdefs.h. */ 8984int i; 8985_ACEOF 8986if ac_fn_c_try_compile "$LINENO" 8987then : 8988 xorg_cv_cc_flag_unused_command_line_argument=yes 8989else $as_nop 8990 xorg_cv_cc_flag_unused_command_line_argument=no 8991fi 8992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8993fi 8994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8997 CFLAGS="$xorg_testset_save_CFLAGS" 8998fi 8999 9000found="no" 9001 9002 if test $found = "no" ; then 9003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9005 fi 9006 9007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9009 fi 9010 9011 CFLAGS="$CFLAGS -Wnonnull" 9012 9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9014printf %s "checking if $CC supports -Wnonnull... " >&6; } 9015 cacheid=xorg_cv_cc_flag__Wnonnull 9016 if eval test \${$cacheid+y} 9017then : 9018 printf %s "(cached) " >&6 9019else $as_nop 9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9021/* end confdefs.h. */ 9022int i; 9023int 9024main (void) 9025{ 9026 9027 ; 9028 return 0; 9029} 9030_ACEOF 9031if ac_fn_c_try_link "$LINENO" 9032then : 9033 eval $cacheid=yes 9034else $as_nop 9035 eval $cacheid=no 9036fi 9037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9038 conftest$ac_exeext conftest.$ac_ext 9039fi 9040 9041 9042 CFLAGS="$xorg_testset_save_CFLAGS" 9043 9044 eval supported=\$$cacheid 9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9046printf "%s\n" "$supported" >&6; } 9047 if test "$supported" = "yes" ; then 9048 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9049 found="yes" 9050 fi 9051 fi 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067xorg_testset_save_CFLAGS="$CFLAGS" 9068 9069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9073if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9074then : 9075 printf %s "(cached) " >&6 9076else $as_nop 9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9078/* end confdefs.h. */ 9079int i; 9080_ACEOF 9081if ac_fn_c_try_compile "$LINENO" 9082then : 9083 xorg_cv_cc_flag_unknown_warning_option=yes 9084else $as_nop 9085 xorg_cv_cc_flag_unknown_warning_option=no 9086fi 9087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9088fi 9089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9092 CFLAGS="$xorg_testset_save_CFLAGS" 9093fi 9094 9095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9098 fi 9099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9102if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9103then : 9104 printf %s "(cached) " >&6 9105else $as_nop 9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9107/* end confdefs.h. */ 9108int i; 9109_ACEOF 9110if ac_fn_c_try_compile "$LINENO" 9111then : 9112 xorg_cv_cc_flag_unused_command_line_argument=yes 9113else $as_nop 9114 xorg_cv_cc_flag_unused_command_line_argument=no 9115fi 9116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9117fi 9118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9121 CFLAGS="$xorg_testset_save_CFLAGS" 9122fi 9123 9124found="no" 9125 9126 if test $found = "no" ; then 9127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9129 fi 9130 9131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9133 fi 9134 9135 CFLAGS="$CFLAGS -Winit-self" 9136 9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9138printf %s "checking if $CC supports -Winit-self... " >&6; } 9139 cacheid=xorg_cv_cc_flag__Winit_self 9140 if eval test \${$cacheid+y} 9141then : 9142 printf %s "(cached) " >&6 9143else $as_nop 9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9145/* end confdefs.h. */ 9146int i; 9147int 9148main (void) 9149{ 9150 9151 ; 9152 return 0; 9153} 9154_ACEOF 9155if ac_fn_c_try_link "$LINENO" 9156then : 9157 eval $cacheid=yes 9158else $as_nop 9159 eval $cacheid=no 9160fi 9161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9162 conftest$ac_exeext conftest.$ac_ext 9163fi 9164 9165 9166 CFLAGS="$xorg_testset_save_CFLAGS" 9167 9168 eval supported=\$$cacheid 9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9170printf "%s\n" "$supported" >&6; } 9171 if test "$supported" = "yes" ; then 9172 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9173 found="yes" 9174 fi 9175 fi 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191xorg_testset_save_CFLAGS="$CFLAGS" 9192 9193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9197if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9198then : 9199 printf %s "(cached) " >&6 9200else $as_nop 9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9202/* end confdefs.h. */ 9203int i; 9204_ACEOF 9205if ac_fn_c_try_compile "$LINENO" 9206then : 9207 xorg_cv_cc_flag_unknown_warning_option=yes 9208else $as_nop 9209 xorg_cv_cc_flag_unknown_warning_option=no 9210fi 9211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9212fi 9213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9216 CFLAGS="$xorg_testset_save_CFLAGS" 9217fi 9218 9219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9222 fi 9223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9226if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9227then : 9228 printf %s "(cached) " >&6 9229else $as_nop 9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9231/* end confdefs.h. */ 9232int i; 9233_ACEOF 9234if ac_fn_c_try_compile "$LINENO" 9235then : 9236 xorg_cv_cc_flag_unused_command_line_argument=yes 9237else $as_nop 9238 xorg_cv_cc_flag_unused_command_line_argument=no 9239fi 9240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9241fi 9242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9245 CFLAGS="$xorg_testset_save_CFLAGS" 9246fi 9247 9248found="no" 9249 9250 if test $found = "no" ; then 9251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9253 fi 9254 9255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9257 fi 9258 9259 CFLAGS="$CFLAGS -Wmain" 9260 9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9262printf %s "checking if $CC supports -Wmain... " >&6; } 9263 cacheid=xorg_cv_cc_flag__Wmain 9264 if eval test \${$cacheid+y} 9265then : 9266 printf %s "(cached) " >&6 9267else $as_nop 9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9269/* end confdefs.h. */ 9270int i; 9271int 9272main (void) 9273{ 9274 9275 ; 9276 return 0; 9277} 9278_ACEOF 9279if ac_fn_c_try_link "$LINENO" 9280then : 9281 eval $cacheid=yes 9282else $as_nop 9283 eval $cacheid=no 9284fi 9285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9286 conftest$ac_exeext conftest.$ac_ext 9287fi 9288 9289 9290 CFLAGS="$xorg_testset_save_CFLAGS" 9291 9292 eval supported=\$$cacheid 9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9294printf "%s\n" "$supported" >&6; } 9295 if test "$supported" = "yes" ; then 9296 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9297 found="yes" 9298 fi 9299 fi 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315xorg_testset_save_CFLAGS="$CFLAGS" 9316 9317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9321if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9322then : 9323 printf %s "(cached) " >&6 9324else $as_nop 9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9326/* end confdefs.h. */ 9327int i; 9328_ACEOF 9329if ac_fn_c_try_compile "$LINENO" 9330then : 9331 xorg_cv_cc_flag_unknown_warning_option=yes 9332else $as_nop 9333 xorg_cv_cc_flag_unknown_warning_option=no 9334fi 9335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9336fi 9337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9340 CFLAGS="$xorg_testset_save_CFLAGS" 9341fi 9342 9343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9346 fi 9347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9350if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9351then : 9352 printf %s "(cached) " >&6 9353else $as_nop 9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9355/* end confdefs.h. */ 9356int i; 9357_ACEOF 9358if ac_fn_c_try_compile "$LINENO" 9359then : 9360 xorg_cv_cc_flag_unused_command_line_argument=yes 9361else $as_nop 9362 xorg_cv_cc_flag_unused_command_line_argument=no 9363fi 9364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9365fi 9366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9369 CFLAGS="$xorg_testset_save_CFLAGS" 9370fi 9371 9372found="no" 9373 9374 if test $found = "no" ; then 9375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9377 fi 9378 9379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9381 fi 9382 9383 CFLAGS="$CFLAGS -Wmissing-braces" 9384 9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9386printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9387 cacheid=xorg_cv_cc_flag__Wmissing_braces 9388 if eval test \${$cacheid+y} 9389then : 9390 printf %s "(cached) " >&6 9391else $as_nop 9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9393/* end confdefs.h. */ 9394int i; 9395int 9396main (void) 9397{ 9398 9399 ; 9400 return 0; 9401} 9402_ACEOF 9403if ac_fn_c_try_link "$LINENO" 9404then : 9405 eval $cacheid=yes 9406else $as_nop 9407 eval $cacheid=no 9408fi 9409rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9410 conftest$ac_exeext conftest.$ac_ext 9411fi 9412 9413 9414 CFLAGS="$xorg_testset_save_CFLAGS" 9415 9416 eval supported=\$$cacheid 9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9418printf "%s\n" "$supported" >&6; } 9419 if test "$supported" = "yes" ; then 9420 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9421 found="yes" 9422 fi 9423 fi 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439xorg_testset_save_CFLAGS="$CFLAGS" 9440 9441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9445if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9446then : 9447 printf %s "(cached) " >&6 9448else $as_nop 9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9450/* end confdefs.h. */ 9451int i; 9452_ACEOF 9453if ac_fn_c_try_compile "$LINENO" 9454then : 9455 xorg_cv_cc_flag_unknown_warning_option=yes 9456else $as_nop 9457 xorg_cv_cc_flag_unknown_warning_option=no 9458fi 9459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9460fi 9461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9464 CFLAGS="$xorg_testset_save_CFLAGS" 9465fi 9466 9467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9470 fi 9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9474if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9475then : 9476 printf %s "(cached) " >&6 9477else $as_nop 9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479/* end confdefs.h. */ 9480int i; 9481_ACEOF 9482if ac_fn_c_try_compile "$LINENO" 9483then : 9484 xorg_cv_cc_flag_unused_command_line_argument=yes 9485else $as_nop 9486 xorg_cv_cc_flag_unused_command_line_argument=no 9487fi 9488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9489fi 9490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9493 CFLAGS="$xorg_testset_save_CFLAGS" 9494fi 9495 9496found="no" 9497 9498 if test $found = "no" ; then 9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9501 fi 9502 9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9505 fi 9506 9507 CFLAGS="$CFLAGS -Wsequence-point" 9508 9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9510printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9511 cacheid=xorg_cv_cc_flag__Wsequence_point 9512 if eval test \${$cacheid+y} 9513then : 9514 printf %s "(cached) " >&6 9515else $as_nop 9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517/* end confdefs.h. */ 9518int i; 9519int 9520main (void) 9521{ 9522 9523 ; 9524 return 0; 9525} 9526_ACEOF 9527if ac_fn_c_try_link "$LINENO" 9528then : 9529 eval $cacheid=yes 9530else $as_nop 9531 eval $cacheid=no 9532fi 9533rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9534 conftest$ac_exeext conftest.$ac_ext 9535fi 9536 9537 9538 CFLAGS="$xorg_testset_save_CFLAGS" 9539 9540 eval supported=\$$cacheid 9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9542printf "%s\n" "$supported" >&6; } 9543 if test "$supported" = "yes" ; then 9544 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9545 found="yes" 9546 fi 9547 fi 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563xorg_testset_save_CFLAGS="$CFLAGS" 9564 9565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9569if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9570then : 9571 printf %s "(cached) " >&6 9572else $as_nop 9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9574/* end confdefs.h. */ 9575int i; 9576_ACEOF 9577if ac_fn_c_try_compile "$LINENO" 9578then : 9579 xorg_cv_cc_flag_unknown_warning_option=yes 9580else $as_nop 9581 xorg_cv_cc_flag_unknown_warning_option=no 9582fi 9583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9584fi 9585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9588 CFLAGS="$xorg_testset_save_CFLAGS" 9589fi 9590 9591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9594 fi 9595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9598if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9599then : 9600 printf %s "(cached) " >&6 9601else $as_nop 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604int i; 9605_ACEOF 9606if ac_fn_c_try_compile "$LINENO" 9607then : 9608 xorg_cv_cc_flag_unused_command_line_argument=yes 9609else $as_nop 9610 xorg_cv_cc_flag_unused_command_line_argument=no 9611fi 9612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9613fi 9614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9615printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9617 CFLAGS="$xorg_testset_save_CFLAGS" 9618fi 9619 9620found="no" 9621 9622 if test $found = "no" ; then 9623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9625 fi 9626 9627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9629 fi 9630 9631 CFLAGS="$CFLAGS -Wreturn-type" 9632 9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9634printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9635 cacheid=xorg_cv_cc_flag__Wreturn_type 9636 if eval test \${$cacheid+y} 9637then : 9638 printf %s "(cached) " >&6 9639else $as_nop 9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9641/* end confdefs.h. */ 9642int i; 9643int 9644main (void) 9645{ 9646 9647 ; 9648 return 0; 9649} 9650_ACEOF 9651if ac_fn_c_try_link "$LINENO" 9652then : 9653 eval $cacheid=yes 9654else $as_nop 9655 eval $cacheid=no 9656fi 9657rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9658 conftest$ac_exeext conftest.$ac_ext 9659fi 9660 9661 9662 CFLAGS="$xorg_testset_save_CFLAGS" 9663 9664 eval supported=\$$cacheid 9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9666printf "%s\n" "$supported" >&6; } 9667 if test "$supported" = "yes" ; then 9668 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9669 found="yes" 9670 fi 9671 fi 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687xorg_testset_save_CFLAGS="$CFLAGS" 9688 9689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9693if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9694then : 9695 printf %s "(cached) " >&6 9696else $as_nop 9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9698/* end confdefs.h. */ 9699int i; 9700_ACEOF 9701if ac_fn_c_try_compile "$LINENO" 9702then : 9703 xorg_cv_cc_flag_unknown_warning_option=yes 9704else $as_nop 9705 xorg_cv_cc_flag_unknown_warning_option=no 9706fi 9707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9708fi 9709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9712 CFLAGS="$xorg_testset_save_CFLAGS" 9713fi 9714 9715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9718 fi 9719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9722if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9723then : 9724 printf %s "(cached) " >&6 9725else $as_nop 9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9727/* end confdefs.h. */ 9728int i; 9729_ACEOF 9730if ac_fn_c_try_compile "$LINENO" 9731then : 9732 xorg_cv_cc_flag_unused_command_line_argument=yes 9733else $as_nop 9734 xorg_cv_cc_flag_unused_command_line_argument=no 9735fi 9736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9737fi 9738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9741 CFLAGS="$xorg_testset_save_CFLAGS" 9742fi 9743 9744found="no" 9745 9746 if test $found = "no" ; then 9747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9749 fi 9750 9751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9753 fi 9754 9755 CFLAGS="$CFLAGS -Wtrigraphs" 9756 9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9758printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9759 cacheid=xorg_cv_cc_flag__Wtrigraphs 9760 if eval test \${$cacheid+y} 9761then : 9762 printf %s "(cached) " >&6 9763else $as_nop 9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9765/* end confdefs.h. */ 9766int i; 9767int 9768main (void) 9769{ 9770 9771 ; 9772 return 0; 9773} 9774_ACEOF 9775if ac_fn_c_try_link "$LINENO" 9776then : 9777 eval $cacheid=yes 9778else $as_nop 9779 eval $cacheid=no 9780fi 9781rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9782 conftest$ac_exeext conftest.$ac_ext 9783fi 9784 9785 9786 CFLAGS="$xorg_testset_save_CFLAGS" 9787 9788 eval supported=\$$cacheid 9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9790printf "%s\n" "$supported" >&6; } 9791 if test "$supported" = "yes" ; then 9792 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9793 found="yes" 9794 fi 9795 fi 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811xorg_testset_save_CFLAGS="$CFLAGS" 9812 9813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9817if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9818then : 9819 printf %s "(cached) " >&6 9820else $as_nop 9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9822/* end confdefs.h. */ 9823int i; 9824_ACEOF 9825if ac_fn_c_try_compile "$LINENO" 9826then : 9827 xorg_cv_cc_flag_unknown_warning_option=yes 9828else $as_nop 9829 xorg_cv_cc_flag_unknown_warning_option=no 9830fi 9831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9832fi 9833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9836 CFLAGS="$xorg_testset_save_CFLAGS" 9837fi 9838 9839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9842 fi 9843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9846if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9847then : 9848 printf %s "(cached) " >&6 9849else $as_nop 9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852int i; 9853_ACEOF 9854if ac_fn_c_try_compile "$LINENO" 9855then : 9856 xorg_cv_cc_flag_unused_command_line_argument=yes 9857else $as_nop 9858 xorg_cv_cc_flag_unused_command_line_argument=no 9859fi 9860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9861fi 9862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9865 CFLAGS="$xorg_testset_save_CFLAGS" 9866fi 9867 9868found="no" 9869 9870 if test $found = "no" ; then 9871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9873 fi 9874 9875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9877 fi 9878 9879 CFLAGS="$CFLAGS -Warray-bounds" 9880 9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9882printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9883 cacheid=xorg_cv_cc_flag__Warray_bounds 9884 if eval test \${$cacheid+y} 9885then : 9886 printf %s "(cached) " >&6 9887else $as_nop 9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9889/* end confdefs.h. */ 9890int i; 9891int 9892main (void) 9893{ 9894 9895 ; 9896 return 0; 9897} 9898_ACEOF 9899if ac_fn_c_try_link "$LINENO" 9900then : 9901 eval $cacheid=yes 9902else $as_nop 9903 eval $cacheid=no 9904fi 9905rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9906 conftest$ac_exeext conftest.$ac_ext 9907fi 9908 9909 9910 CFLAGS="$xorg_testset_save_CFLAGS" 9911 9912 eval supported=\$$cacheid 9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9914printf "%s\n" "$supported" >&6; } 9915 if test "$supported" = "yes" ; then 9916 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9917 found="yes" 9918 fi 9919 fi 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935xorg_testset_save_CFLAGS="$CFLAGS" 9936 9937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9941if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9942then : 9943 printf %s "(cached) " >&6 9944else $as_nop 9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9946/* end confdefs.h. */ 9947int i; 9948_ACEOF 9949if ac_fn_c_try_compile "$LINENO" 9950then : 9951 xorg_cv_cc_flag_unknown_warning_option=yes 9952else $as_nop 9953 xorg_cv_cc_flag_unknown_warning_option=no 9954fi 9955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9956fi 9957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9958printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9960 CFLAGS="$xorg_testset_save_CFLAGS" 9961fi 9962 9963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9966 fi 9967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9969printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9970if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9971then : 9972 printf %s "(cached) " >&6 9973else $as_nop 9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9975/* end confdefs.h. */ 9976int i; 9977_ACEOF 9978if ac_fn_c_try_compile "$LINENO" 9979then : 9980 xorg_cv_cc_flag_unused_command_line_argument=yes 9981else $as_nop 9982 xorg_cv_cc_flag_unused_command_line_argument=no 9983fi 9984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9985fi 9986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9987printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9989 CFLAGS="$xorg_testset_save_CFLAGS" 9990fi 9991 9992found="no" 9993 9994 if test $found = "no" ; then 9995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9997 fi 9998 9999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10001 fi 10002 10003 CFLAGS="$CFLAGS -Wwrite-strings" 10004 10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10006printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10007 cacheid=xorg_cv_cc_flag__Wwrite_strings 10008 if eval test \${$cacheid+y} 10009then : 10010 printf %s "(cached) " >&6 10011else $as_nop 10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10013/* end confdefs.h. */ 10014int i; 10015int 10016main (void) 10017{ 10018 10019 ; 10020 return 0; 10021} 10022_ACEOF 10023if ac_fn_c_try_link "$LINENO" 10024then : 10025 eval $cacheid=yes 10026else $as_nop 10027 eval $cacheid=no 10028fi 10029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10030 conftest$ac_exeext conftest.$ac_ext 10031fi 10032 10033 10034 CFLAGS="$xorg_testset_save_CFLAGS" 10035 10036 eval supported=\$$cacheid 10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10038printf "%s\n" "$supported" >&6; } 10039 if test "$supported" = "yes" ; then 10040 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10041 found="yes" 10042 fi 10043 fi 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059xorg_testset_save_CFLAGS="$CFLAGS" 10060 10061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10065if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10066then : 10067 printf %s "(cached) " >&6 10068else $as_nop 10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10070/* end confdefs.h. */ 10071int i; 10072_ACEOF 10073if ac_fn_c_try_compile "$LINENO" 10074then : 10075 xorg_cv_cc_flag_unknown_warning_option=yes 10076else $as_nop 10077 xorg_cv_cc_flag_unknown_warning_option=no 10078fi 10079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10080fi 10081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10084 CFLAGS="$xorg_testset_save_CFLAGS" 10085fi 10086 10087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10090 fi 10091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10094if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10095then : 10096 printf %s "(cached) " >&6 10097else $as_nop 10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10099/* end confdefs.h. */ 10100int i; 10101_ACEOF 10102if ac_fn_c_try_compile "$LINENO" 10103then : 10104 xorg_cv_cc_flag_unused_command_line_argument=yes 10105else $as_nop 10106 xorg_cv_cc_flag_unused_command_line_argument=no 10107fi 10108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10109fi 10110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10113 CFLAGS="$xorg_testset_save_CFLAGS" 10114fi 10115 10116found="no" 10117 10118 if test $found = "no" ; then 10119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10121 fi 10122 10123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10125 fi 10126 10127 CFLAGS="$CFLAGS -Waddress" 10128 10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10130printf %s "checking if $CC supports -Waddress... " >&6; } 10131 cacheid=xorg_cv_cc_flag__Waddress 10132 if eval test \${$cacheid+y} 10133then : 10134 printf %s "(cached) " >&6 10135else $as_nop 10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10137/* end confdefs.h. */ 10138int i; 10139int 10140main (void) 10141{ 10142 10143 ; 10144 return 0; 10145} 10146_ACEOF 10147if ac_fn_c_try_link "$LINENO" 10148then : 10149 eval $cacheid=yes 10150else $as_nop 10151 eval $cacheid=no 10152fi 10153rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10154 conftest$ac_exeext conftest.$ac_ext 10155fi 10156 10157 10158 CFLAGS="$xorg_testset_save_CFLAGS" 10159 10160 eval supported=\$$cacheid 10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10162printf "%s\n" "$supported" >&6; } 10163 if test "$supported" = "yes" ; then 10164 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10165 found="yes" 10166 fi 10167 fi 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183xorg_testset_save_CFLAGS="$CFLAGS" 10184 10185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10189if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10190then : 10191 printf %s "(cached) " >&6 10192else $as_nop 10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10194/* end confdefs.h. */ 10195int i; 10196_ACEOF 10197if ac_fn_c_try_compile "$LINENO" 10198then : 10199 xorg_cv_cc_flag_unknown_warning_option=yes 10200else $as_nop 10201 xorg_cv_cc_flag_unknown_warning_option=no 10202fi 10203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10204fi 10205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10208 CFLAGS="$xorg_testset_save_CFLAGS" 10209fi 10210 10211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10214 fi 10215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10218if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10219then : 10220 printf %s "(cached) " >&6 10221else $as_nop 10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223/* end confdefs.h. */ 10224int i; 10225_ACEOF 10226if ac_fn_c_try_compile "$LINENO" 10227then : 10228 xorg_cv_cc_flag_unused_command_line_argument=yes 10229else $as_nop 10230 xorg_cv_cc_flag_unused_command_line_argument=no 10231fi 10232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10233fi 10234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10237 CFLAGS="$xorg_testset_save_CFLAGS" 10238fi 10239 10240found="no" 10241 10242 if test $found = "no" ; then 10243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10245 fi 10246 10247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10249 fi 10250 10251 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10252 10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10254printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10255 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10256 if eval test \${$cacheid+y} 10257then : 10258 printf %s "(cached) " >&6 10259else $as_nop 10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10261/* end confdefs.h. */ 10262int i; 10263int 10264main (void) 10265{ 10266 10267 ; 10268 return 0; 10269} 10270_ACEOF 10271if ac_fn_c_try_link "$LINENO" 10272then : 10273 eval $cacheid=yes 10274else $as_nop 10275 eval $cacheid=no 10276fi 10277rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10278 conftest$ac_exeext conftest.$ac_ext 10279fi 10280 10281 10282 CFLAGS="$xorg_testset_save_CFLAGS" 10283 10284 eval supported=\$$cacheid 10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10286printf "%s\n" "$supported" >&6; } 10287 if test "$supported" = "yes" ; then 10288 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10289 found="yes" 10290 fi 10291 fi 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307xorg_testset_save_CFLAGS="$CFLAGS" 10308 10309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10312printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10313if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10314then : 10315 printf %s "(cached) " >&6 10316else $as_nop 10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10318/* end confdefs.h. */ 10319int i; 10320_ACEOF 10321if ac_fn_c_try_compile "$LINENO" 10322then : 10323 xorg_cv_cc_flag_unknown_warning_option=yes 10324else $as_nop 10325 xorg_cv_cc_flag_unknown_warning_option=no 10326fi 10327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10328fi 10329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10332 CFLAGS="$xorg_testset_save_CFLAGS" 10333fi 10334 10335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10338 fi 10339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10342if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10343then : 10344 printf %s "(cached) " >&6 10345else $as_nop 10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10347/* end confdefs.h. */ 10348int i; 10349_ACEOF 10350if ac_fn_c_try_compile "$LINENO" 10351then : 10352 xorg_cv_cc_flag_unused_command_line_argument=yes 10353else $as_nop 10354 xorg_cv_cc_flag_unused_command_line_argument=no 10355fi 10356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10357fi 10358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10359printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10361 CFLAGS="$xorg_testset_save_CFLAGS" 10362fi 10363 10364found="no" 10365 10366 if test $found = "no" ; then 10367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10369 fi 10370 10371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10373 fi 10374 10375 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10376 10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10378printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10379 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10380 if eval test \${$cacheid+y} 10381then : 10382 printf %s "(cached) " >&6 10383else $as_nop 10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10385/* end confdefs.h. */ 10386int i; 10387int 10388main (void) 10389{ 10390 10391 ; 10392 return 0; 10393} 10394_ACEOF 10395if ac_fn_c_try_link "$LINENO" 10396then : 10397 eval $cacheid=yes 10398else $as_nop 10399 eval $cacheid=no 10400fi 10401rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10402 conftest$ac_exeext conftest.$ac_ext 10403fi 10404 10405 10406 CFLAGS="$xorg_testset_save_CFLAGS" 10407 10408 eval supported=\$$cacheid 10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10410printf "%s\n" "$supported" >&6; } 10411 if test "$supported" = "yes" ; then 10412 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10413 found="yes" 10414 fi 10415 fi 10416 10417 10418fi 10419 10420 10421 10422 10423 10424 10425 10426 CWARNFLAGS="$BASE_CFLAGS" 10427 if test "x$GCC" = xyes ; then 10428 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10429 fi 10430 10431 10432 10433 10434 10435 10436 10437 10438# Check whether --enable-strict-compilation was given. 10439if test ${enable_strict_compilation+y} 10440then : 10441 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10442else $as_nop 10443 STRICT_COMPILE=no 10444fi 10445 10446 10447 10448 10449 10450 10451STRICT_CFLAGS="" 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465xorg_testset_save_CFLAGS="$CFLAGS" 10466 10467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10471if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10472then : 10473 printf %s "(cached) " >&6 10474else $as_nop 10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10476/* end confdefs.h. */ 10477int i; 10478_ACEOF 10479if ac_fn_c_try_compile "$LINENO" 10480then : 10481 xorg_cv_cc_flag_unknown_warning_option=yes 10482else $as_nop 10483 xorg_cv_cc_flag_unknown_warning_option=no 10484fi 10485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10486fi 10487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10488printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10490 CFLAGS="$xorg_testset_save_CFLAGS" 10491fi 10492 10493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10496 fi 10497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10499printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10500if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10501then : 10502 printf %s "(cached) " >&6 10503else $as_nop 10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10505/* end confdefs.h. */ 10506int i; 10507_ACEOF 10508if ac_fn_c_try_compile "$LINENO" 10509then : 10510 xorg_cv_cc_flag_unused_command_line_argument=yes 10511else $as_nop 10512 xorg_cv_cc_flag_unused_command_line_argument=no 10513fi 10514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10515fi 10516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10517printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10519 CFLAGS="$xorg_testset_save_CFLAGS" 10520fi 10521 10522found="no" 10523 10524 if test $found = "no" ; then 10525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10527 fi 10528 10529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10531 fi 10532 10533 CFLAGS="$CFLAGS -pedantic" 10534 10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10536printf %s "checking if $CC supports -pedantic... " >&6; } 10537 cacheid=xorg_cv_cc_flag__pedantic 10538 if eval test \${$cacheid+y} 10539then : 10540 printf %s "(cached) " >&6 10541else $as_nop 10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10543/* end confdefs.h. */ 10544int i; 10545int 10546main (void) 10547{ 10548 10549 ; 10550 return 0; 10551} 10552_ACEOF 10553if ac_fn_c_try_link "$LINENO" 10554then : 10555 eval $cacheid=yes 10556else $as_nop 10557 eval $cacheid=no 10558fi 10559rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10560 conftest$ac_exeext conftest.$ac_ext 10561fi 10562 10563 10564 CFLAGS="$xorg_testset_save_CFLAGS" 10565 10566 eval supported=\$$cacheid 10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10568printf "%s\n" "$supported" >&6; } 10569 if test "$supported" = "yes" ; then 10570 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10571 found="yes" 10572 fi 10573 fi 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589xorg_testset_save_CFLAGS="$CFLAGS" 10590 10591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10594printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10595if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10596then : 10597 printf %s "(cached) " >&6 10598else $as_nop 10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10600/* end confdefs.h. */ 10601int i; 10602_ACEOF 10603if ac_fn_c_try_compile "$LINENO" 10604then : 10605 xorg_cv_cc_flag_unknown_warning_option=yes 10606else $as_nop 10607 xorg_cv_cc_flag_unknown_warning_option=no 10608fi 10609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10610fi 10611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10612printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10614 CFLAGS="$xorg_testset_save_CFLAGS" 10615fi 10616 10617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10620 fi 10621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10623printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10624if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10625then : 10626 printf %s "(cached) " >&6 10627else $as_nop 10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10629/* end confdefs.h. */ 10630int i; 10631_ACEOF 10632if ac_fn_c_try_compile "$LINENO" 10633then : 10634 xorg_cv_cc_flag_unused_command_line_argument=yes 10635else $as_nop 10636 xorg_cv_cc_flag_unused_command_line_argument=no 10637fi 10638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10639fi 10640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10641printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10643 CFLAGS="$xorg_testset_save_CFLAGS" 10644fi 10645 10646found="no" 10647 10648 if test $found = "no" ; then 10649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10651 fi 10652 10653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10655 fi 10656 10657 CFLAGS="$CFLAGS -Werror" 10658 10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10660printf %s "checking if $CC supports -Werror... " >&6; } 10661 cacheid=xorg_cv_cc_flag__Werror 10662 if eval test \${$cacheid+y} 10663then : 10664 printf %s "(cached) " >&6 10665else $as_nop 10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10667/* end confdefs.h. */ 10668int i; 10669int 10670main (void) 10671{ 10672 10673 ; 10674 return 0; 10675} 10676_ACEOF 10677if ac_fn_c_try_link "$LINENO" 10678then : 10679 eval $cacheid=yes 10680else $as_nop 10681 eval $cacheid=no 10682fi 10683rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10684 conftest$ac_exeext conftest.$ac_ext 10685fi 10686 10687 10688 CFLAGS="$xorg_testset_save_CFLAGS" 10689 10690 eval supported=\$$cacheid 10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10692printf "%s\n" "$supported" >&6; } 10693 if test "$supported" = "yes" ; then 10694 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10695 found="yes" 10696 fi 10697 fi 10698 10699 if test $found = "no" ; then 10700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10702 fi 10703 10704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10706 fi 10707 10708 CFLAGS="$CFLAGS -errwarn" 10709 10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10711printf %s "checking if $CC supports -errwarn... " >&6; } 10712 cacheid=xorg_cv_cc_flag__errwarn 10713 if eval test \${$cacheid+y} 10714then : 10715 printf %s "(cached) " >&6 10716else $as_nop 10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10718/* end confdefs.h. */ 10719int i; 10720int 10721main (void) 10722{ 10723 10724 ; 10725 return 0; 10726} 10727_ACEOF 10728if ac_fn_c_try_link "$LINENO" 10729then : 10730 eval $cacheid=yes 10731else $as_nop 10732 eval $cacheid=no 10733fi 10734rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10735 conftest$ac_exeext conftest.$ac_ext 10736fi 10737 10738 10739 CFLAGS="$xorg_testset_save_CFLAGS" 10740 10741 eval supported=\$$cacheid 10742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10743printf "%s\n" "$supported" >&6; } 10744 if test "$supported" = "yes" ; then 10745 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10746 found="yes" 10747 fi 10748 fi 10749 10750 10751 10752# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10753# activate it with -Werror, so we add it here explicitly. 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767xorg_testset_save_CFLAGS="$CFLAGS" 10768 10769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10772printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10773if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10774then : 10775 printf %s "(cached) " >&6 10776else $as_nop 10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10778/* end confdefs.h. */ 10779int i; 10780_ACEOF 10781if ac_fn_c_try_compile "$LINENO" 10782then : 10783 xorg_cv_cc_flag_unknown_warning_option=yes 10784else $as_nop 10785 xorg_cv_cc_flag_unknown_warning_option=no 10786fi 10787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10788fi 10789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10790printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10792 CFLAGS="$xorg_testset_save_CFLAGS" 10793fi 10794 10795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10798 fi 10799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10801printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10802if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10803then : 10804 printf %s "(cached) " >&6 10805else $as_nop 10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10807/* end confdefs.h. */ 10808int i; 10809_ACEOF 10810if ac_fn_c_try_compile "$LINENO" 10811then : 10812 xorg_cv_cc_flag_unused_command_line_argument=yes 10813else $as_nop 10814 xorg_cv_cc_flag_unused_command_line_argument=no 10815fi 10816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10817fi 10818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10819printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10821 CFLAGS="$xorg_testset_save_CFLAGS" 10822fi 10823 10824found="no" 10825 10826 if test $found = "no" ; then 10827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10829 fi 10830 10831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10833 fi 10834 10835 CFLAGS="$CFLAGS -Werror=attributes" 10836 10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10838printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10839 cacheid=xorg_cv_cc_flag__Werror_attributes 10840 if eval test \${$cacheid+y} 10841then : 10842 printf %s "(cached) " >&6 10843else $as_nop 10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10845/* end confdefs.h. */ 10846int i; 10847int 10848main (void) 10849{ 10850 10851 ; 10852 return 0; 10853} 10854_ACEOF 10855if ac_fn_c_try_link "$LINENO" 10856then : 10857 eval $cacheid=yes 10858else $as_nop 10859 eval $cacheid=no 10860fi 10861rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10862 conftest$ac_exeext conftest.$ac_ext 10863fi 10864 10865 10866 CFLAGS="$xorg_testset_save_CFLAGS" 10867 10868 eval supported=\$$cacheid 10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10870printf "%s\n" "$supported" >&6; } 10871 if test "$supported" = "yes" ; then 10872 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10873 found="yes" 10874 fi 10875 fi 10876 10877 10878 10879if test "x$STRICT_COMPILE" = "xyes"; then 10880 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10881 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10882fi 10883 10884 10885 10886 10887 10888 10889cat >>confdefs.h <<_ACEOF 10890#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10891_ACEOF 10892 10893 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10894 if test "x$PVM" = "x"; then 10895 PVM="0" 10896 fi 10897 10898printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10899 10900 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10901 if test "x$PVP" = "x"; then 10902 PVP="0" 10903 fi 10904 10905printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10906 10907 10908 10909CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10910mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10911|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10912touch \$(top_srcdir)/ChangeLog; \ 10913echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10914 10915 10916 10917 10918macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10919INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10920mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10921|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10922touch \$(top_srcdir)/INSTALL; \ 10923echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10924 10925 10926 10927 10928 10929 10930case $host_os in 10931 solaris*) 10932 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10933 # check for a man page file found in later versions that use 10934 # traditional section numbers instead 10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10936printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10937if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10938then : 10939 printf %s "(cached) " >&6 10940else $as_nop 10941 test "$cross_compiling" = yes && 10942 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10943if test -r "/usr/share/man/man7/attributes.7"; then 10944 ac_cv_file__usr_share_man_man7_attributes_7=yes 10945else 10946 ac_cv_file__usr_share_man_man7_attributes_7=no 10947fi 10948fi 10949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10950printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10951if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10952then : 10953 SYSV_MAN_SECTIONS=false 10954else $as_nop 10955 SYSV_MAN_SECTIONS=true 10956fi 10957 10958 ;; 10959 *) SYSV_MAN_SECTIONS=false ;; 10960esac 10961 10962if test x$APP_MAN_SUFFIX = x ; then 10963 APP_MAN_SUFFIX=1 10964fi 10965if test x$APP_MAN_DIR = x ; then 10966 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10967fi 10968 10969if test x$LIB_MAN_SUFFIX = x ; then 10970 LIB_MAN_SUFFIX=3 10971fi 10972if test x$LIB_MAN_DIR = x ; then 10973 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10974fi 10975 10976if test x$FILE_MAN_SUFFIX = x ; then 10977 case $SYSV_MAN_SECTIONS in 10978 true) FILE_MAN_SUFFIX=4 ;; 10979 *) FILE_MAN_SUFFIX=5 ;; 10980 esac 10981fi 10982if test x$FILE_MAN_DIR = x ; then 10983 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10984fi 10985 10986if test x$MISC_MAN_SUFFIX = x ; then 10987 case $SYSV_MAN_SECTIONS in 10988 true) MISC_MAN_SUFFIX=5 ;; 10989 *) MISC_MAN_SUFFIX=7 ;; 10990 esac 10991fi 10992if test x$MISC_MAN_DIR = x ; then 10993 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10994fi 10995 10996if test x$DRIVER_MAN_SUFFIX = x ; then 10997 case $SYSV_MAN_SECTIONS in 10998 true) DRIVER_MAN_SUFFIX=7 ;; 10999 *) DRIVER_MAN_SUFFIX=4 ;; 11000 esac 11001fi 11002if test x$DRIVER_MAN_DIR = x ; then 11003 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11004fi 11005 11006if test x$ADMIN_MAN_SUFFIX = x ; then 11007 case $SYSV_MAN_SECTIONS in 11008 true) ADMIN_MAN_SUFFIX=1m ;; 11009 *) ADMIN_MAN_SUFFIX=8 ;; 11010 esac 11011fi 11012if test x$ADMIN_MAN_DIR = x ; then 11013 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11014fi 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030XORG_MAN_PAGE="X Version 11" 11031 11032MAN_SUBSTS="\ 11033 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11034 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11035 -e 's|__xservername__|Xorg|g' \ 11036 -e 's|__xconfigfile__|xorg.conf|g' \ 11037 -e 's|__projectroot__|\$(prefix)|g' \ 11038 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11039 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11040 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11041 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11042 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11043 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11044 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11045 11046 11047 11048# Check whether --enable-silent-rules was given. 11049if test ${enable_silent_rules+y} 11050then : 11051 enableval=$enable_silent_rules; 11052fi 11053 11054case $enable_silent_rules in # ((( 11055 yes) AM_DEFAULT_VERBOSITY=0;; 11056 no) AM_DEFAULT_VERBOSITY=1;; 11057 *) AM_DEFAULT_VERBOSITY=0;; 11058esac 11059am_make=${MAKE-make} 11060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11061printf %s "checking whether $am_make supports nested variables... " >&6; } 11062if test ${am_cv_make_support_nested_variables+y} 11063then : 11064 printf %s "(cached) " >&6 11065else $as_nop 11066 if printf "%s\n" 'TRUE=$(BAR$(V)) 11067BAR0=false 11068BAR1=true 11069V=1 11070am__doit: 11071 @$(TRUE) 11072.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11073 am_cv_make_support_nested_variables=yes 11074else 11075 am_cv_make_support_nested_variables=no 11076fi 11077fi 11078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11079printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11080if test $am_cv_make_support_nested_variables = yes; then 11081 AM_V='$(V)' 11082 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11083else 11084 AM_V=$AM_DEFAULT_VERBOSITY 11085 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11086fi 11087AM_BACKSLASH='\' 11088 11089 11090 11091# Checks for pkg-config packages 11092 11093pkg_failed=no 11094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCMSDB" >&5 11095printf %s "checking for XCMSDB... " >&6; } 11096 11097if test -n "$XCMSDB_CFLAGS"; then 11098 pkg_cv_XCMSDB_CFLAGS="$XCMSDB_CFLAGS" 11099 elif test -n "$PKG_CONFIG"; then 11100 if test -n "$PKG_CONFIG" && \ 11101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 11102 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 11103 ac_status=$? 11104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11105 test $ac_status = 0; }; then 11106 pkg_cv_XCMSDB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 11107 test "x$?" != "x0" && pkg_failed=yes 11108else 11109 pkg_failed=yes 11110fi 11111 else 11112 pkg_failed=untried 11113fi 11114if test -n "$XCMSDB_LIBS"; then 11115 pkg_cv_XCMSDB_LIBS="$XCMSDB_LIBS" 11116 elif test -n "$PKG_CONFIG"; then 11117 if test -n "$PKG_CONFIG" && \ 11118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 11119 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 11120 ac_status=$? 11121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11122 test $ac_status = 0; }; then 11123 pkg_cv_XCMSDB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 11124 test "x$?" != "x0" && pkg_failed=yes 11125else 11126 pkg_failed=yes 11127fi 11128 else 11129 pkg_failed=untried 11130fi 11131 11132 11133 11134if test $pkg_failed = yes; then 11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11136printf "%s\n" "no" >&6; } 11137 11138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11139 _pkg_short_errors_supported=yes 11140else 11141 _pkg_short_errors_supported=no 11142fi 11143 if test $_pkg_short_errors_supported = yes; then 11144 XCMSDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 11145 else 11146 XCMSDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 11147 fi 11148 # Put the nasty error message in config.log where it belongs 11149 echo "$XCMSDB_PKG_ERRORS" >&5 11150 11151 as_fn_error $? "Package requirements (x11) were not met: 11152 11153$XCMSDB_PKG_ERRORS 11154 11155Consider adjusting the PKG_CONFIG_PATH environment variable if you 11156installed software in a non-standard prefix. 11157 11158Alternatively, you may set the environment variables XCMSDB_CFLAGS 11159and XCMSDB_LIBS to avoid the need to call pkg-config. 11160See the pkg-config man page for more details." "$LINENO" 5 11161elif test $pkg_failed = untried; then 11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11163printf "%s\n" "no" >&6; } 11164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11165printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11166as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11167is in your PATH or set the PKG_CONFIG environment variable to the full 11168path to pkg-config. 11169 11170Alternatively, you may set the environment variables XCMSDB_CFLAGS 11171and XCMSDB_LIBS to avoid the need to call pkg-config. 11172See the pkg-config man page for more details. 11173 11174To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11175See \`config.log' for more details" "$LINENO" 5; } 11176else 11177 XCMSDB_CFLAGS=$pkg_cv_XCMSDB_CFLAGS 11178 XCMSDB_LIBS=$pkg_cv_XCMSDB_LIBS 11179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11180printf "%s\n" "yes" >&6; } 11181 11182fi 11183 11184ac_config_files="$ac_config_files Makefile man/Makefile" 11185 11186cat >confcache <<\_ACEOF 11187# This file is a shell script that caches the results of configure 11188# tests run on this system so they can be shared between configure 11189# scripts and configure runs, see configure's option --config-cache. 11190# It is not useful on other systems. If it contains results you don't 11191# want to keep, you may remove or edit it. 11192# 11193# config.status only pays attention to the cache file if you give it 11194# the --recheck option to rerun configure. 11195# 11196# `ac_cv_env_foo' variables (set or unset) will be overridden when 11197# loading this file, other *unset* `ac_cv_foo' will be assigned the 11198# following values. 11199 11200_ACEOF 11201 11202# The following way of writing the cache mishandles newlines in values, 11203# but we know of no workaround that is simple, portable, and efficient. 11204# So, we kill variables containing newlines. 11205# Ultrix sh set writes to stderr and can't be redirected directly, 11206# and sets the high bit in the cache file unless we assign to the vars. 11207( 11208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11209 eval ac_val=\$$ac_var 11210 case $ac_val in #( 11211 *${as_nl}*) 11212 case $ac_var in #( 11213 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11214printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11215 esac 11216 case $ac_var in #( 11217 _ | IFS | as_nl) ;; #( 11218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11219 *) { eval $ac_var=; unset $ac_var;} ;; 11220 esac ;; 11221 esac 11222 done 11223 11224 (set) 2>&1 | 11225 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11226 *${as_nl}ac_space=\ *) 11227 # `set' does not quote correctly, so add quotes: double-quote 11228 # substitution turns \\\\ into \\, and sed turns \\ into \. 11229 sed -n \ 11230 "s/'/'\\\\''/g; 11231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11232 ;; #( 11233 *) 11234 # `set' quotes correctly as required by POSIX, so do not add quotes. 11235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11236 ;; 11237 esac | 11238 sort 11239) | 11240 sed ' 11241 /^ac_cv_env_/b end 11242 t clear 11243 :clear 11244 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11245 t end 11246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11247 :end' >>confcache 11248if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11249 if test -w "$cache_file"; then 11250 if test "x$cache_file" != "x/dev/null"; then 11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11252printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11253 if test ! -f "$cache_file" || test -h "$cache_file"; then 11254 cat confcache >"$cache_file" 11255 else 11256 case $cache_file in #( 11257 */* | ?:*) 11258 mv -f confcache "$cache_file"$$ && 11259 mv -f "$cache_file"$$ "$cache_file" ;; #( 11260 *) 11261 mv -f confcache "$cache_file" ;; 11262 esac 11263 fi 11264 fi 11265 else 11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11267printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11268 fi 11269fi 11270rm -f confcache 11271 11272test "x$prefix" = xNONE && prefix=$ac_default_prefix 11273# Let make expand exec_prefix. 11274test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11275 11276DEFS=-DHAVE_CONFIG_H 11277 11278ac_libobjs= 11279ac_ltlibobjs= 11280U= 11281for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11282 # 1. Remove the extension, and $U if already installed. 11283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11284 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11286 # will be set to the directory where LIBOBJS objects are built. 11287 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11288 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11289done 11290LIBOBJS=$ac_libobjs 11291 11292LTLIBOBJS=$ac_ltlibobjs 11293 11294 11295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11296printf %s "checking that generated files are newer than configure... " >&6; } 11297 if test -n "$am_sleep_pid"; then 11298 # Hide warnings about reused PIDs. 11299 wait $am_sleep_pid 2>/dev/null 11300 fi 11301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11302printf "%s\n" "done" >&6; } 11303 if test -n "$EXEEXT"; then 11304 am__EXEEXT_TRUE= 11305 am__EXEEXT_FALSE='#' 11306else 11307 am__EXEEXT_TRUE='#' 11308 am__EXEEXT_FALSE= 11309fi 11310 11311if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11312 as_fn_error $? "conditional \"AMDEP\" was never defined. 11313Usually this means the macro was only invoked conditionally." "$LINENO" 5 11314fi 11315if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11316 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11317Usually this means the macro was only invoked conditionally." "$LINENO" 5 11318fi 11319 11320: "${CONFIG_STATUS=./config.status}" 11321ac_write_fail=0 11322ac_clean_files_save=$ac_clean_files 11323ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11325printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11326as_write_fail=0 11327cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11328#! $SHELL 11329# Generated by $as_me. 11330# Run this file to recreate the current configuration. 11331# Compiler output produced by configure, useful for debugging 11332# configure, is in config.log if it exists. 11333 11334debug=false 11335ac_cs_recheck=false 11336ac_cs_silent=false 11337 11338SHELL=\${CONFIG_SHELL-$SHELL} 11339export SHELL 11340_ASEOF 11341cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11342## -------------------- ## 11343## M4sh Initialization. ## 11344## -------------------- ## 11345 11346# Be more Bourne compatible 11347DUALCASE=1; export DUALCASE # for MKS sh 11348as_nop=: 11349if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11350then : 11351 emulate sh 11352 NULLCMD=: 11353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11354 # is contrary to our usage. Disable this feature. 11355 alias -g '${1+"$@"}'='"$@"' 11356 setopt NO_GLOB_SUBST 11357else $as_nop 11358 case `(set -o) 2>/dev/null` in #( 11359 *posix*) : 11360 set -o posix ;; #( 11361 *) : 11362 ;; 11363esac 11364fi 11365 11366 11367 11368# Reset variables that may have inherited troublesome values from 11369# the environment. 11370 11371# IFS needs to be set, to space, tab, and newline, in precisely that order. 11372# (If _AS_PATH_WALK were called with IFS unset, it would have the 11373# side effect of setting IFS to empty, thus disabling word splitting.) 11374# Quoting is to prevent editors from complaining about space-tab. 11375as_nl=' 11376' 11377export as_nl 11378IFS=" "" $as_nl" 11379 11380PS1='$ ' 11381PS2='> ' 11382PS4='+ ' 11383 11384# Ensure predictable behavior from utilities with locale-dependent output. 11385LC_ALL=C 11386export LC_ALL 11387LANGUAGE=C 11388export LANGUAGE 11389 11390# We cannot yet rely on "unset" to work, but we need these variables 11391# to be unset--not just set to an empty or harmless value--now, to 11392# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11393# also avoids known problems related to "unset" and subshell syntax 11394# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11395for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11396do eval test \${$as_var+y} \ 11397 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11398done 11399 11400# Ensure that fds 0, 1, and 2 are open. 11401if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11402if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11403if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11404 11405# The user is always right. 11406if ${PATH_SEPARATOR+false} :; then 11407 PATH_SEPARATOR=: 11408 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11409 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11410 PATH_SEPARATOR=';' 11411 } 11412fi 11413 11414 11415# Find who we are. Look in the path if we contain no directory separator. 11416as_myself= 11417case $0 in #(( 11418 *[\\/]* ) as_myself=$0 ;; 11419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11420for as_dir in $PATH 11421do 11422 IFS=$as_save_IFS 11423 case $as_dir in #((( 11424 '') as_dir=./ ;; 11425 */) ;; 11426 *) as_dir=$as_dir/ ;; 11427 esac 11428 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11429 done 11430IFS=$as_save_IFS 11431 11432 ;; 11433esac 11434# We did not find ourselves, most probably we were run as `sh COMMAND' 11435# in which case we are not to be found in the path. 11436if test "x$as_myself" = x; then 11437 as_myself=$0 11438fi 11439if test ! -f "$as_myself"; then 11440 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11441 exit 1 11442fi 11443 11444 11445 11446# as_fn_error STATUS ERROR [LINENO LOG_FD] 11447# ---------------------------------------- 11448# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11449# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11450# script with STATUS, using 1 if that was 0. 11451as_fn_error () 11452{ 11453 as_status=$1; test $as_status -eq 0 && as_status=1 11454 if test "$4"; then 11455 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11457 fi 11458 printf "%s\n" "$as_me: error: $2" >&2 11459 as_fn_exit $as_status 11460} # as_fn_error 11461 11462 11463 11464# as_fn_set_status STATUS 11465# ----------------------- 11466# Set $? to STATUS, without forking. 11467as_fn_set_status () 11468{ 11469 return $1 11470} # as_fn_set_status 11471 11472# as_fn_exit STATUS 11473# ----------------- 11474# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11475as_fn_exit () 11476{ 11477 set +e 11478 as_fn_set_status $1 11479 exit $1 11480} # as_fn_exit 11481 11482# as_fn_unset VAR 11483# --------------- 11484# Portably unset VAR. 11485as_fn_unset () 11486{ 11487 { eval $1=; unset $1;} 11488} 11489as_unset=as_fn_unset 11490 11491# as_fn_append VAR VALUE 11492# ---------------------- 11493# Append the text in VALUE to the end of the definition contained in VAR. Take 11494# advantage of any shell optimizations that allow amortized linear growth over 11495# repeated appends, instead of the typical quadratic growth present in naive 11496# implementations. 11497if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11498then : 11499 eval 'as_fn_append () 11500 { 11501 eval $1+=\$2 11502 }' 11503else $as_nop 11504 as_fn_append () 11505 { 11506 eval $1=\$$1\$2 11507 } 11508fi # as_fn_append 11509 11510# as_fn_arith ARG... 11511# ------------------ 11512# Perform arithmetic evaluation on the ARGs, and store the result in the 11513# global $as_val. Take advantage of shells that can avoid forks. The arguments 11514# must be portable across $(()) and expr. 11515if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11516then : 11517 eval 'as_fn_arith () 11518 { 11519 as_val=$(( $* )) 11520 }' 11521else $as_nop 11522 as_fn_arith () 11523 { 11524 as_val=`expr "$@" || test $? -eq 1` 11525 } 11526fi # as_fn_arith 11527 11528 11529if expr a : '\(a\)' >/dev/null 2>&1 && 11530 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11531 as_expr=expr 11532else 11533 as_expr=false 11534fi 11535 11536if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11537 as_basename=basename 11538else 11539 as_basename=false 11540fi 11541 11542if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11543 as_dirname=dirname 11544else 11545 as_dirname=false 11546fi 11547 11548as_me=`$as_basename -- "$0" || 11549$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11550 X"$0" : 'X\(//\)$' \| \ 11551 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11552printf "%s\n" X/"$0" | 11553 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11554 s//\1/ 11555 q 11556 } 11557 /^X\/\(\/\/\)$/{ 11558 s//\1/ 11559 q 11560 } 11561 /^X\/\(\/\).*/{ 11562 s//\1/ 11563 q 11564 } 11565 s/.*/./; q'` 11566 11567# Avoid depending upon Character Ranges. 11568as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11569as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11570as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11571as_cr_digits='0123456789' 11572as_cr_alnum=$as_cr_Letters$as_cr_digits 11573 11574 11575# Determine whether it's possible to make 'echo' print without a newline. 11576# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11577# for compatibility with existing Makefiles. 11578ECHO_C= ECHO_N= ECHO_T= 11579case `echo -n x` in #((((( 11580-n*) 11581 case `echo 'xy\c'` in 11582 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11583 xy) ECHO_C='\c';; 11584 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11585 ECHO_T=' ';; 11586 esac;; 11587*) 11588 ECHO_N='-n';; 11589esac 11590 11591# For backward compatibility with old third-party macros, we provide 11592# the shell variables $as_echo and $as_echo_n. New code should use 11593# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11594as_echo='printf %s\n' 11595as_echo_n='printf %s' 11596 11597rm -f conf$$ conf$$.exe conf$$.file 11598if test -d conf$$.dir; then 11599 rm -f conf$$.dir/conf$$.file 11600else 11601 rm -f conf$$.dir 11602 mkdir conf$$.dir 2>/dev/null 11603fi 11604if (echo >conf$$.file) 2>/dev/null; then 11605 if ln -s conf$$.file conf$$ 2>/dev/null; then 11606 as_ln_s='ln -s' 11607 # ... but there are two gotchas: 11608 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11609 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11610 # In both cases, we have to default to `cp -pR'. 11611 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11612 as_ln_s='cp -pR' 11613 elif ln conf$$.file conf$$ 2>/dev/null; then 11614 as_ln_s=ln 11615 else 11616 as_ln_s='cp -pR' 11617 fi 11618else 11619 as_ln_s='cp -pR' 11620fi 11621rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11622rmdir conf$$.dir 2>/dev/null 11623 11624 11625# as_fn_mkdir_p 11626# ------------- 11627# Create "$as_dir" as a directory, including parents if necessary. 11628as_fn_mkdir_p () 11629{ 11630 11631 case $as_dir in #( 11632 -*) as_dir=./$as_dir;; 11633 esac 11634 test -d "$as_dir" || eval $as_mkdir_p || { 11635 as_dirs= 11636 while :; do 11637 case $as_dir in #( 11638 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11639 *) as_qdir=$as_dir;; 11640 esac 11641 as_dirs="'$as_qdir' $as_dirs" 11642 as_dir=`$as_dirname -- "$as_dir" || 11643$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11644 X"$as_dir" : 'X\(//\)[^/]' \| \ 11645 X"$as_dir" : 'X\(//\)$' \| \ 11646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11647printf "%s\n" X"$as_dir" | 11648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11649 s//\1/ 11650 q 11651 } 11652 /^X\(\/\/\)[^/].*/{ 11653 s//\1/ 11654 q 11655 } 11656 /^X\(\/\/\)$/{ 11657 s//\1/ 11658 q 11659 } 11660 /^X\(\/\).*/{ 11661 s//\1/ 11662 q 11663 } 11664 s/.*/./; q'` 11665 test -d "$as_dir" && break 11666 done 11667 test -z "$as_dirs" || eval "mkdir $as_dirs" 11668 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11669 11670 11671} # as_fn_mkdir_p 11672if mkdir -p . 2>/dev/null; then 11673 as_mkdir_p='mkdir -p "$as_dir"' 11674else 11675 test -d ./-p && rmdir ./-p 11676 as_mkdir_p=false 11677fi 11678 11679 11680# as_fn_executable_p FILE 11681# ----------------------- 11682# Test if FILE is an executable regular file. 11683as_fn_executable_p () 11684{ 11685 test -f "$1" && test -x "$1" 11686} # as_fn_executable_p 11687as_test_x='test -x' 11688as_executable_p=as_fn_executable_p 11689 11690# Sed expression to map a string onto a valid CPP name. 11691as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11692 11693# Sed expression to map a string onto a valid variable name. 11694as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11695 11696 11697exec 6>&1 11698## ----------------------------------- ## 11699## Main body of $CONFIG_STATUS script. ## 11700## ----------------------------------- ## 11701_ASEOF 11702test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11703 11704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11705# Save the log message, to keep $0 and so on meaningful, and to 11706# report actual input values of CONFIG_FILES etc. instead of their 11707# values after options handling. 11708ac_log=" 11709This file was extended by xcmsdb $as_me 1.0.6, which was 11710generated by GNU Autoconf 2.71. Invocation command line was 11711 11712 CONFIG_FILES = $CONFIG_FILES 11713 CONFIG_HEADERS = $CONFIG_HEADERS 11714 CONFIG_LINKS = $CONFIG_LINKS 11715 CONFIG_COMMANDS = $CONFIG_COMMANDS 11716 $ $0 $@ 11717 11718on `(hostname || uname -n) 2>/dev/null | sed 1q` 11719" 11720 11721_ACEOF 11722 11723case $ac_config_files in *" 11724"*) set x $ac_config_files; shift; ac_config_files=$*;; 11725esac 11726 11727case $ac_config_headers in *" 11728"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11729esac 11730 11731 11732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11733# Files that config.status was made for. 11734config_files="$ac_config_files" 11735config_headers="$ac_config_headers" 11736config_commands="$ac_config_commands" 11737 11738_ACEOF 11739 11740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11741ac_cs_usage="\ 11742\`$as_me' instantiates files and other configuration actions 11743from templates according to the current configuration. Unless the files 11744and actions are specified as TAGs, all are instantiated by default. 11745 11746Usage: $0 [OPTION]... [TAG]... 11747 11748 -h, --help print this help, then exit 11749 -V, --version print version number and configuration settings, then exit 11750 --config print configuration, then exit 11751 -q, --quiet, --silent 11752 do not print progress messages 11753 -d, --debug don't remove temporary files 11754 --recheck update $as_me by reconfiguring in the same conditions 11755 --file=FILE[:TEMPLATE] 11756 instantiate the configuration file FILE 11757 --header=FILE[:TEMPLATE] 11758 instantiate the configuration header FILE 11759 11760Configuration files: 11761$config_files 11762 11763Configuration headers: 11764$config_headers 11765 11766Configuration commands: 11767$config_commands 11768 11769Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcmsdb/issues>." 11770 11771_ACEOF 11772ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11773ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11775ac_cs_config='$ac_cs_config_escaped' 11776ac_cs_version="\\ 11777xcmsdb config.status 1.0.6 11778configured by $0, generated by GNU Autoconf 2.71, 11779 with options \\"\$ac_cs_config\\" 11780 11781Copyright (C) 2021 Free Software Foundation, Inc. 11782This config.status script is free software; the Free Software Foundation 11783gives unlimited permission to copy, distribute and modify it." 11784 11785ac_pwd='$ac_pwd' 11786srcdir='$srcdir' 11787INSTALL='$INSTALL' 11788MKDIR_P='$MKDIR_P' 11789AWK='$AWK' 11790test -n "\$AWK" || AWK=awk 11791_ACEOF 11792 11793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11794# The default lists apply if the user does not specify any file. 11795ac_need_defaults=: 11796while test $# != 0 11797do 11798 case $1 in 11799 --*=?*) 11800 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11801 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11802 ac_shift=: 11803 ;; 11804 --*=) 11805 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11806 ac_optarg= 11807 ac_shift=: 11808 ;; 11809 *) 11810 ac_option=$1 11811 ac_optarg=$2 11812 ac_shift=shift 11813 ;; 11814 esac 11815 11816 case $ac_option in 11817 # Handling of the options. 11818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11819 ac_cs_recheck=: ;; 11820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11821 printf "%s\n" "$ac_cs_version"; exit ;; 11822 --config | --confi | --conf | --con | --co | --c ) 11823 printf "%s\n" "$ac_cs_config"; exit ;; 11824 --debug | --debu | --deb | --de | --d | -d ) 11825 debug=: ;; 11826 --file | --fil | --fi | --f ) 11827 $ac_shift 11828 case $ac_optarg in 11829 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11830 '') as_fn_error $? "missing file argument" ;; 11831 esac 11832 as_fn_append CONFIG_FILES " '$ac_optarg'" 11833 ac_need_defaults=false;; 11834 --header | --heade | --head | --hea ) 11835 $ac_shift 11836 case $ac_optarg in 11837 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11838 esac 11839 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11840 ac_need_defaults=false;; 11841 --he | --h) 11842 # Conflict between --help and --header 11843 as_fn_error $? "ambiguous option: \`$1' 11844Try \`$0 --help' for more information.";; 11845 --help | --hel | -h ) 11846 printf "%s\n" "$ac_cs_usage"; exit ;; 11847 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11848 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11849 ac_cs_silent=: ;; 11850 11851 # This is an error. 11852 -*) as_fn_error $? "unrecognized option: \`$1' 11853Try \`$0 --help' for more information." ;; 11854 11855 *) as_fn_append ac_config_targets " $1" 11856 ac_need_defaults=false ;; 11857 11858 esac 11859 shift 11860done 11861 11862ac_configure_extra_args= 11863 11864if $ac_cs_silent; then 11865 exec 6>/dev/null 11866 ac_configure_extra_args="$ac_configure_extra_args --silent" 11867fi 11868 11869_ACEOF 11870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11871if \$ac_cs_recheck; then 11872 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11873 shift 11874 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11875 CONFIG_SHELL='$SHELL' 11876 export CONFIG_SHELL 11877 exec "\$@" 11878fi 11879 11880_ACEOF 11881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11882exec 5>>config.log 11883{ 11884 echo 11885 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11886## Running $as_me. ## 11887_ASBOX 11888 printf "%s\n" "$ac_log" 11889} >&5 11890 11891_ACEOF 11892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11893# 11894# INIT-COMMANDS 11895# 11896AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11897 11898_ACEOF 11899 11900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11901 11902# Handling of arguments. 11903for ac_config_target in $ac_config_targets 11904do 11905 case $ac_config_target in 11906 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11907 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11908 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11909 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11910 11911 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11912 esac 11913done 11914 11915 11916# If the user did not use the arguments to specify the items to instantiate, 11917# then the envvar interface is used. Set only those that are not. 11918# We use the long form for the default assignment because of an extremely 11919# bizarre bug on SunOS 4.1.3. 11920if $ac_need_defaults; then 11921 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11922 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 11923 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11924fi 11925 11926# Have a temporary directory for convenience. Make it in the build tree 11927# simply because there is no reason against having it here, and in addition, 11928# creating and moving files from /tmp can sometimes cause problems. 11929# Hook for its removal unless debugging. 11930# Note that there is a small window in which the directory will not be cleaned: 11931# after its creation but before its name has been assigned to `$tmp'. 11932$debug || 11933{ 11934 tmp= ac_tmp= 11935 trap 'exit_status=$? 11936 : "${ac_tmp:=$tmp}" 11937 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11938' 0 11939 trap 'as_fn_exit 1' 1 2 13 15 11940} 11941# Create a (secure) tmp directory for tmp files. 11942 11943{ 11944 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11945 test -d "$tmp" 11946} || 11947{ 11948 tmp=./conf$$-$RANDOM 11949 (umask 077 && mkdir "$tmp") 11950} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11951ac_tmp=$tmp 11952 11953# Set up the scripts for CONFIG_FILES section. 11954# No need to generate them if there are no CONFIG_FILES. 11955# This happens for instance with `./config.status config.h'. 11956if test -n "$CONFIG_FILES"; then 11957 11958 11959ac_cr=`echo X | tr X '\015'` 11960# On cygwin, bash can eat \r inside `` if the user requested igncr. 11961# But we know of no other shell where ac_cr would be empty at this 11962# point, so we can use a bashism as a fallback. 11963if test "x$ac_cr" = x; then 11964 eval ac_cr=\$\'\\r\' 11965fi 11966ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11967if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11968 ac_cs_awk_cr='\\r' 11969else 11970 ac_cs_awk_cr=$ac_cr 11971fi 11972 11973echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11974_ACEOF 11975 11976 11977{ 11978 echo "cat >conf$$subs.awk <<_ACEOF" && 11979 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11980 echo "_ACEOF" 11981} >conf$$subs.sh || 11982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11983ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11984ac_delim='%!_!# ' 11985for ac_last_try in false false false false false :; do 11986 . ./conf$$subs.sh || 11987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11988 11989 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11990 if test $ac_delim_n = $ac_delim_num; then 11991 break 11992 elif $ac_last_try; then 11993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11994 else 11995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11996 fi 11997done 11998rm -f conf$$subs.sh 11999 12000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12001cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12002_ACEOF 12003sed -n ' 12004h 12005s/^/S["/; s/!.*/"]=/ 12006p 12007g 12008s/^[^!]*!// 12009:repl 12010t repl 12011s/'"$ac_delim"'$// 12012t delim 12013:nl 12014h 12015s/\(.\{148\}\)..*/\1/ 12016t more1 12017s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12018p 12019n 12020b repl 12021:more1 12022s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12023p 12024g 12025s/.\{148\}// 12026t nl 12027:delim 12028h 12029s/\(.\{148\}\)..*/\1/ 12030t more2 12031s/["\\]/\\&/g; s/^/"/; s/$/"/ 12032p 12033b 12034:more2 12035s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12036p 12037g 12038s/.\{148\}// 12039t delim 12040' <conf$$subs.awk | sed ' 12041/^[^""]/{ 12042 N 12043 s/\n// 12044} 12045' >>$CONFIG_STATUS || ac_write_fail=1 12046rm -f conf$$subs.awk 12047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12048_ACAWK 12049cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12050 for (key in S) S_is_set[key] = 1 12051 FS = "" 12052 12053} 12054{ 12055 line = $ 0 12056 nfields = split(line, field, "@") 12057 substed = 0 12058 len = length(field[1]) 12059 for (i = 2; i < nfields; i++) { 12060 key = field[i] 12061 keylen = length(key) 12062 if (S_is_set[key]) { 12063 value = S[key] 12064 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12065 len += length(value) + length(field[++i]) 12066 substed = 1 12067 } else 12068 len += 1 + keylen 12069 } 12070 12071 print line 12072} 12073 12074_ACAWK 12075_ACEOF 12076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12077if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12078 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12079else 12080 cat 12081fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12082 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12083_ACEOF 12084 12085# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12086# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12087# trailing colons and then remove the whole line if VPATH becomes empty 12088# (actually we leave an empty line to preserve line numbers). 12089if test "x$srcdir" = x.; then 12090 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12091h 12092s/// 12093s/^/:/ 12094s/[ ]*$/:/ 12095s/:\$(srcdir):/:/g 12096s/:\${srcdir}:/:/g 12097s/:@srcdir@:/:/g 12098s/^:*// 12099s/:*$// 12100x 12101s/\(=[ ]*\).*/\1/ 12102G 12103s/\n// 12104s/^[^=]*=[ ]*$// 12105}' 12106fi 12107 12108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12109fi # test -n "$CONFIG_FILES" 12110 12111# Set up the scripts for CONFIG_HEADERS section. 12112# No need to generate them if there are no CONFIG_HEADERS. 12113# This happens for instance with `./config.status Makefile'. 12114if test -n "$CONFIG_HEADERS"; then 12115cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12116BEGIN { 12117_ACEOF 12118 12119# Transform confdefs.h into an awk script `defines.awk', embedded as 12120# here-document in config.status, that substitutes the proper values into 12121# config.h.in to produce config.h. 12122 12123# Create a delimiter string that does not exist in confdefs.h, to ease 12124# handling of long lines. 12125ac_delim='%!_!# ' 12126for ac_last_try in false false :; do 12127 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12128 if test -z "$ac_tt"; then 12129 break 12130 elif $ac_last_try; then 12131 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12132 else 12133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12134 fi 12135done 12136 12137# For the awk script, D is an array of macro values keyed by name, 12138# likewise P contains macro parameters if any. Preserve backslash 12139# newline sequences. 12140 12141ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12142sed -n ' 12143s/.\{148\}/&'"$ac_delim"'/g 12144t rset 12145:rset 12146s/^[ ]*#[ ]*define[ ][ ]*/ / 12147t def 12148d 12149:def 12150s/\\$// 12151t bsnl 12152s/["\\]/\\&/g 12153s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12154D["\1"]=" \3"/p 12155s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12156d 12157:bsnl 12158s/["\\]/\\&/g 12159s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12160D["\1"]=" \3\\\\\\n"\\/p 12161t cont 12162s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12163t cont 12164d 12165:cont 12166n 12167s/.\{148\}/&'"$ac_delim"'/g 12168t clear 12169:clear 12170s/\\$// 12171t bsnlc 12172s/["\\]/\\&/g; s/^/"/; s/$/"/p 12173d 12174:bsnlc 12175s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12176b cont 12177' <confdefs.h | sed ' 12178s/'"$ac_delim"'/"\\\ 12179"/g' >>$CONFIG_STATUS || ac_write_fail=1 12180 12181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12182 for (key in D) D_is_set[key] = 1 12183 FS = "" 12184} 12185/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12186 line = \$ 0 12187 split(line, arg, " ") 12188 if (arg[1] == "#") { 12189 defundef = arg[2] 12190 mac1 = arg[3] 12191 } else { 12192 defundef = substr(arg[1], 2) 12193 mac1 = arg[2] 12194 } 12195 split(mac1, mac2, "(") #) 12196 macro = mac2[1] 12197 prefix = substr(line, 1, index(line, defundef) - 1) 12198 if (D_is_set[macro]) { 12199 # Preserve the white space surrounding the "#". 12200 print prefix "define", macro P[macro] D[macro] 12201 next 12202 } else { 12203 # Replace #undef with comments. This is necessary, for example, 12204 # in the case of _POSIX_SOURCE, which is predefined and required 12205 # on some systems where configure will not decide to define it. 12206 if (defundef == "undef") { 12207 print "/*", prefix defundef, macro, "*/" 12208 next 12209 } 12210 } 12211} 12212{ print } 12213_ACAWK 12214_ACEOF 12215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12216 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12217fi # test -n "$CONFIG_HEADERS" 12218 12219 12220eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12221shift 12222for ac_tag 12223do 12224 case $ac_tag in 12225 :[FHLC]) ac_mode=$ac_tag; continue;; 12226 esac 12227 case $ac_mode$ac_tag in 12228 :[FHL]*:*);; 12229 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12230 :[FH]-) ac_tag=-:-;; 12231 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12232 esac 12233 ac_save_IFS=$IFS 12234 IFS=: 12235 set x $ac_tag 12236 IFS=$ac_save_IFS 12237 shift 12238 ac_file=$1 12239 shift 12240 12241 case $ac_mode in 12242 :L) ac_source=$1;; 12243 :[FH]) 12244 ac_file_inputs= 12245 for ac_f 12246 do 12247 case $ac_f in 12248 -) ac_f="$ac_tmp/stdin";; 12249 *) # Look for the file first in the build tree, then in the source tree 12250 # (if the path is not absolute). The absolute path cannot be DOS-style, 12251 # because $ac_f cannot contain `:'. 12252 test -f "$ac_f" || 12253 case $ac_f in 12254 [\\/$]*) false;; 12255 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12256 esac || 12257 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12258 esac 12259 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12260 as_fn_append ac_file_inputs " '$ac_f'" 12261 done 12262 12263 # Let's still pretend it is `configure' which instantiates (i.e., don't 12264 # use $as_me), people would be surprised to read: 12265 # /* config.h. Generated by config.status. */ 12266 configure_input='Generated from '` 12267 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12268 `' by configure.' 12269 if test x"$ac_file" != x-; then 12270 configure_input="$ac_file. $configure_input" 12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12272printf "%s\n" "$as_me: creating $ac_file" >&6;} 12273 fi 12274 # Neutralize special characters interpreted by sed in replacement strings. 12275 case $configure_input in #( 12276 *\&* | *\|* | *\\* ) 12277 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12278 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12279 *) ac_sed_conf_input=$configure_input;; 12280 esac 12281 12282 case $ac_tag in 12283 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12285 esac 12286 ;; 12287 esac 12288 12289 ac_dir=`$as_dirname -- "$ac_file" || 12290$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12291 X"$ac_file" : 'X\(//\)[^/]' \| \ 12292 X"$ac_file" : 'X\(//\)$' \| \ 12293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12294printf "%s\n" X"$ac_file" | 12295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12296 s//\1/ 12297 q 12298 } 12299 /^X\(\/\/\)[^/].*/{ 12300 s//\1/ 12301 q 12302 } 12303 /^X\(\/\/\)$/{ 12304 s//\1/ 12305 q 12306 } 12307 /^X\(\/\).*/{ 12308 s//\1/ 12309 q 12310 } 12311 s/.*/./; q'` 12312 as_dir="$ac_dir"; as_fn_mkdir_p 12313 ac_builddir=. 12314 12315case "$ac_dir" in 12316.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12317*) 12318 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12319 # A ".." for each directory in $ac_dir_suffix. 12320 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12321 case $ac_top_builddir_sub in 12322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12324 esac ;; 12325esac 12326ac_abs_top_builddir=$ac_pwd 12327ac_abs_builddir=$ac_pwd$ac_dir_suffix 12328# for backward compatibility: 12329ac_top_builddir=$ac_top_build_prefix 12330 12331case $srcdir in 12332 .) # We are building in place. 12333 ac_srcdir=. 12334 ac_top_srcdir=$ac_top_builddir_sub 12335 ac_abs_top_srcdir=$ac_pwd ;; 12336 [\\/]* | ?:[\\/]* ) # Absolute name. 12337 ac_srcdir=$srcdir$ac_dir_suffix; 12338 ac_top_srcdir=$srcdir 12339 ac_abs_top_srcdir=$srcdir ;; 12340 *) # Relative name. 12341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12342 ac_top_srcdir=$ac_top_build_prefix$srcdir 12343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12344esac 12345ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12346 12347 12348 case $ac_mode in 12349 :F) 12350 # 12351 # CONFIG_FILE 12352 # 12353 12354 case $INSTALL in 12355 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12356 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12357 esac 12358 ac_MKDIR_P=$MKDIR_P 12359 case $MKDIR_P in 12360 [\\/$]* | ?:[\\/]* ) ;; 12361 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12362 esac 12363_ACEOF 12364 12365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12366# If the template does not know about datarootdir, expand it. 12367# FIXME: This hack should be removed a few years after 2.60. 12368ac_datarootdir_hack=; ac_datarootdir_seen= 12369ac_sed_dataroot=' 12370/datarootdir/ { 12371 p 12372 q 12373} 12374/@datadir@/p 12375/@docdir@/p 12376/@infodir@/p 12377/@localedir@/p 12378/@mandir@/p' 12379case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12380*datarootdir*) ac_datarootdir_seen=yes;; 12381*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12383printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12384_ACEOF 12385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12386 ac_datarootdir_hack=' 12387 s&@datadir@&$datadir&g 12388 s&@docdir@&$docdir&g 12389 s&@infodir@&$infodir&g 12390 s&@localedir@&$localedir&g 12391 s&@mandir@&$mandir&g 12392 s&\\\${datarootdir}&$datarootdir&g' ;; 12393esac 12394_ACEOF 12395 12396# Neutralize VPATH when `$srcdir' = `.'. 12397# Shell code in configure.ac might set extrasub. 12398# FIXME: do we really want to maintain this feature? 12399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12400ac_sed_extra="$ac_vpsub 12401$extrasub 12402_ACEOF 12403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12404:t 12405/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12406s|@configure_input@|$ac_sed_conf_input|;t t 12407s&@top_builddir@&$ac_top_builddir_sub&;t t 12408s&@top_build_prefix@&$ac_top_build_prefix&;t t 12409s&@srcdir@&$ac_srcdir&;t t 12410s&@abs_srcdir@&$ac_abs_srcdir&;t t 12411s&@top_srcdir@&$ac_top_srcdir&;t t 12412s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12413s&@builddir@&$ac_builddir&;t t 12414s&@abs_builddir@&$ac_abs_builddir&;t t 12415s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12416s&@INSTALL@&$ac_INSTALL&;t t 12417s&@MKDIR_P@&$ac_MKDIR_P&;t t 12418$ac_datarootdir_hack 12419" 12420eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12421 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12422 12423test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12424 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12425 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12426 "$ac_tmp/out"`; test -z "$ac_out"; } && 12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12428which seems to be undefined. Please make sure it is defined" >&5 12429printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12430which seems to be undefined. Please make sure it is defined" >&2;} 12431 12432 rm -f "$ac_tmp/stdin" 12433 case $ac_file in 12434 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12435 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12436 esac \ 12437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12438 ;; 12439 :H) 12440 # 12441 # CONFIG_HEADER 12442 # 12443 if test x"$ac_file" != x-; then 12444 { 12445 printf "%s\n" "/* $configure_input */" >&1 \ 12446 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12447 } >"$ac_tmp/config.h" \ 12448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12449 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12451printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12452 else 12453 rm -f "$ac_file" 12454 mv "$ac_tmp/config.h" "$ac_file" \ 12455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12456 fi 12457 else 12458 printf "%s\n" "/* $configure_input */" >&1 \ 12459 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12460 || as_fn_error $? "could not create -" "$LINENO" 5 12461 fi 12462# Compute "$ac_file"'s index in $config_headers. 12463_am_arg="$ac_file" 12464_am_stamp_count=1 12465for _am_header in $config_headers :; do 12466 case $_am_header in 12467 $_am_arg | $_am_arg:* ) 12468 break ;; 12469 * ) 12470 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12471 esac 12472done 12473echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12474$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12475 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12476 X"$_am_arg" : 'X\(//\)$' \| \ 12477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12478printf "%s\n" X"$_am_arg" | 12479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12480 s//\1/ 12481 q 12482 } 12483 /^X\(\/\/\)[^/].*/{ 12484 s//\1/ 12485 q 12486 } 12487 /^X\(\/\/\)$/{ 12488 s//\1/ 12489 q 12490 } 12491 /^X\(\/\).*/{ 12492 s//\1/ 12493 q 12494 } 12495 s/.*/./; q'`/stamp-h$_am_stamp_count 12496 ;; 12497 12498 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12499printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12500 ;; 12501 esac 12502 12503 12504 case $ac_file$ac_mode in 12505 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12506 # Older Autoconf quotes --file arguments for eval, but not when files 12507 # are listed without --file. Let's play safe and only enable the eval 12508 # if we detect the quoting. 12509 # TODO: see whether this extra hack can be removed once we start 12510 # requiring Autoconf 2.70 or later. 12511 case $CONFIG_FILES in #( 12512 *\'*) : 12513 eval set x "$CONFIG_FILES" ;; #( 12514 *) : 12515 set x $CONFIG_FILES ;; #( 12516 *) : 12517 ;; 12518esac 12519 shift 12520 # Used to flag and report bootstrapping failures. 12521 am_rc=0 12522 for am_mf 12523 do 12524 # Strip MF so we end up with the name of the file. 12525 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12526 # Check whether this is an Automake generated Makefile which includes 12527 # dependency-tracking related rules and includes. 12528 # Grep'ing the whole file directly is not great: AIX grep has a line 12529 # limit of 2048, but all sed's we know have understand at least 4000. 12530 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12531 || continue 12532 am_dirpart=`$as_dirname -- "$am_mf" || 12533$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12534 X"$am_mf" : 'X\(//\)[^/]' \| \ 12535 X"$am_mf" : 'X\(//\)$' \| \ 12536 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12537printf "%s\n" X"$am_mf" | 12538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12539 s//\1/ 12540 q 12541 } 12542 /^X\(\/\/\)[^/].*/{ 12543 s//\1/ 12544 q 12545 } 12546 /^X\(\/\/\)$/{ 12547 s//\1/ 12548 q 12549 } 12550 /^X\(\/\).*/{ 12551 s//\1/ 12552 q 12553 } 12554 s/.*/./; q'` 12555 am_filepart=`$as_basename -- "$am_mf" || 12556$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12557 X"$am_mf" : 'X\(//\)$' \| \ 12558 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12559printf "%s\n" X/"$am_mf" | 12560 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12561 s//\1/ 12562 q 12563 } 12564 /^X\/\(\/\/\)$/{ 12565 s//\1/ 12566 q 12567 } 12568 /^X\/\(\/\).*/{ 12569 s//\1/ 12570 q 12571 } 12572 s/.*/./; q'` 12573 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12574 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12575 | $MAKE -f - am--depfiles" >&5 12576 (cd "$am_dirpart" \ 12577 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12578 | $MAKE -f - am--depfiles) >&5 2>&5 12579 ac_status=$? 12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12581 (exit $ac_status); } || am_rc=$? 12582 done 12583 if test $am_rc -ne 0; then 12584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12585printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12586as_fn_error $? "Something went wrong bootstrapping makefile fragments 12587 for automatic dependency tracking. If GNU make was not used, consider 12588 re-running the configure script with MAKE=\"gmake\" (or whatever is 12589 necessary). You can also try re-running configure with the 12590 '--disable-dependency-tracking' option to at least be able to build 12591 the package (albeit without support for automatic dependency tracking). 12592See \`config.log' for more details" "$LINENO" 5; } 12593 fi 12594 { am_dirpart=; unset am_dirpart;} 12595 { am_filepart=; unset am_filepart;} 12596 { am_mf=; unset am_mf;} 12597 { am_rc=; unset am_rc;} 12598 rm -f conftest-deps.mk 12599} 12600 ;; 12601 12602 esac 12603done # for ac_tag 12604 12605 12606as_fn_exit 0 12607_ACEOF 12608ac_clean_files=$ac_clean_files_save 12609 12610test $ac_write_fail = 0 || 12611 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12612 12613 12614# configure is writing to config.log, and then calls config.status. 12615# config.status does its own redirection, appending to config.log. 12616# Unfortunately, on DOS this fails, as config.log is still kept open 12617# by configure, so config.status won't be able to write to it; its 12618# output is simply discarded. So we exec the FD to /dev/null, 12619# effectively closing config.log, so it can be properly (re)opened and 12620# appended to by config.status. When coming back to configure, we 12621# need to make the FD available again. 12622if test "$no_create" != yes; then 12623 ac_cs_success=: 12624 ac_config_status_args= 12625 test "$silent" = yes && 12626 ac_config_status_args="$ac_config_status_args --quiet" 12627 exec 5>/dev/null 12628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12629 exec 5>>config.log 12630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12631 # would make configure fail if this is the last instruction. 12632 $ac_cs_success || as_fn_exit 1 12633fi 12634if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12636printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12637fi 12638 12639 12640