1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xmore 1.0.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmore/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/xmore/-/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='xmore' 607PACKAGE_TARNAME='xmore' 608PACKAGE_VERSION='1.0.4' 609PACKAGE_STRING='xmore 1.0.4' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmore/-/issues' 611PACKAGE_URL='' 612 613# Factoring default headers for most tests. 614ac_includes_default="\ 615#include <stddef.h> 616#ifdef HAVE_STDIO_H 617# include <stdio.h> 618#endif 619#ifdef HAVE_STDLIB_H 620# include <stdlib.h> 621#endif 622#ifdef HAVE_STRING_H 623# include <string.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_STRINGS_H 632# include <strings.h> 633#endif 634#ifdef HAVE_SYS_TYPES_H 635# include <sys/types.h> 636#endif 637#ifdef HAVE_SYS_STAT_H 638# include <sys/stat.h> 639#endif 640#ifdef HAVE_UNISTD_H 641# include <unistd.h> 642#endif" 643 644ac_header_c_list= 645ac_subst_vars='am__EXEEXT_FALSE 646am__EXEEXT_TRUE 647LTLIBOBJS 648LIBOBJS 649appdefaultdir 650APPDEFS_LIBS 651APPDEFS_CFLAGS 652XMORE_LIBS 653XMORE_CFLAGS 654MAN_SUBSTS 655XORG_MAN_PAGE 656ADMIN_MAN_DIR 657DRIVER_MAN_DIR 658MISC_MAN_DIR 659FILE_MAN_DIR 660LIB_MAN_DIR 661APP_MAN_DIR 662ADMIN_MAN_SUFFIX 663DRIVER_MAN_SUFFIX 664MISC_MAN_SUFFIX 665FILE_MAN_SUFFIX 666LIB_MAN_SUFFIX 667APP_MAN_SUFFIX 668SED 669host_os 670host_vendor 671host_cpu 672host 673build_os 674build_vendor 675build_cpu 676build 677INSTALL_CMD 678PKG_CONFIG_LIBDIR 679PKG_CONFIG_PATH 680PKG_CONFIG 681CHANGELOG_CMD 682STRICT_CFLAGS 683CWARNFLAGS 684BASE_CFLAGS 685am__fastdepCC_FALSE 686am__fastdepCC_TRUE 687CCDEPMODE 688am__nodep 689AMDEPBACKSLASH 690AMDEP_FALSE 691AMDEP_TRUE 692am__include 693DEPDIR 694OBJEXT 695EXEEXT 696ac_ct_CC 697CPPFLAGS 698LDFLAGS 699CFLAGS 700CC 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705CSCOPE 706ETAGS 707CTAGS 708am__untar 709am__tar 710AMTAR 711am__leading_dot 712SET_MAKE 713AWK 714mkdir_p 715MKDIR_P 716INSTALL_STRIP_PROGRAM 717STRIP 718install_sh 719MAKEINFO 720AUTOHEADER 721AUTOMAKE 722AUTOCONF 723ACLOCAL 724VERSION 725PACKAGE 726CYGPATH_W 727am__isrc 728INSTALL_DATA 729INSTALL_SCRIPT 730INSTALL_PROGRAM 731target_alias 732host_alias 733build_alias 734LIBS 735ECHO_T 736ECHO_N 737ECHO_C 738DEFS 739mandir 740localedir 741libdir 742psdir 743pdfdir 744dvidir 745htmldir 746infodir 747docdir 748oldincludedir 749includedir 750runstatedir 751localstatedir 752sharedstatedir 753sysconfdir 754datadir 755datarootdir 756libexecdir 757sbindir 758bindir 759program_transform_name 760prefix 761exec_prefix 762PACKAGE_URL 763PACKAGE_BUGREPORT 764PACKAGE_STRING 765PACKAGE_VERSION 766PACKAGE_TARNAME 767PACKAGE_NAME 768PATH_SEPARATOR 769SHELL 770am__quote' 771ac_subst_files='' 772ac_user_opts=' 773enable_option_checking 774enable_silent_rules 775enable_dependency_tracking 776enable_selective_werror 777enable_strict_compilation 778with_appdefaultdir 779' 780 ac_precious_vars='build_alias 781host_alias 782target_alias 783CC 784CFLAGS 785LDFLAGS 786LIBS 787CPPFLAGS 788PKG_CONFIG 789PKG_CONFIG_PATH 790PKG_CONFIG_LIBDIR 791XMORE_CFLAGS 792XMORE_LIBS 793APPDEFS_CFLAGS 794APPDEFS_LIBS' 795 796 797# Initialize some variables set by options. 798ac_init_help= 799ac_init_version=false 800ac_unrecognized_opts= 801ac_unrecognized_sep= 802# The variables have the same names as the options, with 803# dashes changed to underlines. 804cache_file=/dev/null 805exec_prefix=NONE 806no_create= 807no_recursion= 808prefix=NONE 809program_prefix=NONE 810program_suffix=NONE 811program_transform_name=s,x,x, 812silent= 813site= 814srcdir= 815verbose= 816x_includes=NONE 817x_libraries=NONE 818 819# Installation directory options. 820# These are left unexpanded so users can "make install exec_prefix=/foo" 821# and all the variables that are supposed to be based on exec_prefix 822# by default will actually change. 823# Use braces instead of parens because sh, perl, etc. also accept them. 824# (The list follows the same order as the GNU Coding Standards.) 825bindir='${exec_prefix}/bin' 826sbindir='${exec_prefix}/sbin' 827libexecdir='${exec_prefix}/libexec' 828datarootdir='${prefix}/share' 829datadir='${datarootdir}' 830sysconfdir='${prefix}/etc' 831sharedstatedir='${prefix}/com' 832localstatedir='${prefix}/var' 833runstatedir='${localstatedir}/run' 834includedir='${prefix}/include' 835oldincludedir='/usr/include' 836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 837infodir='${datarootdir}/info' 838htmldir='${docdir}' 839dvidir='${docdir}' 840pdfdir='${docdir}' 841psdir='${docdir}' 842libdir='${exec_prefix}/lib' 843localedir='${datarootdir}/locale' 844mandir='${datarootdir}/man' 845 846ac_prev= 847ac_dashdash= 848for ac_option 849do 850 # If the previous option needs an argument, assign it. 851 if test -n "$ac_prev"; then 852 eval $ac_prev=\$ac_option 853 ac_prev= 854 continue 855 fi 856 857 case $ac_option in 858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 859 *=) ac_optarg= ;; 860 *) ac_optarg=yes ;; 861 esac 862 863 case $ac_dashdash$ac_option in 864 --) 865 ac_dashdash=yes ;; 866 867 -bindir | --bindir | --bindi | --bind | --bin | --bi) 868 ac_prev=bindir ;; 869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 870 bindir=$ac_optarg ;; 871 872 -build | --build | --buil | --bui | --bu) 873 ac_prev=build_alias ;; 874 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 875 build_alias=$ac_optarg ;; 876 877 -cache-file | --cache-file | --cache-fil | --cache-fi \ 878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 879 ac_prev=cache_file ;; 880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 882 cache_file=$ac_optarg ;; 883 884 --config-cache | -C) 885 cache_file=config.cache ;; 886 887 -datadir | --datadir | --datadi | --datad) 888 ac_prev=datadir ;; 889 -datadir=* | --datadir=* | --datadi=* | --datad=*) 890 datadir=$ac_optarg ;; 891 892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 893 | --dataroo | --dataro | --datar) 894 ac_prev=datarootdir ;; 895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 897 datarootdir=$ac_optarg ;; 898 899 -disable-* | --disable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: '$ac_useropt'" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908"enable_$ac_useropt" 909"*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=no ;; 914 915 -docdir | --docdir | --docdi | --doc | --do) 916 ac_prev=docdir ;; 917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 918 docdir=$ac_optarg ;; 919 920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 921 ac_prev=dvidir ;; 922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 923 dvidir=$ac_optarg ;; 924 925 -enable-* | --enable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: '$ac_useropt'" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934"enable_$ac_useropt" 935"*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=\$ac_optarg ;; 940 941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 943 | --exec | --exe | --ex) 944 ac_prev=exec_prefix ;; 945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 947 | --exec=* | --exe=* | --ex=*) 948 exec_prefix=$ac_optarg ;; 949 950 -gas | --gas | --ga | --g) 951 # Obsolete; use --with-gas. 952 with_gas=yes ;; 953 954 -help | --help | --hel | --he | -h) 955 ac_init_help=long ;; 956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 957 ac_init_help=recursive ;; 958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 959 ac_init_help=short ;; 960 961 -host | --host | --hos | --ho) 962 ac_prev=host_alias ;; 963 -host=* | --host=* | --hos=* | --ho=*) 964 host_alias=$ac_optarg ;; 965 966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 967 ac_prev=htmldir ;; 968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 969 | --ht=*) 970 htmldir=$ac_optarg ;; 971 972 -includedir | --includedir | --includedi | --included | --include \ 973 | --includ | --inclu | --incl | --inc) 974 ac_prev=includedir ;; 975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 976 | --includ=* | --inclu=* | --incl=* | --inc=*) 977 includedir=$ac_optarg ;; 978 979 -infodir | --infodir | --infodi | --infod | --info | --inf) 980 ac_prev=infodir ;; 981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 982 infodir=$ac_optarg ;; 983 984 -libdir | --libdir | --libdi | --libd) 985 ac_prev=libdir ;; 986 -libdir=* | --libdir=* | --libdi=* | --libd=*) 987 libdir=$ac_optarg ;; 988 989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 990 | --libexe | --libex | --libe) 991 ac_prev=libexecdir ;; 992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 993 | --libexe=* | --libex=* | --libe=*) 994 libexecdir=$ac_optarg ;; 995 996 -localedir | --localedir | --localedi | --localed | --locale) 997 ac_prev=localedir ;; 998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 999 localedir=$ac_optarg ;; 1000 1001 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1002 | --localstate | --localstat | --localsta | --localst | --locals) 1003 ac_prev=localstatedir ;; 1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1006 localstatedir=$ac_optarg ;; 1007 1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1009 ac_prev=mandir ;; 1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1011 mandir=$ac_optarg ;; 1012 1013 -nfp | --nfp | --nf) 1014 # Obsolete; use --without-fp. 1015 with_fp=no ;; 1016 1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1018 | --no-cr | --no-c | -n) 1019 no_create=yes ;; 1020 1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1023 no_recursion=yes ;; 1024 1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1027 | --oldin | --oldi | --old | --ol | --o) 1028 ac_prev=oldincludedir ;; 1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1032 oldincludedir=$ac_optarg ;; 1033 1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1035 ac_prev=prefix ;; 1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1037 prefix=$ac_optarg ;; 1038 1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1040 | --program-pre | --program-pr | --program-p) 1041 ac_prev=program_prefix ;; 1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1044 program_prefix=$ac_optarg ;; 1045 1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1047 | --program-suf | --program-su | --program-s) 1048 ac_prev=program_suffix ;; 1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1051 program_suffix=$ac_optarg ;; 1052 1053 -program-transform-name | --program-transform-name \ 1054 | --program-transform-nam | --program-transform-na \ 1055 | --program-transform-n | --program-transform- \ 1056 | --program-transform | --program-transfor \ 1057 | --program-transfo | --program-transf \ 1058 | --program-trans | --program-tran \ 1059 | --progr-tra | --program-tr | --program-t) 1060 ac_prev=program_transform_name ;; 1061 -program-transform-name=* | --program-transform-name=* \ 1062 | --program-transform-nam=* | --program-transform-na=* \ 1063 | --program-transform-n=* | --program-transform-=* \ 1064 | --program-transform=* | --program-transfor=* \ 1065 | --program-transfo=* | --program-transf=* \ 1066 | --program-trans=* | --program-tran=* \ 1067 | --progr-tra=* | --program-tr=* | --program-t=*) 1068 program_transform_name=$ac_optarg ;; 1069 1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1071 ac_prev=pdfdir ;; 1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1073 pdfdir=$ac_optarg ;; 1074 1075 -psdir | --psdir | --psdi | --psd | --ps) 1076 ac_prev=psdir ;; 1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1078 psdir=$ac_optarg ;; 1079 1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1081 | -silent | --silent | --silen | --sile | --sil) 1082 silent=yes ;; 1083 1084 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1085 | --runstate | --runstat | --runsta | --runst | --runs \ 1086 | --run | --ru | --r) 1087 ac_prev=runstatedir ;; 1088 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1089 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1090 | --run=* | --ru=* | --r=*) 1091 runstatedir=$ac_optarg ;; 1092 1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1094 ac_prev=sbindir ;; 1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1096 | --sbi=* | --sb=*) 1097 sbindir=$ac_optarg ;; 1098 1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1101 | --sharedst | --shareds | --shared | --share | --shar \ 1102 | --sha | --sh) 1103 ac_prev=sharedstatedir ;; 1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1107 | --sha=* | --sh=*) 1108 sharedstatedir=$ac_optarg ;; 1109 1110 -site | --site | --sit) 1111 ac_prev=site ;; 1112 -site=* | --site=* | --sit=*) 1113 site=$ac_optarg ;; 1114 1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1116 ac_prev=srcdir ;; 1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1118 srcdir=$ac_optarg ;; 1119 1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1121 | --syscon | --sysco | --sysc | --sys | --sy) 1122 ac_prev=sysconfdir ;; 1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1125 sysconfdir=$ac_optarg ;; 1126 1127 -target | --target | --targe | --targ | --tar | --ta | --t) 1128 ac_prev=target_alias ;; 1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1130 target_alias=$ac_optarg ;; 1131 1132 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1133 verbose=yes ;; 1134 1135 -version | --version | --versio | --versi | --vers | -V) 1136 ac_init_version=: ;; 1137 1138 -with-* | --with-*) 1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1140 # Reject names that are not valid shell variable names. 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1142 as_fn_error $? "invalid package name: '$ac_useropt'" 1143 ac_useropt_orig=$ac_useropt 1144 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1145 case $ac_user_opts in 1146 *" 1147"with_$ac_useropt" 1148"*) ;; 1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1150 ac_unrecognized_sep=', ';; 1151 esac 1152 eval with_$ac_useropt=\$ac_optarg ;; 1153 1154 -without-* | --without-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid package name: '$ac_useropt'" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163"with_$ac_useropt" 1164"*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval with_$ac_useropt=no ;; 1169 1170 --x) 1171 # Obsolete; use --with-x. 1172 with_x=yes ;; 1173 1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1175 | --x-incl | --x-inc | --x-in | --x-i) 1176 ac_prev=x_includes ;; 1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1179 x_includes=$ac_optarg ;; 1180 1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1183 ac_prev=x_libraries ;; 1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1186 x_libraries=$ac_optarg ;; 1187 1188 -*) as_fn_error $? "unrecognized option: '$ac_option' 1189Try '$0 --help' for more information" 1190 ;; 1191 1192 *=*) 1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1194 # Reject names that are not valid shell variable names. 1195 case $ac_envvar in #( 1196 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1197 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1198 esac 1199 eval $ac_envvar=\$ac_optarg 1200 export $ac_envvar ;; 1201 1202 *) 1203 # FIXME: should be removed in autoconf 3.0. 1204 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1206 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1208 ;; 1209 1210 esac 1211done 1212 1213if test -n "$ac_prev"; then 1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1215 as_fn_error $? "missing argument to $ac_option" 1216fi 1217 1218if test -n "$ac_unrecognized_opts"; then 1219 case $enable_option_checking in 1220 no) ;; 1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1222 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1223 esac 1224fi 1225 1226# Check all directory arguments for consistency. 1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1228 datadir sysconfdir sharedstatedir localstatedir includedir \ 1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1230 libdir localedir mandir runstatedir 1231do 1232 eval ac_val=\$$ac_var 1233 # Remove trailing slashes. 1234 case $ac_val in 1235 */ ) 1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1237 eval $ac_var=\$ac_val;; 1238 esac 1239 # Be sure to have absolute directory names. 1240 case $ac_val in 1241 [\\/$]* | ?:[\\/]* ) continue;; 1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1243 esac 1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1245done 1246 1247# There might be people who depend on the old broken behavior: '$host' 1248# used to hold the argument of --host etc. 1249# FIXME: To remove some day. 1250build=$build_alias 1251host=$host_alias 1252target=$target_alias 1253 1254# FIXME: To remove some day. 1255if test "x$host_alias" != x; then 1256 if test "x$build_alias" = x; then 1257 cross_compiling=maybe 1258 elif test "x$build_alias" != "x$host_alias"; then 1259 cross_compiling=yes 1260 fi 1261fi 1262 1263ac_tool_prefix= 1264test -n "$host_alias" && ac_tool_prefix=$host_alias- 1265 1266test "$silent" = yes && exec 6>/dev/null 1267 1268 1269ac_pwd=`pwd` && test -n "$ac_pwd" && 1270ac_ls_di=`ls -di .` && 1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1272 as_fn_error $? "working directory cannot be determined" 1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1274 as_fn_error $? "pwd does not report name of working directory" 1275 1276 1277# Find the source files, if location was not specified. 1278if test -z "$srcdir"; then 1279 ac_srcdir_defaulted=yes 1280 # Try the directory containing this script, then the parent directory. 1281 ac_confdir=`$as_dirname -- "$as_myself" || 1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1283 X"$as_myself" : 'X\(//\)[^/]' \| \ 1284 X"$as_myself" : 'X\(//\)$' \| \ 1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1286printf "%s\n" X"$as_myself" | 1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)[^/].*/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\).*/{ 1300 s//\1/ 1301 q 1302 } 1303 s/.*/./; q'` 1304 srcdir=$ac_confdir 1305 if test ! -r "$srcdir/$ac_unique_file"; then 1306 srcdir=.. 1307 fi 1308else 1309 ac_srcdir_defaulted=no 1310fi 1311if test ! -r "$srcdir/$ac_unique_file"; then 1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1314fi 1315ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1316ac_abs_confdir=`( 1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1318 pwd)` 1319# When building in place, set srcdir=. 1320if test "$ac_abs_confdir" = "$ac_pwd"; then 1321 srcdir=. 1322fi 1323# Remove unnecessary trailing slashes from srcdir. 1324# Double slashes in file names in object file debugging info 1325# mess up M-x gdb in Emacs. 1326case $srcdir in 1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1328esac 1329for ac_var in $ac_precious_vars; do 1330 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_env_${ac_var}_value=\$${ac_var} 1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1334done 1335 1336# 1337# Report the --help message. 1338# 1339if test "$ac_init_help" = "long"; then 1340 # Omit some internal or obsolete options to make the list less imposing. 1341 # This message is too long to be a string in the A/UX 3.1 sh. 1342 cat <<_ACEOF 1343'configure' configures xmore 1.0.4 to adapt to many kinds of systems. 1344 1345Usage: $0 [OPTION]... [VAR=VALUE]... 1346 1347To assign environment variables (e.g., CC, CFLAGS...), specify them as 1348VAR=VALUE. See below for descriptions of some of the useful variables. 1349 1350Defaults for the options are specified in brackets. 1351 1352Configuration: 1353 -h, --help display this help and exit 1354 --help=short display options specific to this package 1355 --help=recursive display the short help of all the included packages 1356 -V, --version display version information and exit 1357 -q, --quiet, --silent do not print 'checking ...' messages 1358 --cache-file=FILE cache test results in FILE [disabled] 1359 -C, --config-cache alias for '--cache-file=config.cache' 1360 -n, --no-create do not create output files 1361 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1362 1363Installation directories: 1364 --prefix=PREFIX install architecture-independent files in PREFIX 1365 [$ac_default_prefix] 1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1367 [PREFIX] 1368 1369By default, 'make install' will install all the files in 1370'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1371an installation prefix other than '$ac_default_prefix' using '--prefix', 1372for instance '--prefix=\$HOME'. 1373 1374For better control, use the options below. 1375 1376Fine tuning of the installation directories: 1377 --bindir=DIR user executables [EPREFIX/bin] 1378 --sbindir=DIR system admin executables [EPREFIX/sbin] 1379 --libexecdir=DIR program executables [EPREFIX/libexec] 1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1383 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1384 --libdir=DIR object code libraries [EPREFIX/lib] 1385 --includedir=DIR C header files [PREFIX/include] 1386 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1389 --infodir=DIR info documentation [DATAROOTDIR/info] 1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1391 --mandir=DIR man documentation [DATAROOTDIR/man] 1392 --docdir=DIR documentation root [DATAROOTDIR/doc/xmore] 1393 --htmldir=DIR html documentation [DOCDIR] 1394 --dvidir=DIR dvi documentation [DOCDIR] 1395 --pdfdir=DIR pdf documentation [DOCDIR] 1396 --psdir=DIR ps documentation [DOCDIR] 1397_ACEOF 1398 1399 cat <<\_ACEOF 1400 1401Program names: 1402 --program-prefix=PREFIX prepend PREFIX to installed program names 1403 --program-suffix=SUFFIX append SUFFIX to installed program names 1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1405 1406System types: 1407 --build=BUILD configure for building on BUILD [guessed] 1408 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1409_ACEOF 1410fi 1411 1412if test -n "$ac_init_help"; then 1413 case $ac_init_help in 1414 short | recursive ) echo "Configuration of xmore 1.0.4:";; 1415 esac 1416 cat <<\_ACEOF 1417 1418Optional Features: 1419 --disable-option-checking ignore unrecognized --enable/--with options 1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1422 --enable-silent-rules less verbose build output (undo: "make V=1") 1423 --disable-silent-rules verbose build output (undo: "make V=0") 1424 --enable-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --disable-selective-werror 1429 Turn off selective compiler errors. (default: 1430 enabled) 1431 --enable-strict-compilation 1432 Enable all warnings from compiler and make them 1433 errors (default: disabled) 1434 1435Optional Packages: 1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1438 --with-appdefaultdir=<pathname> 1439 specify directory for app-defaults files (default is 1440 autodetected) 1441 1442Some influential environment variables: 1443 CC C compiler command 1444 CFLAGS C compiler flags 1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1446 nonstandard directory <lib dir> 1447 LIBS libraries to pass to the linker, e.g. -l<library> 1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1449 you have headers in a nonstandard directory <include dir> 1450 PKG_CONFIG path to pkg-config utility 1451 PKG_CONFIG_PATH 1452 directories to add to pkg-config's search path 1453 PKG_CONFIG_LIBDIR 1454 path overriding pkg-config's built-in search path 1455 XMORE_CFLAGS 1456 C compiler flags for XMORE, overriding pkg-config 1457 XMORE_LIBS linker flags for XMORE, overriding pkg-config 1458 APPDEFS_CFLAGS 1459 C compiler flags for APPDEFS, overriding pkg-config 1460 APPDEFS_LIBS 1461 linker flags for APPDEFS, overriding pkg-config 1462 1463Use these variables to override the choices made by 'configure' or to help 1464it to find libraries and programs with nonstandard names/locations. 1465 1466Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmore/-/issues>. 1467_ACEOF 1468ac_status=$? 1469fi 1470 1471if test "$ac_init_help" = "recursive"; then 1472 # If there are subdirs, report their specific --help. 1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1474 test -d "$ac_dir" || 1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1476 continue 1477 ac_builddir=. 1478 1479case "$ac_dir" in 1480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1481*) 1482 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1483 # A ".." for each directory in $ac_dir_suffix. 1484 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1485 case $ac_top_builddir_sub in 1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1488 esac ;; 1489esac 1490ac_abs_top_builddir=$ac_pwd 1491ac_abs_builddir=$ac_pwd$ac_dir_suffix 1492# for backward compatibility: 1493ac_top_builddir=$ac_top_build_prefix 1494 1495case $srcdir in 1496 .) # We are building in place. 1497 ac_srcdir=. 1498 ac_top_srcdir=$ac_top_builddir_sub 1499 ac_abs_top_srcdir=$ac_pwd ;; 1500 [\\/]* | ?:[\\/]* ) # Absolute name. 1501 ac_srcdir=$srcdir$ac_dir_suffix; 1502 ac_top_srcdir=$srcdir 1503 ac_abs_top_srcdir=$srcdir ;; 1504 *) # Relative name. 1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1506 ac_top_srcdir=$ac_top_build_prefix$srcdir 1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1508esac 1509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1510 1511 cd "$ac_dir" || { ac_status=$?; continue; } 1512 # Check for configure.gnu first; this name is used for a wrapper for 1513 # Metaconfig's "Configure" on case-insensitive file systems. 1514 if test -f "$ac_srcdir/configure.gnu"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 elif test -f "$ac_srcdir/configure"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure" --help=recursive 1520 else 1521 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 fi || ac_status=$? 1523 cd "$ac_pwd" || { ac_status=$?; break; } 1524 done 1525fi 1526 1527test -n "$ac_init_help" && exit $ac_status 1528if $ac_init_version; then 1529 cat <<\_ACEOF 1530xmore configure 1.0.4 1531generated by GNU Autoconf 2.72 1532 1533Copyright (C) 2023 Free Software Foundation, Inc. 1534This configure script is free software; the Free Software Foundation 1535gives unlimited permission to copy, distribute and modify it. 1536_ACEOF 1537 exit 1538fi 1539 1540## ------------------------ ## 1541## Autoconf initialization. ## 1542## ------------------------ ## 1543 1544# ac_fn_c_try_compile LINENO 1545# -------------------------- 1546# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547ac_fn_c_try_compile () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 rm -f conftest.$ac_objext conftest.beam 1551 if { { ac_try="$ac_compile" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557printf "%s\n" "$ac_try_echo"; } >&5 1558 (eval "$ac_compile") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } && { 1567 test -z "$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 } && test -s conftest.$ac_objext 1570then : 1571 ac_retval=0 1572else case e in #( 1573 e) printf "%s\n" "$as_me: failed program was:" >&5 1574sed 's/^/| /' conftest.$ac_ext >&5 1575 1576 ac_retval=1 ;; 1577esac 1578fi 1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1580 as_fn_set_status $ac_retval 1581 1582} # ac_fn_c_try_compile 1583 1584# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1585# ------------------------------------------------------------------ 1586# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1587# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1588ac_fn_check_decl () 1589{ 1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1591 as_decl_name=`echo $2|sed 's/ *(.*//'` 1592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1593printf %s "checking whether $as_decl_name is declared... " >&6; } 1594if eval test \${$3+y} 1595then : 1596 printf %s "(cached) " >&6 1597else case e in #( 1598 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1599 eval ac_save_FLAGS=\$$6 1600 as_fn_append $6 " $5" 1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1602/* end confdefs.h. */ 1603$4 1604int 1605main (void) 1606{ 1607#ifndef $as_decl_name 1608#ifdef __cplusplus 1609 (void) $as_decl_use; 1610#else 1611 (void) $as_decl_name; 1612#endif 1613#endif 1614 1615 ; 1616 return 0; 1617} 1618_ACEOF 1619if ac_fn_c_try_compile "$LINENO" 1620then : 1621 eval "$3=yes" 1622else case e in #( 1623 e) eval "$3=no" ;; 1624esac 1625fi 1626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1627 eval $6=\$ac_save_FLAGS 1628 ;; 1629esac 1630fi 1631eval ac_res=\$$3 1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1633printf "%s\n" "$ac_res" >&6; } 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 1636} # ac_fn_check_decl 1637 1638# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1639# ------------------------------------------------------- 1640# Tests whether HEADER exists and can be compiled using the include files in 1641# INCLUDES, setting the cache variable VAR accordingly. 1642ac_fn_c_check_header_compile () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1646printf %s "checking for $2... " >&6; } 1647if eval test \${$3+y} 1648then : 1649 printf %s "(cached) " >&6 1650else case e in #( 1651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1652/* end confdefs.h. */ 1653$4 1654#include <$2> 1655_ACEOF 1656if ac_fn_c_try_compile "$LINENO" 1657then : 1658 eval "$3=yes" 1659else case e in #( 1660 e) eval "$3=no" ;; 1661esac 1662fi 1663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1664esac 1665fi 1666eval ac_res=\$$3 1667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1668printf "%s\n" "$ac_res" >&6; } 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 1671} # ac_fn_c_check_header_compile 1672 1673# ac_fn_c_try_link LINENO 1674# ----------------------- 1675# Try to link conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_c_try_link () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1680 if { { ac_try="$ac_link" 1681case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686printf "%s\n" "$ac_try_echo"; } >&5 1687 (eval "$ac_link") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { 1696 test -z "$ac_c_werror_flag" || 1697 test ! -s conftest.err 1698 } && test -s conftest$ac_exeext && { 1699 test "$cross_compiling" = yes || 1700 test -x conftest$ac_exeext 1701 } 1702then : 1703 ac_retval=0 1704else case e in #( 1705 e) printf "%s\n" "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 ;; 1709esac 1710fi 1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1713 # interfere with the next link command; also delete a directory that is 1714 # left behind by Apple's compiler. We do this before executing the actions. 1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 as_fn_set_status $ac_retval 1718 1719} # ac_fn_c_try_link 1720ac_configure_args_raw= 1721for ac_arg 1722do 1723 case $ac_arg in 1724 *\'*) 1725 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1726 esac 1727 as_fn_append ac_configure_args_raw " '$ac_arg'" 1728done 1729 1730case $ac_configure_args_raw in 1731 *$as_nl*) 1732 ac_safe_unquote= ;; 1733 *) 1734 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1735 ac_unsafe_a="$ac_unsafe_z#~" 1736 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1737 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1738esac 1739 1740cat >config.log <<_ACEOF 1741This file contains any messages produced by compilers while 1742running configure, to aid debugging if configure makes a mistake. 1743 1744It was created by xmore $as_me 1.0.4, which was 1745generated by GNU Autoconf 2.72. Invocation command line was 1746 1747 $ $0$ac_configure_args_raw 1748 1749_ACEOF 1750exec 5>>config.log 1751{ 1752cat <<_ASUNAME 1753## --------- ## 1754## Platform. ## 1755## --------- ## 1756 1757hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1758uname -m = `(uname -m) 2>/dev/null || echo unknown` 1759uname -r = `(uname -r) 2>/dev/null || echo unknown` 1760uname -s = `(uname -s) 2>/dev/null || echo unknown` 1761uname -v = `(uname -v) 2>/dev/null || echo unknown` 1762 1763/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1764/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1765 1766/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1767/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1768/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1769/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1770/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1771/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1772/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1773 1774_ASUNAME 1775 1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1777for as_dir in $PATH 1778do 1779 IFS=$as_save_IFS 1780 case $as_dir in #((( 1781 '') as_dir=./ ;; 1782 */) ;; 1783 *) as_dir=$as_dir/ ;; 1784 esac 1785 printf "%s\n" "PATH: $as_dir" 1786 done 1787IFS=$as_save_IFS 1788 1789} >&5 1790 1791cat >&5 <<_ACEOF 1792 1793 1794## ----------- ## 1795## Core tests. ## 1796## ----------- ## 1797 1798_ACEOF 1799 1800 1801# Keep a trace of the command line. 1802# Strip out --no-create and --no-recursion so they do not pile up. 1803# Strip out --silent because we don't want to record it for future runs. 1804# Also quote any args containing shell meta-characters. 1805# Make two passes to allow for proper duplicate-argument suppression. 1806ac_configure_args= 1807ac_configure_args0= 1808ac_configure_args1= 1809ac_must_keep_next=false 1810for ac_pass in 1 2 1811do 1812 for ac_arg 1813 do 1814 case $ac_arg in 1815 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1817 | -silent | --silent | --silen | --sile | --sil) 1818 continue ;; 1819 *\'*) 1820 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1821 esac 1822 case $ac_pass in 1823 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1824 2) 1825 as_fn_append ac_configure_args1 " '$ac_arg'" 1826 if test $ac_must_keep_next = true; then 1827 ac_must_keep_next=false # Got value, back to normal. 1828 else 1829 case $ac_arg in 1830 *=* | --config-cache | -C | -disable-* | --disable-* \ 1831 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1832 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1833 | -with-* | --with-* | -without-* | --without-* | --x) 1834 case "$ac_configure_args0 " in 1835 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1836 esac 1837 ;; 1838 -* ) ac_must_keep_next=true ;; 1839 esac 1840 fi 1841 as_fn_append ac_configure_args " '$ac_arg'" 1842 ;; 1843 esac 1844 done 1845done 1846{ ac_configure_args0=; unset ac_configure_args0;} 1847{ ac_configure_args1=; unset ac_configure_args1;} 1848 1849# When interrupted or exit'd, cleanup temporary files, and complete 1850# config.log. We remove comments because anyway the quotes in there 1851# would cause problems or look ugly. 1852# WARNING: Use '\'' to represent an apostrophe within the trap. 1853# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1854trap 'exit_status=$? 1855 # Sanitize IFS. 1856 IFS=" "" $as_nl" 1857 # Save into config.log some information that might help in debugging. 1858 { 1859 echo 1860 1861 printf "%s\n" "## ---------------- ## 1862## Cache variables. ## 1863## ---------------- ##" 1864 echo 1865 # The following way of writing the cache mishandles newlines in values, 1866( 1867 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1868 eval ac_val=\$$ac_var 1869 case $ac_val in #( 1870 *${as_nl}*) 1871 case $ac_var in #( 1872 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1873printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1874 esac 1875 case $ac_var in #( 1876 _ | IFS | as_nl) ;; #( 1877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1878 *) { eval $ac_var=; unset $ac_var;} ;; 1879 esac ;; 1880 esac 1881 done 1882 (set) 2>&1 | 1883 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1884 *${as_nl}ac_space=\ *) 1885 sed -n \ 1886 "s/'\''/'\''\\\\'\'''\''/g; 1887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1888 ;; #( 1889 *) 1890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1891 ;; 1892 esac | 1893 sort 1894) 1895 echo 1896 1897 printf "%s\n" "## ----------------- ## 1898## Output variables. ## 1899## ----------------- ##" 1900 echo 1901 for ac_var in $ac_subst_vars 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 1911 if test -n "$ac_subst_files"; then 1912 printf "%s\n" "## ------------------- ## 1913## File substitutions. ## 1914## ------------------- ##" 1915 echo 1916 for ac_var in $ac_subst_files 1917 do 1918 eval ac_val=\$$ac_var 1919 case $ac_val in 1920 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1921 esac 1922 printf "%s\n" "$ac_var='\''$ac_val'\''" 1923 done | sort 1924 echo 1925 fi 1926 1927 if test -s confdefs.h; then 1928 printf "%s\n" "## ----------- ## 1929## confdefs.h. ## 1930## ----------- ##" 1931 echo 1932 cat confdefs.h 1933 echo 1934 fi 1935 test "$ac_signal" != 0 && 1936 printf "%s\n" "$as_me: caught signal $ac_signal" 1937 printf "%s\n" "$as_me: exit $exit_status" 1938 } >&5 1939 rm -f core *.core core.conftest.* && 1940 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1941 exit $exit_status 1942' 0 1943for ac_signal in 1 2 13 15; do 1944 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1945done 1946ac_signal=0 1947 1948# confdefs.h avoids OS command line length limits that DEFS can exceed. 1949rm -f -r conftest* confdefs.h 1950 1951printf "%s\n" "/* confdefs.h */" > confdefs.h 1952 1953# Predefined preprocessor variables. 1954 1955printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1956 1957printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1958 1959printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1960 1961printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1962 1963printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1964 1965printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1966 1967 1968# Let the site file select an alternate cache file if it wants to. 1969# Prefer an explicitly selected file to automatically selected ones. 1970if test -n "$CONFIG_SITE"; then 1971 ac_site_files="$CONFIG_SITE" 1972elif test "x$prefix" != xNONE; then 1973 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1974else 1975 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1976fi 1977 1978for ac_site_file in $ac_site_files 1979do 1980 case $ac_site_file in #( 1981 */*) : 1982 ;; #( 1983 *) : 1984 ac_site_file=./$ac_site_file ;; 1985esac 1986 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1988printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1989 sed 's/^/| /' "$ac_site_file" >&5 1990 . "$ac_site_file" \ 1991 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1992printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1993as_fn_error $? "failed to load site script $ac_site_file 1994See 'config.log' for more details" "$LINENO" 5; } 1995 fi 1996done 1997 1998if test -r "$cache_file"; then 1999 # Some versions of bash will fail to source /dev/null (special files 2000 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2001 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2003printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2004 case $cache_file in 2005 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2006 *) . "./$cache_file";; 2007 esac 2008 fi 2009else 2010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2011printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2012 >$cache_file 2013fi 2014 2015# Test code for whether the C compiler supports C89 (global declarations) 2016ac_c_conftest_c89_globals=' 2017/* Does the compiler advertise C89 conformance? 2018 Do not test the value of __STDC__, because some compilers set it to 0 2019 while being otherwise adequately conformant. */ 2020#if !defined __STDC__ 2021# error "Compiler does not advertise C89 conformance" 2022#endif 2023 2024#include <stddef.h> 2025#include <stdarg.h> 2026struct stat; 2027/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2028struct buf { int x; }; 2029struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2030static char *e (char **p, int i) 2031{ 2032 return p[i]; 2033} 2034static char *f (char * (*g) (char **, int), char **p, ...) 2035{ 2036 char *s; 2037 va_list v; 2038 va_start (v,p); 2039 s = g (p, va_arg (v,int)); 2040 va_end (v); 2041 return s; 2042} 2043 2044/* C89 style stringification. */ 2045#define noexpand_stringify(a) #a 2046const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2047 2048/* C89 style token pasting. Exercises some of the corner cases that 2049 e.g. old MSVC gets wrong, but not very hard. */ 2050#define noexpand_concat(a,b) a##b 2051#define expand_concat(a,b) noexpand_concat(a,b) 2052extern int vA; 2053extern int vbee; 2054#define aye A 2055#define bee B 2056int *pvA = &expand_concat(v,aye); 2057int *pvbee = &noexpand_concat(v,bee); 2058 2059/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2060 function prototypes and stuff, but not \xHH hex character constants. 2061 These do not provoke an error unfortunately, instead are silently treated 2062 as an "x". The following induces an error, until -std is added to get 2063 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2064 array size at least. It is necessary to write \x00 == 0 to get something 2065 that is true only with -std. */ 2066int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2067 2068/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2069 inside strings and character constants. */ 2070#define FOO(x) '\''x'\'' 2071int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2072 2073int test (int i, double x); 2074struct s1 {int (*f) (int a);}; 2075struct s2 {int (*f) (double a);}; 2076int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2077 int, int);' 2078 2079# Test code for whether the C compiler supports C89 (body of main). 2080ac_c_conftest_c89_main=' 2081ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2082' 2083 2084# Test code for whether the C compiler supports C99 (global declarations) 2085ac_c_conftest_c99_globals=' 2086/* Does the compiler advertise C99 conformance? */ 2087#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2088# error "Compiler does not advertise C99 conformance" 2089#endif 2090 2091// See if C++-style comments work. 2092 2093#include <stdbool.h> 2094extern int puts (const char *); 2095extern int printf (const char *, ...); 2096extern int dprintf (int, const char *, ...); 2097extern void *malloc (size_t); 2098extern void free (void *); 2099 2100// Check varargs macros. These examples are taken from C99 6.10.3.5. 2101// dprintf is used instead of fprintf to avoid needing to declare 2102// FILE and stderr. 2103#define debug(...) dprintf (2, __VA_ARGS__) 2104#define showlist(...) puts (#__VA_ARGS__) 2105#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2106static void 2107test_varargs_macros (void) 2108{ 2109 int x = 1234; 2110 int y = 5678; 2111 debug ("Flag"); 2112 debug ("X = %d\n", x); 2113 showlist (The first, second, and third items.); 2114 report (x>y, "x is %d but y is %d", x, y); 2115} 2116 2117// Check long long types. 2118#define BIG64 18446744073709551615ull 2119#define BIG32 4294967295ul 2120#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2121#if !BIG_OK 2122 #error "your preprocessor is broken" 2123#endif 2124#if BIG_OK 2125#else 2126 #error "your preprocessor is broken" 2127#endif 2128static long long int bignum = -9223372036854775807LL; 2129static unsigned long long int ubignum = BIG64; 2130 2131struct incomplete_array 2132{ 2133 int datasize; 2134 double data[]; 2135}; 2136 2137struct named_init { 2138 int number; 2139 const wchar_t *name; 2140 double average; 2141}; 2142 2143typedef const char *ccp; 2144 2145static inline int 2146test_restrict (ccp restrict text) 2147{ 2148 // Iterate through items via the restricted pointer. 2149 // Also check for declarations in for loops. 2150 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2151 continue; 2152 return 0; 2153} 2154 2155// Check varargs and va_copy. 2156static bool 2157test_varargs (const char *format, ...) 2158{ 2159 va_list args; 2160 va_start (args, format); 2161 va_list args_copy; 2162 va_copy (args_copy, args); 2163 2164 const char *str = ""; 2165 int number = 0; 2166 float fnumber = 0; 2167 2168 while (*format) 2169 { 2170 switch (*format++) 2171 { 2172 case '\''s'\'': // string 2173 str = va_arg (args_copy, const char *); 2174 break; 2175 case '\''d'\'': // int 2176 number = va_arg (args_copy, int); 2177 break; 2178 case '\''f'\'': // float 2179 fnumber = va_arg (args_copy, double); 2180 break; 2181 default: 2182 break; 2183 } 2184 } 2185 va_end (args_copy); 2186 va_end (args); 2187 2188 return *str && number && fnumber; 2189} 2190' 2191 2192# Test code for whether the C compiler supports C99 (body of main). 2193ac_c_conftest_c99_main=' 2194 // Check bool. 2195 _Bool success = false; 2196 success |= (argc != 0); 2197 2198 // Check restrict. 2199 if (test_restrict ("String literal") == 0) 2200 success = true; 2201 char *restrict newvar = "Another string"; 2202 2203 // Check varargs. 2204 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2205 test_varargs_macros (); 2206 2207 // Check flexible array members. 2208 struct incomplete_array *ia = 2209 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2210 ia->datasize = 10; 2211 for (int i = 0; i < ia->datasize; ++i) 2212 ia->data[i] = i * 1.234; 2213 // Work around memory leak warnings. 2214 free (ia); 2215 2216 // Check named initializers. 2217 struct named_init ni = { 2218 .number = 34, 2219 .name = L"Test wide string", 2220 .average = 543.34343, 2221 }; 2222 2223 ni.number = 58; 2224 2225 int dynamic_array[ni.number]; 2226 dynamic_array[0] = argv[0][0]; 2227 dynamic_array[ni.number - 1] = 543; 2228 2229 // work around unused variable warnings 2230 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2231 || dynamic_array[ni.number - 1] != 543); 2232' 2233 2234# Test code for whether the C compiler supports C11 (global declarations) 2235ac_c_conftest_c11_globals=' 2236/* Does the compiler advertise C11 conformance? */ 2237#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2238# error "Compiler does not advertise C11 conformance" 2239#endif 2240 2241// Check _Alignas. 2242char _Alignas (double) aligned_as_double; 2243char _Alignas (0) no_special_alignment; 2244extern char aligned_as_int; 2245char _Alignas (0) _Alignas (int) aligned_as_int; 2246 2247// Check _Alignof. 2248enum 2249{ 2250 int_alignment = _Alignof (int), 2251 int_array_alignment = _Alignof (int[100]), 2252 char_alignment = _Alignof (char) 2253}; 2254_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2255 2256// Check _Noreturn. 2257int _Noreturn does_not_return (void) { for (;;) continue; } 2258 2259// Check _Static_assert. 2260struct test_static_assert 2261{ 2262 int x; 2263 _Static_assert (sizeof (int) <= sizeof (long int), 2264 "_Static_assert does not work in struct"); 2265 long int y; 2266}; 2267 2268// Check UTF-8 literals. 2269#define u8 syntax error! 2270char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2271 2272// Check duplicate typedefs. 2273typedef long *long_ptr; 2274typedef long int *long_ptr; 2275typedef long_ptr long_ptr; 2276 2277// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2278struct anonymous 2279{ 2280 union { 2281 struct { int i; int j; }; 2282 struct { int k; long int l; } w; 2283 }; 2284 int m; 2285} v1; 2286' 2287 2288# Test code for whether the C compiler supports C11 (body of main). 2289ac_c_conftest_c11_main=' 2290 _Static_assert ((offsetof (struct anonymous, i) 2291 == offsetof (struct anonymous, w.k)), 2292 "Anonymous union alignment botch"); 2293 v1.i = 2; 2294 v1.w.k = 5; 2295 ok |= v1.i != 5; 2296' 2297 2298# Test code for whether the C compiler supports C11 (complete). 2299ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2300${ac_c_conftest_c99_globals} 2301${ac_c_conftest_c11_globals} 2302 2303int 2304main (int argc, char **argv) 2305{ 2306 int ok = 0; 2307 ${ac_c_conftest_c89_main} 2308 ${ac_c_conftest_c99_main} 2309 ${ac_c_conftest_c11_main} 2310 return ok; 2311} 2312" 2313 2314# Test code for whether the C compiler supports C99 (complete). 2315ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2316${ac_c_conftest_c99_globals} 2317 2318int 2319main (int argc, char **argv) 2320{ 2321 int ok = 0; 2322 ${ac_c_conftest_c89_main} 2323 ${ac_c_conftest_c99_main} 2324 return ok; 2325} 2326" 2327 2328# Test code for whether the C compiler supports C89 (complete). 2329ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2330 2331int 2332main (int argc, char **argv) 2333{ 2334 int ok = 0; 2335 ${ac_c_conftest_c89_main} 2336 return ok; 2337} 2338" 2339 2340as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2341as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2342as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2343as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2344as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2345as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2346as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2347as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2348as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2349 2350# Auxiliary files required by this configure script. 2351ac_aux_files="config.guess config.sub compile missing install-sh" 2352 2353# Locations in which to look for auxiliary files. 2354ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2355 2356# Search for a directory containing all of the required auxiliary files, 2357# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2358# If we don't find one directory that contains all the files we need, 2359# we report the set of missing files from the *first* directory in 2360# $ac_aux_dir_candidates and give up. 2361ac_missing_aux_files="" 2362ac_first_candidate=: 2363printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2365as_found=false 2366for as_dir in $ac_aux_dir_candidates 2367do 2368 IFS=$as_save_IFS 2369 case $as_dir in #((( 2370 '') as_dir=./ ;; 2371 */) ;; 2372 *) as_dir=$as_dir/ ;; 2373 esac 2374 as_found=: 2375 2376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2377 ac_aux_dir_found=yes 2378 ac_install_sh= 2379 for ac_aux in $ac_aux_files 2380 do 2381 # As a special case, if "install-sh" is required, that requirement 2382 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2383 # and $ac_install_sh is set appropriately for whichever one is found. 2384 if test x"$ac_aux" = x"install-sh" 2385 then 2386 if test -f "${as_dir}install-sh"; then 2387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2388 ac_install_sh="${as_dir}install-sh -c" 2389 elif test -f "${as_dir}install.sh"; then 2390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2391 ac_install_sh="${as_dir}install.sh -c" 2392 elif test -f "${as_dir}shtool"; then 2393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2394 ac_install_sh="${as_dir}shtool install -c" 2395 else 2396 ac_aux_dir_found=no 2397 if $ac_first_candidate; then 2398 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2399 else 2400 break 2401 fi 2402 fi 2403 else 2404 if test -f "${as_dir}${ac_aux}"; then 2405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2406 else 2407 ac_aux_dir_found=no 2408 if $ac_first_candidate; then 2409 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2410 else 2411 break 2412 fi 2413 fi 2414 fi 2415 done 2416 if test "$ac_aux_dir_found" = yes; then 2417 ac_aux_dir="$as_dir" 2418 break 2419 fi 2420 ac_first_candidate=false 2421 2422 as_found=false 2423done 2424IFS=$as_save_IFS 2425if $as_found 2426then : 2427 2428else case e in #( 2429 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2430esac 2431fi 2432 2433 2434# These three variables are undocumented and unsupported, 2435# and are intended to be withdrawn in a future Autoconf release. 2436# They can cause serious problems if a builder's source tree is in a directory 2437# whose full name contains unusual characters. 2438if test -f "${ac_aux_dir}config.guess"; then 2439 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2440fi 2441if test -f "${ac_aux_dir}config.sub"; then 2442 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2443fi 2444if test -f "$ac_aux_dir/configure"; then 2445 ac_configure="$SHELL ${ac_aux_dir}configure" 2446fi 2447 2448# Check that the precious variables saved in the cache have kept the same 2449# value. 2450ac_cache_corrupted=false 2451for ac_var in $ac_precious_vars; do 2452 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2453 eval ac_new_set=\$ac_env_${ac_var}_set 2454 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2455 eval ac_new_val=\$ac_env_${ac_var}_value 2456 case $ac_old_set,$ac_new_set in 2457 set,) 2458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2459printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2460 ac_cache_corrupted=: ;; 2461 ,set) 2462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2463printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2464 ac_cache_corrupted=: ;; 2465 ,);; 2466 *) 2467 if test "x$ac_old_val" != "x$ac_new_val"; then 2468 # differences in whitespace do not lead to failure. 2469 ac_old_val_w=`echo x $ac_old_val` 2470 ac_new_val_w=`echo x $ac_new_val` 2471 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2473printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2474 ac_cache_corrupted=: 2475 else 2476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2477printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2478 eval $ac_var=\$ac_old_val 2479 fi 2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2481printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2483printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2484 fi;; 2485 esac 2486 # Pass precious variables to config.status. 2487 if test "$ac_new_set" = set; then 2488 case $ac_new_val in 2489 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2490 *) ac_arg=$ac_var=$ac_new_val ;; 2491 esac 2492 case " $ac_configure_args " in 2493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2494 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2495 esac 2496 fi 2497done 2498if $ac_cache_corrupted; then 2499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2500printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2502printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2503 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2504 and start over" "$LINENO" 5 2505fi 2506## -------------------- ## 2507## Main body of script. ## 2508## -------------------- ## 2509 2510ac_ext=c 2511ac_cpp='$CPP $CPPFLAGS' 2512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2514ac_compiler_gnu=$ac_cv_c_compiler_gnu 2515 2516 2517am__api_version='1.16' 2518 2519 2520 2521 # Find a good install program. We prefer a C program (faster), 2522# so one script is as good as another. But avoid the broken or 2523# incompatible versions: 2524# SysV /etc/install, /usr/sbin/install 2525# SunOS /usr/etc/install 2526# IRIX /sbin/install 2527# AIX /bin/install 2528# AmigaOS /C/install, which installs bootblocks on floppy discs 2529# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2530# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2531# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2532# OS/2's system install, which has a completely different semantic 2533# ./install, which can be erroneously created by make from ./install.sh. 2534# Reject install programs that cannot install multiple files. 2535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2536printf %s "checking for a BSD-compatible install... " >&6; } 2537if test -z "$INSTALL"; then 2538if test ${ac_cv_path_install+y} 2539then : 2540 printf %s "(cached) " >&6 2541else case e in #( 2542 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543for as_dir in $PATH 2544do 2545 IFS=$as_save_IFS 2546 case $as_dir in #((( 2547 '') as_dir=./ ;; 2548 */) ;; 2549 *) as_dir=$as_dir/ ;; 2550 esac 2551 # Account for fact that we put trailing slashes in our PATH walk. 2552case $as_dir in #(( 2553 ./ | /[cC]/* | \ 2554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2556 /usr/ucb/* ) ;; 2557 *) 2558 # OSF1 and SCO ODT 3.0 have their own names for install. 2559 # Don't use installbsd from OSF since it installs stuff as root 2560 # by default. 2561 for ac_prog in ginstall scoinst install; do 2562 for ac_exec_ext in '' $ac_executable_extensions; do 2563 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2564 if test $ac_prog = install && 2565 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2566 # AIX install. It has an incompatible calling convention. 2567 : 2568 elif test $ac_prog = install && 2569 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2570 # program-specific install script used by HP pwplus--don't use. 2571 : 2572 else 2573 rm -rf conftest.one conftest.two conftest.dir 2574 echo one > conftest.one 2575 echo two > conftest.two 2576 mkdir conftest.dir 2577 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2578 test -s conftest.one && test -s conftest.two && 2579 test -s conftest.dir/conftest.one && 2580 test -s conftest.dir/conftest.two 2581 then 2582 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2583 break 3 2584 fi 2585 fi 2586 fi 2587 done 2588 done 2589 ;; 2590esac 2591 2592 done 2593IFS=$as_save_IFS 2594 2595rm -rf conftest.one conftest.two conftest.dir 2596 ;; 2597esac 2598fi 2599 if test ${ac_cv_path_install+y}; then 2600 INSTALL=$ac_cv_path_install 2601 else 2602 # As a last resort, use the slow shell script. Don't cache a 2603 # value for INSTALL within a source directory, because that will 2604 # break other packages using the cache if that directory is 2605 # removed, or if the value is a relative name. 2606 INSTALL=$ac_install_sh 2607 fi 2608fi 2609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2610printf "%s\n" "$INSTALL" >&6; } 2611 2612# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2613# It thinks the first close brace ends the variable substitution. 2614test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2615 2616test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2617 2618test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2619 2620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2621printf %s "checking whether build environment is sane... " >&6; } 2622# Reject unsafe characters in $srcdir or the absolute working directory 2623# name. Accept space and tab only in the latter. 2624am_lf=' 2625' 2626case `pwd` in 2627 *[\\\"\#\$\&\'\`$am_lf]*) 2628 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2629esac 2630case $srcdir in 2631 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2632 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2633esac 2634 2635# Do 'set' in a subshell so we don't clobber the current shell's 2636# arguments. Must try -L first in case configure is actually a 2637# symlink; some systems play weird games with the mod time of symlinks 2638# (eg FreeBSD returns the mod time of the symlink's containing 2639# directory). 2640if ( 2641 am_has_slept=no 2642 for am_try in 1 2; do 2643 echo "timestamp, slept: $am_has_slept" > conftest.file 2644 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2645 if test "$*" = "X"; then 2646 # -L didn't work. 2647 set X `ls -t "$srcdir/configure" conftest.file` 2648 fi 2649 if test "$*" != "X $srcdir/configure conftest.file" \ 2650 && test "$*" != "X conftest.file $srcdir/configure"; then 2651 2652 # If neither matched, then we have a broken ls. This can happen 2653 # if, for instance, CONFIG_SHELL is bash and it inherits a 2654 # broken ls alias from the environment. This has actually 2655 # happened. Such a system could not be considered "sane". 2656 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2657 alias in your environment" "$LINENO" 5 2658 fi 2659 if test "$2" = conftest.file || test $am_try -eq 2; then 2660 break 2661 fi 2662 # Just in case. 2663 sleep 1 2664 am_has_slept=yes 2665 done 2666 test "$2" = conftest.file 2667 ) 2668then 2669 # Ok. 2670 : 2671else 2672 as_fn_error $? "newly created file is older than distributed files! 2673Check your system clock" "$LINENO" 5 2674fi 2675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2676printf "%s\n" "yes" >&6; } 2677# If we didn't sleep, we still need to ensure time stamps of config.status and 2678# generated files are strictly newer. 2679am_sleep_pid= 2680if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2681 ( sleep 1 ) & 2682 am_sleep_pid=$! 2683fi 2684 2685rm -f conftest.file 2686 2687test "$program_prefix" != NONE && 2688 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2689# Use a double $ so make ignores it. 2690test "$program_suffix" != NONE && 2691 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2692# Double any \ or $. 2693# By default was 's,x,x', remove it if useless. 2694ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2695program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2696 2697 2698# Expand $ac_aux_dir to an absolute path. 2699am_aux_dir=`cd "$ac_aux_dir" && pwd` 2700 2701 2702 if test x"${MISSING+set}" != xset; then 2703 MISSING="\${SHELL} '$am_aux_dir/missing'" 2704fi 2705# Use eval to expand $SHELL 2706if eval "$MISSING --is-lightweight"; then 2707 am_missing_run="$MISSING " 2708else 2709 am_missing_run= 2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2711printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2712fi 2713 2714if test x"${install_sh+set}" != xset; then 2715 case $am_aux_dir in 2716 *\ * | *\ *) 2717 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2718 *) 2719 install_sh="\${SHELL} $am_aux_dir/install-sh" 2720 esac 2721fi 2722 2723# Installed binaries are usually stripped using 'strip' when the user 2724# run "make install-strip". However 'strip' might not be the right 2725# tool to use in cross-compilation environments, therefore Automake 2726# will honor the 'STRIP' environment variable to overrule this program. 2727if test "$cross_compiling" != no; then 2728 if test -n "$ac_tool_prefix"; then 2729 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2730set dummy ${ac_tool_prefix}strip; ac_word=$2 2731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2732printf %s "checking for $ac_word... " >&6; } 2733if test ${ac_cv_prog_STRIP+y} 2734then : 2735 printf %s "(cached) " >&6 2736else case e in #( 2737 e) if test -n "$STRIP"; then 2738 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2739else 2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2741for as_dir in $PATH 2742do 2743 IFS=$as_save_IFS 2744 case $as_dir in #((( 2745 '') as_dir=./ ;; 2746 */) ;; 2747 *) as_dir=$as_dir/ ;; 2748 esac 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2751 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2753 break 2 2754 fi 2755done 2756 done 2757IFS=$as_save_IFS 2758 2759fi ;; 2760esac 2761fi 2762STRIP=$ac_cv_prog_STRIP 2763if test -n "$STRIP"; then 2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2765printf "%s\n" "$STRIP" >&6; } 2766else 2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2768printf "%s\n" "no" >&6; } 2769fi 2770 2771 2772fi 2773if test -z "$ac_cv_prog_STRIP"; then 2774 ac_ct_STRIP=$STRIP 2775 # Extract the first word of "strip", so it can be a program name with args. 2776set dummy strip; ac_word=$2 2777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2778printf %s "checking for $ac_word... " >&6; } 2779if test ${ac_cv_prog_ac_ct_STRIP+y} 2780then : 2781 printf %s "(cached) " >&6 2782else case e in #( 2783 e) if test -n "$ac_ct_STRIP"; then 2784 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2785else 2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2787for as_dir in $PATH 2788do 2789 IFS=$as_save_IFS 2790 case $as_dir in #((( 2791 '') as_dir=./ ;; 2792 */) ;; 2793 *) as_dir=$as_dir/ ;; 2794 esac 2795 for ac_exec_ext in '' $ac_executable_extensions; do 2796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2797 ac_cv_prog_ac_ct_STRIP="strip" 2798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2799 break 2 2800 fi 2801done 2802 done 2803IFS=$as_save_IFS 2804 2805fi ;; 2806esac 2807fi 2808ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2809if test -n "$ac_ct_STRIP"; then 2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2811printf "%s\n" "$ac_ct_STRIP" >&6; } 2812else 2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2814printf "%s\n" "no" >&6; } 2815fi 2816 2817 if test "x$ac_ct_STRIP" = x; then 2818 STRIP=":" 2819 else 2820 case $cross_compiling:$ac_tool_warned in 2821yes:) 2822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2823printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2824ac_tool_warned=yes ;; 2825esac 2826 STRIP=$ac_ct_STRIP 2827 fi 2828else 2829 STRIP="$ac_cv_prog_STRIP" 2830fi 2831 2832fi 2833INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2834 2835 2836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2837printf %s "checking for a race-free mkdir -p... " >&6; } 2838if test -z "$MKDIR_P"; then 2839 if test ${ac_cv_path_mkdir+y} 2840then : 2841 printf %s "(cached) " >&6 2842else case e in #( 2843 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2844for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2845do 2846 IFS=$as_save_IFS 2847 case $as_dir in #((( 2848 '') as_dir=./ ;; 2849 */) ;; 2850 *) as_dir=$as_dir/ ;; 2851 esac 2852 for ac_prog in mkdir gmkdir; do 2853 for ac_exec_ext in '' $ac_executable_extensions; do 2854 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2855 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2856 'mkdir ('*'coreutils) '* | \ 2857 *'BusyBox '* | \ 2858 'mkdir (fileutils) '4.1*) 2859 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2860 break 3;; 2861 esac 2862 done 2863 done 2864 done 2865IFS=$as_save_IFS 2866 ;; 2867esac 2868fi 2869 2870 test -d ./--version && rmdir ./--version 2871 if test ${ac_cv_path_mkdir+y}; then 2872 MKDIR_P="$ac_cv_path_mkdir -p" 2873 else 2874 # As a last resort, use plain mkdir -p, 2875 # in the hope it doesn't have the bugs of ancient mkdir. 2876 MKDIR_P='mkdir -p' 2877 fi 2878fi 2879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2880printf "%s\n" "$MKDIR_P" >&6; } 2881 2882for ac_prog in gawk mawk nawk awk 2883do 2884 # Extract the first word of "$ac_prog", so it can be a program name with args. 2885set dummy $ac_prog; ac_word=$2 2886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2887printf %s "checking for $ac_word... " >&6; } 2888if test ${ac_cv_prog_AWK+y} 2889then : 2890 printf %s "(cached) " >&6 2891else case e in #( 2892 e) if test -n "$AWK"; then 2893 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2894else 2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896for as_dir in $PATH 2897do 2898 IFS=$as_save_IFS 2899 case $as_dir in #((( 2900 '') as_dir=./ ;; 2901 */) ;; 2902 *) as_dir=$as_dir/ ;; 2903 esac 2904 for ac_exec_ext in '' $ac_executable_extensions; do 2905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2906 ac_cv_prog_AWK="$ac_prog" 2907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2908 break 2 2909 fi 2910done 2911 done 2912IFS=$as_save_IFS 2913 2914fi ;; 2915esac 2916fi 2917AWK=$ac_cv_prog_AWK 2918if test -n "$AWK"; then 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2920printf "%s\n" "$AWK" >&6; } 2921else 2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2923printf "%s\n" "no" >&6; } 2924fi 2925 2926 2927 test -n "$AWK" && break 2928done 2929 2930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2931printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2932set x ${MAKE-make} 2933ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2934if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2935then : 2936 printf %s "(cached) " >&6 2937else case e in #( 2938 e) cat >conftest.make <<\_ACEOF 2939SHELL = /bin/sh 2940all: 2941 @echo '@@@%%%=$(MAKE)=@@@%%%' 2942_ACEOF 2943# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2944case `${MAKE-make} -f conftest.make 2>/dev/null` in 2945 *@@@%%%=?*=@@@%%%*) 2946 eval ac_cv_prog_make_${ac_make}_set=yes;; 2947 *) 2948 eval ac_cv_prog_make_${ac_make}_set=no;; 2949esac 2950rm -f conftest.make ;; 2951esac 2952fi 2953if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2955printf "%s\n" "yes" >&6; } 2956 SET_MAKE= 2957else 2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959printf "%s\n" "no" >&6; } 2960 SET_MAKE="MAKE=${MAKE-make}" 2961fi 2962 2963rm -rf .tst 2>/dev/null 2964mkdir .tst 2>/dev/null 2965if test -d .tst; then 2966 am__leading_dot=. 2967else 2968 am__leading_dot=_ 2969fi 2970rmdir .tst 2>/dev/null 2971 2972# Check whether --enable-silent-rules was given. 2973if test ${enable_silent_rules+y} 2974then : 2975 enableval=$enable_silent_rules; 2976fi 2977 2978case $enable_silent_rules in # ((( 2979 yes) AM_DEFAULT_VERBOSITY=0;; 2980 no) AM_DEFAULT_VERBOSITY=1;; 2981 *) AM_DEFAULT_VERBOSITY=1;; 2982esac 2983am_make=${MAKE-make} 2984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2985printf %s "checking whether $am_make supports nested variables... " >&6; } 2986if test ${am_cv_make_support_nested_variables+y} 2987then : 2988 printf %s "(cached) " >&6 2989else case e in #( 2990 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 2991BAR0=false 2992BAR1=true 2993V=1 2994am__doit: 2995 @$(TRUE) 2996.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2997 am_cv_make_support_nested_variables=yes 2998else 2999 am_cv_make_support_nested_variables=no 3000fi ;; 3001esac 3002fi 3003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3004printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3005if test $am_cv_make_support_nested_variables = yes; then 3006 AM_V='$(V)' 3007 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3008else 3009 AM_V=$AM_DEFAULT_VERBOSITY 3010 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3011fi 3012AM_BACKSLASH='\' 3013 3014if test "`cd $srcdir && pwd`" != "`pwd`"; then 3015 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3016 # is not polluted with repeated "-I." 3017 am__isrc=' -I$(srcdir)' 3018 # test to see if srcdir already configured 3019 if test -f $srcdir/config.status; then 3020 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3021 fi 3022fi 3023 3024# test whether we have cygpath 3025if test -z "$CYGPATH_W"; then 3026 if (cygpath --version) >/dev/null 2>/dev/null; then 3027 CYGPATH_W='cygpath -w' 3028 else 3029 CYGPATH_W=echo 3030 fi 3031fi 3032 3033 3034# Define the identity of the package. 3035 PACKAGE='xmore' 3036 VERSION='1.0.4' 3037 3038 3039printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3040 3041 3042printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3043 3044# Some tools Automake needs. 3045 3046ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3047 3048 3049AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3050 3051 3052AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3053 3054 3055AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3056 3057 3058MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3059 3060# For better backward compatibility. To be removed once Automake 1.9.x 3061# dies out for good. For more background, see: 3062# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3063# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3064mkdir_p='$(MKDIR_P)' 3065 3066# We need awk for the "check" target (and possibly the TAP driver). The 3067# system "awk" is bad on some platforms. 3068# Always define AMTAR for backward compatibility. Yes, it's still used 3069# in the wild :-( We should find a proper way to deprecate it ... 3070AMTAR='$${TAR-tar}' 3071 3072 3073# We'll loop over all known methods to create a tar archive until one works. 3074_am_tools='gnutar pax cpio none' 3075 3076am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3077 3078 3079 3080 3081 3082# Variables for tags utilities; see am/tags.am 3083if test -z "$CTAGS"; then 3084 CTAGS=ctags 3085fi 3086 3087if test -z "$ETAGS"; then 3088 ETAGS=etags 3089fi 3090 3091if test -z "$CSCOPE"; then 3092 CSCOPE=cscope 3093fi 3094 3095 3096 3097# POSIX will say in a future version that running "rm -f" with no argument 3098# is OK; and we want to be able to make that assumption in our Makefile 3099# recipes. So use an aggressive probe to check that the usage we want is 3100# actually supported "in the wild" to an acceptable degree. 3101# See automake bug#10828. 3102# To make any issue more visible, cause the running configure to be aborted 3103# by default if the 'rm' program in use doesn't match our expectations; the 3104# user can still override this though. 3105if rm -f && rm -fr && rm -rf; then : OK; else 3106 cat >&2 <<'END' 3107Oops! 3108 3109Your 'rm' program seems unable to run without file operands specified 3110on the command line, even when the '-f' option is present. This is contrary 3111to the behaviour of most rm programs out there, and not conforming with 3112the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3113 3114Please tell bug-automake@gnu.org about your system, including the value 3115of your $PATH and any error possibly output before this message. This 3116can help us improve future automake versions. 3117 3118END 3119 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3120 echo 'Configuration will proceed anyway, since you have set the' >&2 3121 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3122 echo >&2 3123 else 3124 cat >&2 <<'END' 3125Aborting the configuration process, to ensure you take notice of the issue. 3126 3127You can download and install GNU coreutils to get an 'rm' implementation 3128that behaves properly: <https://www.gnu.org/software/coreutils/>. 3129 3130If you want to complete the configuration process using your problematic 3131'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3132to "yes", and re-run configure. 3133 3134END 3135 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3136 fi 3137fi 3138 3139 3140# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161DEPDIR="${am__leading_dot}deps" 3162 3163ac_config_commands="$ac_config_commands depfiles" 3164 3165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3166printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3167cat > confinc.mk << 'END' 3168am__doit: 3169 @echo this is the am__doit target >confinc.out 3170.PHONY: am__doit 3171END 3172am__include="#" 3173am__quote= 3174# BSD make does it like this. 3175echo '.include "confinc.mk" # ignored' > confmf.BSD 3176# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3177echo 'include confinc.mk # ignored' > confmf.GNU 3178_am_result=no 3179for s in GNU BSD; do 3180 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3181 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3182 ac_status=$? 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); } 3185 case $?:`cat confinc.out 2>/dev/null` in #( 3186 '0:this is the am__doit target') : 3187 case $s in #( 3188 BSD) : 3189 am__include='.include' am__quote='"' ;; #( 3190 *) : 3191 am__include='include' am__quote='' ;; 3192esac ;; #( 3193 *) : 3194 ;; 3195esac 3196 if test "$am__include" != "#"; then 3197 _am_result="yes ($s style)" 3198 break 3199 fi 3200done 3201rm -f confinc.* confmf.* 3202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3203printf "%s\n" "${_am_result}" >&6; } 3204 3205# Check whether --enable-dependency-tracking was given. 3206if test ${enable_dependency_tracking+y} 3207then : 3208 enableval=$enable_dependency_tracking; 3209fi 3210 3211if test "x$enable_dependency_tracking" != xno; then 3212 am_depcomp="$ac_aux_dir/depcomp" 3213 AMDEPBACKSLASH='\' 3214 am__nodep='_no' 3215fi 3216 if test "x$enable_dependency_tracking" != xno; then 3217 AMDEP_TRUE= 3218 AMDEP_FALSE='#' 3219else 3220 AMDEP_TRUE='#' 3221 AMDEP_FALSE= 3222fi 3223 3224 3225ac_ext=c 3226ac_cpp='$CPP $CPPFLAGS' 3227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3229ac_compiler_gnu=$ac_cv_c_compiler_gnu 3230if test -n "$ac_tool_prefix"; then 3231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3232set dummy ${ac_tool_prefix}gcc; ac_word=$2 3233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3234printf %s "checking for $ac_word... " >&6; } 3235if test ${ac_cv_prog_CC+y} 3236then : 3237 printf %s "(cached) " >&6 3238else case e in #( 3239 e) if test -n "$CC"; then 3240 ac_cv_prog_CC="$CC" # Let the user override the test. 3241else 3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243for as_dir in $PATH 3244do 3245 IFS=$as_save_IFS 3246 case $as_dir in #((( 3247 '') as_dir=./ ;; 3248 */) ;; 3249 *) as_dir=$as_dir/ ;; 3250 esac 3251 for ac_exec_ext in '' $ac_executable_extensions; do 3252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3253 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3255 break 2 3256 fi 3257done 3258 done 3259IFS=$as_save_IFS 3260 3261fi ;; 3262esac 3263fi 3264CC=$ac_cv_prog_CC 3265if test -n "$CC"; then 3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3267printf "%s\n" "$CC" >&6; } 3268else 3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3270printf "%s\n" "no" >&6; } 3271fi 3272 3273 3274fi 3275if test -z "$ac_cv_prog_CC"; then 3276 ac_ct_CC=$CC 3277 # Extract the first word of "gcc", so it can be a program name with args. 3278set dummy gcc; ac_word=$2 3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3280printf %s "checking for $ac_word... " >&6; } 3281if test ${ac_cv_prog_ac_ct_CC+y} 3282then : 3283 printf %s "(cached) " >&6 3284else case e in #( 3285 e) if test -n "$ac_ct_CC"; then 3286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3287else 3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3289for as_dir in $PATH 3290do 3291 IFS=$as_save_IFS 3292 case $as_dir in #((( 3293 '') as_dir=./ ;; 3294 */) ;; 3295 *) as_dir=$as_dir/ ;; 3296 esac 3297 for ac_exec_ext in '' $ac_executable_extensions; do 3298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3299 ac_cv_prog_ac_ct_CC="gcc" 3300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3301 break 2 3302 fi 3303done 3304 done 3305IFS=$as_save_IFS 3306 3307fi ;; 3308esac 3309fi 3310ac_ct_CC=$ac_cv_prog_ac_ct_CC 3311if test -n "$ac_ct_CC"; then 3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3313printf "%s\n" "$ac_ct_CC" >&6; } 3314else 3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3316printf "%s\n" "no" >&6; } 3317fi 3318 3319 if test "x$ac_ct_CC" = x; then 3320 CC="" 3321 else 3322 case $cross_compiling:$ac_tool_warned in 3323yes:) 3324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3325printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3326ac_tool_warned=yes ;; 3327esac 3328 CC=$ac_ct_CC 3329 fi 3330else 3331 CC="$ac_cv_prog_CC" 3332fi 3333 3334if test -z "$CC"; then 3335 if test -n "$ac_tool_prefix"; then 3336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3337set dummy ${ac_tool_prefix}cc; ac_word=$2 3338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3339printf %s "checking for $ac_word... " >&6; } 3340if test ${ac_cv_prog_CC+y} 3341then : 3342 printf %s "(cached) " >&6 3343else case e in #( 3344 e) if test -n "$CC"; then 3345 ac_cv_prog_CC="$CC" # Let the user override the test. 3346else 3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3348for as_dir in $PATH 3349do 3350 IFS=$as_save_IFS 3351 case $as_dir in #((( 3352 '') as_dir=./ ;; 3353 */) ;; 3354 *) as_dir=$as_dir/ ;; 3355 esac 3356 for ac_exec_ext in '' $ac_executable_extensions; do 3357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3358 ac_cv_prog_CC="${ac_tool_prefix}cc" 3359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3360 break 2 3361 fi 3362done 3363 done 3364IFS=$as_save_IFS 3365 3366fi ;; 3367esac 3368fi 3369CC=$ac_cv_prog_CC 3370if test -n "$CC"; then 3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3372printf "%s\n" "$CC" >&6; } 3373else 3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375printf "%s\n" "no" >&6; } 3376fi 3377 3378 3379 fi 3380fi 3381if test -z "$CC"; then 3382 # Extract the first word of "cc", so it can be a program name with args. 3383set dummy cc; ac_word=$2 3384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3385printf %s "checking for $ac_word... " >&6; } 3386if test ${ac_cv_prog_CC+y} 3387then : 3388 printf %s "(cached) " >&6 3389else case e in #( 3390 e) if test -n "$CC"; then 3391 ac_cv_prog_CC="$CC" # Let the user override the test. 3392else 3393 ac_prog_rejected=no 3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3395for as_dir in $PATH 3396do 3397 IFS=$as_save_IFS 3398 case $as_dir in #((( 3399 '') as_dir=./ ;; 3400 */) ;; 3401 *) as_dir=$as_dir/ ;; 3402 esac 3403 for ac_exec_ext in '' $ac_executable_extensions; do 3404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3405 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3406 ac_prog_rejected=yes 3407 continue 3408 fi 3409 ac_cv_prog_CC="cc" 3410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3411 break 2 3412 fi 3413done 3414 done 3415IFS=$as_save_IFS 3416 3417if test $ac_prog_rejected = yes; then 3418 # We found a bogon in the path, so make sure we never use it. 3419 set dummy $ac_cv_prog_CC 3420 shift 3421 if test $# != 0; then 3422 # We chose a different compiler from the bogus one. 3423 # However, it has the same basename, so the bogon will be chosen 3424 # first if we set CC to just the basename; use the full file name. 3425 shift 3426 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3427 fi 3428fi 3429fi ;; 3430esac 3431fi 3432CC=$ac_cv_prog_CC 3433if test -n "$CC"; then 3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3435printf "%s\n" "$CC" >&6; } 3436else 3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3438printf "%s\n" "no" >&6; } 3439fi 3440 3441 3442fi 3443if test -z "$CC"; then 3444 if test -n "$ac_tool_prefix"; then 3445 for ac_prog in cl.exe 3446 do 3447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3448set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3450printf %s "checking for $ac_word... " >&6; } 3451if test ${ac_cv_prog_CC+y} 3452then : 3453 printf %s "(cached) " >&6 3454else case e in #( 3455 e) if test -n "$CC"; then 3456 ac_cv_prog_CC="$CC" # Let the user override the test. 3457else 3458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3459for as_dir in $PATH 3460do 3461 IFS=$as_save_IFS 3462 case $as_dir in #((( 3463 '') as_dir=./ ;; 3464 */) ;; 3465 *) as_dir=$as_dir/ ;; 3466 esac 3467 for ac_exec_ext in '' $ac_executable_extensions; do 3468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3471 break 2 3472 fi 3473done 3474 done 3475IFS=$as_save_IFS 3476 3477fi ;; 3478esac 3479fi 3480CC=$ac_cv_prog_CC 3481if test -n "$CC"; then 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3483printf "%s\n" "$CC" >&6; } 3484else 3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486printf "%s\n" "no" >&6; } 3487fi 3488 3489 3490 test -n "$CC" && break 3491 done 3492fi 3493if test -z "$CC"; then 3494 ac_ct_CC=$CC 3495 for ac_prog in cl.exe 3496do 3497 # Extract the first word of "$ac_prog", so it can be a program name with args. 3498set dummy $ac_prog; ac_word=$2 3499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3500printf %s "checking for $ac_word... " >&6; } 3501if test ${ac_cv_prog_ac_ct_CC+y} 3502then : 3503 printf %s "(cached) " >&6 3504else case e in #( 3505 e) if test -n "$ac_ct_CC"; then 3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3507else 3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH 3510do 3511 IFS=$as_save_IFS 3512 case $as_dir in #((( 3513 '') as_dir=./ ;; 3514 */) ;; 3515 *) as_dir=$as_dir/ ;; 3516 esac 3517 for ac_exec_ext in '' $ac_executable_extensions; do 3518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3519 ac_cv_prog_ac_ct_CC="$ac_prog" 3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3521 break 2 3522 fi 3523done 3524 done 3525IFS=$as_save_IFS 3526 3527fi ;; 3528esac 3529fi 3530ac_ct_CC=$ac_cv_prog_ac_ct_CC 3531if test -n "$ac_ct_CC"; then 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3533printf "%s\n" "$ac_ct_CC" >&6; } 3534else 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3536printf "%s\n" "no" >&6; } 3537fi 3538 3539 3540 test -n "$ac_ct_CC" && break 3541done 3542 3543 if test "x$ac_ct_CC" = x; then 3544 CC="" 3545 else 3546 case $cross_compiling:$ac_tool_warned in 3547yes:) 3548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3549printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3550ac_tool_warned=yes ;; 3551esac 3552 CC=$ac_ct_CC 3553 fi 3554fi 3555 3556fi 3557if test -z "$CC"; then 3558 if test -n "$ac_tool_prefix"; then 3559 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3560set dummy ${ac_tool_prefix}clang; ac_word=$2 3561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3562printf %s "checking for $ac_word... " >&6; } 3563if test ${ac_cv_prog_CC+y} 3564then : 3565 printf %s "(cached) " >&6 3566else case e in #( 3567 e) if test -n "$CC"; then 3568 ac_cv_prog_CC="$CC" # Let the user override the test. 3569else 3570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3571for as_dir in $PATH 3572do 3573 IFS=$as_save_IFS 3574 case $as_dir in #((( 3575 '') as_dir=./ ;; 3576 */) ;; 3577 *) as_dir=$as_dir/ ;; 3578 esac 3579 for ac_exec_ext in '' $ac_executable_extensions; do 3580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3581 ac_cv_prog_CC="${ac_tool_prefix}clang" 3582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3583 break 2 3584 fi 3585done 3586 done 3587IFS=$as_save_IFS 3588 3589fi ;; 3590esac 3591fi 3592CC=$ac_cv_prog_CC 3593if test -n "$CC"; then 3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3595printf "%s\n" "$CC" >&6; } 3596else 3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3598printf "%s\n" "no" >&6; } 3599fi 3600 3601 3602fi 3603if test -z "$ac_cv_prog_CC"; then 3604 ac_ct_CC=$CC 3605 # Extract the first word of "clang", so it can be a program name with args. 3606set dummy clang; ac_word=$2 3607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3608printf %s "checking for $ac_word... " >&6; } 3609if test ${ac_cv_prog_ac_ct_CC+y} 3610then : 3611 printf %s "(cached) " >&6 3612else case e in #( 3613 e) if test -n "$ac_ct_CC"; then 3614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3615else 3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3617for as_dir in $PATH 3618do 3619 IFS=$as_save_IFS 3620 case $as_dir in #((( 3621 '') as_dir=./ ;; 3622 */) ;; 3623 *) as_dir=$as_dir/ ;; 3624 esac 3625 for ac_exec_ext in '' $ac_executable_extensions; do 3626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3627 ac_cv_prog_ac_ct_CC="clang" 3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3629 break 2 3630 fi 3631done 3632 done 3633IFS=$as_save_IFS 3634 3635fi ;; 3636esac 3637fi 3638ac_ct_CC=$ac_cv_prog_ac_ct_CC 3639if test -n "$ac_ct_CC"; then 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3641printf "%s\n" "$ac_ct_CC" >&6; } 3642else 3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644printf "%s\n" "no" >&6; } 3645fi 3646 3647 if test "x$ac_ct_CC" = x; then 3648 CC="" 3649 else 3650 case $cross_compiling:$ac_tool_warned in 3651yes:) 3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3653printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3654ac_tool_warned=yes ;; 3655esac 3656 CC=$ac_ct_CC 3657 fi 3658else 3659 CC="$ac_cv_prog_CC" 3660fi 3661 3662fi 3663 3664 3665test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3666printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3667as_fn_error $? "no acceptable C compiler found in \$PATH 3668See 'config.log' for more details" "$LINENO" 5; } 3669 3670# Provide some information about the compiler. 3671printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3672set X $ac_compile 3673ac_compiler=$2 3674for ac_option in --version -v -V -qversion -version; do 3675 { { ac_try="$ac_compiler $ac_option >&5" 3676case "(($ac_try" in 3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3678 *) ac_try_echo=$ac_try;; 3679esac 3680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3681printf "%s\n" "$ac_try_echo"; } >&5 3682 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3683 ac_status=$? 3684 if test -s conftest.err; then 3685 sed '10a\ 3686... rest of stderr output deleted ... 3687 10q' conftest.err >conftest.er1 3688 cat conftest.er1 >&5 3689 fi 3690 rm -f conftest.er1 conftest.err 3691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3692 test $ac_status = 0; } 3693done 3694 3695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3696/* end confdefs.h. */ 3697 3698int 3699main (void) 3700{ 3701 3702 ; 3703 return 0; 3704} 3705_ACEOF 3706ac_clean_files_save=$ac_clean_files 3707ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3708# Try to create an executable without -o first, disregard a.out. 3709# It will help us diagnose broken compilers, and finding out an intuition 3710# of exeext. 3711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3712printf %s "checking whether the C compiler works... " >&6; } 3713ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3714 3715# The possible output files: 3716ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3717 3718ac_rmfiles= 3719for ac_file in $ac_files 3720do 3721 case $ac_file in 3722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3723 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3724 esac 3725done 3726rm -f $ac_rmfiles 3727 3728if { { ac_try="$ac_link_default" 3729case "(($ac_try" in 3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3731 *) ac_try_echo=$ac_try;; 3732esac 3733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3734printf "%s\n" "$ac_try_echo"; } >&5 3735 (eval "$ac_link_default") 2>&5 3736 ac_status=$? 3737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3738 test $ac_status = 0; } 3739then : 3740 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3741# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3742# in a Makefile. We should not override ac_cv_exeext if it was cached, 3743# so that the user can short-circuit this test for compilers unknown to 3744# Autoconf. 3745for ac_file in $ac_files '' 3746do 3747 test -f "$ac_file" || continue 3748 case $ac_file in 3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3750 ;; 3751 [ab].out ) 3752 # We found the default executable, but exeext='' is most 3753 # certainly right. 3754 break;; 3755 *.* ) 3756 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3757 then :; else 3758 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3759 fi 3760 # We set ac_cv_exeext here because the later test for it is not 3761 # safe: cross compilers may not add the suffix if given an '-o' 3762 # argument, so we may need to know it at that point already. 3763 # Even if this section looks crufty: it has the advantage of 3764 # actually working. 3765 break;; 3766 * ) 3767 break;; 3768 esac 3769done 3770test "$ac_cv_exeext" = no && ac_cv_exeext= 3771 3772else case e in #( 3773 e) ac_file='' ;; 3774esac 3775fi 3776if test -z "$ac_file" 3777then : 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3779printf "%s\n" "no" >&6; } 3780printf "%s\n" "$as_me: failed program was:" >&5 3781sed 's/^/| /' conftest.$ac_ext >&5 3782 3783{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3784printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3785as_fn_error 77 "C compiler cannot create executables 3786See 'config.log' for more details" "$LINENO" 5; } 3787else case e in #( 3788 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3789printf "%s\n" "yes" >&6; } ;; 3790esac 3791fi 3792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3793printf %s "checking for C compiler default output file name... " >&6; } 3794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3795printf "%s\n" "$ac_file" >&6; } 3796ac_exeext=$ac_cv_exeext 3797 3798rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3799ac_clean_files=$ac_clean_files_save 3800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3801printf %s "checking for suffix of executables... " >&6; } 3802if { { ac_try="$ac_link" 3803case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806esac 3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3808printf "%s\n" "$ac_try_echo"; } >&5 3809 (eval "$ac_link") 2>&5 3810 ac_status=$? 3811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3812 test $ac_status = 0; } 3813then : 3814 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3815# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3816# work properly (i.e., refer to 'conftest.exe'), while it won't with 3817# 'rm'. 3818for ac_file in conftest.exe conftest conftest.*; do 3819 test -f "$ac_file" || continue 3820 case $ac_file in 3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3823 break;; 3824 * ) break;; 3825 esac 3826done 3827else case e in #( 3828 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3829printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3830as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3831See 'config.log' for more details" "$LINENO" 5; } ;; 3832esac 3833fi 3834rm -f conftest conftest$ac_cv_exeext 3835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3836printf "%s\n" "$ac_cv_exeext" >&6; } 3837 3838rm -f conftest.$ac_ext 3839EXEEXT=$ac_cv_exeext 3840ac_exeext=$EXEEXT 3841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843#include <stdio.h> 3844int 3845main (void) 3846{ 3847FILE *f = fopen ("conftest.out", "w"); 3848 if (!f) 3849 return 1; 3850 return ferror (f) || fclose (f) != 0; 3851 3852 ; 3853 return 0; 3854} 3855_ACEOF 3856ac_clean_files="$ac_clean_files conftest.out" 3857# Check that the compiler produces executables we can run. If not, either 3858# the compiler is broken, or we cross compile. 3859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3860printf %s "checking whether we are cross compiling... " >&6; } 3861if test "$cross_compiling" != yes; then 3862 { { ac_try="$ac_link" 3863case "(($ac_try" in 3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3865 *) ac_try_echo=$ac_try;; 3866esac 3867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3868printf "%s\n" "$ac_try_echo"; } >&5 3869 (eval "$ac_link") 2>&5 3870 ac_status=$? 3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3872 test $ac_status = 0; } 3873 if { ac_try='./conftest$ac_cv_exeext' 3874 { { case "(($ac_try" in 3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3876 *) ac_try_echo=$ac_try;; 3877esac 3878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3879printf "%s\n" "$ac_try_echo"; } >&5 3880 (eval "$ac_try") 2>&5 3881 ac_status=$? 3882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3883 test $ac_status = 0; }; }; then 3884 cross_compiling=no 3885 else 3886 if test "$cross_compiling" = maybe; then 3887 cross_compiling=yes 3888 else 3889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3890printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3891as_fn_error 77 "cannot run C compiled programs. 3892If you meant to cross compile, use '--host'. 3893See 'config.log' for more details" "$LINENO" 5; } 3894 fi 3895 fi 3896fi 3897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3898printf "%s\n" "$cross_compiling" >&6; } 3899 3900rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3901 conftest.o conftest.obj conftest.out 3902ac_clean_files=$ac_clean_files_save 3903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3904printf %s "checking for suffix of object files... " >&6; } 3905if test ${ac_cv_objext+y} 3906then : 3907 printf %s "(cached) " >&6 3908else case e in #( 3909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3910/* end confdefs.h. */ 3911 3912int 3913main (void) 3914{ 3915 3916 ; 3917 return 0; 3918} 3919_ACEOF 3920rm -f conftest.o conftest.obj 3921if { { ac_try="$ac_compile" 3922case "(($ac_try" in 3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3924 *) ac_try_echo=$ac_try;; 3925esac 3926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3927printf "%s\n" "$ac_try_echo"; } >&5 3928 (eval "$ac_compile") 2>&5 3929 ac_status=$? 3930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3931 test $ac_status = 0; } 3932then : 3933 for ac_file in conftest.o conftest.obj conftest.*; do 3934 test -f "$ac_file" || continue; 3935 case $ac_file in 3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3938 break;; 3939 esac 3940done 3941else case e in #( 3942 e) printf "%s\n" "$as_me: failed program was:" >&5 3943sed 's/^/| /' conftest.$ac_ext >&5 3944 3945{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3946printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3947as_fn_error $? "cannot compute suffix of object files: cannot compile 3948See 'config.log' for more details" "$LINENO" 5; } ;; 3949esac 3950fi 3951rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3952esac 3953fi 3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3955printf "%s\n" "$ac_cv_objext" >&6; } 3956OBJEXT=$ac_cv_objext 3957ac_objext=$OBJEXT 3958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3959printf %s "checking whether the compiler supports GNU C... " >&6; } 3960if test ${ac_cv_c_compiler_gnu+y} 3961then : 3962 printf %s "(cached) " >&6 3963else case e in #( 3964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966 3967int 3968main (void) 3969{ 3970#ifndef __GNUC__ 3971 choke me 3972#endif 3973 3974 ; 3975 return 0; 3976} 3977_ACEOF 3978if ac_fn_c_try_compile "$LINENO" 3979then : 3980 ac_compiler_gnu=yes 3981else case e in #( 3982 e) ac_compiler_gnu=no ;; 3983esac 3984fi 3985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3986ac_cv_c_compiler_gnu=$ac_compiler_gnu 3987 ;; 3988esac 3989fi 3990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3991printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3992ac_compiler_gnu=$ac_cv_c_compiler_gnu 3993 3994if test $ac_compiler_gnu = yes; then 3995 GCC=yes 3996else 3997 GCC= 3998fi 3999ac_test_CFLAGS=${CFLAGS+y} 4000ac_save_CFLAGS=$CFLAGS 4001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4002printf %s "checking whether $CC accepts -g... " >&6; } 4003if test ${ac_cv_prog_cc_g+y} 4004then : 4005 printf %s "(cached) " >&6 4006else case e in #( 4007 e) ac_save_c_werror_flag=$ac_c_werror_flag 4008 ac_c_werror_flag=yes 4009 ac_cv_prog_cc_g=no 4010 CFLAGS="-g" 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4012/* end confdefs.h. */ 4013 4014int 4015main (void) 4016{ 4017 4018 ; 4019 return 0; 4020} 4021_ACEOF 4022if ac_fn_c_try_compile "$LINENO" 4023then : 4024 ac_cv_prog_cc_g=yes 4025else case e in #( 4026 e) CFLAGS="" 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029 4030int 4031main (void) 4032{ 4033 4034 ; 4035 return 0; 4036} 4037_ACEOF 4038if ac_fn_c_try_compile "$LINENO" 4039then : 4040 4041else case e in #( 4042 e) ac_c_werror_flag=$ac_save_c_werror_flag 4043 CFLAGS="-g" 4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4045/* end confdefs.h. */ 4046 4047int 4048main (void) 4049{ 4050 4051 ; 4052 return 0; 4053} 4054_ACEOF 4055if ac_fn_c_try_compile "$LINENO" 4056then : 4057 ac_cv_prog_cc_g=yes 4058fi 4059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4060esac 4061fi 4062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4063esac 4064fi 4065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4066 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4067esac 4068fi 4069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4070printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4071if test $ac_test_CFLAGS; then 4072 CFLAGS=$ac_save_CFLAGS 4073elif test $ac_cv_prog_cc_g = yes; then 4074 if test "$GCC" = yes; then 4075 CFLAGS="-g -O2" 4076 else 4077 CFLAGS="-g" 4078 fi 4079else 4080 if test "$GCC" = yes; then 4081 CFLAGS="-O2" 4082 else 4083 CFLAGS= 4084 fi 4085fi 4086ac_prog_cc_stdc=no 4087if test x$ac_prog_cc_stdc = xno 4088then : 4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4090printf %s "checking for $CC option to enable C11 features... " >&6; } 4091if test ${ac_cv_prog_cc_c11+y} 4092then : 4093 printf %s "(cached) " >&6 4094else case e in #( 4095 e) ac_cv_prog_cc_c11=no 4096ac_save_CC=$CC 4097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099$ac_c_conftest_c11_program 4100_ACEOF 4101for ac_arg in '' -std=gnu11 4102do 4103 CC="$ac_save_CC $ac_arg" 4104 if ac_fn_c_try_compile "$LINENO" 4105then : 4106 ac_cv_prog_cc_c11=$ac_arg 4107fi 4108rm -f core conftest.err conftest.$ac_objext conftest.beam 4109 test "x$ac_cv_prog_cc_c11" != "xno" && break 4110done 4111rm -f conftest.$ac_ext 4112CC=$ac_save_CC ;; 4113esac 4114fi 4115 4116if test "x$ac_cv_prog_cc_c11" = xno 4117then : 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4119printf "%s\n" "unsupported" >&6; } 4120else case e in #( 4121 e) if test "x$ac_cv_prog_cc_c11" = x 4122then : 4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4124printf "%s\n" "none needed" >&6; } 4125else case e in #( 4126 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4127printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4128 CC="$CC $ac_cv_prog_cc_c11" ;; 4129esac 4130fi 4131 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4132 ac_prog_cc_stdc=c11 ;; 4133esac 4134fi 4135fi 4136if test x$ac_prog_cc_stdc = xno 4137then : 4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4139printf %s "checking for $CC option to enable C99 features... " >&6; } 4140if test ${ac_cv_prog_cc_c99+y} 4141then : 4142 printf %s "(cached) " >&6 4143else case e in #( 4144 e) ac_cv_prog_cc_c99=no 4145ac_save_CC=$CC 4146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4147/* end confdefs.h. */ 4148$ac_c_conftest_c99_program 4149_ACEOF 4150for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4151do 4152 CC="$ac_save_CC $ac_arg" 4153 if ac_fn_c_try_compile "$LINENO" 4154then : 4155 ac_cv_prog_cc_c99=$ac_arg 4156fi 4157rm -f core conftest.err conftest.$ac_objext conftest.beam 4158 test "x$ac_cv_prog_cc_c99" != "xno" && break 4159done 4160rm -f conftest.$ac_ext 4161CC=$ac_save_CC ;; 4162esac 4163fi 4164 4165if test "x$ac_cv_prog_cc_c99" = xno 4166then : 4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4168printf "%s\n" "unsupported" >&6; } 4169else case e in #( 4170 e) if test "x$ac_cv_prog_cc_c99" = x 4171then : 4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4173printf "%s\n" "none needed" >&6; } 4174else case e in #( 4175 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4176printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4177 CC="$CC $ac_cv_prog_cc_c99" ;; 4178esac 4179fi 4180 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4181 ac_prog_cc_stdc=c99 ;; 4182esac 4183fi 4184fi 4185if test x$ac_prog_cc_stdc = xno 4186then : 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4188printf %s "checking for $CC option to enable C89 features... " >&6; } 4189if test ${ac_cv_prog_cc_c89+y} 4190then : 4191 printf %s "(cached) " >&6 4192else case e in #( 4193 e) ac_cv_prog_cc_c89=no 4194ac_save_CC=$CC 4195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196/* end confdefs.h. */ 4197$ac_c_conftest_c89_program 4198_ACEOF 4199for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4200do 4201 CC="$ac_save_CC $ac_arg" 4202 if ac_fn_c_try_compile "$LINENO" 4203then : 4204 ac_cv_prog_cc_c89=$ac_arg 4205fi 4206rm -f core conftest.err conftest.$ac_objext conftest.beam 4207 test "x$ac_cv_prog_cc_c89" != "xno" && break 4208done 4209rm -f conftest.$ac_ext 4210CC=$ac_save_CC ;; 4211esac 4212fi 4213 4214if test "x$ac_cv_prog_cc_c89" = xno 4215then : 4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4217printf "%s\n" "unsupported" >&6; } 4218else case e in #( 4219 e) if test "x$ac_cv_prog_cc_c89" = x 4220then : 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4222printf "%s\n" "none needed" >&6; } 4223else case e in #( 4224 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4225printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4226 CC="$CC $ac_cv_prog_cc_c89" ;; 4227esac 4228fi 4229 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4230 ac_prog_cc_stdc=c89 ;; 4231esac 4232fi 4233fi 4234 4235ac_ext=c 4236ac_cpp='$CPP $CPPFLAGS' 4237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4239ac_compiler_gnu=$ac_cv_c_compiler_gnu 4240 4241 4242 ac_ext=c 4243ac_cpp='$CPP $CPPFLAGS' 4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4246ac_compiler_gnu=$ac_cv_c_compiler_gnu 4247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4248printf %s "checking whether $CC understands -c and -o together... " >&6; } 4249if test ${am_cv_prog_cc_c_o+y} 4250then : 4251 printf %s "(cached) " >&6 4252else case e in #( 4253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4254/* end confdefs.h. */ 4255 4256int 4257main (void) 4258{ 4259 4260 ; 4261 return 0; 4262} 4263_ACEOF 4264 # Make sure it works both with $CC and with simple cc. 4265 # Following AC_PROG_CC_C_O, we do the test twice because some 4266 # compilers refuse to overwrite an existing .o file with -o, 4267 # though they will create one. 4268 am_cv_prog_cc_c_o=yes 4269 for am_i in 1 2; do 4270 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4271 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4272 ac_status=$? 4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4274 (exit $ac_status); } \ 4275 && test -f conftest2.$ac_objext; then 4276 : OK 4277 else 4278 am_cv_prog_cc_c_o=no 4279 break 4280 fi 4281 done 4282 rm -f core conftest* 4283 unset am_i ;; 4284esac 4285fi 4286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4287printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4288if test "$am_cv_prog_cc_c_o" != yes; then 4289 # Losing compiler, so override with the script. 4290 # FIXME: It is wrong to rewrite CC. 4291 # But if we don't then we get into trouble of one sort or another. 4292 # A longer-term fix would be to have automake use am__CC in this case, 4293 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4294 CC="$am_aux_dir/compile $CC" 4295fi 4296ac_ext=c 4297ac_cpp='$CPP $CPPFLAGS' 4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4300ac_compiler_gnu=$ac_cv_c_compiler_gnu 4301 4302 4303depcc="$CC" am_compiler_list= 4304 4305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4306printf %s "checking dependency style of $depcc... " >&6; } 4307if test ${am_cv_CC_dependencies_compiler_type+y} 4308then : 4309 printf %s "(cached) " >&6 4310else case e in #( 4311 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4312 # We make a subdir and do the tests there. Otherwise we can end up 4313 # making bogus files that we don't know about and never remove. For 4314 # instance it was reported that on HP-UX the gcc test will end up 4315 # making a dummy file named 'D' -- because '-MD' means "put the output 4316 # in D". 4317 rm -rf conftest.dir 4318 mkdir conftest.dir 4319 # Copy depcomp to subdir because otherwise we won't find it if we're 4320 # using a relative directory. 4321 cp "$am_depcomp" conftest.dir 4322 cd conftest.dir 4323 # We will build objects and dependencies in a subdirectory because 4324 # it helps to detect inapplicable dependency modes. For instance 4325 # both Tru64's cc and ICC support -MD to output dependencies as a 4326 # side effect of compilation, but ICC will put the dependencies in 4327 # the current directory while Tru64 will put them in the object 4328 # directory. 4329 mkdir sub 4330 4331 am_cv_CC_dependencies_compiler_type=none 4332 if test "$am_compiler_list" = ""; then 4333 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4334 fi 4335 am__universal=false 4336 case " $depcc " in #( 4337 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4338 esac 4339 4340 for depmode in $am_compiler_list; do 4341 # Setup a source with many dependencies, because some compilers 4342 # like to wrap large dependency lists on column 80 (with \), and 4343 # we should not choose a depcomp mode which is confused by this. 4344 # 4345 # We need to recreate these files for each test, as the compiler may 4346 # overwrite some of them when testing with obscure command lines. 4347 # This happens at least with the AIX C compiler. 4348 : > sub/conftest.c 4349 for i in 1 2 3 4 5 6; do 4350 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4351 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4352 # Solaris 10 /bin/sh. 4353 echo '/* dummy */' > sub/conftst$i.h 4354 done 4355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4356 4357 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4358 # mode. It turns out that the SunPro C++ compiler does not properly 4359 # handle '-M -o', and we need to detect this. Also, some Intel 4360 # versions had trouble with output in subdirs. 4361 am__obj=sub/conftest.${OBJEXT-o} 4362 am__minus_obj="-o $am__obj" 4363 case $depmode in 4364 gcc) 4365 # This depmode causes a compiler race in universal mode. 4366 test "$am__universal" = false || continue 4367 ;; 4368 nosideeffect) 4369 # After this tag, mechanisms are not by side-effect, so they'll 4370 # only be used when explicitly requested. 4371 if test "x$enable_dependency_tracking" = xyes; then 4372 continue 4373 else 4374 break 4375 fi 4376 ;; 4377 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4378 # This compiler won't grok '-c -o', but also, the minuso test has 4379 # not run yet. These depmodes are late enough in the game, and 4380 # so weak that their functioning should not be impacted. 4381 am__obj=conftest.${OBJEXT-o} 4382 am__minus_obj= 4383 ;; 4384 none) break ;; 4385 esac 4386 if depmode=$depmode \ 4387 source=sub/conftest.c object=$am__obj \ 4388 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4389 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4390 >/dev/null 2>conftest.err && 4391 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4392 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4393 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4394 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4395 # icc doesn't choke on unknown options, it will just issue warnings 4396 # or remarks (even with -Werror). So we grep stderr for any message 4397 # that says an option was ignored or not supported. 4398 # When given -MP, icc 7.0 and 7.1 complain thusly: 4399 # icc: Command line warning: ignoring option '-M'; no argument required 4400 # The diagnosis changed in icc 8.0: 4401 # icc: Command line remark: option '-MP' not supported 4402 if (grep 'ignoring option' conftest.err || 4403 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4404 am_cv_CC_dependencies_compiler_type=$depmode 4405 break 4406 fi 4407 fi 4408 done 4409 4410 cd .. 4411 rm -rf conftest.dir 4412else 4413 am_cv_CC_dependencies_compiler_type=none 4414fi 4415 ;; 4416esac 4417fi 4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4419printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4420CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4421 4422 if 4423 test "x$enable_dependency_tracking" != xno \ 4424 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4425 am__fastdepCC_TRUE= 4426 am__fastdepCC_FALSE='#' 4427else 4428 am__fastdepCC_TRUE='#' 4429 am__fastdepCC_FALSE= 4430fi 4431 4432 4433 4434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4435printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4436if test ${ac_cv_c_undeclared_builtin_options+y} 4437then : 4438 printf %s "(cached) " >&6 4439else case e in #( 4440 e) ac_save_CFLAGS=$CFLAGS 4441 ac_cv_c_undeclared_builtin_options='cannot detect' 4442 for ac_arg in '' -fno-builtin; do 4443 CFLAGS="$ac_save_CFLAGS $ac_arg" 4444 # This test program should *not* compile successfully. 4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4446/* end confdefs.h. */ 4447 4448int 4449main (void) 4450{ 4451(void) strchr; 4452 ; 4453 return 0; 4454} 4455_ACEOF 4456if ac_fn_c_try_compile "$LINENO" 4457then : 4458 4459else case e in #( 4460 e) # This test program should compile successfully. 4461 # No library function is consistently available on 4462 # freestanding implementations, so test against a dummy 4463 # declaration. Include always-available headers on the 4464 # off chance that they somehow elicit warnings. 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4466/* end confdefs.h. */ 4467#include <float.h> 4468#include <limits.h> 4469#include <stdarg.h> 4470#include <stddef.h> 4471extern void ac_decl (int, char *); 4472 4473int 4474main (void) 4475{ 4476(void) ac_decl (0, (char *) 0); 4477 (void) ac_decl; 4478 4479 ; 4480 return 0; 4481} 4482_ACEOF 4483if ac_fn_c_try_compile "$LINENO" 4484then : 4485 if test x"$ac_arg" = x 4486then : 4487 ac_cv_c_undeclared_builtin_options='none needed' 4488else case e in #( 4489 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4490esac 4491fi 4492 break 4493fi 4494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4495esac 4496fi 4497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4498 done 4499 CFLAGS=$ac_save_CFLAGS 4500 ;; 4501esac 4502fi 4503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4504printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4505 case $ac_cv_c_undeclared_builtin_options in #( 4506 'cannot detect') : 4507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4508printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4509as_fn_error $? "cannot make $CC report undeclared builtins 4510See 'config.log' for more details" "$LINENO" 5; } ;; #( 4511 'none needed') : 4512 ac_c_undeclared_builtin_options='' ;; #( 4513 *) : 4514 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4515esac 4516 4517ac_header= ac_cache= 4518for ac_item in $ac_header_c_list 4519do 4520 if test $ac_cache; then 4521 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4522 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4523 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4524 fi 4525 ac_header= ac_cache= 4526 elif test $ac_header; then 4527 ac_cache=$ac_item 4528 else 4529 ac_header=$ac_item 4530 fi 4531done 4532 4533 4534 4535 4536 4537 4538 4539 4540if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4541then : 4542 4543printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4544 4545fi 4546 4547 4548 4549 4550ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4551if test "x$ac_cv_have_decl___clang__" = xyes 4552then : 4553 CLANGCC="yes" 4554else case e in #( 4555 e) CLANGCC="no" ;; 4556esac 4557fi 4558ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4559if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4560then : 4561 INTELCC="yes" 4562else case e in #( 4563 e) INTELCC="no" ;; 4564esac 4565fi 4566ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4567if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4568then : 4569 SUNCC="yes" 4570else case e in #( 4571 e) SUNCC="no" ;; 4572esac 4573fi 4574 4575 4576 4577 4578 4579 4580 4581 4582if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4583 if test -n "$ac_tool_prefix"; then 4584 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4585set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4587printf %s "checking for $ac_word... " >&6; } 4588if test ${ac_cv_path_PKG_CONFIG+y} 4589then : 4590 printf %s "(cached) " >&6 4591else case e in #( 4592 e) case $PKG_CONFIG in 4593 [\\/]* | ?:[\\/]*) 4594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4595 ;; 4596 *) 4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4598for as_dir in $PATH 4599do 4600 IFS=$as_save_IFS 4601 case $as_dir in #((( 4602 '') as_dir=./ ;; 4603 */) ;; 4604 *) as_dir=$as_dir/ ;; 4605 esac 4606 for ac_exec_ext in '' $ac_executable_extensions; do 4607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4608 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4610 break 2 4611 fi 4612done 4613 done 4614IFS=$as_save_IFS 4615 4616 ;; 4617esac ;; 4618esac 4619fi 4620PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4621if test -n "$PKG_CONFIG"; then 4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4623printf "%s\n" "$PKG_CONFIG" >&6; } 4624else 4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4626printf "%s\n" "no" >&6; } 4627fi 4628 4629 4630fi 4631if test -z "$ac_cv_path_PKG_CONFIG"; then 4632 ac_pt_PKG_CONFIG=$PKG_CONFIG 4633 # Extract the first word of "pkg-config", so it can be a program name with args. 4634set dummy pkg-config; ac_word=$2 4635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4636printf %s "checking for $ac_word... " >&6; } 4637if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4638then : 4639 printf %s "(cached) " >&6 4640else case e in #( 4641 e) case $ac_pt_PKG_CONFIG in 4642 [\\/]* | ?:[\\/]*) 4643 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4644 ;; 4645 *) 4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4647for as_dir in $PATH 4648do 4649 IFS=$as_save_IFS 4650 case $as_dir in #((( 4651 '') as_dir=./ ;; 4652 */) ;; 4653 *) as_dir=$as_dir/ ;; 4654 esac 4655 for ac_exec_ext in '' $ac_executable_extensions; do 4656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4657 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4659 break 2 4660 fi 4661done 4662 done 4663IFS=$as_save_IFS 4664 4665 ;; 4666esac ;; 4667esac 4668fi 4669ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4670if test -n "$ac_pt_PKG_CONFIG"; then 4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4672printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4673else 4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4675printf "%s\n" "no" >&6; } 4676fi 4677 4678 if test "x$ac_pt_PKG_CONFIG" = x; then 4679 PKG_CONFIG="" 4680 else 4681 case $cross_compiling:$ac_tool_warned in 4682yes:) 4683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4684printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4685ac_tool_warned=yes ;; 4686esac 4687 PKG_CONFIG=$ac_pt_PKG_CONFIG 4688 fi 4689else 4690 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4691fi 4692 4693fi 4694if test -n "$PKG_CONFIG"; then 4695 _pkg_min_version=0.9.0 4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4697printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4698 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4700printf "%s\n" "yes" >&6; } 4701 else 4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4703printf "%s\n" "no" >&6; } 4704 PKG_CONFIG="" 4705 fi 4706fi 4707 4708 4709 # Make sure we can run config.sub. 4710$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4711 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4712 4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4714printf %s "checking build system type... " >&6; } 4715if test ${ac_cv_build+y} 4716then : 4717 printf %s "(cached) " >&6 4718else case e in #( 4719 e) ac_build_alias=$build_alias 4720test "x$ac_build_alias" = x && 4721 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4722test "x$ac_build_alias" = x && 4723 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4724ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4725 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4726 ;; 4727esac 4728fi 4729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4730printf "%s\n" "$ac_cv_build" >&6; } 4731case $ac_cv_build in 4732*-*-*) ;; 4733*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4734esac 4735build=$ac_cv_build 4736ac_save_IFS=$IFS; IFS='-' 4737set x $ac_cv_build 4738shift 4739build_cpu=$1 4740build_vendor=$2 4741shift; shift 4742# Remember, the first character of IFS is used to create $*, 4743# except with old shells: 4744build_os=$* 4745IFS=$ac_save_IFS 4746case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4747 4748 4749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4750printf %s "checking host system type... " >&6; } 4751if test ${ac_cv_host+y} 4752then : 4753 printf %s "(cached) " >&6 4754else case e in #( 4755 e) if test "x$host_alias" = x; then 4756 ac_cv_host=$ac_cv_build 4757else 4758 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4759 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4760fi 4761 ;; 4762esac 4763fi 4764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4765printf "%s\n" "$ac_cv_host" >&6; } 4766case $ac_cv_host in 4767*-*-*) ;; 4768*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4769esac 4770host=$ac_cv_host 4771ac_save_IFS=$IFS; IFS='-' 4772set x $ac_cv_host 4773shift 4774host_cpu=$1 4775host_vendor=$2 4776shift; shift 4777# Remember, the first character of IFS is used to create $*, 4778# except with old shells: 4779host_os=$* 4780IFS=$ac_save_IFS 4781case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4782 4783 4784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4785printf %s "checking for a sed that does not truncate output... " >&6; } 4786if test ${ac_cv_path_SED+y} 4787then : 4788 printf %s "(cached) " >&6 4789else case e in #( 4790 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4791 for ac_i in 1 2 3 4 5 6 7; do 4792 ac_script="$ac_script$as_nl$ac_script" 4793 done 4794 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4795 { ac_script=; unset ac_script;} 4796 if test -z "$SED"; then 4797 ac_path_SED_found=false 4798 # Loop through the user's path and test for each of PROGNAME-LIST 4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4800for as_dir in $PATH 4801do 4802 IFS=$as_save_IFS 4803 case $as_dir in #((( 4804 '') as_dir=./ ;; 4805 */) ;; 4806 *) as_dir=$as_dir/ ;; 4807 esac 4808 for ac_prog in sed gsed 4809 do 4810 for ac_exec_ext in '' $ac_executable_extensions; do 4811 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4812 as_fn_executable_p "$ac_path_SED" || continue 4813# Check for GNU ac_path_SED and select it if it is found. 4814 # Check for GNU $ac_path_SED 4815case `"$ac_path_SED" --version 2>&1` in #( 4816*GNU*) 4817 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4818#( 4819*) 4820 ac_count=0 4821 printf %s 0123456789 >"conftest.in" 4822 while : 4823 do 4824 cat "conftest.in" "conftest.in" >"conftest.tmp" 4825 mv "conftest.tmp" "conftest.in" 4826 cp "conftest.in" "conftest.nl" 4827 printf "%s\n" '' >> "conftest.nl" 4828 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4830 as_fn_arith $ac_count + 1 && ac_count=$as_val 4831 if test $ac_count -gt ${ac_path_SED_max-0}; then 4832 # Best one so far, save it but keep looking for a better one 4833 ac_cv_path_SED="$ac_path_SED" 4834 ac_path_SED_max=$ac_count 4835 fi 4836 # 10*(2^10) chars as input seems more than enough 4837 test $ac_count -gt 10 && break 4838 done 4839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4840esac 4841 4842 $ac_path_SED_found && break 3 4843 done 4844 done 4845 done 4846IFS=$as_save_IFS 4847 if test -z "$ac_cv_path_SED"; then 4848 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4849 fi 4850else 4851 ac_cv_path_SED=$SED 4852fi 4853 ;; 4854esac 4855fi 4856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4857printf "%s\n" "$ac_cv_path_SED" >&6; } 4858 SED="$ac_cv_path_SED" 4859 rm -f conftest.sed 4860 4861 4862 4863 4864 4865 4866# Check whether --enable-selective-werror was given. 4867if test ${enable_selective_werror+y} 4868then : 4869 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4870else case e in #( 4871 e) SELECTIVE_WERROR=yes ;; 4872esac 4873fi 4874 4875 4876 4877 4878 4879# -v is too short to test reliably with XORG_TESTSET_CFLAG 4880if test "x$SUNCC" = "xyes"; then 4881 BASE_CFLAGS="-v" 4882else 4883 BASE_CFLAGS="" 4884fi 4885 4886# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900xorg_testset_save_CFLAGS="$CFLAGS" 4901 4902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4905printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4906if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4907then : 4908 printf %s "(cached) " >&6 4909else case e in #( 4910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4911/* end confdefs.h. */ 4912int i; 4913_ACEOF 4914if ac_fn_c_try_compile "$LINENO" 4915then : 4916 xorg_cv_cc_flag_unknown_warning_option=yes 4917else case e in #( 4918 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4919esac 4920fi 4921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4922esac 4923fi 4924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4927 CFLAGS="$xorg_testset_save_CFLAGS" 4928fi 4929 4930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4933 fi 4934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4937if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4938then : 4939 printf %s "(cached) " >&6 4940else case e in #( 4941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4942/* end confdefs.h. */ 4943int i; 4944_ACEOF 4945if ac_fn_c_try_compile "$LINENO" 4946then : 4947 xorg_cv_cc_flag_unused_command_line_argument=yes 4948else case e in #( 4949 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4950esac 4951fi 4952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4953esac 4954fi 4955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4956printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4958 CFLAGS="$xorg_testset_save_CFLAGS" 4959fi 4960 4961found="no" 4962 4963 if test $found = "no" ; then 4964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4966 fi 4967 4968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4970 fi 4971 4972 CFLAGS="$CFLAGS -Wall" 4973 4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4975printf %s "checking if $CC supports -Wall... " >&6; } 4976 cacheid=xorg_cv_cc_flag__Wall 4977 if eval test \${$cacheid+y} 4978then : 4979 printf %s "(cached) " >&6 4980else case e in #( 4981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4982/* end confdefs.h. */ 4983int i; 4984int 4985main (void) 4986{ 4987 4988 ; 4989 return 0; 4990} 4991_ACEOF 4992if ac_fn_c_try_link "$LINENO" 4993then : 4994 eval $cacheid=yes 4995else case e in #( 4996 e) eval $cacheid=no ;; 4997esac 4998fi 4999rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5000 conftest$ac_exeext conftest.$ac_ext ;; 5001esac 5002fi 5003 5004 5005 CFLAGS="$xorg_testset_save_CFLAGS" 5006 5007 eval supported=\$$cacheid 5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5009printf "%s\n" "$supported" >&6; } 5010 if test "$supported" = "yes" ; then 5011 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5012 found="yes" 5013 fi 5014 fi 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030xorg_testset_save_CFLAGS="$CFLAGS" 5031 5032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5036if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5037then : 5038 printf %s "(cached) " >&6 5039else case e in #( 5040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041/* end confdefs.h. */ 5042int i; 5043_ACEOF 5044if ac_fn_c_try_compile "$LINENO" 5045then : 5046 xorg_cv_cc_flag_unknown_warning_option=yes 5047else case e in #( 5048 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5049esac 5050fi 5051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5052esac 5053fi 5054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5057 CFLAGS="$xorg_testset_save_CFLAGS" 5058fi 5059 5060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5063 fi 5064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5067if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5068then : 5069 printf %s "(cached) " >&6 5070else case e in #( 5071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5072/* end confdefs.h. */ 5073int i; 5074_ACEOF 5075if ac_fn_c_try_compile "$LINENO" 5076then : 5077 xorg_cv_cc_flag_unused_command_line_argument=yes 5078else case e in #( 5079 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5080esac 5081fi 5082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5083esac 5084fi 5085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5088 CFLAGS="$xorg_testset_save_CFLAGS" 5089fi 5090 5091found="no" 5092 5093 if test $found = "no" ; then 5094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5096 fi 5097 5098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5100 fi 5101 5102 CFLAGS="$CFLAGS -Wpointer-arith" 5103 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5105printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5106 cacheid=xorg_cv_cc_flag__Wpointer_arith 5107 if eval test \${$cacheid+y} 5108then : 5109 printf %s "(cached) " >&6 5110else case e in #( 5111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113int i; 5114int 5115main (void) 5116{ 5117 5118 ; 5119 return 0; 5120} 5121_ACEOF 5122if ac_fn_c_try_link "$LINENO" 5123then : 5124 eval $cacheid=yes 5125else case e in #( 5126 e) eval $cacheid=no ;; 5127esac 5128fi 5129rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5130 conftest$ac_exeext conftest.$ac_ext ;; 5131esac 5132fi 5133 5134 5135 CFLAGS="$xorg_testset_save_CFLAGS" 5136 5137 eval supported=\$$cacheid 5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5139printf "%s\n" "$supported" >&6; } 5140 if test "$supported" = "yes" ; then 5141 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5142 found="yes" 5143 fi 5144 fi 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160xorg_testset_save_CFLAGS="$CFLAGS" 5161 5162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5165printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5166if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5167then : 5168 printf %s "(cached) " >&6 5169else case e in #( 5170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5171/* end confdefs.h. */ 5172int i; 5173_ACEOF 5174if ac_fn_c_try_compile "$LINENO" 5175then : 5176 xorg_cv_cc_flag_unknown_warning_option=yes 5177else case e in #( 5178 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5179esac 5180fi 5181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5182esac 5183fi 5184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5185printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5187 CFLAGS="$xorg_testset_save_CFLAGS" 5188fi 5189 5190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5193 fi 5194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5196printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5197if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5198then : 5199 printf %s "(cached) " >&6 5200else case e in #( 5201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203int i; 5204_ACEOF 5205if ac_fn_c_try_compile "$LINENO" 5206then : 5207 xorg_cv_cc_flag_unused_command_line_argument=yes 5208else case e in #( 5209 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5210esac 5211fi 5212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5213esac 5214fi 5215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5218 CFLAGS="$xorg_testset_save_CFLAGS" 5219fi 5220 5221found="no" 5222 5223 if test $found = "no" ; then 5224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5226 fi 5227 5228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5230 fi 5231 5232 CFLAGS="$CFLAGS -Wmissing-declarations" 5233 5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5235printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5236 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5237 if eval test \${$cacheid+y} 5238then : 5239 printf %s "(cached) " >&6 5240else case e in #( 5241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5242/* end confdefs.h. */ 5243int i; 5244int 5245main (void) 5246{ 5247 5248 ; 5249 return 0; 5250} 5251_ACEOF 5252if ac_fn_c_try_link "$LINENO" 5253then : 5254 eval $cacheid=yes 5255else case e in #( 5256 e) eval $cacheid=no ;; 5257esac 5258fi 5259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5260 conftest$ac_exeext conftest.$ac_ext ;; 5261esac 5262fi 5263 5264 5265 CFLAGS="$xorg_testset_save_CFLAGS" 5266 5267 eval supported=\$$cacheid 5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5269printf "%s\n" "$supported" >&6; } 5270 if test "$supported" = "yes" ; then 5271 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5272 found="yes" 5273 fi 5274 fi 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290xorg_testset_save_CFLAGS="$CFLAGS" 5291 5292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5296if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5297then : 5298 printf %s "(cached) " >&6 5299else case e in #( 5300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301/* end confdefs.h. */ 5302int i; 5303_ACEOF 5304if ac_fn_c_try_compile "$LINENO" 5305then : 5306 xorg_cv_cc_flag_unknown_warning_option=yes 5307else case e in #( 5308 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5309esac 5310fi 5311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5312esac 5313fi 5314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5315printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5317 CFLAGS="$xorg_testset_save_CFLAGS" 5318fi 5319 5320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5323 fi 5324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5326printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5327if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5328then : 5329 printf %s "(cached) " >&6 5330else case e in #( 5331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5332/* end confdefs.h. */ 5333int i; 5334_ACEOF 5335if ac_fn_c_try_compile "$LINENO" 5336then : 5337 xorg_cv_cc_flag_unused_command_line_argument=yes 5338else case e in #( 5339 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5340esac 5341fi 5342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5343esac 5344fi 5345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5348 CFLAGS="$xorg_testset_save_CFLAGS" 5349fi 5350 5351found="no" 5352 5353 if test $found = "no" ; then 5354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5356 fi 5357 5358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5360 fi 5361 5362 CFLAGS="$CFLAGS -Wformat=2" 5363 5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5365printf %s "checking if $CC supports -Wformat=2... " >&6; } 5366 cacheid=xorg_cv_cc_flag__Wformat_2 5367 if eval test \${$cacheid+y} 5368then : 5369 printf %s "(cached) " >&6 5370else case e in #( 5371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373int i; 5374int 5375main (void) 5376{ 5377 5378 ; 5379 return 0; 5380} 5381_ACEOF 5382if ac_fn_c_try_link "$LINENO" 5383then : 5384 eval $cacheid=yes 5385else case e in #( 5386 e) eval $cacheid=no ;; 5387esac 5388fi 5389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5390 conftest$ac_exeext conftest.$ac_ext ;; 5391esac 5392fi 5393 5394 5395 CFLAGS="$xorg_testset_save_CFLAGS" 5396 5397 eval supported=\$$cacheid 5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5399printf "%s\n" "$supported" >&6; } 5400 if test "$supported" = "yes" ; then 5401 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5402 found="yes" 5403 fi 5404 fi 5405 5406 if test $found = "no" ; then 5407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5409 fi 5410 5411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5413 fi 5414 5415 CFLAGS="$CFLAGS -Wformat" 5416 5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5418printf %s "checking if $CC supports -Wformat... " >&6; } 5419 cacheid=xorg_cv_cc_flag__Wformat 5420 if eval test \${$cacheid+y} 5421then : 5422 printf %s "(cached) " >&6 5423else case e in #( 5424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5425/* end confdefs.h. */ 5426int i; 5427int 5428main (void) 5429{ 5430 5431 ; 5432 return 0; 5433} 5434_ACEOF 5435if ac_fn_c_try_link "$LINENO" 5436then : 5437 eval $cacheid=yes 5438else case e in #( 5439 e) eval $cacheid=no ;; 5440esac 5441fi 5442rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5443 conftest$ac_exeext conftest.$ac_ext ;; 5444esac 5445fi 5446 5447 5448 CFLAGS="$xorg_testset_save_CFLAGS" 5449 5450 eval supported=\$$cacheid 5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5452printf "%s\n" "$supported" >&6; } 5453 if test "$supported" = "yes" ; then 5454 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5455 found="yes" 5456 fi 5457 fi 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475xorg_testset_save_CFLAGS="$CFLAGS" 5476 5477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5481if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5482then : 5483 printf %s "(cached) " >&6 5484else case e in #( 5485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486/* end confdefs.h. */ 5487int i; 5488_ACEOF 5489if ac_fn_c_try_compile "$LINENO" 5490then : 5491 xorg_cv_cc_flag_unknown_warning_option=yes 5492else case e in #( 5493 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5494esac 5495fi 5496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5497esac 5498fi 5499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5500printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5502 CFLAGS="$xorg_testset_save_CFLAGS" 5503fi 5504 5505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5508 fi 5509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5511printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5512if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5513then : 5514 printf %s "(cached) " >&6 5515else case e in #( 5516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5517/* end confdefs.h. */ 5518int i; 5519_ACEOF 5520if ac_fn_c_try_compile "$LINENO" 5521then : 5522 xorg_cv_cc_flag_unused_command_line_argument=yes 5523else case e in #( 5524 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5525esac 5526fi 5527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5528esac 5529fi 5530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5533 CFLAGS="$xorg_testset_save_CFLAGS" 5534fi 5535 5536found="no" 5537 5538 if test $found = "no" ; then 5539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5541 fi 5542 5543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5545 fi 5546 5547 CFLAGS="$CFLAGS -Wstrict-prototypes" 5548 5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5550printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5551 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5552 if eval test \${$cacheid+y} 5553then : 5554 printf %s "(cached) " >&6 5555else case e in #( 5556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557/* end confdefs.h. */ 5558int i; 5559int 5560main (void) 5561{ 5562 5563 ; 5564 return 0; 5565} 5566_ACEOF 5567if ac_fn_c_try_link "$LINENO" 5568then : 5569 eval $cacheid=yes 5570else case e in #( 5571 e) eval $cacheid=no ;; 5572esac 5573fi 5574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5575 conftest$ac_exeext conftest.$ac_ext ;; 5576esac 5577fi 5578 5579 5580 CFLAGS="$xorg_testset_save_CFLAGS" 5581 5582 eval supported=\$$cacheid 5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5584printf "%s\n" "$supported" >&6; } 5585 if test "$supported" = "yes" ; then 5586 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5587 found="yes" 5588 fi 5589 fi 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605xorg_testset_save_CFLAGS="$CFLAGS" 5606 5607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5611if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5612then : 5613 printf %s "(cached) " >&6 5614else case e in #( 5615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5616/* end confdefs.h. */ 5617int i; 5618_ACEOF 5619if ac_fn_c_try_compile "$LINENO" 5620then : 5621 xorg_cv_cc_flag_unknown_warning_option=yes 5622else case e in #( 5623 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5624esac 5625fi 5626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5627esac 5628fi 5629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5632 CFLAGS="$xorg_testset_save_CFLAGS" 5633fi 5634 5635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5638 fi 5639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5642if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5643then : 5644 printf %s "(cached) " >&6 5645else case e in #( 5646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647/* end confdefs.h. */ 5648int i; 5649_ACEOF 5650if ac_fn_c_try_compile "$LINENO" 5651then : 5652 xorg_cv_cc_flag_unused_command_line_argument=yes 5653else case e in #( 5654 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5655esac 5656fi 5657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5658esac 5659fi 5660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5663 CFLAGS="$xorg_testset_save_CFLAGS" 5664fi 5665 5666found="no" 5667 5668 if test $found = "no" ; then 5669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5671 fi 5672 5673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5675 fi 5676 5677 CFLAGS="$CFLAGS -Wmissing-prototypes" 5678 5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5680printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5681 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5682 if eval test \${$cacheid+y} 5683then : 5684 printf %s "(cached) " >&6 5685else case e in #( 5686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688int i; 5689int 5690main (void) 5691{ 5692 5693 ; 5694 return 0; 5695} 5696_ACEOF 5697if ac_fn_c_try_link "$LINENO" 5698then : 5699 eval $cacheid=yes 5700else case e in #( 5701 e) eval $cacheid=no ;; 5702esac 5703fi 5704rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5705 conftest$ac_exeext conftest.$ac_ext ;; 5706esac 5707fi 5708 5709 5710 CFLAGS="$xorg_testset_save_CFLAGS" 5711 5712 eval supported=\$$cacheid 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5714printf "%s\n" "$supported" >&6; } 5715 if test "$supported" = "yes" ; then 5716 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5717 found="yes" 5718 fi 5719 fi 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735xorg_testset_save_CFLAGS="$CFLAGS" 5736 5737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5740printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5741if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5742then : 5743 printf %s "(cached) " >&6 5744else case e in #( 5745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747int i; 5748_ACEOF 5749if ac_fn_c_try_compile "$LINENO" 5750then : 5751 xorg_cv_cc_flag_unknown_warning_option=yes 5752else case e in #( 5753 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5754esac 5755fi 5756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5757esac 5758fi 5759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5762 CFLAGS="$xorg_testset_save_CFLAGS" 5763fi 5764 5765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5768 fi 5769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5772if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5773then : 5774 printf %s "(cached) " >&6 5775else case e in #( 5776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777/* end confdefs.h. */ 5778int i; 5779_ACEOF 5780if ac_fn_c_try_compile "$LINENO" 5781then : 5782 xorg_cv_cc_flag_unused_command_line_argument=yes 5783else case e in #( 5784 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5785esac 5786fi 5787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5788esac 5789fi 5790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5791printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5793 CFLAGS="$xorg_testset_save_CFLAGS" 5794fi 5795 5796found="no" 5797 5798 if test $found = "no" ; then 5799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5801 fi 5802 5803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5805 fi 5806 5807 CFLAGS="$CFLAGS -Wnested-externs" 5808 5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5810printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5811 cacheid=xorg_cv_cc_flag__Wnested_externs 5812 if eval test \${$cacheid+y} 5813then : 5814 printf %s "(cached) " >&6 5815else case e in #( 5816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5817/* end confdefs.h. */ 5818int i; 5819int 5820main (void) 5821{ 5822 5823 ; 5824 return 0; 5825} 5826_ACEOF 5827if ac_fn_c_try_link "$LINENO" 5828then : 5829 eval $cacheid=yes 5830else case e in #( 5831 e) eval $cacheid=no ;; 5832esac 5833fi 5834rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5835 conftest$ac_exeext conftest.$ac_ext ;; 5836esac 5837fi 5838 5839 5840 CFLAGS="$xorg_testset_save_CFLAGS" 5841 5842 eval supported=\$$cacheid 5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5844printf "%s\n" "$supported" >&6; } 5845 if test "$supported" = "yes" ; then 5846 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5847 found="yes" 5848 fi 5849 fi 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865xorg_testset_save_CFLAGS="$CFLAGS" 5866 5867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5870printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5871if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5872then : 5873 printf %s "(cached) " >&6 5874else case e in #( 5875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5876/* end confdefs.h. */ 5877int i; 5878_ACEOF 5879if ac_fn_c_try_compile "$LINENO" 5880then : 5881 xorg_cv_cc_flag_unknown_warning_option=yes 5882else case e in #( 5883 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5884esac 5885fi 5886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5887esac 5888fi 5889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5890printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5892 CFLAGS="$xorg_testset_save_CFLAGS" 5893fi 5894 5895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5898 fi 5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5901printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5902if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5903then : 5904 printf %s "(cached) " >&6 5905else case e in #( 5906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5907/* end confdefs.h. */ 5908int i; 5909_ACEOF 5910if ac_fn_c_try_compile "$LINENO" 5911then : 5912 xorg_cv_cc_flag_unused_command_line_argument=yes 5913else case e in #( 5914 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5915esac 5916fi 5917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5918esac 5919fi 5920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5921printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5923 CFLAGS="$xorg_testset_save_CFLAGS" 5924fi 5925 5926found="no" 5927 5928 if test $found = "no" ; then 5929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5931 fi 5932 5933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5935 fi 5936 5937 CFLAGS="$CFLAGS -Wbad-function-cast" 5938 5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5940printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5941 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5942 if eval test \${$cacheid+y} 5943then : 5944 printf %s "(cached) " >&6 5945else case e in #( 5946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5947/* end confdefs.h. */ 5948int i; 5949int 5950main (void) 5951{ 5952 5953 ; 5954 return 0; 5955} 5956_ACEOF 5957if ac_fn_c_try_link "$LINENO" 5958then : 5959 eval $cacheid=yes 5960else case e in #( 5961 e) eval $cacheid=no ;; 5962esac 5963fi 5964rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5965 conftest$ac_exeext conftest.$ac_ext ;; 5966esac 5967fi 5968 5969 5970 CFLAGS="$xorg_testset_save_CFLAGS" 5971 5972 eval supported=\$$cacheid 5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5974printf "%s\n" "$supported" >&6; } 5975 if test "$supported" = "yes" ; then 5976 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5977 found="yes" 5978 fi 5979 fi 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995xorg_testset_save_CFLAGS="$CFLAGS" 5996 5997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6000printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6001if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6002then : 6003 printf %s "(cached) " >&6 6004else case e in #( 6005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006/* end confdefs.h. */ 6007int i; 6008_ACEOF 6009if ac_fn_c_try_compile "$LINENO" 6010then : 6011 xorg_cv_cc_flag_unknown_warning_option=yes 6012else case e in #( 6013 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6014esac 6015fi 6016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6017esac 6018fi 6019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6022 CFLAGS="$xorg_testset_save_CFLAGS" 6023fi 6024 6025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6028 fi 6029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6032if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6033then : 6034 printf %s "(cached) " >&6 6035else case e in #( 6036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6037/* end confdefs.h. */ 6038int i; 6039_ACEOF 6040if ac_fn_c_try_compile "$LINENO" 6041then : 6042 xorg_cv_cc_flag_unused_command_line_argument=yes 6043else case e in #( 6044 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6045esac 6046fi 6047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6048esac 6049fi 6050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6051printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6053 CFLAGS="$xorg_testset_save_CFLAGS" 6054fi 6055 6056found="no" 6057 6058 if test $found = "no" ; then 6059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6061 fi 6062 6063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6065 fi 6066 6067 CFLAGS="$CFLAGS -Wold-style-definition" 6068 6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6070printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6071 cacheid=xorg_cv_cc_flag__Wold_style_definition 6072 if eval test \${$cacheid+y} 6073then : 6074 printf %s "(cached) " >&6 6075else case e in #( 6076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6077/* end confdefs.h. */ 6078int i; 6079int 6080main (void) 6081{ 6082 6083 ; 6084 return 0; 6085} 6086_ACEOF 6087if ac_fn_c_try_link "$LINENO" 6088then : 6089 eval $cacheid=yes 6090else case e in #( 6091 e) eval $cacheid=no ;; 6092esac 6093fi 6094rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6095 conftest$ac_exeext conftest.$ac_ext ;; 6096esac 6097fi 6098 6099 6100 CFLAGS="$xorg_testset_save_CFLAGS" 6101 6102 eval supported=\$$cacheid 6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6104printf "%s\n" "$supported" >&6; } 6105 if test "$supported" = "yes" ; then 6106 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6107 found="yes" 6108 fi 6109 fi 6110 6111 if test $found = "no" ; then 6112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6114 fi 6115 6116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6118 fi 6119 6120 CFLAGS="$CFLAGS -fd" 6121 6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6123printf %s "checking if $CC supports -fd... " >&6; } 6124 cacheid=xorg_cv_cc_flag__fd 6125 if eval test \${$cacheid+y} 6126then : 6127 printf %s "(cached) " >&6 6128else case e in #( 6129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6130/* end confdefs.h. */ 6131int i; 6132int 6133main (void) 6134{ 6135 6136 ; 6137 return 0; 6138} 6139_ACEOF 6140if ac_fn_c_try_link "$LINENO" 6141then : 6142 eval $cacheid=yes 6143else case e in #( 6144 e) eval $cacheid=no ;; 6145esac 6146fi 6147rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6148 conftest$ac_exeext conftest.$ac_ext ;; 6149esac 6150fi 6151 6152 6153 CFLAGS="$xorg_testset_save_CFLAGS" 6154 6155 eval supported=\$$cacheid 6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6157printf "%s\n" "$supported" >&6; } 6158 if test "$supported" = "yes" ; then 6159 BASE_CFLAGS="$BASE_CFLAGS -fd" 6160 found="yes" 6161 fi 6162 fi 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178xorg_testset_save_CFLAGS="$CFLAGS" 6179 6180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6183printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6184if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6185then : 6186 printf %s "(cached) " >&6 6187else case e in #( 6188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6189/* end confdefs.h. */ 6190int i; 6191_ACEOF 6192if ac_fn_c_try_compile "$LINENO" 6193then : 6194 xorg_cv_cc_flag_unknown_warning_option=yes 6195else case e in #( 6196 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6197esac 6198fi 6199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6200esac 6201fi 6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6205 CFLAGS="$xorg_testset_save_CFLAGS" 6206fi 6207 6208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6211 fi 6212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6215if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6216then : 6217 printf %s "(cached) " >&6 6218else case e in #( 6219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6220/* end confdefs.h. */ 6221int i; 6222_ACEOF 6223if ac_fn_c_try_compile "$LINENO" 6224then : 6225 xorg_cv_cc_flag_unused_command_line_argument=yes 6226else case e in #( 6227 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6228esac 6229fi 6230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6231esac 6232fi 6233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6234printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6236 CFLAGS="$xorg_testset_save_CFLAGS" 6237fi 6238 6239found="no" 6240 6241 if test $found = "no" ; then 6242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6244 fi 6245 6246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6248 fi 6249 6250 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6251 6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6253printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6254 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6255 if eval test \${$cacheid+y} 6256then : 6257 printf %s "(cached) " >&6 6258else case e in #( 6259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260/* end confdefs.h. */ 6261int i; 6262int 6263main (void) 6264{ 6265 6266 ; 6267 return 0; 6268} 6269_ACEOF 6270if ac_fn_c_try_link "$LINENO" 6271then : 6272 eval $cacheid=yes 6273else case e in #( 6274 e) eval $cacheid=no ;; 6275esac 6276fi 6277rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6278 conftest$ac_exeext conftest.$ac_ext ;; 6279esac 6280fi 6281 6282 6283 CFLAGS="$xorg_testset_save_CFLAGS" 6284 6285 eval supported=\$$cacheid 6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6287printf "%s\n" "$supported" >&6; } 6288 if test "$supported" = "yes" ; then 6289 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6290 found="yes" 6291 fi 6292 fi 6293 6294 6295 6296 6297 6298# This chunk adds additional warnings that could catch undesired effects. 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312xorg_testset_save_CFLAGS="$CFLAGS" 6313 6314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6318if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6319then : 6320 printf %s "(cached) " >&6 6321else case e in #( 6322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6323/* end confdefs.h. */ 6324int i; 6325_ACEOF 6326if ac_fn_c_try_compile "$LINENO" 6327then : 6328 xorg_cv_cc_flag_unknown_warning_option=yes 6329else case e in #( 6330 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6331esac 6332fi 6333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6334esac 6335fi 6336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6339 CFLAGS="$xorg_testset_save_CFLAGS" 6340fi 6341 6342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6345 fi 6346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6349if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6350then : 6351 printf %s "(cached) " >&6 6352else case e in #( 6353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355int i; 6356_ACEOF 6357if ac_fn_c_try_compile "$LINENO" 6358then : 6359 xorg_cv_cc_flag_unused_command_line_argument=yes 6360else case e in #( 6361 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6362esac 6363fi 6364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6365esac 6366fi 6367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6370 CFLAGS="$xorg_testset_save_CFLAGS" 6371fi 6372 6373found="no" 6374 6375 if test $found = "no" ; then 6376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6378 fi 6379 6380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6382 fi 6383 6384 CFLAGS="$CFLAGS -Wunused" 6385 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6387printf %s "checking if $CC supports -Wunused... " >&6; } 6388 cacheid=xorg_cv_cc_flag__Wunused 6389 if eval test \${$cacheid+y} 6390then : 6391 printf %s "(cached) " >&6 6392else case e in #( 6393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6394/* end confdefs.h. */ 6395int i; 6396int 6397main (void) 6398{ 6399 6400 ; 6401 return 0; 6402} 6403_ACEOF 6404if ac_fn_c_try_link "$LINENO" 6405then : 6406 eval $cacheid=yes 6407else case e in #( 6408 e) eval $cacheid=no ;; 6409esac 6410fi 6411rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6412 conftest$ac_exeext conftest.$ac_ext ;; 6413esac 6414fi 6415 6416 6417 CFLAGS="$xorg_testset_save_CFLAGS" 6418 6419 eval supported=\$$cacheid 6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6421printf "%s\n" "$supported" >&6; } 6422 if test "$supported" = "yes" ; then 6423 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6424 found="yes" 6425 fi 6426 fi 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442xorg_testset_save_CFLAGS="$CFLAGS" 6443 6444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6447printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6448if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6449then : 6450 printf %s "(cached) " >&6 6451else case e in #( 6452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6453/* end confdefs.h. */ 6454int i; 6455_ACEOF 6456if ac_fn_c_try_compile "$LINENO" 6457then : 6458 xorg_cv_cc_flag_unknown_warning_option=yes 6459else case e in #( 6460 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6461esac 6462fi 6463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6464esac 6465fi 6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6469 CFLAGS="$xorg_testset_save_CFLAGS" 6470fi 6471 6472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6475 fi 6476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6479if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6480then : 6481 printf %s "(cached) " >&6 6482else case e in #( 6483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484/* end confdefs.h. */ 6485int i; 6486_ACEOF 6487if ac_fn_c_try_compile "$LINENO" 6488then : 6489 xorg_cv_cc_flag_unused_command_line_argument=yes 6490else case e in #( 6491 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6492esac 6493fi 6494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6495esac 6496fi 6497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6498printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6500 CFLAGS="$xorg_testset_save_CFLAGS" 6501fi 6502 6503found="no" 6504 6505 if test $found = "no" ; then 6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6508 fi 6509 6510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6512 fi 6513 6514 CFLAGS="$CFLAGS -Wuninitialized" 6515 6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6517printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6518 cacheid=xorg_cv_cc_flag__Wuninitialized 6519 if eval test \${$cacheid+y} 6520then : 6521 printf %s "(cached) " >&6 6522else case e in #( 6523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524/* end confdefs.h. */ 6525int i; 6526int 6527main (void) 6528{ 6529 6530 ; 6531 return 0; 6532} 6533_ACEOF 6534if ac_fn_c_try_link "$LINENO" 6535then : 6536 eval $cacheid=yes 6537else case e in #( 6538 e) eval $cacheid=no ;; 6539esac 6540fi 6541rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6542 conftest$ac_exeext conftest.$ac_ext ;; 6543esac 6544fi 6545 6546 6547 CFLAGS="$xorg_testset_save_CFLAGS" 6548 6549 eval supported=\$$cacheid 6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6551printf "%s\n" "$supported" >&6; } 6552 if test "$supported" = "yes" ; then 6553 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6554 found="yes" 6555 fi 6556 fi 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572xorg_testset_save_CFLAGS="$CFLAGS" 6573 6574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6578if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6579then : 6580 printf %s "(cached) " >&6 6581else case e in #( 6582 e) 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_unknown_warning_option=yes 6589else case e in #( 6590 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6591esac 6592fi 6593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6594esac 6595fi 6596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6597printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6599 CFLAGS="$xorg_testset_save_CFLAGS" 6600fi 6601 6602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6605 fi 6606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6608printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6609if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6610then : 6611 printf %s "(cached) " >&6 6612else case e in #( 6613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614/* end confdefs.h. */ 6615int i; 6616_ACEOF 6617if ac_fn_c_try_compile "$LINENO" 6618then : 6619 xorg_cv_cc_flag_unused_command_line_argument=yes 6620else case e in #( 6621 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6622esac 6623fi 6624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6625esac 6626fi 6627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6628printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6630 CFLAGS="$xorg_testset_save_CFLAGS" 6631fi 6632 6633found="no" 6634 6635 if test $found = "no" ; then 6636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6638 fi 6639 6640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6642 fi 6643 6644 CFLAGS="$CFLAGS -Wshadow" 6645 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6647printf %s "checking if $CC supports -Wshadow... " >&6; } 6648 cacheid=xorg_cv_cc_flag__Wshadow 6649 if eval test \${$cacheid+y} 6650then : 6651 printf %s "(cached) " >&6 6652else case e in #( 6653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655int i; 6656int 6657main (void) 6658{ 6659 6660 ; 6661 return 0; 6662} 6663_ACEOF 6664if ac_fn_c_try_link "$LINENO" 6665then : 6666 eval $cacheid=yes 6667else case e in #( 6668 e) eval $cacheid=no ;; 6669esac 6670fi 6671rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6672 conftest$ac_exeext conftest.$ac_ext ;; 6673esac 6674fi 6675 6676 6677 CFLAGS="$xorg_testset_save_CFLAGS" 6678 6679 eval supported=\$$cacheid 6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6681printf "%s\n" "$supported" >&6; } 6682 if test "$supported" = "yes" ; then 6683 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6684 found="yes" 6685 fi 6686 fi 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702xorg_testset_save_CFLAGS="$CFLAGS" 6703 6704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6708if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6709then : 6710 printf %s "(cached) " >&6 6711else case e in #( 6712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6713/* end confdefs.h. */ 6714int i; 6715_ACEOF 6716if ac_fn_c_try_compile "$LINENO" 6717then : 6718 xorg_cv_cc_flag_unknown_warning_option=yes 6719else case e in #( 6720 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6721esac 6722fi 6723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6724esac 6725fi 6726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6727printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6729 CFLAGS="$xorg_testset_save_CFLAGS" 6730fi 6731 6732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6735 fi 6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6738printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6739if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6740then : 6741 printf %s "(cached) " >&6 6742else case e in #( 6743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6744/* end confdefs.h. */ 6745int i; 6746_ACEOF 6747if ac_fn_c_try_compile "$LINENO" 6748then : 6749 xorg_cv_cc_flag_unused_command_line_argument=yes 6750else case e in #( 6751 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6752esac 6753fi 6754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6755esac 6756fi 6757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6758printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6760 CFLAGS="$xorg_testset_save_CFLAGS" 6761fi 6762 6763found="no" 6764 6765 if test $found = "no" ; then 6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6768 fi 6769 6770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6772 fi 6773 6774 CFLAGS="$CFLAGS -Wmissing-noreturn" 6775 6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6777printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6778 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6779 if eval test \${$cacheid+y} 6780then : 6781 printf %s "(cached) " >&6 6782else case e in #( 6783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785int i; 6786int 6787main (void) 6788{ 6789 6790 ; 6791 return 0; 6792} 6793_ACEOF 6794if ac_fn_c_try_link "$LINENO" 6795then : 6796 eval $cacheid=yes 6797else case e in #( 6798 e) eval $cacheid=no ;; 6799esac 6800fi 6801rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6802 conftest$ac_exeext conftest.$ac_ext ;; 6803esac 6804fi 6805 6806 6807 CFLAGS="$xorg_testset_save_CFLAGS" 6808 6809 eval supported=\$$cacheid 6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6811printf "%s\n" "$supported" >&6; } 6812 if test "$supported" = "yes" ; then 6813 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6814 found="yes" 6815 fi 6816 fi 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832xorg_testset_save_CFLAGS="$CFLAGS" 6833 6834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6837printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6838if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6839then : 6840 printf %s "(cached) " >&6 6841else case e in #( 6842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6843/* end confdefs.h. */ 6844int i; 6845_ACEOF 6846if ac_fn_c_try_compile "$LINENO" 6847then : 6848 xorg_cv_cc_flag_unknown_warning_option=yes 6849else case e in #( 6850 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6851esac 6852fi 6853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6854esac 6855fi 6856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6857printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6859 CFLAGS="$xorg_testset_save_CFLAGS" 6860fi 6861 6862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6865 fi 6866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6868printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6869if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6870then : 6871 printf %s "(cached) " >&6 6872else case e in #( 6873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875int i; 6876_ACEOF 6877if ac_fn_c_try_compile "$LINENO" 6878then : 6879 xorg_cv_cc_flag_unused_command_line_argument=yes 6880else case e in #( 6881 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6882esac 6883fi 6884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6885esac 6886fi 6887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6890 CFLAGS="$xorg_testset_save_CFLAGS" 6891fi 6892 6893found="no" 6894 6895 if test $found = "no" ; then 6896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6898 fi 6899 6900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6902 fi 6903 6904 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6905 6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6907printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6908 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6909 if eval test \${$cacheid+y} 6910then : 6911 printf %s "(cached) " >&6 6912else case e in #( 6913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6914/* end confdefs.h. */ 6915int i; 6916int 6917main (void) 6918{ 6919 6920 ; 6921 return 0; 6922} 6923_ACEOF 6924if ac_fn_c_try_link "$LINENO" 6925then : 6926 eval $cacheid=yes 6927else case e in #( 6928 e) eval $cacheid=no ;; 6929esac 6930fi 6931rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6932 conftest$ac_exeext conftest.$ac_ext ;; 6933esac 6934fi 6935 6936 6937 CFLAGS="$xorg_testset_save_CFLAGS" 6938 6939 eval supported=\$$cacheid 6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6941printf "%s\n" "$supported" >&6; } 6942 if test "$supported" = "yes" ; then 6943 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6944 found="yes" 6945 fi 6946 fi 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962xorg_testset_save_CFLAGS="$CFLAGS" 6963 6964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6968if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6969then : 6970 printf %s "(cached) " >&6 6971else case e in #( 6972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6973/* end confdefs.h. */ 6974int i; 6975_ACEOF 6976if ac_fn_c_try_compile "$LINENO" 6977then : 6978 xorg_cv_cc_flag_unknown_warning_option=yes 6979else case e in #( 6980 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6981esac 6982fi 6983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6984esac 6985fi 6986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6987printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6989 CFLAGS="$xorg_testset_save_CFLAGS" 6990fi 6991 6992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6995 fi 6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6998printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6999if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7000then : 7001 printf %s "(cached) " >&6 7002else case e in #( 7003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004/* end confdefs.h. */ 7005int i; 7006_ACEOF 7007if ac_fn_c_try_compile "$LINENO" 7008then : 7009 xorg_cv_cc_flag_unused_command_line_argument=yes 7010else case e in #( 7011 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7012esac 7013fi 7014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7015esac 7016fi 7017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7020 CFLAGS="$xorg_testset_save_CFLAGS" 7021fi 7022 7023found="no" 7024 7025 if test $found = "no" ; then 7026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7028 fi 7029 7030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7032 fi 7033 7034 CFLAGS="$CFLAGS -Wredundant-decls" 7035 7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7037printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7038 cacheid=xorg_cv_cc_flag__Wredundant_decls 7039 if eval test \${$cacheid+y} 7040then : 7041 printf %s "(cached) " >&6 7042else case e in #( 7043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044/* end confdefs.h. */ 7045int i; 7046int 7047main (void) 7048{ 7049 7050 ; 7051 return 0; 7052} 7053_ACEOF 7054if ac_fn_c_try_link "$LINENO" 7055then : 7056 eval $cacheid=yes 7057else case e in #( 7058 e) eval $cacheid=no ;; 7059esac 7060fi 7061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7062 conftest$ac_exeext conftest.$ac_ext ;; 7063esac 7064fi 7065 7066 7067 CFLAGS="$xorg_testset_save_CFLAGS" 7068 7069 eval supported=\$$cacheid 7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7071printf "%s\n" "$supported" >&6; } 7072 if test "$supported" = "yes" ; then 7073 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7074 found="yes" 7075 fi 7076 fi 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092xorg_testset_save_CFLAGS="$CFLAGS" 7093 7094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7097printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7098if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7099then : 7100 printf %s "(cached) " >&6 7101else case e in #( 7102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7103/* end confdefs.h. */ 7104int i; 7105_ACEOF 7106if ac_fn_c_try_compile "$LINENO" 7107then : 7108 xorg_cv_cc_flag_unknown_warning_option=yes 7109else case e in #( 7110 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7111esac 7112fi 7113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7114esac 7115fi 7116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7119 CFLAGS="$xorg_testset_save_CFLAGS" 7120fi 7121 7122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7125 fi 7126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7129if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7130then : 7131 printf %s "(cached) " >&6 7132else case e in #( 7133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134/* end confdefs.h. */ 7135int i; 7136_ACEOF 7137if ac_fn_c_try_compile "$LINENO" 7138then : 7139 xorg_cv_cc_flag_unused_command_line_argument=yes 7140else case e in #( 7141 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7142esac 7143fi 7144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7145esac 7146fi 7147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7150 CFLAGS="$xorg_testset_save_CFLAGS" 7151fi 7152 7153found="no" 7154 7155 if test $found = "no" ; then 7156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7158 fi 7159 7160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7162 fi 7163 7164 CFLAGS="$CFLAGS -Wlogical-op" 7165 7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7167printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7168 cacheid=xorg_cv_cc_flag__Wlogical_op 7169 if eval test \${$cacheid+y} 7170then : 7171 printf %s "(cached) " >&6 7172else case e in #( 7173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174/* end confdefs.h. */ 7175int i; 7176int 7177main (void) 7178{ 7179 7180 ; 7181 return 0; 7182} 7183_ACEOF 7184if ac_fn_c_try_link "$LINENO" 7185then : 7186 eval $cacheid=yes 7187else case e in #( 7188 e) eval $cacheid=no ;; 7189esac 7190fi 7191rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7192 conftest$ac_exeext conftest.$ac_ext ;; 7193esac 7194fi 7195 7196 7197 CFLAGS="$xorg_testset_save_CFLAGS" 7198 7199 eval supported=\$$cacheid 7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7201printf "%s\n" "$supported" >&6; } 7202 if test "$supported" = "yes" ; then 7203 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7204 found="yes" 7205 fi 7206 fi 7207 7208 7209 7210# These are currently disabled because they are noisy. They will be enabled 7211# in the future once the codebase is sufficiently modernized to silence 7212# them. For now, I don't want them to drown out the other warnings. 7213# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7214# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7215# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7216 7217# Turn some warnings into errors, so we don't accidentally get successful builds 7218# when there are problems that should be fixed. 7219 7220if test "x$SELECTIVE_WERROR" = "xyes" ; then 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234xorg_testset_save_CFLAGS="$CFLAGS" 7235 7236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7239printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7240if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7241then : 7242 printf %s "(cached) " >&6 7243else case e in #( 7244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246int i; 7247_ACEOF 7248if ac_fn_c_try_compile "$LINENO" 7249then : 7250 xorg_cv_cc_flag_unknown_warning_option=yes 7251else case e in #( 7252 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7253esac 7254fi 7255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7256esac 7257fi 7258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7261 CFLAGS="$xorg_testset_save_CFLAGS" 7262fi 7263 7264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7267 fi 7268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7271if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7272then : 7273 printf %s "(cached) " >&6 7274else case e in #( 7275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7276/* end confdefs.h. */ 7277int i; 7278_ACEOF 7279if ac_fn_c_try_compile "$LINENO" 7280then : 7281 xorg_cv_cc_flag_unused_command_line_argument=yes 7282else case e in #( 7283 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7284esac 7285fi 7286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7287esac 7288fi 7289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7292 CFLAGS="$xorg_testset_save_CFLAGS" 7293fi 7294 7295found="no" 7296 7297 if test $found = "no" ; then 7298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7300 fi 7301 7302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7304 fi 7305 7306 CFLAGS="$CFLAGS -Werror=implicit" 7307 7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7309printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7310 cacheid=xorg_cv_cc_flag__Werror_implicit 7311 if eval test \${$cacheid+y} 7312then : 7313 printf %s "(cached) " >&6 7314else case e in #( 7315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317int i; 7318int 7319main (void) 7320{ 7321 7322 ; 7323 return 0; 7324} 7325_ACEOF 7326if ac_fn_c_try_link "$LINENO" 7327then : 7328 eval $cacheid=yes 7329else case e in #( 7330 e) eval $cacheid=no ;; 7331esac 7332fi 7333rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7334 conftest$ac_exeext conftest.$ac_ext ;; 7335esac 7336fi 7337 7338 7339 CFLAGS="$xorg_testset_save_CFLAGS" 7340 7341 eval supported=\$$cacheid 7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7343printf "%s\n" "$supported" >&6; } 7344 if test "$supported" = "yes" ; then 7345 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7346 found="yes" 7347 fi 7348 fi 7349 7350 if test $found = "no" ; then 7351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7353 fi 7354 7355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7357 fi 7358 7359 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7360 7361 { 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 7362printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7363 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7364 if eval test \${$cacheid+y} 7365then : 7366 printf %s "(cached) " >&6 7367else case e in #( 7368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369/* end confdefs.h. */ 7370int i; 7371int 7372main (void) 7373{ 7374 7375 ; 7376 return 0; 7377} 7378_ACEOF 7379if ac_fn_c_try_link "$LINENO" 7380then : 7381 eval $cacheid=yes 7382else case e in #( 7383 e) eval $cacheid=no ;; 7384esac 7385fi 7386rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7387 conftest$ac_exeext conftest.$ac_ext ;; 7388esac 7389fi 7390 7391 7392 CFLAGS="$xorg_testset_save_CFLAGS" 7393 7394 eval supported=\$$cacheid 7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7396printf "%s\n" "$supported" >&6; } 7397 if test "$supported" = "yes" ; then 7398 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7399 found="yes" 7400 fi 7401 fi 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417xorg_testset_save_CFLAGS="$CFLAGS" 7418 7419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7422printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7423if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7424then : 7425 printf %s "(cached) " >&6 7426else case e in #( 7427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429int i; 7430_ACEOF 7431if ac_fn_c_try_compile "$LINENO" 7432then : 7433 xorg_cv_cc_flag_unknown_warning_option=yes 7434else case e in #( 7435 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7436esac 7437fi 7438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7439esac 7440fi 7441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7442printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7444 CFLAGS="$xorg_testset_save_CFLAGS" 7445fi 7446 7447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7450 fi 7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7453printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7454if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7455then : 7456 printf %s "(cached) " >&6 7457else case e in #( 7458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460int i; 7461_ACEOF 7462if ac_fn_c_try_compile "$LINENO" 7463then : 7464 xorg_cv_cc_flag_unused_command_line_argument=yes 7465else case e in #( 7466 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7467esac 7468fi 7469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7470esac 7471fi 7472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7475 CFLAGS="$xorg_testset_save_CFLAGS" 7476fi 7477 7478found="no" 7479 7480 if test $found = "no" ; then 7481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7483 fi 7484 7485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7487 fi 7488 7489 CFLAGS="$CFLAGS -Werror=nonnull" 7490 7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7492printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7493 cacheid=xorg_cv_cc_flag__Werror_nonnull 7494 if eval test \${$cacheid+y} 7495then : 7496 printf %s "(cached) " >&6 7497else case e in #( 7498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499/* end confdefs.h. */ 7500int i; 7501int 7502main (void) 7503{ 7504 7505 ; 7506 return 0; 7507} 7508_ACEOF 7509if ac_fn_c_try_link "$LINENO" 7510then : 7511 eval $cacheid=yes 7512else case e in #( 7513 e) eval $cacheid=no ;; 7514esac 7515fi 7516rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7517 conftest$ac_exeext conftest.$ac_ext ;; 7518esac 7519fi 7520 7521 7522 CFLAGS="$xorg_testset_save_CFLAGS" 7523 7524 eval supported=\$$cacheid 7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7526printf "%s\n" "$supported" >&6; } 7527 if test "$supported" = "yes" ; then 7528 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7529 found="yes" 7530 fi 7531 fi 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547xorg_testset_save_CFLAGS="$CFLAGS" 7548 7549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7553if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7554then : 7555 printf %s "(cached) " >&6 7556else case e in #( 7557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7558/* end confdefs.h. */ 7559int i; 7560_ACEOF 7561if ac_fn_c_try_compile "$LINENO" 7562then : 7563 xorg_cv_cc_flag_unknown_warning_option=yes 7564else case e in #( 7565 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7566esac 7567fi 7568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7569esac 7570fi 7571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7572printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7574 CFLAGS="$xorg_testset_save_CFLAGS" 7575fi 7576 7577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7580 fi 7581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7583printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7584if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7585then : 7586 printf %s "(cached) " >&6 7587else case e in #( 7588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589/* end confdefs.h. */ 7590int i; 7591_ACEOF 7592if ac_fn_c_try_compile "$LINENO" 7593then : 7594 xorg_cv_cc_flag_unused_command_line_argument=yes 7595else case e in #( 7596 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7597esac 7598fi 7599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7600esac 7601fi 7602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7603printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7605 CFLAGS="$xorg_testset_save_CFLAGS" 7606fi 7607 7608found="no" 7609 7610 if test $found = "no" ; then 7611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7613 fi 7614 7615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7617 fi 7618 7619 CFLAGS="$CFLAGS -Werror=init-self" 7620 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7622printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7623 cacheid=xorg_cv_cc_flag__Werror_init_self 7624 if eval test \${$cacheid+y} 7625then : 7626 printf %s "(cached) " >&6 7627else case e in #( 7628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7629/* end confdefs.h. */ 7630int i; 7631int 7632main (void) 7633{ 7634 7635 ; 7636 return 0; 7637} 7638_ACEOF 7639if ac_fn_c_try_link "$LINENO" 7640then : 7641 eval $cacheid=yes 7642else case e in #( 7643 e) eval $cacheid=no ;; 7644esac 7645fi 7646rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7647 conftest$ac_exeext conftest.$ac_ext ;; 7648esac 7649fi 7650 7651 7652 CFLAGS="$xorg_testset_save_CFLAGS" 7653 7654 eval supported=\$$cacheid 7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7656printf "%s\n" "$supported" >&6; } 7657 if test "$supported" = "yes" ; then 7658 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7659 found="yes" 7660 fi 7661 fi 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677xorg_testset_save_CFLAGS="$CFLAGS" 7678 7679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7682printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7683if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7684then : 7685 printf %s "(cached) " >&6 7686else case e in #( 7687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7688/* end confdefs.h. */ 7689int i; 7690_ACEOF 7691if ac_fn_c_try_compile "$LINENO" 7692then : 7693 xorg_cv_cc_flag_unknown_warning_option=yes 7694else case e in #( 7695 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7696esac 7697fi 7698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7699esac 7700fi 7701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7702printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7704 CFLAGS="$xorg_testset_save_CFLAGS" 7705fi 7706 7707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7710 fi 7711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7713printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7714if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7715then : 7716 printf %s "(cached) " >&6 7717else case e in #( 7718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720int i; 7721_ACEOF 7722if ac_fn_c_try_compile "$LINENO" 7723then : 7724 xorg_cv_cc_flag_unused_command_line_argument=yes 7725else case e in #( 7726 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7727esac 7728fi 7729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7730esac 7731fi 7732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7733printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7735 CFLAGS="$xorg_testset_save_CFLAGS" 7736fi 7737 7738found="no" 7739 7740 if test $found = "no" ; then 7741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7743 fi 7744 7745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7747 fi 7748 7749 CFLAGS="$CFLAGS -Werror=main" 7750 7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7752printf %s "checking if $CC supports -Werror=main... " >&6; } 7753 cacheid=xorg_cv_cc_flag__Werror_main 7754 if eval test \${$cacheid+y} 7755then : 7756 printf %s "(cached) " >&6 7757else case e in #( 7758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759/* end confdefs.h. */ 7760int i; 7761int 7762main (void) 7763{ 7764 7765 ; 7766 return 0; 7767} 7768_ACEOF 7769if ac_fn_c_try_link "$LINENO" 7770then : 7771 eval $cacheid=yes 7772else case e in #( 7773 e) eval $cacheid=no ;; 7774esac 7775fi 7776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7777 conftest$ac_exeext conftest.$ac_ext ;; 7778esac 7779fi 7780 7781 7782 CFLAGS="$xorg_testset_save_CFLAGS" 7783 7784 eval supported=\$$cacheid 7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7786printf "%s\n" "$supported" >&6; } 7787 if test "$supported" = "yes" ; then 7788 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7789 found="yes" 7790 fi 7791 fi 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807xorg_testset_save_CFLAGS="$CFLAGS" 7808 7809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7813if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7814then : 7815 printf %s "(cached) " >&6 7816else case e in #( 7817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819int i; 7820_ACEOF 7821if ac_fn_c_try_compile "$LINENO" 7822then : 7823 xorg_cv_cc_flag_unknown_warning_option=yes 7824else case e in #( 7825 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7826esac 7827fi 7828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7829esac 7830fi 7831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7832printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7834 CFLAGS="$xorg_testset_save_CFLAGS" 7835fi 7836 7837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7840 fi 7841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7843printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7844if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7845then : 7846 printf %s "(cached) " >&6 7847else case e in #( 7848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850int i; 7851_ACEOF 7852if ac_fn_c_try_compile "$LINENO" 7853then : 7854 xorg_cv_cc_flag_unused_command_line_argument=yes 7855else case e in #( 7856 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7857esac 7858fi 7859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7860esac 7861fi 7862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7865 CFLAGS="$xorg_testset_save_CFLAGS" 7866fi 7867 7868found="no" 7869 7870 if test $found = "no" ; then 7871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7873 fi 7874 7875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7877 fi 7878 7879 CFLAGS="$CFLAGS -Werror=missing-braces" 7880 7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7882printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7883 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7884 if eval test \${$cacheid+y} 7885then : 7886 printf %s "(cached) " >&6 7887else case e in #( 7888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891int 7892main (void) 7893{ 7894 7895 ; 7896 return 0; 7897} 7898_ACEOF 7899if ac_fn_c_try_link "$LINENO" 7900then : 7901 eval $cacheid=yes 7902else case e in #( 7903 e) eval $cacheid=no ;; 7904esac 7905fi 7906rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7907 conftest$ac_exeext conftest.$ac_ext ;; 7908esac 7909fi 7910 7911 7912 CFLAGS="$xorg_testset_save_CFLAGS" 7913 7914 eval supported=\$$cacheid 7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7916printf "%s\n" "$supported" >&6; } 7917 if test "$supported" = "yes" ; then 7918 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7919 found="yes" 7920 fi 7921 fi 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937xorg_testset_save_CFLAGS="$CFLAGS" 7938 7939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7943if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7944then : 7945 printf %s "(cached) " >&6 7946else case e in #( 7947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948/* end confdefs.h. */ 7949int i; 7950_ACEOF 7951if ac_fn_c_try_compile "$LINENO" 7952then : 7953 xorg_cv_cc_flag_unknown_warning_option=yes 7954else case e in #( 7955 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7956esac 7957fi 7958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7959esac 7960fi 7961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7964 CFLAGS="$xorg_testset_save_CFLAGS" 7965fi 7966 7967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7970 fi 7971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7974if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7975then : 7976 printf %s "(cached) " >&6 7977else case e in #( 7978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980int i; 7981_ACEOF 7982if ac_fn_c_try_compile "$LINENO" 7983then : 7984 xorg_cv_cc_flag_unused_command_line_argument=yes 7985else case e in #( 7986 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7987esac 7988fi 7989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7990esac 7991fi 7992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7993printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7995 CFLAGS="$xorg_testset_save_CFLAGS" 7996fi 7997 7998found="no" 7999 8000 if test $found = "no" ; then 8001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8003 fi 8004 8005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8007 fi 8008 8009 CFLAGS="$CFLAGS -Werror=sequence-point" 8010 8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8012printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8013 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8014 if eval test \${$cacheid+y} 8015then : 8016 printf %s "(cached) " >&6 8017else case e in #( 8018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8019/* end confdefs.h. */ 8020int i; 8021int 8022main (void) 8023{ 8024 8025 ; 8026 return 0; 8027} 8028_ACEOF 8029if ac_fn_c_try_link "$LINENO" 8030then : 8031 eval $cacheid=yes 8032else case e in #( 8033 e) eval $cacheid=no ;; 8034esac 8035fi 8036rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8037 conftest$ac_exeext conftest.$ac_ext ;; 8038esac 8039fi 8040 8041 8042 CFLAGS="$xorg_testset_save_CFLAGS" 8043 8044 eval supported=\$$cacheid 8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8046printf "%s\n" "$supported" >&6; } 8047 if test "$supported" = "yes" ; then 8048 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8049 found="yes" 8050 fi 8051 fi 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067xorg_testset_save_CFLAGS="$CFLAGS" 8068 8069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8073if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8074then : 8075 printf %s "(cached) " >&6 8076else case e in #( 8077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079int i; 8080_ACEOF 8081if ac_fn_c_try_compile "$LINENO" 8082then : 8083 xorg_cv_cc_flag_unknown_warning_option=yes 8084else case e in #( 8085 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8086esac 8087fi 8088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8089esac 8090fi 8091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8094 CFLAGS="$xorg_testset_save_CFLAGS" 8095fi 8096 8097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8100 fi 8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8104if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8105then : 8106 printf %s "(cached) " >&6 8107else case e in #( 8108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109/* end confdefs.h. */ 8110int i; 8111_ACEOF 8112if ac_fn_c_try_compile "$LINENO" 8113then : 8114 xorg_cv_cc_flag_unused_command_line_argument=yes 8115else case e in #( 8116 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8117esac 8118fi 8119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8120esac 8121fi 8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8125 CFLAGS="$xorg_testset_save_CFLAGS" 8126fi 8127 8128found="no" 8129 8130 if test $found = "no" ; then 8131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8133 fi 8134 8135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8137 fi 8138 8139 CFLAGS="$CFLAGS -Werror=return-type" 8140 8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8142printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8143 cacheid=xorg_cv_cc_flag__Werror_return_type 8144 if eval test \${$cacheid+y} 8145then : 8146 printf %s "(cached) " >&6 8147else case e in #( 8148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8149/* end confdefs.h. */ 8150int i; 8151int 8152main (void) 8153{ 8154 8155 ; 8156 return 0; 8157} 8158_ACEOF 8159if ac_fn_c_try_link "$LINENO" 8160then : 8161 eval $cacheid=yes 8162else case e in #( 8163 e) eval $cacheid=no ;; 8164esac 8165fi 8166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8167 conftest$ac_exeext conftest.$ac_ext ;; 8168esac 8169fi 8170 8171 8172 CFLAGS="$xorg_testset_save_CFLAGS" 8173 8174 eval supported=\$$cacheid 8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8176printf "%s\n" "$supported" >&6; } 8177 if test "$supported" = "yes" ; then 8178 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8179 found="yes" 8180 fi 8181 fi 8182 8183 if test $found = "no" ; then 8184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8186 fi 8187 8188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8190 fi 8191 8192 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8193 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8195printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8196 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8197 if eval test \${$cacheid+y} 8198then : 8199 printf %s "(cached) " >&6 8200else case e in #( 8201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203int i; 8204int 8205main (void) 8206{ 8207 8208 ; 8209 return 0; 8210} 8211_ACEOF 8212if ac_fn_c_try_link "$LINENO" 8213then : 8214 eval $cacheid=yes 8215else case e in #( 8216 e) eval $cacheid=no ;; 8217esac 8218fi 8219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8220 conftest$ac_exeext conftest.$ac_ext ;; 8221esac 8222fi 8223 8224 8225 CFLAGS="$xorg_testset_save_CFLAGS" 8226 8227 eval supported=\$$cacheid 8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8229printf "%s\n" "$supported" >&6; } 8230 if test "$supported" = "yes" ; then 8231 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8232 found="yes" 8233 fi 8234 fi 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250xorg_testset_save_CFLAGS="$CFLAGS" 8251 8252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8256if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8257then : 8258 printf %s "(cached) " >&6 8259else case e in #( 8260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8261/* end confdefs.h. */ 8262int i; 8263_ACEOF 8264if ac_fn_c_try_compile "$LINENO" 8265then : 8266 xorg_cv_cc_flag_unknown_warning_option=yes 8267else case e in #( 8268 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8269esac 8270fi 8271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8272esac 8273fi 8274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8275printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8277 CFLAGS="$xorg_testset_save_CFLAGS" 8278fi 8279 8280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8283 fi 8284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8286printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8287if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8288then : 8289 printf %s "(cached) " >&6 8290else case e in #( 8291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8292/* end confdefs.h. */ 8293int i; 8294_ACEOF 8295if ac_fn_c_try_compile "$LINENO" 8296then : 8297 xorg_cv_cc_flag_unused_command_line_argument=yes 8298else case e in #( 8299 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8300esac 8301fi 8302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8303esac 8304fi 8305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8306printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8308 CFLAGS="$xorg_testset_save_CFLAGS" 8309fi 8310 8311found="no" 8312 8313 if test $found = "no" ; then 8314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8316 fi 8317 8318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8320 fi 8321 8322 CFLAGS="$CFLAGS -Werror=trigraphs" 8323 8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8325printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8326 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8327 if eval test \${$cacheid+y} 8328then : 8329 printf %s "(cached) " >&6 8330else case e in #( 8331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333int i; 8334int 8335main (void) 8336{ 8337 8338 ; 8339 return 0; 8340} 8341_ACEOF 8342if ac_fn_c_try_link "$LINENO" 8343then : 8344 eval $cacheid=yes 8345else case e in #( 8346 e) eval $cacheid=no ;; 8347esac 8348fi 8349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8350 conftest$ac_exeext conftest.$ac_ext ;; 8351esac 8352fi 8353 8354 8355 CFLAGS="$xorg_testset_save_CFLAGS" 8356 8357 eval supported=\$$cacheid 8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8359printf "%s\n" "$supported" >&6; } 8360 if test "$supported" = "yes" ; then 8361 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8362 found="yes" 8363 fi 8364 fi 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380xorg_testset_save_CFLAGS="$CFLAGS" 8381 8382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8385printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8386if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8387then : 8388 printf %s "(cached) " >&6 8389else case e in #( 8390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8391/* end confdefs.h. */ 8392int i; 8393_ACEOF 8394if ac_fn_c_try_compile "$LINENO" 8395then : 8396 xorg_cv_cc_flag_unknown_warning_option=yes 8397else case e in #( 8398 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8399esac 8400fi 8401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8402esac 8403fi 8404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8407 CFLAGS="$xorg_testset_save_CFLAGS" 8408fi 8409 8410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8413 fi 8414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8417if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8418then : 8419 printf %s "(cached) " >&6 8420else case e in #( 8421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8422/* end confdefs.h. */ 8423int i; 8424_ACEOF 8425if ac_fn_c_try_compile "$LINENO" 8426then : 8427 xorg_cv_cc_flag_unused_command_line_argument=yes 8428else case e in #( 8429 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8430esac 8431fi 8432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8433esac 8434fi 8435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8436printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8438 CFLAGS="$xorg_testset_save_CFLAGS" 8439fi 8440 8441found="no" 8442 8443 if test $found = "no" ; then 8444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8446 fi 8447 8448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8450 fi 8451 8452 CFLAGS="$CFLAGS -Werror=array-bounds" 8453 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8455printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8456 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8457 if eval test \${$cacheid+y} 8458then : 8459 printf %s "(cached) " >&6 8460else case e in #( 8461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462/* end confdefs.h. */ 8463int i; 8464int 8465main (void) 8466{ 8467 8468 ; 8469 return 0; 8470} 8471_ACEOF 8472if ac_fn_c_try_link "$LINENO" 8473then : 8474 eval $cacheid=yes 8475else case e in #( 8476 e) eval $cacheid=no ;; 8477esac 8478fi 8479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8480 conftest$ac_exeext conftest.$ac_ext ;; 8481esac 8482fi 8483 8484 8485 CFLAGS="$xorg_testset_save_CFLAGS" 8486 8487 eval supported=\$$cacheid 8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8489printf "%s\n" "$supported" >&6; } 8490 if test "$supported" = "yes" ; then 8491 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8492 found="yes" 8493 fi 8494 fi 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510xorg_testset_save_CFLAGS="$CFLAGS" 8511 8512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8515printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8516if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8517then : 8518 printf %s "(cached) " >&6 8519else case e in #( 8520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8521/* end confdefs.h. */ 8522int i; 8523_ACEOF 8524if ac_fn_c_try_compile "$LINENO" 8525then : 8526 xorg_cv_cc_flag_unknown_warning_option=yes 8527else case e in #( 8528 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8529esac 8530fi 8531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8532esac 8533fi 8534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8535printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8537 CFLAGS="$xorg_testset_save_CFLAGS" 8538fi 8539 8540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8543 fi 8544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8546printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8547if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8548then : 8549 printf %s "(cached) " >&6 8550else case e in #( 8551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553int i; 8554_ACEOF 8555if ac_fn_c_try_compile "$LINENO" 8556then : 8557 xorg_cv_cc_flag_unused_command_line_argument=yes 8558else case e in #( 8559 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8560esac 8561fi 8562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8563esac 8564fi 8565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8566printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8568 CFLAGS="$xorg_testset_save_CFLAGS" 8569fi 8570 8571found="no" 8572 8573 if test $found = "no" ; then 8574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8576 fi 8577 8578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8580 fi 8581 8582 CFLAGS="$CFLAGS -Werror=write-strings" 8583 8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8585printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8586 cacheid=xorg_cv_cc_flag__Werror_write_strings 8587 if eval test \${$cacheid+y} 8588then : 8589 printf %s "(cached) " >&6 8590else case e in #( 8591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8592/* end confdefs.h. */ 8593int i; 8594int 8595main (void) 8596{ 8597 8598 ; 8599 return 0; 8600} 8601_ACEOF 8602if ac_fn_c_try_link "$LINENO" 8603then : 8604 eval $cacheid=yes 8605else case e in #( 8606 e) eval $cacheid=no ;; 8607esac 8608fi 8609rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8610 conftest$ac_exeext conftest.$ac_ext ;; 8611esac 8612fi 8613 8614 8615 CFLAGS="$xorg_testset_save_CFLAGS" 8616 8617 eval supported=\$$cacheid 8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8619printf "%s\n" "$supported" >&6; } 8620 if test "$supported" = "yes" ; then 8621 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8622 found="yes" 8623 fi 8624 fi 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640xorg_testset_save_CFLAGS="$CFLAGS" 8641 8642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8645printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8646if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8647then : 8648 printf %s "(cached) " >&6 8649else case e in #( 8650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8651/* end confdefs.h. */ 8652int i; 8653_ACEOF 8654if ac_fn_c_try_compile "$LINENO" 8655then : 8656 xorg_cv_cc_flag_unknown_warning_option=yes 8657else case e in #( 8658 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8659esac 8660fi 8661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8662esac 8663fi 8664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8667 CFLAGS="$xorg_testset_save_CFLAGS" 8668fi 8669 8670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8673 fi 8674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8677if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8678then : 8679 printf %s "(cached) " >&6 8680else case e in #( 8681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8682/* end confdefs.h. */ 8683int i; 8684_ACEOF 8685if ac_fn_c_try_compile "$LINENO" 8686then : 8687 xorg_cv_cc_flag_unused_command_line_argument=yes 8688else case e in #( 8689 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8690esac 8691fi 8692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8693esac 8694fi 8695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8696printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8698 CFLAGS="$xorg_testset_save_CFLAGS" 8699fi 8700 8701found="no" 8702 8703 if test $found = "no" ; then 8704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8706 fi 8707 8708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8710 fi 8711 8712 CFLAGS="$CFLAGS -Werror=address" 8713 8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8715printf %s "checking if $CC supports -Werror=address... " >&6; } 8716 cacheid=xorg_cv_cc_flag__Werror_address 8717 if eval test \${$cacheid+y} 8718then : 8719 printf %s "(cached) " >&6 8720else case e in #( 8721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722/* end confdefs.h. */ 8723int i; 8724int 8725main (void) 8726{ 8727 8728 ; 8729 return 0; 8730} 8731_ACEOF 8732if ac_fn_c_try_link "$LINENO" 8733then : 8734 eval $cacheid=yes 8735else case e in #( 8736 e) eval $cacheid=no ;; 8737esac 8738fi 8739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8740 conftest$ac_exeext conftest.$ac_ext ;; 8741esac 8742fi 8743 8744 8745 CFLAGS="$xorg_testset_save_CFLAGS" 8746 8747 eval supported=\$$cacheid 8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8749printf "%s\n" "$supported" >&6; } 8750 if test "$supported" = "yes" ; then 8751 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8752 found="yes" 8753 fi 8754 fi 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770xorg_testset_save_CFLAGS="$CFLAGS" 8771 8772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8775printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8776if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8777then : 8778 printf %s "(cached) " >&6 8779else case e in #( 8780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8781/* end confdefs.h. */ 8782int i; 8783_ACEOF 8784if ac_fn_c_try_compile "$LINENO" 8785then : 8786 xorg_cv_cc_flag_unknown_warning_option=yes 8787else case e in #( 8788 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8789esac 8790fi 8791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8792esac 8793fi 8794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8797 CFLAGS="$xorg_testset_save_CFLAGS" 8798fi 8799 8800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8803 fi 8804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8808then : 8809 printf %s "(cached) " >&6 8810else case e in #( 8811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812/* end confdefs.h. */ 8813int i; 8814_ACEOF 8815if ac_fn_c_try_compile "$LINENO" 8816then : 8817 xorg_cv_cc_flag_unused_command_line_argument=yes 8818else case e in #( 8819 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8820esac 8821fi 8822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8823esac 8824fi 8825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8828 CFLAGS="$xorg_testset_save_CFLAGS" 8829fi 8830 8831found="no" 8832 8833 if test $found = "no" ; then 8834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8836 fi 8837 8838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8840 fi 8841 8842 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8843 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8845printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8846 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8847 if eval test \${$cacheid+y} 8848then : 8849 printf %s "(cached) " >&6 8850else case e in #( 8851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852/* end confdefs.h. */ 8853int i; 8854int 8855main (void) 8856{ 8857 8858 ; 8859 return 0; 8860} 8861_ACEOF 8862if ac_fn_c_try_link "$LINENO" 8863then : 8864 eval $cacheid=yes 8865else case e in #( 8866 e) eval $cacheid=no ;; 8867esac 8868fi 8869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8870 conftest$ac_exeext conftest.$ac_ext ;; 8871esac 8872fi 8873 8874 8875 CFLAGS="$xorg_testset_save_CFLAGS" 8876 8877 eval supported=\$$cacheid 8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8879printf "%s\n" "$supported" >&6; } 8880 if test "$supported" = "yes" ; then 8881 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8882 found="yes" 8883 fi 8884 fi 8885 8886 if test $found = "no" ; then 8887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8889 fi 8890 8891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8893 fi 8894 8895 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8896 8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8898printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8899 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8900 if eval test \${$cacheid+y} 8901then : 8902 printf %s "(cached) " >&6 8903else case e in #( 8904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8905/* end confdefs.h. */ 8906int i; 8907int 8908main (void) 8909{ 8910 8911 ; 8912 return 0; 8913} 8914_ACEOF 8915if ac_fn_c_try_link "$LINENO" 8916then : 8917 eval $cacheid=yes 8918else case e in #( 8919 e) eval $cacheid=no ;; 8920esac 8921fi 8922rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8923 conftest$ac_exeext conftest.$ac_ext ;; 8924esac 8925fi 8926 8927 8928 CFLAGS="$xorg_testset_save_CFLAGS" 8929 8930 eval supported=\$$cacheid 8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8932printf "%s\n" "$supported" >&6; } 8933 if test "$supported" = "yes" ; then 8934 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8935 found="yes" 8936 fi 8937 fi 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953xorg_testset_save_CFLAGS="$CFLAGS" 8954 8955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8959if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8960then : 8961 printf %s "(cached) " >&6 8962else case e in #( 8963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8964/* end confdefs.h. */ 8965int i; 8966_ACEOF 8967if ac_fn_c_try_compile "$LINENO" 8968then : 8969 xorg_cv_cc_flag_unknown_warning_option=yes 8970else case e in #( 8971 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8972esac 8973fi 8974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8975esac 8976fi 8977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8980 CFLAGS="$xorg_testset_save_CFLAGS" 8981fi 8982 8983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8986 fi 8987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8990if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8991then : 8992 printf %s "(cached) " >&6 8993else case e in #( 8994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8995/* end confdefs.h. */ 8996int i; 8997_ACEOF 8998if ac_fn_c_try_compile "$LINENO" 8999then : 9000 xorg_cv_cc_flag_unused_command_line_argument=yes 9001else case e in #( 9002 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9003esac 9004fi 9005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9006esac 9007fi 9008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9011 CFLAGS="$xorg_testset_save_CFLAGS" 9012fi 9013 9014found="no" 9015 9016 if test $found = "no" ; then 9017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9019 fi 9020 9021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9023 fi 9024 9025 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9026 9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9028printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9029 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9030 if eval test \${$cacheid+y} 9031then : 9032 printf %s "(cached) " >&6 9033else case e in #( 9034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9035/* end confdefs.h. */ 9036int i; 9037int 9038main (void) 9039{ 9040 9041 ; 9042 return 0; 9043} 9044_ACEOF 9045if ac_fn_c_try_link "$LINENO" 9046then : 9047 eval $cacheid=yes 9048else case e in #( 9049 e) eval $cacheid=no ;; 9050esac 9051fi 9052rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9053 conftest$ac_exeext conftest.$ac_ext ;; 9054esac 9055fi 9056 9057 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059 9060 eval supported=\$$cacheid 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9062printf "%s\n" "$supported" >&6; } 9063 if test "$supported" = "yes" ; then 9064 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9065 found="yes" 9066 fi 9067 fi 9068 9069 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9070else 9071{ 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 9072printf "%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;} 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086xorg_testset_save_CFLAGS="$CFLAGS" 9087 9088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9092if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9093then : 9094 printf %s "(cached) " >&6 9095else case e in #( 9096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9097/* end confdefs.h. */ 9098int i; 9099_ACEOF 9100if ac_fn_c_try_compile "$LINENO" 9101then : 9102 xorg_cv_cc_flag_unknown_warning_option=yes 9103else case e in #( 9104 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9105esac 9106fi 9107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9108esac 9109fi 9110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9113 CFLAGS="$xorg_testset_save_CFLAGS" 9114fi 9115 9116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9119 fi 9120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9123if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9124then : 9125 printf %s "(cached) " >&6 9126else case e in #( 9127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128/* end confdefs.h. */ 9129int i; 9130_ACEOF 9131if ac_fn_c_try_compile "$LINENO" 9132then : 9133 xorg_cv_cc_flag_unused_command_line_argument=yes 9134else case e in #( 9135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9136esac 9137fi 9138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9139esac 9140fi 9141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145fi 9146 9147found="no" 9148 9149 if test $found = "no" ; then 9150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9152 fi 9153 9154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9156 fi 9157 9158 CFLAGS="$CFLAGS -Wimplicit" 9159 9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9161printf %s "checking if $CC supports -Wimplicit... " >&6; } 9162 cacheid=xorg_cv_cc_flag__Wimplicit 9163 if eval test \${$cacheid+y} 9164then : 9165 printf %s "(cached) " >&6 9166else case e in #( 9167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169int i; 9170int 9171main (void) 9172{ 9173 9174 ; 9175 return 0; 9176} 9177_ACEOF 9178if ac_fn_c_try_link "$LINENO" 9179then : 9180 eval $cacheid=yes 9181else case e in #( 9182 e) eval $cacheid=no ;; 9183esac 9184fi 9185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9186 conftest$ac_exeext conftest.$ac_ext ;; 9187esac 9188fi 9189 9190 9191 CFLAGS="$xorg_testset_save_CFLAGS" 9192 9193 eval supported=\$$cacheid 9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9195printf "%s\n" "$supported" >&6; } 9196 if test "$supported" = "yes" ; then 9197 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9198 found="yes" 9199 fi 9200 fi 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216xorg_testset_save_CFLAGS="$CFLAGS" 9217 9218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9222if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9223then : 9224 printf %s "(cached) " >&6 9225else case e in #( 9226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9227/* end confdefs.h. */ 9228int i; 9229_ACEOF 9230if ac_fn_c_try_compile "$LINENO" 9231then : 9232 xorg_cv_cc_flag_unknown_warning_option=yes 9233else case e in #( 9234 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9235esac 9236fi 9237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9238esac 9239fi 9240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9243 CFLAGS="$xorg_testset_save_CFLAGS" 9244fi 9245 9246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9249 fi 9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9254then : 9255 printf %s "(cached) " >&6 9256else case e in #( 9257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258/* end confdefs.h. */ 9259int i; 9260_ACEOF 9261if ac_fn_c_try_compile "$LINENO" 9262then : 9263 xorg_cv_cc_flag_unused_command_line_argument=yes 9264else case e in #( 9265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9266esac 9267fi 9268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9269esac 9270fi 9271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9274 CFLAGS="$xorg_testset_save_CFLAGS" 9275fi 9276 9277found="no" 9278 9279 if test $found = "no" ; then 9280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9282 fi 9283 9284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9286 fi 9287 9288 CFLAGS="$CFLAGS -Wnonnull" 9289 9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9291printf %s "checking if $CC supports -Wnonnull... " >&6; } 9292 cacheid=xorg_cv_cc_flag__Wnonnull 9293 if eval test \${$cacheid+y} 9294then : 9295 printf %s "(cached) " >&6 9296else case e in #( 9297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298/* end confdefs.h. */ 9299int i; 9300int 9301main (void) 9302{ 9303 9304 ; 9305 return 0; 9306} 9307_ACEOF 9308if ac_fn_c_try_link "$LINENO" 9309then : 9310 eval $cacheid=yes 9311else case e in #( 9312 e) eval $cacheid=no ;; 9313esac 9314fi 9315rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9316 conftest$ac_exeext conftest.$ac_ext ;; 9317esac 9318fi 9319 9320 9321 CFLAGS="$xorg_testset_save_CFLAGS" 9322 9323 eval supported=\$$cacheid 9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9325printf "%s\n" "$supported" >&6; } 9326 if test "$supported" = "yes" ; then 9327 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9328 found="yes" 9329 fi 9330 fi 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346xorg_testset_save_CFLAGS="$CFLAGS" 9347 9348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9352if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9353then : 9354 printf %s "(cached) " >&6 9355else case e in #( 9356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357/* end confdefs.h. */ 9358int i; 9359_ACEOF 9360if ac_fn_c_try_compile "$LINENO" 9361then : 9362 xorg_cv_cc_flag_unknown_warning_option=yes 9363else case e in #( 9364 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9365esac 9366fi 9367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9368esac 9369fi 9370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9373 CFLAGS="$xorg_testset_save_CFLAGS" 9374fi 9375 9376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9379 fi 9380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9383if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9384then : 9385 printf %s "(cached) " >&6 9386else case e in #( 9387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388/* end confdefs.h. */ 9389int i; 9390_ACEOF 9391if ac_fn_c_try_compile "$LINENO" 9392then : 9393 xorg_cv_cc_flag_unused_command_line_argument=yes 9394else case e in #( 9395 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9396esac 9397fi 9398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9399esac 9400fi 9401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9404 CFLAGS="$xorg_testset_save_CFLAGS" 9405fi 9406 9407found="no" 9408 9409 if test $found = "no" ; then 9410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9412 fi 9413 9414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9416 fi 9417 9418 CFLAGS="$CFLAGS -Winit-self" 9419 9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9421printf %s "checking if $CC supports -Winit-self... " >&6; } 9422 cacheid=xorg_cv_cc_flag__Winit_self 9423 if eval test \${$cacheid+y} 9424then : 9425 printf %s "(cached) " >&6 9426else case e in #( 9427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9428/* end confdefs.h. */ 9429int i; 9430int 9431main (void) 9432{ 9433 9434 ; 9435 return 0; 9436} 9437_ACEOF 9438if ac_fn_c_try_link "$LINENO" 9439then : 9440 eval $cacheid=yes 9441else case e in #( 9442 e) eval $cacheid=no ;; 9443esac 9444fi 9445rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9446 conftest$ac_exeext conftest.$ac_ext ;; 9447esac 9448fi 9449 9450 9451 CFLAGS="$xorg_testset_save_CFLAGS" 9452 9453 eval supported=\$$cacheid 9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9455printf "%s\n" "$supported" >&6; } 9456 if test "$supported" = "yes" ; then 9457 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9458 found="yes" 9459 fi 9460 fi 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476xorg_testset_save_CFLAGS="$CFLAGS" 9477 9478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9482if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9483then : 9484 printf %s "(cached) " >&6 9485else case e in #( 9486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9487/* end confdefs.h. */ 9488int i; 9489_ACEOF 9490if ac_fn_c_try_compile "$LINENO" 9491then : 9492 xorg_cv_cc_flag_unknown_warning_option=yes 9493else case e in #( 9494 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9495esac 9496fi 9497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9498esac 9499fi 9500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9503 CFLAGS="$xorg_testset_save_CFLAGS" 9504fi 9505 9506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9509 fi 9510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9513if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9514then : 9515 printf %s "(cached) " >&6 9516else case e in #( 9517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518/* end confdefs.h. */ 9519int i; 9520_ACEOF 9521if ac_fn_c_try_compile "$LINENO" 9522then : 9523 xorg_cv_cc_flag_unused_command_line_argument=yes 9524else case e in #( 9525 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9526esac 9527fi 9528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9529esac 9530fi 9531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9534 CFLAGS="$xorg_testset_save_CFLAGS" 9535fi 9536 9537found="no" 9538 9539 if test $found = "no" ; then 9540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9542 fi 9543 9544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9546 fi 9547 9548 CFLAGS="$CFLAGS -Wmain" 9549 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9551printf %s "checking if $CC supports -Wmain... " >&6; } 9552 cacheid=xorg_cv_cc_flag__Wmain 9553 if eval test \${$cacheid+y} 9554then : 9555 printf %s "(cached) " >&6 9556else case e in #( 9557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9558/* end confdefs.h. */ 9559int i; 9560int 9561main (void) 9562{ 9563 9564 ; 9565 return 0; 9566} 9567_ACEOF 9568if ac_fn_c_try_link "$LINENO" 9569then : 9570 eval $cacheid=yes 9571else case e in #( 9572 e) eval $cacheid=no ;; 9573esac 9574fi 9575rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9576 conftest$ac_exeext conftest.$ac_ext ;; 9577esac 9578fi 9579 9580 9581 CFLAGS="$xorg_testset_save_CFLAGS" 9582 9583 eval supported=\$$cacheid 9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9585printf "%s\n" "$supported" >&6; } 9586 if test "$supported" = "yes" ; then 9587 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9588 found="yes" 9589 fi 9590 fi 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606xorg_testset_save_CFLAGS="$CFLAGS" 9607 9608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9611printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9612if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9613then : 9614 printf %s "(cached) " >&6 9615else case e in #( 9616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9617/* end confdefs.h. */ 9618int i; 9619_ACEOF 9620if ac_fn_c_try_compile "$LINENO" 9621then : 9622 xorg_cv_cc_flag_unknown_warning_option=yes 9623else case e in #( 9624 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9625esac 9626fi 9627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9628esac 9629fi 9630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9633 CFLAGS="$xorg_testset_save_CFLAGS" 9634fi 9635 9636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9639 fi 9640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9643if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9644then : 9645 printf %s "(cached) " >&6 9646else case e in #( 9647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int i; 9650_ACEOF 9651if ac_fn_c_try_compile "$LINENO" 9652then : 9653 xorg_cv_cc_flag_unused_command_line_argument=yes 9654else case e in #( 9655 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9656esac 9657fi 9658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9659esac 9660fi 9661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9664 CFLAGS="$xorg_testset_save_CFLAGS" 9665fi 9666 9667found="no" 9668 9669 if test $found = "no" ; then 9670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9672 fi 9673 9674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9676 fi 9677 9678 CFLAGS="$CFLAGS -Wmissing-braces" 9679 9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9681printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9682 cacheid=xorg_cv_cc_flag__Wmissing_braces 9683 if eval test \${$cacheid+y} 9684then : 9685 printf %s "(cached) " >&6 9686else case e in #( 9687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9688/* end confdefs.h. */ 9689int i; 9690int 9691main (void) 9692{ 9693 9694 ; 9695 return 0; 9696} 9697_ACEOF 9698if ac_fn_c_try_link "$LINENO" 9699then : 9700 eval $cacheid=yes 9701else case e in #( 9702 e) eval $cacheid=no ;; 9703esac 9704fi 9705rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9706 conftest$ac_exeext conftest.$ac_ext ;; 9707esac 9708fi 9709 9710 9711 CFLAGS="$xorg_testset_save_CFLAGS" 9712 9713 eval supported=\$$cacheid 9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9715printf "%s\n" "$supported" >&6; } 9716 if test "$supported" = "yes" ; then 9717 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9718 found="yes" 9719 fi 9720 fi 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736xorg_testset_save_CFLAGS="$CFLAGS" 9737 9738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9742if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9743then : 9744 printf %s "(cached) " >&6 9745else case e in #( 9746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9747/* end confdefs.h. */ 9748int i; 9749_ACEOF 9750if ac_fn_c_try_compile "$LINENO" 9751then : 9752 xorg_cv_cc_flag_unknown_warning_option=yes 9753else case e in #( 9754 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9755esac 9756fi 9757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9758esac 9759fi 9760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9763 CFLAGS="$xorg_testset_save_CFLAGS" 9764fi 9765 9766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9769 fi 9770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9773if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9774then : 9775 printf %s "(cached) " >&6 9776else case e in #( 9777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9778/* end confdefs.h. */ 9779int i; 9780_ACEOF 9781if ac_fn_c_try_compile "$LINENO" 9782then : 9783 xorg_cv_cc_flag_unused_command_line_argument=yes 9784else case e in #( 9785 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9786esac 9787fi 9788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9789esac 9790fi 9791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9794 CFLAGS="$xorg_testset_save_CFLAGS" 9795fi 9796 9797found="no" 9798 9799 if test $found = "no" ; then 9800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9802 fi 9803 9804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9806 fi 9807 9808 CFLAGS="$CFLAGS -Wsequence-point" 9809 9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9811printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9812 cacheid=xorg_cv_cc_flag__Wsequence_point 9813 if eval test \${$cacheid+y} 9814then : 9815 printf %s "(cached) " >&6 9816else case e in #( 9817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9818/* end confdefs.h. */ 9819int i; 9820int 9821main (void) 9822{ 9823 9824 ; 9825 return 0; 9826} 9827_ACEOF 9828if ac_fn_c_try_link "$LINENO" 9829then : 9830 eval $cacheid=yes 9831else case e in #( 9832 e) eval $cacheid=no ;; 9833esac 9834fi 9835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9836 conftest$ac_exeext conftest.$ac_ext ;; 9837esac 9838fi 9839 9840 9841 CFLAGS="$xorg_testset_save_CFLAGS" 9842 9843 eval supported=\$$cacheid 9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9845printf "%s\n" "$supported" >&6; } 9846 if test "$supported" = "yes" ; then 9847 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9848 found="yes" 9849 fi 9850 fi 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866xorg_testset_save_CFLAGS="$CFLAGS" 9867 9868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9872if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9873then : 9874 printf %s "(cached) " >&6 9875else case e in #( 9876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9877/* end confdefs.h. */ 9878int i; 9879_ACEOF 9880if ac_fn_c_try_compile "$LINENO" 9881then : 9882 xorg_cv_cc_flag_unknown_warning_option=yes 9883else case e in #( 9884 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9885esac 9886fi 9887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9888esac 9889fi 9890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9891printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9893 CFLAGS="$xorg_testset_save_CFLAGS" 9894fi 9895 9896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9899 fi 9900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9902printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9903if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9904then : 9905 printf %s "(cached) " >&6 9906else case e in #( 9907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9908/* end confdefs.h. */ 9909int i; 9910_ACEOF 9911if ac_fn_c_try_compile "$LINENO" 9912then : 9913 xorg_cv_cc_flag_unused_command_line_argument=yes 9914else case e in #( 9915 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9916esac 9917fi 9918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9919esac 9920fi 9921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9922printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9924 CFLAGS="$xorg_testset_save_CFLAGS" 9925fi 9926 9927found="no" 9928 9929 if test $found = "no" ; then 9930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9932 fi 9933 9934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9936 fi 9937 9938 CFLAGS="$CFLAGS -Wreturn-type" 9939 9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9941printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9942 cacheid=xorg_cv_cc_flag__Wreturn_type 9943 if eval test \${$cacheid+y} 9944then : 9945 printf %s "(cached) " >&6 9946else case e in #( 9947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948/* end confdefs.h. */ 9949int i; 9950int 9951main (void) 9952{ 9953 9954 ; 9955 return 0; 9956} 9957_ACEOF 9958if ac_fn_c_try_link "$LINENO" 9959then : 9960 eval $cacheid=yes 9961else case e in #( 9962 e) eval $cacheid=no ;; 9963esac 9964fi 9965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9966 conftest$ac_exeext conftest.$ac_ext ;; 9967esac 9968fi 9969 9970 9971 CFLAGS="$xorg_testset_save_CFLAGS" 9972 9973 eval supported=\$$cacheid 9974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9975printf "%s\n" "$supported" >&6; } 9976 if test "$supported" = "yes" ; then 9977 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9978 found="yes" 9979 fi 9980 fi 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996xorg_testset_save_CFLAGS="$CFLAGS" 9997 9998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10001printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10002if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10003then : 10004 printf %s "(cached) " >&6 10005else case e in #( 10006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10007/* end confdefs.h. */ 10008int i; 10009_ACEOF 10010if ac_fn_c_try_compile "$LINENO" 10011then : 10012 xorg_cv_cc_flag_unknown_warning_option=yes 10013else case e in #( 10014 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10015esac 10016fi 10017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10018esac 10019fi 10020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10021printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10023 CFLAGS="$xorg_testset_save_CFLAGS" 10024fi 10025 10026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10029 fi 10030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10032printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10033if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10034then : 10035 printf %s "(cached) " >&6 10036else case e in #( 10037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038/* end confdefs.h. */ 10039int i; 10040_ACEOF 10041if ac_fn_c_try_compile "$LINENO" 10042then : 10043 xorg_cv_cc_flag_unused_command_line_argument=yes 10044else case e in #( 10045 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10046esac 10047fi 10048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10049esac 10050fi 10051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10052printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10054 CFLAGS="$xorg_testset_save_CFLAGS" 10055fi 10056 10057found="no" 10058 10059 if test $found = "no" ; then 10060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10062 fi 10063 10064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10066 fi 10067 10068 CFLAGS="$CFLAGS -Wtrigraphs" 10069 10070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10071printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10072 cacheid=xorg_cv_cc_flag__Wtrigraphs 10073 if eval test \${$cacheid+y} 10074then : 10075 printf %s "(cached) " >&6 10076else case e in #( 10077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10078/* end confdefs.h. */ 10079int i; 10080int 10081main (void) 10082{ 10083 10084 ; 10085 return 0; 10086} 10087_ACEOF 10088if ac_fn_c_try_link "$LINENO" 10089then : 10090 eval $cacheid=yes 10091else case e in #( 10092 e) eval $cacheid=no ;; 10093esac 10094fi 10095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10096 conftest$ac_exeext conftest.$ac_ext ;; 10097esac 10098fi 10099 10100 10101 CFLAGS="$xorg_testset_save_CFLAGS" 10102 10103 eval supported=\$$cacheid 10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10105printf "%s\n" "$supported" >&6; } 10106 if test "$supported" = "yes" ; then 10107 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10108 found="yes" 10109 fi 10110 fi 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126xorg_testset_save_CFLAGS="$CFLAGS" 10127 10128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10131printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10132if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10133then : 10134 printf %s "(cached) " >&6 10135else case e in #( 10136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10137/* end confdefs.h. */ 10138int i; 10139_ACEOF 10140if ac_fn_c_try_compile "$LINENO" 10141then : 10142 xorg_cv_cc_flag_unknown_warning_option=yes 10143else case e in #( 10144 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10145esac 10146fi 10147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10148esac 10149fi 10150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10151printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10153 CFLAGS="$xorg_testset_save_CFLAGS" 10154fi 10155 10156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10159 fi 10160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10162printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10163if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10164then : 10165 printf %s "(cached) " >&6 10166else case e in #( 10167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168/* end confdefs.h. */ 10169int i; 10170_ACEOF 10171if ac_fn_c_try_compile "$LINENO" 10172then : 10173 xorg_cv_cc_flag_unused_command_line_argument=yes 10174else case e in #( 10175 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10176esac 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10179esac 10180fi 10181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10182printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10184 CFLAGS="$xorg_testset_save_CFLAGS" 10185fi 10186 10187found="no" 10188 10189 if test $found = "no" ; then 10190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10192 fi 10193 10194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10196 fi 10197 10198 CFLAGS="$CFLAGS -Warray-bounds" 10199 10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10201printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10202 cacheid=xorg_cv_cc_flag__Warray_bounds 10203 if eval test \${$cacheid+y} 10204then : 10205 printf %s "(cached) " >&6 10206else case e in #( 10207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10208/* end confdefs.h. */ 10209int i; 10210int 10211main (void) 10212{ 10213 10214 ; 10215 return 0; 10216} 10217_ACEOF 10218if ac_fn_c_try_link "$LINENO" 10219then : 10220 eval $cacheid=yes 10221else case e in #( 10222 e) eval $cacheid=no ;; 10223esac 10224fi 10225rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10226 conftest$ac_exeext conftest.$ac_ext ;; 10227esac 10228fi 10229 10230 10231 CFLAGS="$xorg_testset_save_CFLAGS" 10232 10233 eval supported=\$$cacheid 10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10235printf "%s\n" "$supported" >&6; } 10236 if test "$supported" = "yes" ; then 10237 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10238 found="yes" 10239 fi 10240 fi 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256xorg_testset_save_CFLAGS="$CFLAGS" 10257 10258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10262if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10263then : 10264 printf %s "(cached) " >&6 10265else case e in #( 10266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10267/* end confdefs.h. */ 10268int i; 10269_ACEOF 10270if ac_fn_c_try_compile "$LINENO" 10271then : 10272 xorg_cv_cc_flag_unknown_warning_option=yes 10273else case e in #( 10274 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10275esac 10276fi 10277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10278esac 10279fi 10280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10283 CFLAGS="$xorg_testset_save_CFLAGS" 10284fi 10285 10286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10289 fi 10290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10293if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10294then : 10295 printf %s "(cached) " >&6 10296else case e in #( 10297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10298/* end confdefs.h. */ 10299int i; 10300_ACEOF 10301if ac_fn_c_try_compile "$LINENO" 10302then : 10303 xorg_cv_cc_flag_unused_command_line_argument=yes 10304else case e in #( 10305 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10306esac 10307fi 10308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10309esac 10310fi 10311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10312printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10314 CFLAGS="$xorg_testset_save_CFLAGS" 10315fi 10316 10317found="no" 10318 10319 if test $found = "no" ; then 10320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10322 fi 10323 10324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10326 fi 10327 10328 CFLAGS="$CFLAGS -Wwrite-strings" 10329 10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10331printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10332 cacheid=xorg_cv_cc_flag__Wwrite_strings 10333 if eval test \${$cacheid+y} 10334then : 10335 printf %s "(cached) " >&6 10336else case e in #( 10337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10338/* end confdefs.h. */ 10339int i; 10340int 10341main (void) 10342{ 10343 10344 ; 10345 return 0; 10346} 10347_ACEOF 10348if ac_fn_c_try_link "$LINENO" 10349then : 10350 eval $cacheid=yes 10351else case e in #( 10352 e) eval $cacheid=no ;; 10353esac 10354fi 10355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10356 conftest$ac_exeext conftest.$ac_ext ;; 10357esac 10358fi 10359 10360 10361 CFLAGS="$xorg_testset_save_CFLAGS" 10362 10363 eval supported=\$$cacheid 10364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10365printf "%s\n" "$supported" >&6; } 10366 if test "$supported" = "yes" ; then 10367 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10368 found="yes" 10369 fi 10370 fi 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386xorg_testset_save_CFLAGS="$CFLAGS" 10387 10388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10391printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10392if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10393then : 10394 printf %s "(cached) " >&6 10395else case e in #( 10396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10397/* end confdefs.h. */ 10398int i; 10399_ACEOF 10400if ac_fn_c_try_compile "$LINENO" 10401then : 10402 xorg_cv_cc_flag_unknown_warning_option=yes 10403else case e in #( 10404 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10405esac 10406fi 10407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10408esac 10409fi 10410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10411printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10413 CFLAGS="$xorg_testset_save_CFLAGS" 10414fi 10415 10416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10419 fi 10420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10422printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10423if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10424then : 10425 printf %s "(cached) " >&6 10426else case e in #( 10427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10428/* end confdefs.h. */ 10429int i; 10430_ACEOF 10431if ac_fn_c_try_compile "$LINENO" 10432then : 10433 xorg_cv_cc_flag_unused_command_line_argument=yes 10434else case e in #( 10435 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10436esac 10437fi 10438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10439esac 10440fi 10441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10442printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10444 CFLAGS="$xorg_testset_save_CFLAGS" 10445fi 10446 10447found="no" 10448 10449 if test $found = "no" ; then 10450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10452 fi 10453 10454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10456 fi 10457 10458 CFLAGS="$CFLAGS -Waddress" 10459 10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10461printf %s "checking if $CC supports -Waddress... " >&6; } 10462 cacheid=xorg_cv_cc_flag__Waddress 10463 if eval test \${$cacheid+y} 10464then : 10465 printf %s "(cached) " >&6 10466else case e in #( 10467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10468/* end confdefs.h. */ 10469int i; 10470int 10471main (void) 10472{ 10473 10474 ; 10475 return 0; 10476} 10477_ACEOF 10478if ac_fn_c_try_link "$LINENO" 10479then : 10480 eval $cacheid=yes 10481else case e in #( 10482 e) eval $cacheid=no ;; 10483esac 10484fi 10485rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10486 conftest$ac_exeext conftest.$ac_ext ;; 10487esac 10488fi 10489 10490 10491 CFLAGS="$xorg_testset_save_CFLAGS" 10492 10493 eval supported=\$$cacheid 10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10495printf "%s\n" "$supported" >&6; } 10496 if test "$supported" = "yes" ; then 10497 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10498 found="yes" 10499 fi 10500 fi 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516xorg_testset_save_CFLAGS="$CFLAGS" 10517 10518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10522if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10523then : 10524 printf %s "(cached) " >&6 10525else case e in #( 10526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10527/* end confdefs.h. */ 10528int i; 10529_ACEOF 10530if ac_fn_c_try_compile "$LINENO" 10531then : 10532 xorg_cv_cc_flag_unknown_warning_option=yes 10533else case e in #( 10534 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10535esac 10536fi 10537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10538esac 10539fi 10540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10543 CFLAGS="$xorg_testset_save_CFLAGS" 10544fi 10545 10546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10549 fi 10550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10553if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10554then : 10555 printf %s "(cached) " >&6 10556else case e in #( 10557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10558/* end confdefs.h. */ 10559int i; 10560_ACEOF 10561if ac_fn_c_try_compile "$LINENO" 10562then : 10563 xorg_cv_cc_flag_unused_command_line_argument=yes 10564else case e in #( 10565 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10566esac 10567fi 10568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10569esac 10570fi 10571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10572printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10574 CFLAGS="$xorg_testset_save_CFLAGS" 10575fi 10576 10577found="no" 10578 10579 if test $found = "no" ; then 10580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10582 fi 10583 10584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10586 fi 10587 10588 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10589 10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10591printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10592 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10593 if eval test \${$cacheid+y} 10594then : 10595 printf %s "(cached) " >&6 10596else case e in #( 10597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10598/* end confdefs.h. */ 10599int i; 10600int 10601main (void) 10602{ 10603 10604 ; 10605 return 0; 10606} 10607_ACEOF 10608if ac_fn_c_try_link "$LINENO" 10609then : 10610 eval $cacheid=yes 10611else case e in #( 10612 e) eval $cacheid=no ;; 10613esac 10614fi 10615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10616 conftest$ac_exeext conftest.$ac_ext ;; 10617esac 10618fi 10619 10620 10621 CFLAGS="$xorg_testset_save_CFLAGS" 10622 10623 eval supported=\$$cacheid 10624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10625printf "%s\n" "$supported" >&6; } 10626 if test "$supported" = "yes" ; then 10627 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10628 found="yes" 10629 fi 10630 fi 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646xorg_testset_save_CFLAGS="$CFLAGS" 10647 10648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10651printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10652if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10653then : 10654 printf %s "(cached) " >&6 10655else case e in #( 10656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10657/* end confdefs.h. */ 10658int i; 10659_ACEOF 10660if ac_fn_c_try_compile "$LINENO" 10661then : 10662 xorg_cv_cc_flag_unknown_warning_option=yes 10663else case e in #( 10664 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10665esac 10666fi 10667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10668esac 10669fi 10670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10673 CFLAGS="$xorg_testset_save_CFLAGS" 10674fi 10675 10676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10679 fi 10680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10683if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10684then : 10685 printf %s "(cached) " >&6 10686else case e in #( 10687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10688/* end confdefs.h. */ 10689int i; 10690_ACEOF 10691if ac_fn_c_try_compile "$LINENO" 10692then : 10693 xorg_cv_cc_flag_unused_command_line_argument=yes 10694else case e in #( 10695 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10696esac 10697fi 10698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10699esac 10700fi 10701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10704 CFLAGS="$xorg_testset_save_CFLAGS" 10705fi 10706 10707found="no" 10708 10709 if test $found = "no" ; then 10710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10712 fi 10713 10714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10716 fi 10717 10718 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10719 10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10721printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10722 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10723 if eval test \${$cacheid+y} 10724then : 10725 printf %s "(cached) " >&6 10726else case e in #( 10727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10728/* end confdefs.h. */ 10729int i; 10730int 10731main (void) 10732{ 10733 10734 ; 10735 return 0; 10736} 10737_ACEOF 10738if ac_fn_c_try_link "$LINENO" 10739then : 10740 eval $cacheid=yes 10741else case e in #( 10742 e) eval $cacheid=no ;; 10743esac 10744fi 10745rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10746 conftest$ac_exeext conftest.$ac_ext ;; 10747esac 10748fi 10749 10750 10751 CFLAGS="$xorg_testset_save_CFLAGS" 10752 10753 eval supported=\$$cacheid 10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10755printf "%s\n" "$supported" >&6; } 10756 if test "$supported" = "yes" ; then 10757 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10758 found="yes" 10759 fi 10760 fi 10761 10762 10763fi 10764 10765 10766 10767 10768 10769 10770 10771 CWARNFLAGS="$BASE_CFLAGS" 10772 if test "x$GCC" = xyes ; then 10773 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10774 fi 10775 10776 10777 10778 10779 10780 10781 10782 10783# Check whether --enable-strict-compilation was given. 10784if test ${enable_strict_compilation+y} 10785then : 10786 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10787else case e in #( 10788 e) STRICT_COMPILE=no ;; 10789esac 10790fi 10791 10792 10793 10794 10795 10796 10797STRICT_CFLAGS="" 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811xorg_testset_save_CFLAGS="$CFLAGS" 10812 10813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10817if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10818then : 10819 printf %s "(cached) " >&6 10820else case e in #( 10821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10822/* end confdefs.h. */ 10823int i; 10824_ACEOF 10825if ac_fn_c_try_compile "$LINENO" 10826then : 10827 xorg_cv_cc_flag_unknown_warning_option=yes 10828else case e in #( 10829 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10830esac 10831fi 10832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10833esac 10834fi 10835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10836printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10838 CFLAGS="$xorg_testset_save_CFLAGS" 10839fi 10840 10841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10844 fi 10845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10847printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10848if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10849then : 10850 printf %s "(cached) " >&6 10851else case e in #( 10852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10853/* end confdefs.h. */ 10854int i; 10855_ACEOF 10856if ac_fn_c_try_compile "$LINENO" 10857then : 10858 xorg_cv_cc_flag_unused_command_line_argument=yes 10859else case e in #( 10860 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10861esac 10862fi 10863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10864esac 10865fi 10866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10867printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10869 CFLAGS="$xorg_testset_save_CFLAGS" 10870fi 10871 10872found="no" 10873 10874 if test $found = "no" ; then 10875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10877 fi 10878 10879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10881 fi 10882 10883 CFLAGS="$CFLAGS -pedantic" 10884 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10886printf %s "checking if $CC supports -pedantic... " >&6; } 10887 cacheid=xorg_cv_cc_flag__pedantic 10888 if eval test \${$cacheid+y} 10889then : 10890 printf %s "(cached) " >&6 10891else case e in #( 10892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10893/* end confdefs.h. */ 10894int i; 10895int 10896main (void) 10897{ 10898 10899 ; 10900 return 0; 10901} 10902_ACEOF 10903if ac_fn_c_try_link "$LINENO" 10904then : 10905 eval $cacheid=yes 10906else case e in #( 10907 e) eval $cacheid=no ;; 10908esac 10909fi 10910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10911 conftest$ac_exeext conftest.$ac_ext ;; 10912esac 10913fi 10914 10915 10916 CFLAGS="$xorg_testset_save_CFLAGS" 10917 10918 eval supported=\$$cacheid 10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10920printf "%s\n" "$supported" >&6; } 10921 if test "$supported" = "yes" ; then 10922 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10923 found="yes" 10924 fi 10925 fi 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941xorg_testset_save_CFLAGS="$CFLAGS" 10942 10943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10946printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10947if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10948then : 10949 printf %s "(cached) " >&6 10950else case e in #( 10951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10952/* end confdefs.h. */ 10953int i; 10954_ACEOF 10955if ac_fn_c_try_compile "$LINENO" 10956then : 10957 xorg_cv_cc_flag_unknown_warning_option=yes 10958else case e in #( 10959 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10960esac 10961fi 10962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10963esac 10964fi 10965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10966printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10968 CFLAGS="$xorg_testset_save_CFLAGS" 10969fi 10970 10971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10974 fi 10975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10977printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10978if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10979then : 10980 printf %s "(cached) " >&6 10981else case e in #( 10982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10983/* end confdefs.h. */ 10984int i; 10985_ACEOF 10986if ac_fn_c_try_compile "$LINENO" 10987then : 10988 xorg_cv_cc_flag_unused_command_line_argument=yes 10989else case e in #( 10990 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10991esac 10992fi 10993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10994esac 10995fi 10996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10999 CFLAGS="$xorg_testset_save_CFLAGS" 11000fi 11001 11002found="no" 11003 11004 if test $found = "no" ; then 11005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11007 fi 11008 11009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11011 fi 11012 11013 CFLAGS="$CFLAGS -Werror" 11014 11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11016printf %s "checking if $CC supports -Werror... " >&6; } 11017 cacheid=xorg_cv_cc_flag__Werror 11018 if eval test \${$cacheid+y} 11019then : 11020 printf %s "(cached) " >&6 11021else case e in #( 11022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11023/* end confdefs.h. */ 11024int i; 11025int 11026main (void) 11027{ 11028 11029 ; 11030 return 0; 11031} 11032_ACEOF 11033if ac_fn_c_try_link "$LINENO" 11034then : 11035 eval $cacheid=yes 11036else case e in #( 11037 e) eval $cacheid=no ;; 11038esac 11039fi 11040rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11041 conftest$ac_exeext conftest.$ac_ext ;; 11042esac 11043fi 11044 11045 11046 CFLAGS="$xorg_testset_save_CFLAGS" 11047 11048 eval supported=\$$cacheid 11049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11050printf "%s\n" "$supported" >&6; } 11051 if test "$supported" = "yes" ; then 11052 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11053 found="yes" 11054 fi 11055 fi 11056 11057 if test $found = "no" ; then 11058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11060 fi 11061 11062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11064 fi 11065 11066 CFLAGS="$CFLAGS -errwarn" 11067 11068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11069printf %s "checking if $CC supports -errwarn... " >&6; } 11070 cacheid=xorg_cv_cc_flag__errwarn 11071 if eval test \${$cacheid+y} 11072then : 11073 printf %s "(cached) " >&6 11074else case e in #( 11075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11076/* end confdefs.h. */ 11077int i; 11078int 11079main (void) 11080{ 11081 11082 ; 11083 return 0; 11084} 11085_ACEOF 11086if ac_fn_c_try_link "$LINENO" 11087then : 11088 eval $cacheid=yes 11089else case e in #( 11090 e) eval $cacheid=no ;; 11091esac 11092fi 11093rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11094 conftest$ac_exeext conftest.$ac_ext ;; 11095esac 11096fi 11097 11098 11099 CFLAGS="$xorg_testset_save_CFLAGS" 11100 11101 eval supported=\$$cacheid 11102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11103printf "%s\n" "$supported" >&6; } 11104 if test "$supported" = "yes" ; then 11105 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11106 found="yes" 11107 fi 11108 fi 11109 11110 11111 11112# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11113# activate it with -Werror, so we add it here explicitly. 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127xorg_testset_save_CFLAGS="$CFLAGS" 11128 11129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11132printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11133if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11134then : 11135 printf %s "(cached) " >&6 11136else case e in #( 11137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11138/* end confdefs.h. */ 11139int i; 11140_ACEOF 11141if ac_fn_c_try_compile "$LINENO" 11142then : 11143 xorg_cv_cc_flag_unknown_warning_option=yes 11144else case e in #( 11145 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11146esac 11147fi 11148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11149esac 11150fi 11151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11154 CFLAGS="$xorg_testset_save_CFLAGS" 11155fi 11156 11157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11160 fi 11161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11164if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11165then : 11166 printf %s "(cached) " >&6 11167else case e in #( 11168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11169/* end confdefs.h. */ 11170int i; 11171_ACEOF 11172if ac_fn_c_try_compile "$LINENO" 11173then : 11174 xorg_cv_cc_flag_unused_command_line_argument=yes 11175else case e in #( 11176 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11177esac 11178fi 11179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11180esac 11181fi 11182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11183printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11185 CFLAGS="$xorg_testset_save_CFLAGS" 11186fi 11187 11188found="no" 11189 11190 if test $found = "no" ; then 11191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11193 fi 11194 11195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11197 fi 11198 11199 CFLAGS="$CFLAGS -Werror=attributes" 11200 11201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11202printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11203 cacheid=xorg_cv_cc_flag__Werror_attributes 11204 if eval test \${$cacheid+y} 11205then : 11206 printf %s "(cached) " >&6 11207else case e in #( 11208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11209/* end confdefs.h. */ 11210int i; 11211int 11212main (void) 11213{ 11214 11215 ; 11216 return 0; 11217} 11218_ACEOF 11219if ac_fn_c_try_link "$LINENO" 11220then : 11221 eval $cacheid=yes 11222else case e in #( 11223 e) eval $cacheid=no ;; 11224esac 11225fi 11226rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11227 conftest$ac_exeext conftest.$ac_ext ;; 11228esac 11229fi 11230 11231 11232 CFLAGS="$xorg_testset_save_CFLAGS" 11233 11234 eval supported=\$$cacheid 11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11236printf "%s\n" "$supported" >&6; } 11237 if test "$supported" = "yes" ; then 11238 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11239 found="yes" 11240 fi 11241 fi 11242 11243 11244 11245if test "x$STRICT_COMPILE" = "xyes"; then 11246 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11247 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11248fi 11249 11250 11251 11252 11253 11254 11255 11256 11257cat >>confdefs.h <<_ACEOF 11258#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11259_ACEOF 11260 11261 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11262 if test "x$PVM" = "x"; then 11263 PVM="0" 11264 fi 11265 11266printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11267 11268 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11269 if test "x$PVP" = "x"; then 11270 PVP="0" 11271 fi 11272 11273printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11274 11275 11276 11277CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11278mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11279|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11280touch \$(top_srcdir)/ChangeLog; \ 11281echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11282 11283 11284 11285 11286macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11287INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11288mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11289|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11290touch \$(top_srcdir)/INSTALL; \ 11291echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11292 11293 11294 11295 11296 11297 11298case $host_os in 11299 solaris*) 11300 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11301 # check for a man page file found in later versions that use 11302 # traditional section numbers instead 11303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11304printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11305if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11306then : 11307 printf %s "(cached) " >&6 11308else case e in #( 11309 e) test "$cross_compiling" = yes && 11310 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11311if test -r "/usr/share/man/man7/attributes.7"; then 11312 ac_cv_file__usr_share_man_man7_attributes_7=yes 11313else 11314 ac_cv_file__usr_share_man_man7_attributes_7=no 11315fi ;; 11316esac 11317fi 11318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11319printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11320if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11321then : 11322 SYSV_MAN_SECTIONS=false 11323else case e in #( 11324 e) SYSV_MAN_SECTIONS=true ;; 11325esac 11326fi 11327 11328 ;; 11329 *) SYSV_MAN_SECTIONS=false ;; 11330esac 11331 11332if test x$APP_MAN_SUFFIX = x ; then 11333 APP_MAN_SUFFIX=1 11334fi 11335if test x$APP_MAN_DIR = x ; then 11336 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11337fi 11338 11339if test x$LIB_MAN_SUFFIX = x ; then 11340 LIB_MAN_SUFFIX=3 11341fi 11342if test x$LIB_MAN_DIR = x ; then 11343 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11344fi 11345 11346if test x$FILE_MAN_SUFFIX = x ; then 11347 case $SYSV_MAN_SECTIONS in 11348 true) FILE_MAN_SUFFIX=4 ;; 11349 *) FILE_MAN_SUFFIX=5 ;; 11350 esac 11351fi 11352if test x$FILE_MAN_DIR = x ; then 11353 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11354fi 11355 11356if test x$MISC_MAN_SUFFIX = x ; then 11357 case $SYSV_MAN_SECTIONS in 11358 true) MISC_MAN_SUFFIX=5 ;; 11359 *) MISC_MAN_SUFFIX=7 ;; 11360 esac 11361fi 11362if test x$MISC_MAN_DIR = x ; then 11363 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11364fi 11365 11366if test x$DRIVER_MAN_SUFFIX = x ; then 11367 case $SYSV_MAN_SECTIONS in 11368 true) DRIVER_MAN_SUFFIX=7 ;; 11369 *) DRIVER_MAN_SUFFIX=4 ;; 11370 esac 11371fi 11372if test x$DRIVER_MAN_DIR = x ; then 11373 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11374fi 11375 11376if test x$ADMIN_MAN_SUFFIX = x ; then 11377 case $SYSV_MAN_SECTIONS in 11378 true) ADMIN_MAN_SUFFIX=1m ;; 11379 *) ADMIN_MAN_SUFFIX=8 ;; 11380 esac 11381fi 11382if test x$ADMIN_MAN_DIR = x ; then 11383 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11384fi 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400XORG_MAN_PAGE="X Version 11" 11401 11402MAN_SUBSTS="\ 11403 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11404 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11405 -e 's|__xservername__|Xorg|g' \ 11406 -e 's|__xconfigfile__|xorg.conf|g' \ 11407 -e 's|__projectroot__|\$(prefix)|g' \ 11408 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11409 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11410 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11411 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11412 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11413 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11414 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11415 11416 11417 11418# Check whether --enable-silent-rules was given. 11419if test ${enable_silent_rules+y} 11420then : 11421 enableval=$enable_silent_rules; 11422fi 11423 11424case $enable_silent_rules in # ((( 11425 yes) AM_DEFAULT_VERBOSITY=0;; 11426 no) AM_DEFAULT_VERBOSITY=1;; 11427 *) AM_DEFAULT_VERBOSITY=0;; 11428esac 11429am_make=${MAKE-make} 11430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11431printf %s "checking whether $am_make supports nested variables... " >&6; } 11432if test ${am_cv_make_support_nested_variables+y} 11433then : 11434 printf %s "(cached) " >&6 11435else case e in #( 11436 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11437BAR0=false 11438BAR1=true 11439V=1 11440am__doit: 11441 @$(TRUE) 11442.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11443 am_cv_make_support_nested_variables=yes 11444else 11445 am_cv_make_support_nested_variables=no 11446fi ;; 11447esac 11448fi 11449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11450printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11451if test $am_cv_make_support_nested_variables = yes; then 11452 AM_V='$(V)' 11453 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11454else 11455 AM_V=$AM_DEFAULT_VERBOSITY 11456 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11457fi 11458AM_BACKSLASH='\' 11459 11460 11461 11462 11463ac_config_headers="$ac_config_headers config.h" 11464 11465 11466 11467# Checks for pkg-config packages 11468 11469pkg_failed=no 11470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMORE" >&5 11471printf %s "checking for XMORE... " >&6; } 11472 11473if test -n "$XMORE_CFLAGS"; then 11474 pkg_cv_XMORE_CFLAGS="$XMORE_CFLAGS" 11475 elif test -n "$PKG_CONFIG"; then 11476 if test -n "$PKG_CONFIG" && \ 11477 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xproto >= 7.0.25\""; } >&5 11478 ($PKG_CONFIG --exists --print-errors "xaw7 xproto >= 7.0.25") 2>&5 11479 ac_status=$? 11480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11481 test $ac_status = 0; }; then 11482 pkg_cv_XMORE_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xproto >= 7.0.25" 2>/dev/null` 11483 test "x$?" != "x0" && pkg_failed=yes 11484else 11485 pkg_failed=yes 11486fi 11487 else 11488 pkg_failed=untried 11489fi 11490if test -n "$XMORE_LIBS"; then 11491 pkg_cv_XMORE_LIBS="$XMORE_LIBS" 11492 elif test -n "$PKG_CONFIG"; then 11493 if test -n "$PKG_CONFIG" && \ 11494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xproto >= 7.0.25\""; } >&5 11495 ($PKG_CONFIG --exists --print-errors "xaw7 xproto >= 7.0.25") 2>&5 11496 ac_status=$? 11497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11498 test $ac_status = 0; }; then 11499 pkg_cv_XMORE_LIBS=`$PKG_CONFIG --libs "xaw7 xproto >= 7.0.25" 2>/dev/null` 11500 test "x$?" != "x0" && pkg_failed=yes 11501else 11502 pkg_failed=yes 11503fi 11504 else 11505 pkg_failed=untried 11506fi 11507 11508 11509 11510if test $pkg_failed = yes; then 11511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11512printf "%s\n" "no" >&6; } 11513 11514if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11515 _pkg_short_errors_supported=yes 11516else 11517 _pkg_short_errors_supported=no 11518fi 11519 if test $_pkg_short_errors_supported = yes; then 11520 XMORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xproto >= 7.0.25" 2>&1` 11521 else 11522 XMORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xproto >= 7.0.25" 2>&1` 11523 fi 11524 # Put the nasty error message in config.log where it belongs 11525 echo "$XMORE_PKG_ERRORS" >&5 11526 11527 as_fn_error $? "Package requirements (xaw7 xproto >= 7.0.25) were not met: 11528 11529$XMORE_PKG_ERRORS 11530 11531Consider adjusting the PKG_CONFIG_PATH environment variable if you 11532installed software in a non-standard prefix. 11533 11534Alternatively, you may set the environment variables XMORE_CFLAGS 11535and XMORE_LIBS to avoid the need to call pkg-config. 11536See the pkg-config man page for more details." "$LINENO" 5 11537elif test $pkg_failed = untried; then 11538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11539printf "%s\n" "no" >&6; } 11540 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11541printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11542as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11543is in your PATH or set the PKG_CONFIG environment variable to the full 11544path to pkg-config. 11545 11546Alternatively, you may set the environment variables XMORE_CFLAGS 11547and XMORE_LIBS to avoid the need to call pkg-config. 11548See the pkg-config man page for more details. 11549 11550To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11551See 'config.log' for more details" "$LINENO" 5; } 11552else 11553 XMORE_CFLAGS=$pkg_cv_XMORE_CFLAGS 11554 XMORE_LIBS=$pkg_cv_XMORE_LIBS 11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11556printf "%s\n" "yes" >&6; } 11557 11558fi 11559 11560 11561pkg_failed=no 11562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11563printf %s "checking for APPDEFS... " >&6; } 11564 11565if test -n "$APPDEFS_CFLAGS"; then 11566 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11567 elif test -n "$PKG_CONFIG"; then 11568 if test -n "$PKG_CONFIG" && \ 11569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11570 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11571 ac_status=$? 11572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11573 test $ac_status = 0; }; then 11574 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11575 test "x$?" != "x0" && pkg_failed=yes 11576else 11577 pkg_failed=yes 11578fi 11579 else 11580 pkg_failed=untried 11581fi 11582if test -n "$APPDEFS_LIBS"; then 11583 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11584 elif test -n "$PKG_CONFIG"; then 11585 if test -n "$PKG_CONFIG" && \ 11586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11587 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11588 ac_status=$? 11589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11590 test $ac_status = 0; }; then 11591 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11592 test "x$?" != "x0" && pkg_failed=yes 11593else 11594 pkg_failed=yes 11595fi 11596 else 11597 pkg_failed=untried 11598fi 11599 11600 11601 11602if test $pkg_failed = yes; then 11603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11604printf "%s\n" "no" >&6; } 11605 11606if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11607 _pkg_short_errors_supported=yes 11608else 11609 _pkg_short_errors_supported=no 11610fi 11611 if test $_pkg_short_errors_supported = yes; then 11612 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11613 else 11614 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11615 fi 11616 # Put the nasty error message in config.log where it belongs 11617 echo "$APPDEFS_PKG_ERRORS" >&5 11618 11619 as_fn_error $? "Package requirements (xt) were not met: 11620 11621$APPDEFS_PKG_ERRORS 11622 11623Consider adjusting the PKG_CONFIG_PATH environment variable if you 11624installed software in a non-standard prefix. 11625 11626Alternatively, you may set the environment variables APPDEFS_CFLAGS 11627and APPDEFS_LIBS to avoid the need to call pkg-config. 11628See the pkg-config man page for more details." "$LINENO" 5 11629elif test $pkg_failed = untried; then 11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11631printf "%s\n" "no" >&6; } 11632 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11633printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11634as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11635is in your PATH or set the PKG_CONFIG environment variable to the full 11636path to pkg-config. 11637 11638Alternatively, you may set the environment variables APPDEFS_CFLAGS 11639and APPDEFS_LIBS to avoid the need to call pkg-config. 11640See the pkg-config man page for more details. 11641 11642To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11643See 'config.log' for more details" "$LINENO" 5; } 11644else 11645 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11646 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11648printf "%s\n" "yes" >&6; } 11649 11650fi 11651xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11652 11653# Check whether --with-appdefaultdir was given. 11654if test ${with_appdefaultdir+y} 11655then : 11656 withval=$with_appdefaultdir; appdefaultdir="$withval" 11657else case e in #( 11658 e) appdefaultdir="${xt_appdefaultdir}" ;; 11659esac 11660fi 11661 11662 11663 11664 11665ac_config_files="$ac_config_files Makefile man/Makefile" 11666 11667cat >confcache <<\_ACEOF 11668# This file is a shell script that caches the results of configure 11669# tests run on this system so they can be shared between configure 11670# scripts and configure runs, see configure's option --config-cache. 11671# It is not useful on other systems. If it contains results you don't 11672# want to keep, you may remove or edit it. 11673# 11674# config.status only pays attention to the cache file if you give it 11675# the --recheck option to rerun configure. 11676# 11677# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11678# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11679# following values. 11680 11681_ACEOF 11682 11683# The following way of writing the cache mishandles newlines in values, 11684# but we know of no workaround that is simple, portable, and efficient. 11685# So, we kill variables containing newlines. 11686# Ultrix sh set writes to stderr and can't be redirected directly, 11687# and sets the high bit in the cache file unless we assign to the vars. 11688( 11689 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11690 eval ac_val=\$$ac_var 11691 case $ac_val in #( 11692 *${as_nl}*) 11693 case $ac_var in #( 11694 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11695printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11696 esac 11697 case $ac_var in #( 11698 _ | IFS | as_nl) ;; #( 11699 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11700 *) { eval $ac_var=; unset $ac_var;} ;; 11701 esac ;; 11702 esac 11703 done 11704 11705 (set) 2>&1 | 11706 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11707 *${as_nl}ac_space=\ *) 11708 # 'set' does not quote correctly, so add quotes: double-quote 11709 # substitution turns \\\\ into \\, and sed turns \\ into \. 11710 sed -n \ 11711 "s/'/'\\\\''/g; 11712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11713 ;; #( 11714 *) 11715 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11717 ;; 11718 esac | 11719 sort 11720) | 11721 sed ' 11722 /^ac_cv_env_/b end 11723 t clear 11724 :clear 11725 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11726 t end 11727 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11728 :end' >>confcache 11729if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11730 if test -w "$cache_file"; then 11731 if test "x$cache_file" != "x/dev/null"; then 11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11733printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11734 if test ! -f "$cache_file" || test -h "$cache_file"; then 11735 cat confcache >"$cache_file" 11736 else 11737 case $cache_file in #( 11738 */* | ?:*) 11739 mv -f confcache "$cache_file"$$ && 11740 mv -f "$cache_file"$$ "$cache_file" ;; #( 11741 *) 11742 mv -f confcache "$cache_file" ;; 11743 esac 11744 fi 11745 fi 11746 else 11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11748printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11749 fi 11750fi 11751rm -f confcache 11752 11753test "x$prefix" = xNONE && prefix=$ac_default_prefix 11754# Let make expand exec_prefix. 11755test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11756 11757DEFS=-DHAVE_CONFIG_H 11758 11759ac_libobjs= 11760ac_ltlibobjs= 11761U= 11762for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11763 # 1. Remove the extension, and $U if already installed. 11764 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11765 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11766 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11767 # will be set to the directory where LIBOBJS objects are built. 11768 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11769 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11770done 11771LIBOBJS=$ac_libobjs 11772 11773LTLIBOBJS=$ac_ltlibobjs 11774 11775 11776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11777printf %s "checking that generated files are newer than configure... " >&6; } 11778 if test -n "$am_sleep_pid"; then 11779 # Hide warnings about reused PIDs. 11780 wait $am_sleep_pid 2>/dev/null 11781 fi 11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11783printf "%s\n" "done" >&6; } 11784 if test -n "$EXEEXT"; then 11785 am__EXEEXT_TRUE= 11786 am__EXEEXT_FALSE='#' 11787else 11788 am__EXEEXT_TRUE='#' 11789 am__EXEEXT_FALSE= 11790fi 11791 11792if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11793 as_fn_error $? "conditional \"AMDEP\" was never defined. 11794Usually this means the macro was only invoked conditionally." "$LINENO" 5 11795fi 11796if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11797 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11798Usually this means the macro was only invoked conditionally." "$LINENO" 5 11799fi 11800 11801: "${CONFIG_STATUS=./config.status}" 11802ac_write_fail=0 11803ac_clean_files_save=$ac_clean_files 11804ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11806printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11807as_write_fail=0 11808cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11809#! $SHELL 11810# Generated by $as_me. 11811# Run this file to recreate the current configuration. 11812# Compiler output produced by configure, useful for debugging 11813# configure, is in config.log if it exists. 11814 11815debug=false 11816ac_cs_recheck=false 11817ac_cs_silent=false 11818 11819SHELL=\${CONFIG_SHELL-$SHELL} 11820export SHELL 11821_ASEOF 11822cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11823## -------------------- ## 11824## M4sh Initialization. ## 11825## -------------------- ## 11826 11827# Be more Bourne compatible 11828DUALCASE=1; export DUALCASE # for MKS sh 11829if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11830then : 11831 emulate sh 11832 NULLCMD=: 11833 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11834 # is contrary to our usage. Disable this feature. 11835 alias -g '${1+"$@"}'='"$@"' 11836 setopt NO_GLOB_SUBST 11837else case e in #( 11838 e) case `(set -o) 2>/dev/null` in #( 11839 *posix*) : 11840 set -o posix ;; #( 11841 *) : 11842 ;; 11843esac ;; 11844esac 11845fi 11846 11847 11848 11849# Reset variables that may have inherited troublesome values from 11850# the environment. 11851 11852# IFS needs to be set, to space, tab, and newline, in precisely that order. 11853# (If _AS_PATH_WALK were called with IFS unset, it would have the 11854# side effect of setting IFS to empty, thus disabling word splitting.) 11855# Quoting is to prevent editors from complaining about space-tab. 11856as_nl=' 11857' 11858export as_nl 11859IFS=" "" $as_nl" 11860 11861PS1='$ ' 11862PS2='> ' 11863PS4='+ ' 11864 11865# Ensure predictable behavior from utilities with locale-dependent output. 11866LC_ALL=C 11867export LC_ALL 11868LANGUAGE=C 11869export LANGUAGE 11870 11871# We cannot yet rely on "unset" to work, but we need these variables 11872# to be unset--not just set to an empty or harmless value--now, to 11873# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11874# also avoids known problems related to "unset" and subshell syntax 11875# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11876for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11877do eval test \${$as_var+y} \ 11878 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11879done 11880 11881# Ensure that fds 0, 1, and 2 are open. 11882if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11883if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11884if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11885 11886# The user is always right. 11887if ${PATH_SEPARATOR+false} :; then 11888 PATH_SEPARATOR=: 11889 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11890 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11891 PATH_SEPARATOR=';' 11892 } 11893fi 11894 11895 11896# Find who we are. Look in the path if we contain no directory separator. 11897as_myself= 11898case $0 in #(( 11899 *[\\/]* ) as_myself=$0 ;; 11900 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11901for as_dir in $PATH 11902do 11903 IFS=$as_save_IFS 11904 case $as_dir in #((( 11905 '') as_dir=./ ;; 11906 */) ;; 11907 *) as_dir=$as_dir/ ;; 11908 esac 11909 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11910 done 11911IFS=$as_save_IFS 11912 11913 ;; 11914esac 11915# We did not find ourselves, most probably we were run as 'sh COMMAND' 11916# in which case we are not to be found in the path. 11917if test "x$as_myself" = x; then 11918 as_myself=$0 11919fi 11920if test ! -f "$as_myself"; then 11921 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11922 exit 1 11923fi 11924 11925 11926 11927# as_fn_error STATUS ERROR [LINENO LOG_FD] 11928# ---------------------------------------- 11929# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11930# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11931# script with STATUS, using 1 if that was 0. 11932as_fn_error () 11933{ 11934 as_status=$1; test $as_status -eq 0 && as_status=1 11935 if test "$4"; then 11936 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11938 fi 11939 printf "%s\n" "$as_me: error: $2" >&2 11940 as_fn_exit $as_status 11941} # as_fn_error 11942 11943 11944# as_fn_set_status STATUS 11945# ----------------------- 11946# Set $? to STATUS, without forking. 11947as_fn_set_status () 11948{ 11949 return $1 11950} # as_fn_set_status 11951 11952# as_fn_exit STATUS 11953# ----------------- 11954# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11955as_fn_exit () 11956{ 11957 set +e 11958 as_fn_set_status $1 11959 exit $1 11960} # as_fn_exit 11961 11962# as_fn_unset VAR 11963# --------------- 11964# Portably unset VAR. 11965as_fn_unset () 11966{ 11967 { eval $1=; unset $1;} 11968} 11969as_unset=as_fn_unset 11970 11971# as_fn_append VAR VALUE 11972# ---------------------- 11973# Append the text in VALUE to the end of the definition contained in VAR. Take 11974# advantage of any shell optimizations that allow amortized linear growth over 11975# repeated appends, instead of the typical quadratic growth present in naive 11976# implementations. 11977if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11978then : 11979 eval 'as_fn_append () 11980 { 11981 eval $1+=\$2 11982 }' 11983else case e in #( 11984 e) as_fn_append () 11985 { 11986 eval $1=\$$1\$2 11987 } ;; 11988esac 11989fi # as_fn_append 11990 11991# as_fn_arith ARG... 11992# ------------------ 11993# Perform arithmetic evaluation on the ARGs, and store the result in the 11994# global $as_val. Take advantage of shells that can avoid forks. The arguments 11995# must be portable across $(()) and expr. 11996if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11997then : 11998 eval 'as_fn_arith () 11999 { 12000 as_val=$(( $* )) 12001 }' 12002else case e in #( 12003 e) as_fn_arith () 12004 { 12005 as_val=`expr "$@" || test $? -eq 1` 12006 } ;; 12007esac 12008fi # as_fn_arith 12009 12010 12011if expr a : '\(a\)' >/dev/null 2>&1 && 12012 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12013 as_expr=expr 12014else 12015 as_expr=false 12016fi 12017 12018if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12019 as_basename=basename 12020else 12021 as_basename=false 12022fi 12023 12024if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12025 as_dirname=dirname 12026else 12027 as_dirname=false 12028fi 12029 12030as_me=`$as_basename -- "$0" || 12031$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12032 X"$0" : 'X\(//\)$' \| \ 12033 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12034printf "%s\n" X/"$0" | 12035 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12036 s//\1/ 12037 q 12038 } 12039 /^X\/\(\/\/\)$/{ 12040 s//\1/ 12041 q 12042 } 12043 /^X\/\(\/\).*/{ 12044 s//\1/ 12045 q 12046 } 12047 s/.*/./; q'` 12048 12049# Avoid depending upon Character Ranges. 12050as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12051as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12052as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12053as_cr_digits='0123456789' 12054as_cr_alnum=$as_cr_Letters$as_cr_digits 12055 12056 12057# Determine whether it's possible to make 'echo' print without a newline. 12058# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12059# for compatibility with existing Makefiles. 12060ECHO_C= ECHO_N= ECHO_T= 12061case `echo -n x` in #((((( 12062-n*) 12063 case `echo 'xy\c'` in 12064 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12065 xy) ECHO_C='\c';; 12066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12067 ECHO_T=' ';; 12068 esac;; 12069*) 12070 ECHO_N='-n';; 12071esac 12072 12073# For backward compatibility with old third-party macros, we provide 12074# the shell variables $as_echo and $as_echo_n. New code should use 12075# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12076as_echo='printf %s\n' 12077as_echo_n='printf %s' 12078 12079rm -f conf$$ conf$$.exe conf$$.file 12080if test -d conf$$.dir; then 12081 rm -f conf$$.dir/conf$$.file 12082else 12083 rm -f conf$$.dir 12084 mkdir conf$$.dir 2>/dev/null 12085fi 12086if (echo >conf$$.file) 2>/dev/null; then 12087 if ln -s conf$$.file conf$$ 2>/dev/null; then 12088 as_ln_s='ln -s' 12089 # ... but there are two gotchas: 12090 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12091 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12092 # In both cases, we have to default to 'cp -pR'. 12093 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12094 as_ln_s='cp -pR' 12095 elif ln conf$$.file conf$$ 2>/dev/null; then 12096 as_ln_s=ln 12097 else 12098 as_ln_s='cp -pR' 12099 fi 12100else 12101 as_ln_s='cp -pR' 12102fi 12103rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12104rmdir conf$$.dir 2>/dev/null 12105 12106 12107# as_fn_mkdir_p 12108# ------------- 12109# Create "$as_dir" as a directory, including parents if necessary. 12110as_fn_mkdir_p () 12111{ 12112 12113 case $as_dir in #( 12114 -*) as_dir=./$as_dir;; 12115 esac 12116 test -d "$as_dir" || eval $as_mkdir_p || { 12117 as_dirs= 12118 while :; do 12119 case $as_dir in #( 12120 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12121 *) as_qdir=$as_dir;; 12122 esac 12123 as_dirs="'$as_qdir' $as_dirs" 12124 as_dir=`$as_dirname -- "$as_dir" || 12125$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12126 X"$as_dir" : 'X\(//\)[^/]' \| \ 12127 X"$as_dir" : 'X\(//\)$' \| \ 12128 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12129printf "%s\n" X"$as_dir" | 12130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12131 s//\1/ 12132 q 12133 } 12134 /^X\(\/\/\)[^/].*/{ 12135 s//\1/ 12136 q 12137 } 12138 /^X\(\/\/\)$/{ 12139 s//\1/ 12140 q 12141 } 12142 /^X\(\/\).*/{ 12143 s//\1/ 12144 q 12145 } 12146 s/.*/./; q'` 12147 test -d "$as_dir" && break 12148 done 12149 test -z "$as_dirs" || eval "mkdir $as_dirs" 12150 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12151 12152 12153} # as_fn_mkdir_p 12154if mkdir -p . 2>/dev/null; then 12155 as_mkdir_p='mkdir -p "$as_dir"' 12156else 12157 test -d ./-p && rmdir ./-p 12158 as_mkdir_p=false 12159fi 12160 12161 12162# as_fn_executable_p FILE 12163# ----------------------- 12164# Test if FILE is an executable regular file. 12165as_fn_executable_p () 12166{ 12167 test -f "$1" && test -x "$1" 12168} # as_fn_executable_p 12169as_test_x='test -x' 12170as_executable_p=as_fn_executable_p 12171 12172# Sed expression to map a string onto a valid CPP name. 12173as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12174as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12175 12176# Sed expression to map a string onto a valid variable name. 12177as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12178as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12179 12180 12181exec 6>&1 12182## ----------------------------------- ## 12183## Main body of $CONFIG_STATUS script. ## 12184## ----------------------------------- ## 12185_ASEOF 12186test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12187 12188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12189# Save the log message, to keep $0 and so on meaningful, and to 12190# report actual input values of CONFIG_FILES etc. instead of their 12191# values after options handling. 12192ac_log=" 12193This file was extended by xmore $as_me 1.0.4, which was 12194generated by GNU Autoconf 2.72. Invocation command line was 12195 12196 CONFIG_FILES = $CONFIG_FILES 12197 CONFIG_HEADERS = $CONFIG_HEADERS 12198 CONFIG_LINKS = $CONFIG_LINKS 12199 CONFIG_COMMANDS = $CONFIG_COMMANDS 12200 $ $0 $@ 12201 12202on `(hostname || uname -n) 2>/dev/null | sed 1q` 12203" 12204 12205_ACEOF 12206 12207case $ac_config_files in *" 12208"*) set x $ac_config_files; shift; ac_config_files=$*;; 12209esac 12210 12211case $ac_config_headers in *" 12212"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12213esac 12214 12215 12216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12217# Files that config.status was made for. 12218config_files="$ac_config_files" 12219config_headers="$ac_config_headers" 12220config_commands="$ac_config_commands" 12221 12222_ACEOF 12223 12224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12225ac_cs_usage="\ 12226'$as_me' instantiates files and other configuration actions 12227from templates according to the current configuration. Unless the files 12228and actions are specified as TAGs, all are instantiated by default. 12229 12230Usage: $0 [OPTION]... [TAG]... 12231 12232 -h, --help print this help, then exit 12233 -V, --version print version number and configuration settings, then exit 12234 --config print configuration, then exit 12235 -q, --quiet, --silent 12236 do not print progress messages 12237 -d, --debug don't remove temporary files 12238 --recheck update $as_me by reconfiguring in the same conditions 12239 --file=FILE[:TEMPLATE] 12240 instantiate the configuration file FILE 12241 --header=FILE[:TEMPLATE] 12242 instantiate the configuration header FILE 12243 12244Configuration files: 12245$config_files 12246 12247Configuration headers: 12248$config_headers 12249 12250Configuration commands: 12251$config_commands 12252 12253Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmore/-/issues>." 12254 12255_ACEOF 12256ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12257ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12259ac_cs_config='$ac_cs_config_escaped' 12260ac_cs_version="\\ 12261xmore config.status 1.0.4 12262configured by $0, generated by GNU Autoconf 2.72, 12263 with options \\"\$ac_cs_config\\" 12264 12265Copyright (C) 2023 Free Software Foundation, Inc. 12266This config.status script is free software; the Free Software Foundation 12267gives unlimited permission to copy, distribute and modify it." 12268 12269ac_pwd='$ac_pwd' 12270srcdir='$srcdir' 12271INSTALL='$INSTALL' 12272MKDIR_P='$MKDIR_P' 12273AWK='$AWK' 12274test -n "\$AWK" || AWK=awk 12275_ACEOF 12276 12277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12278# The default lists apply if the user does not specify any file. 12279ac_need_defaults=: 12280while test $# != 0 12281do 12282 case $1 in 12283 --*=?*) 12284 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12285 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12286 ac_shift=: 12287 ;; 12288 --*=) 12289 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12290 ac_optarg= 12291 ac_shift=: 12292 ;; 12293 *) 12294 ac_option=$1 12295 ac_optarg=$2 12296 ac_shift=shift 12297 ;; 12298 esac 12299 12300 case $ac_option in 12301 # Handling of the options. 12302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12303 ac_cs_recheck=: ;; 12304 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12305 printf "%s\n" "$ac_cs_version"; exit ;; 12306 --config | --confi | --conf | --con | --co | --c ) 12307 printf "%s\n" "$ac_cs_config"; exit ;; 12308 --debug | --debu | --deb | --de | --d | -d ) 12309 debug=: ;; 12310 --file | --fil | --fi | --f ) 12311 $ac_shift 12312 case $ac_optarg in 12313 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12314 '') as_fn_error $? "missing file argument" ;; 12315 esac 12316 as_fn_append CONFIG_FILES " '$ac_optarg'" 12317 ac_need_defaults=false;; 12318 --header | --heade | --head | --hea ) 12319 $ac_shift 12320 case $ac_optarg in 12321 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12322 esac 12323 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12324 ac_need_defaults=false;; 12325 --he | --h) 12326 # Conflict between --help and --header 12327 as_fn_error $? "ambiguous option: '$1' 12328Try '$0 --help' for more information.";; 12329 --help | --hel | -h ) 12330 printf "%s\n" "$ac_cs_usage"; exit ;; 12331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12332 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12333 ac_cs_silent=: ;; 12334 12335 # This is an error. 12336 -*) as_fn_error $? "unrecognized option: '$1' 12337Try '$0 --help' for more information." ;; 12338 12339 *) as_fn_append ac_config_targets " $1" 12340 ac_need_defaults=false ;; 12341 12342 esac 12343 shift 12344done 12345 12346ac_configure_extra_args= 12347 12348if $ac_cs_silent; then 12349 exec 6>/dev/null 12350 ac_configure_extra_args="$ac_configure_extra_args --silent" 12351fi 12352 12353_ACEOF 12354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12355if \$ac_cs_recheck; then 12356 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12357 shift 12358 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12359 CONFIG_SHELL='$SHELL' 12360 export CONFIG_SHELL 12361 exec "\$@" 12362fi 12363 12364_ACEOF 12365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12366exec 5>>config.log 12367{ 12368 echo 12369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12370## Running $as_me. ## 12371_ASBOX 12372 printf "%s\n" "$ac_log" 12373} >&5 12374 12375_ACEOF 12376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12377# 12378# INIT-COMMANDS 12379# 12380AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12381 12382_ACEOF 12383 12384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12385 12386# Handling of arguments. 12387for ac_config_target in $ac_config_targets 12388do 12389 case $ac_config_target in 12390 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12391 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12392 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12393 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12394 12395 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12396 esac 12397done 12398 12399 12400# If the user did not use the arguments to specify the items to instantiate, 12401# then the envvar interface is used. Set only those that are not. 12402# We use the long form for the default assignment because of an extremely 12403# bizarre bug on SunOS 4.1.3. 12404if $ac_need_defaults; then 12405 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12406 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12407 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12408fi 12409 12410# Have a temporary directory for convenience. Make it in the build tree 12411# simply because there is no reason against having it here, and in addition, 12412# creating and moving files from /tmp can sometimes cause problems. 12413# Hook for its removal unless debugging. 12414# Note that there is a small window in which the directory will not be cleaned: 12415# after its creation but before its name has been assigned to '$tmp'. 12416$debug || 12417{ 12418 tmp= ac_tmp= 12419 trap 'exit_status=$? 12420 : "${ac_tmp:=$tmp}" 12421 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12422' 0 12423 trap 'as_fn_exit 1' 1 2 13 15 12424} 12425# Create a (secure) tmp directory for tmp files. 12426 12427{ 12428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12429 test -d "$tmp" 12430} || 12431{ 12432 tmp=./conf$$-$RANDOM 12433 (umask 077 && mkdir "$tmp") 12434} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12435ac_tmp=$tmp 12436 12437# Set up the scripts for CONFIG_FILES section. 12438# No need to generate them if there are no CONFIG_FILES. 12439# This happens for instance with './config.status config.h'. 12440if test -n "$CONFIG_FILES"; then 12441 12442 12443ac_cr=`echo X | tr X '\015'` 12444# On cygwin, bash can eat \r inside `` if the user requested igncr. 12445# But we know of no other shell where ac_cr would be empty at this 12446# point, so we can use a bashism as a fallback. 12447if test "x$ac_cr" = x; then 12448 eval ac_cr=\$\'\\r\' 12449fi 12450ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12451if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12452 ac_cs_awk_cr='\\r' 12453else 12454 ac_cs_awk_cr=$ac_cr 12455fi 12456 12457echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12458_ACEOF 12459 12460 12461{ 12462 echo "cat >conf$$subs.awk <<_ACEOF" && 12463 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12464 echo "_ACEOF" 12465} >conf$$subs.sh || 12466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12467ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12468ac_delim='%!_!# ' 12469for ac_last_try in false false false false false :; do 12470 . ./conf$$subs.sh || 12471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12472 12473 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12474 if test $ac_delim_n = $ac_delim_num; then 12475 break 12476 elif $ac_last_try; then 12477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12478 else 12479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12480 fi 12481done 12482rm -f conf$$subs.sh 12483 12484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12485cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12486_ACEOF 12487sed -n ' 12488h 12489s/^/S["/; s/!.*/"]=/ 12490p 12491g 12492s/^[^!]*!// 12493:repl 12494t repl 12495s/'"$ac_delim"'$// 12496t delim 12497:nl 12498h 12499s/\(.\{148\}\)..*/\1/ 12500t more1 12501s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12502p 12503n 12504b repl 12505:more1 12506s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12507p 12508g 12509s/.\{148\}// 12510t nl 12511:delim 12512h 12513s/\(.\{148\}\)..*/\1/ 12514t more2 12515s/["\\]/\\&/g; s/^/"/; s/$/"/ 12516p 12517b 12518:more2 12519s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12520p 12521g 12522s/.\{148\}// 12523t delim 12524' <conf$$subs.awk | sed ' 12525/^[^""]/{ 12526 N 12527 s/\n// 12528} 12529' >>$CONFIG_STATUS || ac_write_fail=1 12530rm -f conf$$subs.awk 12531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12532_ACAWK 12533cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12534 for (key in S) S_is_set[key] = 1 12535 FS = "" 12536 12537} 12538{ 12539 line = $ 0 12540 nfields = split(line, field, "@") 12541 substed = 0 12542 len = length(field[1]) 12543 for (i = 2; i < nfields; i++) { 12544 key = field[i] 12545 keylen = length(key) 12546 if (S_is_set[key]) { 12547 value = S[key] 12548 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12549 len += length(value) + length(field[++i]) 12550 substed = 1 12551 } else 12552 len += 1 + keylen 12553 } 12554 12555 print line 12556} 12557 12558_ACAWK 12559_ACEOF 12560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12561if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12562 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12563else 12564 cat 12565fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12566 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12567_ACEOF 12568 12569# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12570# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12571# trailing colons and then remove the whole line if VPATH becomes empty 12572# (actually we leave an empty line to preserve line numbers). 12573if test "x$srcdir" = x.; then 12574 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12575h 12576s/// 12577s/^/:/ 12578s/[ ]*$/:/ 12579s/:\$(srcdir):/:/g 12580s/:\${srcdir}:/:/g 12581s/:@srcdir@:/:/g 12582s/^:*// 12583s/:*$// 12584x 12585s/\(=[ ]*\).*/\1/ 12586G 12587s/\n// 12588s/^[^=]*=[ ]*$// 12589}' 12590fi 12591 12592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12593fi # test -n "$CONFIG_FILES" 12594 12595# Set up the scripts for CONFIG_HEADERS section. 12596# No need to generate them if there are no CONFIG_HEADERS. 12597# This happens for instance with './config.status Makefile'. 12598if test -n "$CONFIG_HEADERS"; then 12599cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12600BEGIN { 12601_ACEOF 12602 12603# Transform confdefs.h into an awk script 'defines.awk', embedded as 12604# here-document in config.status, that substitutes the proper values into 12605# config.h.in to produce config.h. 12606 12607# Create a delimiter string that does not exist in confdefs.h, to ease 12608# handling of long lines. 12609ac_delim='%!_!# ' 12610for ac_last_try in false false :; do 12611 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12612 if test -z "$ac_tt"; then 12613 break 12614 elif $ac_last_try; then 12615 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12616 else 12617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12618 fi 12619done 12620 12621# For the awk script, D is an array of macro values keyed by name, 12622# likewise P contains macro parameters if any. Preserve backslash 12623# newline sequences. 12624 12625ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12626sed -n ' 12627s/.\{148\}/&'"$ac_delim"'/g 12628t rset 12629:rset 12630s/^[ ]*#[ ]*define[ ][ ]*/ / 12631t def 12632d 12633:def 12634s/\\$// 12635t bsnl 12636s/["\\]/\\&/g 12637s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12638D["\1"]=" \3"/p 12639s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12640d 12641:bsnl 12642s/["\\]/\\&/g 12643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12644D["\1"]=" \3\\\\\\n"\\/p 12645t cont 12646s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12647t cont 12648d 12649:cont 12650n 12651s/.\{148\}/&'"$ac_delim"'/g 12652t clear 12653:clear 12654s/\\$// 12655t bsnlc 12656s/["\\]/\\&/g; s/^/"/; s/$/"/p 12657d 12658:bsnlc 12659s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12660b cont 12661' <confdefs.h | sed ' 12662s/'"$ac_delim"'/"\\\ 12663"/g' >>$CONFIG_STATUS || ac_write_fail=1 12664 12665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12666 for (key in D) D_is_set[key] = 1 12667 FS = "" 12668} 12669/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12670 line = \$ 0 12671 split(line, arg, " ") 12672 if (arg[1] == "#") { 12673 defundef = arg[2] 12674 mac1 = arg[3] 12675 } else { 12676 defundef = substr(arg[1], 2) 12677 mac1 = arg[2] 12678 } 12679 split(mac1, mac2, "(") #) 12680 macro = mac2[1] 12681 prefix = substr(line, 1, index(line, defundef) - 1) 12682 if (D_is_set[macro]) { 12683 # Preserve the white space surrounding the "#". 12684 print prefix "define", macro P[macro] D[macro] 12685 next 12686 } else { 12687 # Replace #undef with comments. This is necessary, for example, 12688 # in the case of _POSIX_SOURCE, which is predefined and required 12689 # on some systems where configure will not decide to define it. 12690 if (defundef == "undef") { 12691 print "/*", prefix defundef, macro, "*/" 12692 next 12693 } 12694 } 12695} 12696{ print } 12697_ACAWK 12698_ACEOF 12699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12700 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12701fi # test -n "$CONFIG_HEADERS" 12702 12703 12704eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12705shift 12706for ac_tag 12707do 12708 case $ac_tag in 12709 :[FHLC]) ac_mode=$ac_tag; continue;; 12710 esac 12711 case $ac_mode$ac_tag in 12712 :[FHL]*:*);; 12713 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12714 :[FH]-) ac_tag=-:-;; 12715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12716 esac 12717 ac_save_IFS=$IFS 12718 IFS=: 12719 set x $ac_tag 12720 IFS=$ac_save_IFS 12721 shift 12722 ac_file=$1 12723 shift 12724 12725 case $ac_mode in 12726 :L) ac_source=$1;; 12727 :[FH]) 12728 ac_file_inputs= 12729 for ac_f 12730 do 12731 case $ac_f in 12732 -) ac_f="$ac_tmp/stdin";; 12733 *) # Look for the file first in the build tree, then in the source tree 12734 # (if the path is not absolute). The absolute path cannot be DOS-style, 12735 # because $ac_f cannot contain ':'. 12736 test -f "$ac_f" || 12737 case $ac_f in 12738 [\\/$]*) false;; 12739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12740 esac || 12741 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12742 esac 12743 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12744 as_fn_append ac_file_inputs " '$ac_f'" 12745 done 12746 12747 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12748 # use $as_me), people would be surprised to read: 12749 # /* config.h. Generated by config.status. */ 12750 configure_input='Generated from '` 12751 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12752 `' by configure.' 12753 if test x"$ac_file" != x-; then 12754 configure_input="$ac_file. $configure_input" 12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12756printf "%s\n" "$as_me: creating $ac_file" >&6;} 12757 fi 12758 # Neutralize special characters interpreted by sed in replacement strings. 12759 case $configure_input in #( 12760 *\&* | *\|* | *\\* ) 12761 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12762 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12763 *) ac_sed_conf_input=$configure_input;; 12764 esac 12765 12766 case $ac_tag in 12767 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12769 esac 12770 ;; 12771 esac 12772 12773 ac_dir=`$as_dirname -- "$ac_file" || 12774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12775 X"$ac_file" : 'X\(//\)[^/]' \| \ 12776 X"$ac_file" : 'X\(//\)$' \| \ 12777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12778printf "%s\n" X"$ac_file" | 12779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12780 s//\1/ 12781 q 12782 } 12783 /^X\(\/\/\)[^/].*/{ 12784 s//\1/ 12785 q 12786 } 12787 /^X\(\/\/\)$/{ 12788 s//\1/ 12789 q 12790 } 12791 /^X\(\/\).*/{ 12792 s//\1/ 12793 q 12794 } 12795 s/.*/./; q'` 12796 as_dir="$ac_dir"; as_fn_mkdir_p 12797 ac_builddir=. 12798 12799case "$ac_dir" in 12800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12801*) 12802 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12803 # A ".." for each directory in $ac_dir_suffix. 12804 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12805 case $ac_top_builddir_sub in 12806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12808 esac ;; 12809esac 12810ac_abs_top_builddir=$ac_pwd 12811ac_abs_builddir=$ac_pwd$ac_dir_suffix 12812# for backward compatibility: 12813ac_top_builddir=$ac_top_build_prefix 12814 12815case $srcdir in 12816 .) # We are building in place. 12817 ac_srcdir=. 12818 ac_top_srcdir=$ac_top_builddir_sub 12819 ac_abs_top_srcdir=$ac_pwd ;; 12820 [\\/]* | ?:[\\/]* ) # Absolute name. 12821 ac_srcdir=$srcdir$ac_dir_suffix; 12822 ac_top_srcdir=$srcdir 12823 ac_abs_top_srcdir=$srcdir ;; 12824 *) # Relative name. 12825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12826 ac_top_srcdir=$ac_top_build_prefix$srcdir 12827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12828esac 12829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12830 12831 12832 case $ac_mode in 12833 :F) 12834 # 12835 # CONFIG_FILE 12836 # 12837 12838 case $INSTALL in 12839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12841 esac 12842 ac_MKDIR_P=$MKDIR_P 12843 case $MKDIR_P in 12844 [\\/$]* | ?:[\\/]* ) ;; 12845 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12846 esac 12847_ACEOF 12848 12849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12850# If the template does not know about datarootdir, expand it. 12851# FIXME: This hack should be removed a few years after 2.60. 12852ac_datarootdir_hack=; ac_datarootdir_seen= 12853ac_sed_dataroot=' 12854/datarootdir/ { 12855 p 12856 q 12857} 12858/@datadir@/p 12859/@docdir@/p 12860/@infodir@/p 12861/@localedir@/p 12862/@mandir@/p' 12863case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12864*datarootdir*) ac_datarootdir_seen=yes;; 12865*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12867printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12868_ACEOF 12869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12870 ac_datarootdir_hack=' 12871 s&@datadir@&$datadir&g 12872 s&@docdir@&$docdir&g 12873 s&@infodir@&$infodir&g 12874 s&@localedir@&$localedir&g 12875 s&@mandir@&$mandir&g 12876 s&\\\${datarootdir}&$datarootdir&g' ;; 12877esac 12878_ACEOF 12879 12880# Neutralize VPATH when '$srcdir' = '.'. 12881# Shell code in configure.ac might set extrasub. 12882# FIXME: do we really want to maintain this feature? 12883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12884ac_sed_extra="$ac_vpsub 12885$extrasub 12886_ACEOF 12887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12888:t 12889/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12890s|@configure_input@|$ac_sed_conf_input|;t t 12891s&@top_builddir@&$ac_top_builddir_sub&;t t 12892s&@top_build_prefix@&$ac_top_build_prefix&;t t 12893s&@srcdir@&$ac_srcdir&;t t 12894s&@abs_srcdir@&$ac_abs_srcdir&;t t 12895s&@top_srcdir@&$ac_top_srcdir&;t t 12896s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12897s&@builddir@&$ac_builddir&;t t 12898s&@abs_builddir@&$ac_abs_builddir&;t t 12899s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12900s&@INSTALL@&$ac_INSTALL&;t t 12901s&@MKDIR_P@&$ac_MKDIR_P&;t t 12902$ac_datarootdir_hack 12903" 12904eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12905 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12906 12907test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12908 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12909 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12910 "$ac_tmp/out"`; test -z "$ac_out"; } && 12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12912which seems to be undefined. Please make sure it is defined" >&5 12913printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12914which seems to be undefined. Please make sure it is defined" >&2;} 12915 12916 rm -f "$ac_tmp/stdin" 12917 case $ac_file in 12918 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12919 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12920 esac \ 12921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12922 ;; 12923 :H) 12924 # 12925 # CONFIG_HEADER 12926 # 12927 if test x"$ac_file" != x-; then 12928 { 12929 printf "%s\n" "/* $configure_input */" >&1 \ 12930 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12931 } >"$ac_tmp/config.h" \ 12932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12933 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12935printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12936 else 12937 rm -f "$ac_file" 12938 mv "$ac_tmp/config.h" "$ac_file" \ 12939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12940 fi 12941 else 12942 printf "%s\n" "/* $configure_input */" >&1 \ 12943 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12944 || as_fn_error $? "could not create -" "$LINENO" 5 12945 fi 12946# Compute "$ac_file"'s index in $config_headers. 12947_am_arg="$ac_file" 12948_am_stamp_count=1 12949for _am_header in $config_headers :; do 12950 case $_am_header in 12951 $_am_arg | $_am_arg:* ) 12952 break ;; 12953 * ) 12954 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12955 esac 12956done 12957echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12958$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12959 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12960 X"$_am_arg" : 'X\(//\)$' \| \ 12961 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12962printf "%s\n" X"$_am_arg" | 12963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12964 s//\1/ 12965 q 12966 } 12967 /^X\(\/\/\)[^/].*/{ 12968 s//\1/ 12969 q 12970 } 12971 /^X\(\/\/\)$/{ 12972 s//\1/ 12973 q 12974 } 12975 /^X\(\/\).*/{ 12976 s//\1/ 12977 q 12978 } 12979 s/.*/./; q'`/stamp-h$_am_stamp_count 12980 ;; 12981 12982 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12983printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12984 ;; 12985 esac 12986 12987 12988 case $ac_file$ac_mode in 12989 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12990 # Older Autoconf quotes --file arguments for eval, but not when files 12991 # are listed without --file. Let's play safe and only enable the eval 12992 # if we detect the quoting. 12993 # TODO: see whether this extra hack can be removed once we start 12994 # requiring Autoconf 2.70 or later. 12995 case $CONFIG_FILES in #( 12996 *\'*) : 12997 eval set x "$CONFIG_FILES" ;; #( 12998 *) : 12999 set x $CONFIG_FILES ;; #( 13000 *) : 13001 ;; 13002esac 13003 shift 13004 # Used to flag and report bootstrapping failures. 13005 am_rc=0 13006 for am_mf 13007 do 13008 # Strip MF so we end up with the name of the file. 13009 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13010 # Check whether this is an Automake generated Makefile which includes 13011 # dependency-tracking related rules and includes. 13012 # Grep'ing the whole file directly is not great: AIX grep has a line 13013 # limit of 2048, but all sed's we know have understand at least 4000. 13014 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13015 || continue 13016 am_dirpart=`$as_dirname -- "$am_mf" || 13017$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13018 X"$am_mf" : 'X\(//\)[^/]' \| \ 13019 X"$am_mf" : 'X\(//\)$' \| \ 13020 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13021printf "%s\n" X"$am_mf" | 13022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13023 s//\1/ 13024 q 13025 } 13026 /^X\(\/\/\)[^/].*/{ 13027 s//\1/ 13028 q 13029 } 13030 /^X\(\/\/\)$/{ 13031 s//\1/ 13032 q 13033 } 13034 /^X\(\/\).*/{ 13035 s//\1/ 13036 q 13037 } 13038 s/.*/./; q'` 13039 am_filepart=`$as_basename -- "$am_mf" || 13040$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13041 X"$am_mf" : 'X\(//\)$' \| \ 13042 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13043printf "%s\n" X/"$am_mf" | 13044 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13045 s//\1/ 13046 q 13047 } 13048 /^X\/\(\/\/\)$/{ 13049 s//\1/ 13050 q 13051 } 13052 /^X\/\(\/\).*/{ 13053 s//\1/ 13054 q 13055 } 13056 s/.*/./; q'` 13057 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13058 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13059 | $MAKE -f - am--depfiles" >&5 13060 (cd "$am_dirpart" \ 13061 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13062 | $MAKE -f - am--depfiles) >&5 2>&5 13063 ac_status=$? 13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13065 (exit $ac_status); } || am_rc=$? 13066 done 13067 if test $am_rc -ne 0; then 13068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13069printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13070as_fn_error $? "Something went wrong bootstrapping makefile fragments 13071 for automatic dependency tracking. If GNU make was not used, consider 13072 re-running the configure script with MAKE=\"gmake\" (or whatever is 13073 necessary). You can also try re-running configure with the 13074 '--disable-dependency-tracking' option to at least be able to build 13075 the package (albeit without support for automatic dependency tracking). 13076See 'config.log' for more details" "$LINENO" 5; } 13077 fi 13078 { am_dirpart=; unset am_dirpart;} 13079 { am_filepart=; unset am_filepart;} 13080 { am_mf=; unset am_mf;} 13081 { am_rc=; unset am_rc;} 13082 rm -f conftest-deps.mk 13083} 13084 ;; 13085 13086 esac 13087done # for ac_tag 13088 13089 13090as_fn_exit 0 13091_ACEOF 13092ac_clean_files=$ac_clean_files_save 13093 13094test $ac_write_fail = 0 || 13095 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13096 13097 13098# configure is writing to config.log, and then calls config.status. 13099# config.status does its own redirection, appending to config.log. 13100# Unfortunately, on DOS this fails, as config.log is still kept open 13101# by configure, so config.status won't be able to write to it; its 13102# output is simply discarded. So we exec the FD to /dev/null, 13103# effectively closing config.log, so it can be properly (re)opened and 13104# appended to by config.status. When coming back to configure, we 13105# need to make the FD available again. 13106if test "$no_create" != yes; then 13107 ac_cs_success=: 13108 ac_config_status_args= 13109 test "$silent" = yes && 13110 ac_config_status_args="$ac_config_status_args --quiet" 13111 exec 5>/dev/null 13112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13113 exec 5>>config.log 13114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13115 # would make configure fail if this is the last instruction. 13116 $ac_cs_success || as_fn_exit 1 13117fi 13118if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13120printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13121fi 13122 13123 13124