configure revision e6ecbdae
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xconsole 1.0.6. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 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 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xconsole' 563PACKAGE_TARNAME='xconsole' 564PACKAGE_VERSION='1.0.6' 565PACKAGE_STRING='xconsole 1.0.6' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610appdefaultdir 611APPDEFS_LIBS 612APPDEFS_CFLAGS 613XCONSOLE_LIBS 614XCONSOLE_CFLAGS 615MAN_SUBSTS 616XORG_MAN_PAGE 617ADMIN_MAN_DIR 618DRIVER_MAN_DIR 619MISC_MAN_DIR 620FILE_MAN_DIR 621LIB_MAN_DIR 622APP_MAN_DIR 623ADMIN_MAN_SUFFIX 624DRIVER_MAN_SUFFIX 625MISC_MAN_SUFFIX 626FILE_MAN_SUFFIX 627LIB_MAN_SUFFIX 628APP_MAN_SUFFIX 629SED 630host_os 631host_vendor 632host_cpu 633host 634build_os 635build_vendor 636build_cpu 637build 638INSTALL_CMD 639PKG_CONFIG 640CHANGELOG_CMD 641STRICT_CFLAGS 642CWARNFLAGS 643BASE_CFLAGS 644EGREP 645GREP 646CPP 647am__fastdepCC_FALSE 648am__fastdepCC_TRUE 649CCDEPMODE 650am__nodep 651AMDEPBACKSLASH 652AMDEP_FALSE 653AMDEP_TRUE 654am__quote 655am__include 656DEPDIR 657OBJEXT 658EXEEXT 659ac_ct_CC 660CPPFLAGS 661LDFLAGS 662CFLAGS 663CC 664MAINT 665MAINTAINER_MODE_FALSE 666MAINTAINER_MODE_TRUE 667AM_BACKSLASH 668AM_DEFAULT_VERBOSITY 669AM_DEFAULT_V 670AM_V 671am__untar 672am__tar 673AMTAR 674am__leading_dot 675SET_MAKE 676AWK 677mkdir_p 678MKDIR_P 679INSTALL_STRIP_PROGRAM 680STRIP 681install_sh 682MAKEINFO 683AUTOHEADER 684AUTOMAKE 685AUTOCONF 686ACLOCAL 687VERSION 688PACKAGE 689CYGPATH_W 690am__isrc 691INSTALL_DATA 692INSTALL_SCRIPT 693INSTALL_PROGRAM 694target_alias 695host_alias 696build_alias 697LIBS 698ECHO_T 699ECHO_N 700ECHO_C 701DEFS 702mandir 703localedir 704libdir 705psdir 706pdfdir 707dvidir 708htmldir 709infodir 710docdir 711oldincludedir 712includedir 713localstatedir 714sharedstatedir 715sysconfdir 716datadir 717datarootdir 718libexecdir 719sbindir 720bindir 721program_transform_name 722prefix 723exec_prefix 724PACKAGE_URL 725PACKAGE_BUGREPORT 726PACKAGE_STRING 727PACKAGE_VERSION 728PACKAGE_TARNAME 729PACKAGE_NAME 730PATH_SEPARATOR 731SHELL' 732ac_subst_files='' 733ac_user_opts=' 734enable_option_checking 735enable_silent_rules 736enable_maintainer_mode 737enable_dependency_tracking 738enable_selective_werror 739enable_strict_compilation 740with_appdefaultdir 741' 742 ac_precious_vars='build_alias 743host_alias 744target_alias 745CC 746CFLAGS 747LDFLAGS 748LIBS 749CPPFLAGS 750CPP 751PKG_CONFIG 752XCONSOLE_CFLAGS 753XCONSOLE_LIBS 754APPDEFS_CFLAGS 755APPDEFS_LIBS' 756 757 758# Initialize some variables set by options. 759ac_init_help= 760ac_init_version=false 761ac_unrecognized_opts= 762ac_unrecognized_sep= 763# The variables have the same names as the options, with 764# dashes changed to underlines. 765cache_file=/dev/null 766exec_prefix=NONE 767no_create= 768no_recursion= 769prefix=NONE 770program_prefix=NONE 771program_suffix=NONE 772program_transform_name=s,x,x, 773silent= 774site= 775srcdir= 776verbose= 777x_includes=NONE 778x_libraries=NONE 779 780# Installation directory options. 781# These are left unexpanded so users can "make install exec_prefix=/foo" 782# and all the variables that are supposed to be based on exec_prefix 783# by default will actually change. 784# Use braces instead of parens because sh, perl, etc. also accept them. 785# (The list follows the same order as the GNU Coding Standards.) 786bindir='${exec_prefix}/bin' 787sbindir='${exec_prefix}/sbin' 788libexecdir='${exec_prefix}/libexec' 789datarootdir='${prefix}/share' 790datadir='${datarootdir}' 791sysconfdir='${prefix}/etc' 792sharedstatedir='${prefix}/com' 793localstatedir='${prefix}/var' 794includedir='${prefix}/include' 795oldincludedir='/usr/include' 796docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 797infodir='${datarootdir}/info' 798htmldir='${docdir}' 799dvidir='${docdir}' 800pdfdir='${docdir}' 801psdir='${docdir}' 802libdir='${exec_prefix}/lib' 803localedir='${datarootdir}/locale' 804mandir='${datarootdir}/man' 805 806ac_prev= 807ac_dashdash= 808for ac_option 809do 810 # If the previous option needs an argument, assign it. 811 if test -n "$ac_prev"; then 812 eval $ac_prev=\$ac_option 813 ac_prev= 814 continue 815 fi 816 817 case $ac_option in 818 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 819 *=) ac_optarg= ;; 820 *) ac_optarg=yes ;; 821 esac 822 823 # Accept the important Cygnus configure options, so we can diagnose typos. 824 825 case $ac_dashdash$ac_option in 826 --) 827 ac_dashdash=yes ;; 828 829 -bindir | --bindir | --bindi | --bind | --bin | --bi) 830 ac_prev=bindir ;; 831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 832 bindir=$ac_optarg ;; 833 834 -build | --build | --buil | --bui | --bu) 835 ac_prev=build_alias ;; 836 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 837 build_alias=$ac_optarg ;; 838 839 -cache-file | --cache-file | --cache-fil | --cache-fi \ 840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 841 ac_prev=cache_file ;; 842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 844 cache_file=$ac_optarg ;; 845 846 --config-cache | -C) 847 cache_file=config.cache ;; 848 849 -datadir | --datadir | --datadi | --datad) 850 ac_prev=datadir ;; 851 -datadir=* | --datadir=* | --datadi=* | --datad=*) 852 datadir=$ac_optarg ;; 853 854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 855 | --dataroo | --dataro | --datar) 856 ac_prev=datarootdir ;; 857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 859 datarootdir=$ac_optarg ;; 860 861 -disable-* | --disable-*) 862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 863 # Reject names that are not valid shell variable names. 864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 865 as_fn_error $? "invalid feature name: $ac_useropt" 866 ac_useropt_orig=$ac_useropt 867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 868 case $ac_user_opts in 869 *" 870"enable_$ac_useropt" 871"*) ;; 872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 873 ac_unrecognized_sep=', ';; 874 esac 875 eval enable_$ac_useropt=no ;; 876 877 -docdir | --docdir | --docdi | --doc | --do) 878 ac_prev=docdir ;; 879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 880 docdir=$ac_optarg ;; 881 882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 883 ac_prev=dvidir ;; 884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 885 dvidir=$ac_optarg ;; 886 887 -enable-* | --enable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 as_fn_error $? "invalid feature name: $ac_useropt" 892 ac_useropt_orig=$ac_useropt 893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 894 case $ac_user_opts in 895 *" 896"enable_$ac_useropt" 897"*) ;; 898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 899 ac_unrecognized_sep=', ';; 900 esac 901 eval enable_$ac_useropt=\$ac_optarg ;; 902 903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 905 | --exec | --exe | --ex) 906 ac_prev=exec_prefix ;; 907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 909 | --exec=* | --exe=* | --ex=*) 910 exec_prefix=$ac_optarg ;; 911 912 -gas | --gas | --ga | --g) 913 # Obsolete; use --with-gas. 914 with_gas=yes ;; 915 916 -help | --help | --hel | --he | -h) 917 ac_init_help=long ;; 918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 919 ac_init_help=recursive ;; 920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 921 ac_init_help=short ;; 922 923 -host | --host | --hos | --ho) 924 ac_prev=host_alias ;; 925 -host=* | --host=* | --hos=* | --ho=*) 926 host_alias=$ac_optarg ;; 927 928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 929 ac_prev=htmldir ;; 930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 931 | --ht=*) 932 htmldir=$ac_optarg ;; 933 934 -includedir | --includedir | --includedi | --included | --include \ 935 | --includ | --inclu | --incl | --inc) 936 ac_prev=includedir ;; 937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 938 | --includ=* | --inclu=* | --incl=* | --inc=*) 939 includedir=$ac_optarg ;; 940 941 -infodir | --infodir | --infodi | --infod | --info | --inf) 942 ac_prev=infodir ;; 943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 944 infodir=$ac_optarg ;; 945 946 -libdir | --libdir | --libdi | --libd) 947 ac_prev=libdir ;; 948 -libdir=* | --libdir=* | --libdi=* | --libd=*) 949 libdir=$ac_optarg ;; 950 951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 952 | --libexe | --libex | --libe) 953 ac_prev=libexecdir ;; 954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 955 | --libexe=* | --libex=* | --libe=*) 956 libexecdir=$ac_optarg ;; 957 958 -localedir | --localedir | --localedi | --localed | --locale) 959 ac_prev=localedir ;; 960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 961 localedir=$ac_optarg ;; 962 963 -localstatedir | --localstatedir | --localstatedi | --localstated \ 964 | --localstate | --localstat | --localsta | --localst | --locals) 965 ac_prev=localstatedir ;; 966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 968 localstatedir=$ac_optarg ;; 969 970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 971 ac_prev=mandir ;; 972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 973 mandir=$ac_optarg ;; 974 975 -nfp | --nfp | --nf) 976 # Obsolete; use --without-fp. 977 with_fp=no ;; 978 979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 980 | --no-cr | --no-c | -n) 981 no_create=yes ;; 982 983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 985 no_recursion=yes ;; 986 987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 989 | --oldin | --oldi | --old | --ol | --o) 990 ac_prev=oldincludedir ;; 991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 994 oldincludedir=$ac_optarg ;; 995 996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 997 ac_prev=prefix ;; 998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 999 prefix=$ac_optarg ;; 1000 1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1002 | --program-pre | --program-pr | --program-p) 1003 ac_prev=program_prefix ;; 1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1006 program_prefix=$ac_optarg ;; 1007 1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1009 | --program-suf | --program-su | --program-s) 1010 ac_prev=program_suffix ;; 1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1013 program_suffix=$ac_optarg ;; 1014 1015 -program-transform-name | --program-transform-name \ 1016 | --program-transform-nam | --program-transform-na \ 1017 | --program-transform-n | --program-transform- \ 1018 | --program-transform | --program-transfor \ 1019 | --program-transfo | --program-transf \ 1020 | --program-trans | --program-tran \ 1021 | --progr-tra | --program-tr | --program-t) 1022 ac_prev=program_transform_name ;; 1023 -program-transform-name=* | --program-transform-name=* \ 1024 | --program-transform-nam=* | --program-transform-na=* \ 1025 | --program-transform-n=* | --program-transform-=* \ 1026 | --program-transform=* | --program-transfor=* \ 1027 | --program-transfo=* | --program-transf=* \ 1028 | --program-trans=* | --program-tran=* \ 1029 | --progr-tra=* | --program-tr=* | --program-t=*) 1030 program_transform_name=$ac_optarg ;; 1031 1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1033 ac_prev=pdfdir ;; 1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1035 pdfdir=$ac_optarg ;; 1036 1037 -psdir | --psdir | --psdi | --psd | --ps) 1038 ac_prev=psdir ;; 1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1040 psdir=$ac_optarg ;; 1041 1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1043 | -silent | --silent | --silen | --sile | --sil) 1044 silent=yes ;; 1045 1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1047 ac_prev=sbindir ;; 1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1049 | --sbi=* | --sb=*) 1050 sbindir=$ac_optarg ;; 1051 1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1054 | --sharedst | --shareds | --shared | --share | --shar \ 1055 | --sha | --sh) 1056 ac_prev=sharedstatedir ;; 1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1060 | --sha=* | --sh=*) 1061 sharedstatedir=$ac_optarg ;; 1062 1063 -site | --site | --sit) 1064 ac_prev=site ;; 1065 -site=* | --site=* | --sit=*) 1066 site=$ac_optarg ;; 1067 1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1069 ac_prev=srcdir ;; 1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1071 srcdir=$ac_optarg ;; 1072 1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1074 | --syscon | --sysco | --sysc | --sys | --sy) 1075 ac_prev=sysconfdir ;; 1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1078 sysconfdir=$ac_optarg ;; 1079 1080 -target | --target | --targe | --targ | --tar | --ta | --t) 1081 ac_prev=target_alias ;; 1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1083 target_alias=$ac_optarg ;; 1084 1085 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1086 verbose=yes ;; 1087 1088 -version | --version | --versio | --versi | --vers | -V) 1089 ac_init_version=: ;; 1090 1091 -with-* | --with-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 as_fn_error $? "invalid package name: $ac_useropt" 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100"with_$ac_useropt" 1101"*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval with_$ac_useropt=\$ac_optarg ;; 1106 1107 -without-* | --without-*) 1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1109 # Reject names that are not valid shell variable names. 1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1111 as_fn_error $? "invalid package name: $ac_useropt" 1112 ac_useropt_orig=$ac_useropt 1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1114 case $ac_user_opts in 1115 *" 1116"with_$ac_useropt" 1117"*) ;; 1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1119 ac_unrecognized_sep=', ';; 1120 esac 1121 eval with_$ac_useropt=no ;; 1122 1123 --x) 1124 # Obsolete; use --with-x. 1125 with_x=yes ;; 1126 1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1128 | --x-incl | --x-inc | --x-in | --x-i) 1129 ac_prev=x_includes ;; 1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1132 x_includes=$ac_optarg ;; 1133 1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1136 ac_prev=x_libraries ;; 1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1139 x_libraries=$ac_optarg ;; 1140 1141 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1142Try \`$0 --help' for more information" 1143 ;; 1144 1145 *=*) 1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1147 # Reject names that are not valid shell variable names. 1148 case $ac_envvar in #( 1149 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1150 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1151 esac 1152 eval $ac_envvar=\$ac_optarg 1153 export $ac_envvar ;; 1154 1155 *) 1156 # FIXME: should be removed in autoconf 3.0. 1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1160 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1161 ;; 1162 1163 esac 1164done 1165 1166if test -n "$ac_prev"; then 1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1168 as_fn_error $? "missing argument to $ac_option" 1169fi 1170 1171if test -n "$ac_unrecognized_opts"; then 1172 case $enable_option_checking in 1173 no) ;; 1174 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1176 esac 1177fi 1178 1179# Check all directory arguments for consistency. 1180for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1181 datadir sysconfdir sharedstatedir localstatedir includedir \ 1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1183 libdir localedir mandir 1184do 1185 eval ac_val=\$$ac_var 1186 # Remove trailing slashes. 1187 case $ac_val in 1188 */ ) 1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1190 eval $ac_var=\$ac_val;; 1191 esac 1192 # Be sure to have absolute directory names. 1193 case $ac_val in 1194 [\\/$]* | ?:[\\/]* ) continue;; 1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1196 esac 1197 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1198done 1199 1200# There might be people who depend on the old broken behavior: `$host' 1201# used to hold the argument of --host etc. 1202# FIXME: To remove some day. 1203build=$build_alias 1204host=$host_alias 1205target=$target_alias 1206 1207# FIXME: To remove some day. 1208if test "x$host_alias" != x; then 1209 if test "x$build_alias" = x; then 1210 cross_compiling=maybe 1211 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1212 If a cross compiler is detected then cross compile mode will be used" >&2 1213 elif test "x$build_alias" != "x$host_alias"; then 1214 cross_compiling=yes 1215 fi 1216fi 1217 1218ac_tool_prefix= 1219test -n "$host_alias" && ac_tool_prefix=$host_alias- 1220 1221test "$silent" = yes && exec 6>/dev/null 1222 1223 1224ac_pwd=`pwd` && test -n "$ac_pwd" && 1225ac_ls_di=`ls -di .` && 1226ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1227 as_fn_error $? "working directory cannot be determined" 1228test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1229 as_fn_error $? "pwd does not report name of working directory" 1230 1231 1232# Find the source files, if location was not specified. 1233if test -z "$srcdir"; then 1234 ac_srcdir_defaulted=yes 1235 # Try the directory containing this script, then the parent directory. 1236 ac_confdir=`$as_dirname -- "$as_myself" || 1237$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1238 X"$as_myself" : 'X\(//\)[^/]' \| \ 1239 X"$as_myself" : 'X\(//\)$' \| \ 1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1241$as_echo X"$as_myself" | 1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1243 s//\1/ 1244 q 1245 } 1246 /^X\(\/\/\)[^/].*/{ 1247 s//\1/ 1248 q 1249 } 1250 /^X\(\/\/\)$/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\).*/{ 1255 s//\1/ 1256 q 1257 } 1258 s/.*/./; q'` 1259 srcdir=$ac_confdir 1260 if test ! -r "$srcdir/$ac_unique_file"; then 1261 srcdir=.. 1262 fi 1263else 1264 ac_srcdir_defaulted=no 1265fi 1266if test ! -r "$srcdir/$ac_unique_file"; then 1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1269fi 1270ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1271ac_abs_confdir=`( 1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1273 pwd)` 1274# When building in place, set srcdir=. 1275if test "$ac_abs_confdir" = "$ac_pwd"; then 1276 srcdir=. 1277fi 1278# Remove unnecessary trailing slashes from srcdir. 1279# Double slashes in file names in object file debugging info 1280# mess up M-x gdb in Emacs. 1281case $srcdir in 1282*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1283esac 1284for ac_var in $ac_precious_vars; do 1285 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1286 eval ac_env_${ac_var}_value=\$${ac_var} 1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1288 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1289done 1290 1291# 1292# Report the --help message. 1293# 1294if test "$ac_init_help" = "long"; then 1295 # Omit some internal or obsolete options to make the list less imposing. 1296 # This message is too long to be a string in the A/UX 3.1 sh. 1297 cat <<_ACEOF 1298\`configure' configures xconsole 1.0.6 to adapt to many kinds of systems. 1299 1300Usage: $0 [OPTION]... [VAR=VALUE]... 1301 1302To assign environment variables (e.g., CC, CFLAGS...), specify them as 1303VAR=VALUE. See below for descriptions of some of the useful variables. 1304 1305Defaults for the options are specified in brackets. 1306 1307Configuration: 1308 -h, --help display this help and exit 1309 --help=short display options specific to this package 1310 --help=recursive display the short help of all the included packages 1311 -V, --version display version information and exit 1312 -q, --quiet, --silent do not print \`checking ...' messages 1313 --cache-file=FILE cache test results in FILE [disabled] 1314 -C, --config-cache alias for \`--cache-file=config.cache' 1315 -n, --no-create do not create output files 1316 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1317 1318Installation directories: 1319 --prefix=PREFIX install architecture-independent files in PREFIX 1320 [$ac_default_prefix] 1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1322 [PREFIX] 1323 1324By default, \`make install' will install all the files in 1325\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1326an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1327for instance \`--prefix=\$HOME'. 1328 1329For better control, use the options below. 1330 1331Fine tuning of the installation directories: 1332 --bindir=DIR user executables [EPREFIX/bin] 1333 --sbindir=DIR system admin executables [EPREFIX/sbin] 1334 --libexecdir=DIR program executables [EPREFIX/libexec] 1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1338 --libdir=DIR object code libraries [EPREFIX/lib] 1339 --includedir=DIR C header files [PREFIX/include] 1340 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1343 --infodir=DIR info documentation [DATAROOTDIR/info] 1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1345 --mandir=DIR man documentation [DATAROOTDIR/man] 1346 --docdir=DIR documentation root [DATAROOTDIR/doc/xconsole] 1347 --htmldir=DIR html documentation [DOCDIR] 1348 --dvidir=DIR dvi documentation [DOCDIR] 1349 --pdfdir=DIR pdf documentation [DOCDIR] 1350 --psdir=DIR ps documentation [DOCDIR] 1351_ACEOF 1352 1353 cat <<\_ACEOF 1354 1355Program names: 1356 --program-prefix=PREFIX prepend PREFIX to installed program names 1357 --program-suffix=SUFFIX append SUFFIX to installed program names 1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1359 1360System types: 1361 --build=BUILD configure for building on BUILD [guessed] 1362 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1363_ACEOF 1364fi 1365 1366if test -n "$ac_init_help"; then 1367 case $ac_init_help in 1368 short | recursive ) echo "Configuration of xconsole 1.0.6:";; 1369 esac 1370 cat <<\_ACEOF 1371 1372Optional Features: 1373 --disable-option-checking ignore unrecognized --enable/--with options 1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1376 --enable-silent-rules less verbose build output (undo: "make V=1") 1377 --disable-silent-rules verbose build output (undo: "make V=0") 1378 --enable-maintainer-mode 1379 enable make rules and dependencies not useful (and 1380 sometimes confusing) to the casual installer 1381 --enable-dependency-tracking 1382 do not reject slow dependency extractors 1383 --disable-dependency-tracking 1384 speeds up one-time build 1385 --disable-selective-werror 1386 Turn off selective compiler errors. (default: 1387 enabled) 1388 --enable-strict-compilation 1389 Enable all warnings from compiler and make them 1390 errors (default: disabled) 1391 1392Optional Packages: 1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1395 --with-appdefaultdir=<pathname> 1396 specify directory for app-defaults files (default is 1397 autodetected) 1398 1399Some influential environment variables: 1400 CC C compiler command 1401 CFLAGS C compiler flags 1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1403 nonstandard directory <lib dir> 1404 LIBS libraries to pass to the linker, e.g. -l<library> 1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1406 you have headers in a nonstandard directory <include dir> 1407 CPP C preprocessor 1408 PKG_CONFIG path to pkg-config utility 1409 XCONSOLE_CFLAGS 1410 C compiler flags for XCONSOLE, overriding pkg-config 1411 XCONSOLE_LIBS 1412 linker flags for XCONSOLE, overriding pkg-config 1413 APPDEFS_CFLAGS 1414 C compiler flags for APPDEFS, overriding pkg-config 1415 APPDEFS_LIBS 1416 linker flags for APPDEFS, overriding pkg-config 1417 1418Use these variables to override the choices made by `configure' or to help 1419it to find libraries and programs with nonstandard names/locations. 1420 1421Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1422_ACEOF 1423ac_status=$? 1424fi 1425 1426if test "$ac_init_help" = "recursive"; then 1427 # If there are subdirs, report their specific --help. 1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1429 test -d "$ac_dir" || 1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1431 continue 1432 ac_builddir=. 1433 1434case "$ac_dir" in 1435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1436*) 1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1438 # A ".." for each directory in $ac_dir_suffix. 1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1440 case $ac_top_builddir_sub in 1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1443 esac ;; 1444esac 1445ac_abs_top_builddir=$ac_pwd 1446ac_abs_builddir=$ac_pwd$ac_dir_suffix 1447# for backward compatibility: 1448ac_top_builddir=$ac_top_build_prefix 1449 1450case $srcdir in 1451 .) # We are building in place. 1452 ac_srcdir=. 1453 ac_top_srcdir=$ac_top_builddir_sub 1454 ac_abs_top_srcdir=$ac_pwd ;; 1455 [\\/]* | ?:[\\/]* ) # Absolute name. 1456 ac_srcdir=$srcdir$ac_dir_suffix; 1457 ac_top_srcdir=$srcdir 1458 ac_abs_top_srcdir=$srcdir ;; 1459 *) # Relative name. 1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1461 ac_top_srcdir=$ac_top_build_prefix$srcdir 1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1463esac 1464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1465 1466 cd "$ac_dir" || { ac_status=$?; continue; } 1467 # Check for guested configure. 1468 if test -f "$ac_srcdir/configure.gnu"; then 1469 echo && 1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1471 elif test -f "$ac_srcdir/configure"; then 1472 echo && 1473 $SHELL "$ac_srcdir/configure" --help=recursive 1474 else 1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1476 fi || ac_status=$? 1477 cd "$ac_pwd" || { ac_status=$?; break; } 1478 done 1479fi 1480 1481test -n "$ac_init_help" && exit $ac_status 1482if $ac_init_version; then 1483 cat <<\_ACEOF 1484xconsole configure 1.0.6 1485generated by GNU Autoconf 2.68 1486 1487Copyright (C) 2010 Free Software Foundation, Inc. 1488This configure script is free software; the Free Software Foundation 1489gives unlimited permission to copy, distribute and modify it. 1490_ACEOF 1491 exit 1492fi 1493 1494## ------------------------ ## 1495## Autoconf initialization. ## 1496## ------------------------ ## 1497 1498# ac_fn_c_try_compile LINENO 1499# -------------------------- 1500# Try to compile conftest.$ac_ext, and return whether this succeeded. 1501ac_fn_c_try_compile () 1502{ 1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1504 rm -f conftest.$ac_objext 1505 if { { ac_try="$ac_compile" 1506case "(($ac_try" in 1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1508 *) ac_try_echo=$ac_try;; 1509esac 1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1511$as_echo "$ac_try_echo"; } >&5 1512 (eval "$ac_compile") 2>conftest.err 1513 ac_status=$? 1514 if test -s conftest.err; then 1515 grep -v '^ *+' conftest.err >conftest.er1 1516 cat conftest.er1 >&5 1517 mv -f conftest.er1 conftest.err 1518 fi 1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1520 test $ac_status = 0; } && { 1521 test -z "$ac_c_werror_flag" || 1522 test ! -s conftest.err 1523 } && test -s conftest.$ac_objext; then : 1524 ac_retval=0 1525else 1526 $as_echo "$as_me: failed program was:" >&5 1527sed 's/^/| /' conftest.$ac_ext >&5 1528 1529 ac_retval=1 1530fi 1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1532 as_fn_set_status $ac_retval 1533 1534} # ac_fn_c_try_compile 1535 1536# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1537# --------------------------------------------- 1538# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1539# accordingly. 1540ac_fn_c_check_decl () 1541{ 1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1543 as_decl_name=`echo $2|sed 's/ *(.*//'` 1544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1546$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1547if eval \${$3+:} false; then : 1548 $as_echo_n "(cached) " >&6 1549else 1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1551/* end confdefs.h. */ 1552$4 1553int 1554main () 1555{ 1556#ifndef $as_decl_name 1557#ifdef __cplusplus 1558 (void) $as_decl_use; 1559#else 1560 (void) $as_decl_name; 1561#endif 1562#endif 1563 1564 ; 1565 return 0; 1566} 1567_ACEOF 1568if ac_fn_c_try_compile "$LINENO"; then : 1569 eval "$3=yes" 1570else 1571 eval "$3=no" 1572fi 1573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1574fi 1575eval ac_res=\$$3 1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1577$as_echo "$ac_res" >&6; } 1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1579 1580} # ac_fn_c_check_decl 1581 1582# ac_fn_c_try_cpp LINENO 1583# ---------------------- 1584# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_c_try_cpp () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 if { { ac_try="$ac_cpp conftest.$ac_ext" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } > conftest.i && { 1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 }; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617} # ac_fn_c_try_cpp 1618 1619# ac_fn_c_try_run LINENO 1620# ---------------------- 1621# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1622# that executables *can* be run. 1623ac_fn_c_try_run () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 if { { ac_try="$ac_link" 1627case "(($ac_try" in 1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1629 *) ac_try_echo=$ac_try;; 1630esac 1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1632$as_echo "$ac_try_echo"; } >&5 1633 (eval "$ac_link") 2>&5 1634 ac_status=$? 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1637 { { case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_try") 2>&5 1644 ac_status=$? 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; }; }; then : 1647 ac_retval=0 1648else 1649 $as_echo "$as_me: program exited with status $ac_status" >&5 1650 $as_echo "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=$ac_status 1654fi 1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_run 1660 1661# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1662# ------------------------------------------------------- 1663# Tests whether HEADER exists and can be compiled using the include files in 1664# INCLUDES, setting the cache variable VAR accordingly. 1665ac_fn_c_check_header_compile () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669$as_echo_n "checking for $2... " >&6; } 1670if eval \${$3+:} false; then : 1671 $as_echo_n "(cached) " >&6 1672else 1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674/* end confdefs.h. */ 1675$4 1676#include <$2> 1677_ACEOF 1678if ac_fn_c_try_compile "$LINENO"; then : 1679 eval "$3=yes" 1680else 1681 eval "$3=no" 1682fi 1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1684fi 1685eval ac_res=\$$3 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1687$as_echo "$ac_res" >&6; } 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 1690} # ac_fn_c_check_header_compile 1691 1692# ac_fn_c_try_link LINENO 1693# ----------------------- 1694# Try to link conftest.$ac_ext, and return whether this succeeded. 1695ac_fn_c_try_link () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 rm -f conftest.$ac_objext conftest$ac_exeext 1699 if { { ac_try="$ac_link" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_link") 2>conftest.err 1707 ac_status=$? 1708 if test -s conftest.err; then 1709 grep -v '^ *+' conftest.err >conftest.er1 1710 cat conftest.er1 >&5 1711 mv -f conftest.er1 conftest.err 1712 fi 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } && { 1715 test -z "$ac_c_werror_flag" || 1716 test ! -s conftest.err 1717 } && test -s conftest$ac_exeext && { 1718 test "$cross_compiling" = yes || 1719 $as_test_x conftest$ac_exeext 1720 }; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=1 1727fi 1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1730 # interfere with the next link command; also delete a directory that is 1731 # left behind by Apple's compiler. We do this before executing the actions. 1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736} # ac_fn_c_try_link 1737 1738# ac_fn_c_check_func LINENO FUNC VAR 1739# ---------------------------------- 1740# Tests whether FUNC exists, setting the cache variable VAR accordingly 1741ac_fn_c_check_func () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748else 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750/* end confdefs.h. */ 1751/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1753#define $2 innocuous_$2 1754 1755/* System header to define __stub macros and hopefully few prototypes, 1756 which can conflict with char $2 (); below. 1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1758 <limits.h> exists even on freestanding compilers. */ 1759 1760#ifdef __STDC__ 1761# include <limits.h> 1762#else 1763# include <assert.h> 1764#endif 1765 1766#undef $2 1767 1768/* Override any GCC internal prototype to avoid an error. 1769 Use char because int might match the return type of a GCC 1770 builtin and then its argument prototype would still apply. */ 1771#ifdef __cplusplus 1772extern "C" 1773#endif 1774char $2 (); 1775/* The GNU C library defines this for functions which it implements 1776 to always fail with ENOSYS. Some functions are actually named 1777 something starting with __ and the normal name is an alias. */ 1778#if defined __stub_$2 || defined __stub___$2 1779choke me 1780#endif 1781 1782int 1783main () 1784{ 1785return $2 (); 1786 ; 1787 return 0; 1788} 1789_ACEOF 1790if ac_fn_c_try_link "$LINENO"; then : 1791 eval "$3=yes" 1792else 1793 eval "$3=no" 1794fi 1795rm -f core conftest.err conftest.$ac_objext \ 1796 conftest$ac_exeext conftest.$ac_ext 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_func 1804 1805# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1806# ------------------------------------------------------- 1807# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1808# the include files in INCLUDES and setting the cache variable VAR 1809# accordingly. 1810ac_fn_c_check_header_mongrel () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 if eval \${$3+:} false; then : 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1815$as_echo_n "checking for $2... " >&6; } 1816if eval \${$3+:} false; then : 1817 $as_echo_n "(cached) " >&6 1818fi 1819eval ac_res=\$$3 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821$as_echo "$ac_res" >&6; } 1822else 1823 # Is the header compilable? 1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1825$as_echo_n "checking $2 usability... " >&6; } 1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1827/* end confdefs.h. */ 1828$4 1829#include <$2> 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO"; then : 1832 ac_header_compiler=yes 1833else 1834 ac_header_compiler=no 1835fi 1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1838$as_echo "$ac_header_compiler" >&6; } 1839 1840# Is the header present? 1841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1842$as_echo_n "checking $2 presence... " >&6; } 1843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845#include <$2> 1846_ACEOF 1847if ac_fn_c_try_cpp "$LINENO"; then : 1848 ac_header_preproc=yes 1849else 1850 ac_header_preproc=no 1851fi 1852rm -f conftest.err conftest.i conftest.$ac_ext 1853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1854$as_echo "$ac_header_preproc" >&6; } 1855 1856# So? What about this header? 1857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1858 yes:no: ) 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1860$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1862$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1863 ;; 1864 no:yes:* ) 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1866$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1868$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1870$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1872$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1874$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1875( $as_echo "## ---------------------------------------------------------------------- ## 1876## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1877## ---------------------------------------------------------------------- ##" 1878 ) | sed "s/^/$as_me: WARNING: /" >&2 1879 ;; 1880esac 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1882$as_echo_n "checking for $2... " >&6; } 1883if eval \${$3+:} false; then : 1884 $as_echo_n "(cached) " >&6 1885else 1886 eval "$3=\$ac_header_compiler" 1887fi 1888eval ac_res=\$$3 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1890$as_echo "$ac_res" >&6; } 1891fi 1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1893 1894} # ac_fn_c_check_header_mongrel 1895cat >config.log <<_ACEOF 1896This file contains any messages produced by compilers while 1897running configure, to aid debugging if configure makes a mistake. 1898 1899It was created by xconsole $as_me 1.0.6, which was 1900generated by GNU Autoconf 2.68. Invocation command line was 1901 1902 $ $0 $@ 1903 1904_ACEOF 1905exec 5>>config.log 1906{ 1907cat <<_ASUNAME 1908## --------- ## 1909## Platform. ## 1910## --------- ## 1911 1912hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1913uname -m = `(uname -m) 2>/dev/null || echo unknown` 1914uname -r = `(uname -r) 2>/dev/null || echo unknown` 1915uname -s = `(uname -s) 2>/dev/null || echo unknown` 1916uname -v = `(uname -v) 2>/dev/null || echo unknown` 1917 1918/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1919/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1920 1921/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1922/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1923/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1924/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1925/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1926/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1927/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1928 1929_ASUNAME 1930 1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1932for as_dir in $PATH 1933do 1934 IFS=$as_save_IFS 1935 test -z "$as_dir" && as_dir=. 1936 $as_echo "PATH: $as_dir" 1937 done 1938IFS=$as_save_IFS 1939 1940} >&5 1941 1942cat >&5 <<_ACEOF 1943 1944 1945## ----------- ## 1946## Core tests. ## 1947## ----------- ## 1948 1949_ACEOF 1950 1951 1952# Keep a trace of the command line. 1953# Strip out --no-create and --no-recursion so they do not pile up. 1954# Strip out --silent because we don't want to record it for future runs. 1955# Also quote any args containing shell meta-characters. 1956# Make two passes to allow for proper duplicate-argument suppression. 1957ac_configure_args= 1958ac_configure_args0= 1959ac_configure_args1= 1960ac_must_keep_next=false 1961for ac_pass in 1 2 1962do 1963 for ac_arg 1964 do 1965 case $ac_arg in 1966 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1968 | -silent | --silent | --silen | --sile | --sil) 1969 continue ;; 1970 *\'*) 1971 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1972 esac 1973 case $ac_pass in 1974 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1975 2) 1976 as_fn_append ac_configure_args1 " '$ac_arg'" 1977 if test $ac_must_keep_next = true; then 1978 ac_must_keep_next=false # Got value, back to normal. 1979 else 1980 case $ac_arg in 1981 *=* | --config-cache | -C | -disable-* | --disable-* \ 1982 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1983 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1984 | -with-* | --with-* | -without-* | --without-* | --x) 1985 case "$ac_configure_args0 " in 1986 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1987 esac 1988 ;; 1989 -* ) ac_must_keep_next=true ;; 1990 esac 1991 fi 1992 as_fn_append ac_configure_args " '$ac_arg'" 1993 ;; 1994 esac 1995 done 1996done 1997{ ac_configure_args0=; unset ac_configure_args0;} 1998{ ac_configure_args1=; unset ac_configure_args1;} 1999 2000# When interrupted or exit'd, cleanup temporary files, and complete 2001# config.log. We remove comments because anyway the quotes in there 2002# would cause problems or look ugly. 2003# WARNING: Use '\'' to represent an apostrophe within the trap. 2004# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2005trap 'exit_status=$? 2006 # Save into config.log some information that might help in debugging. 2007 { 2008 echo 2009 2010 $as_echo "## ---------------- ## 2011## Cache variables. ## 2012## ---------------- ##" 2013 echo 2014 # The following way of writing the cache mishandles newlines in values, 2015( 2016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2017 eval ac_val=\$$ac_var 2018 case $ac_val in #( 2019 *${as_nl}*) 2020 case $ac_var in #( 2021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2022$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2023 esac 2024 case $ac_var in #( 2025 _ | IFS | as_nl) ;; #( 2026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2027 *) { eval $ac_var=; unset $ac_var;} ;; 2028 esac ;; 2029 esac 2030 done 2031 (set) 2>&1 | 2032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2033 *${as_nl}ac_space=\ *) 2034 sed -n \ 2035 "s/'\''/'\''\\\\'\'''\''/g; 2036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2037 ;; #( 2038 *) 2039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2040 ;; 2041 esac | 2042 sort 2043) 2044 echo 2045 2046 $as_echo "## ----------------- ## 2047## Output variables. ## 2048## ----------------- ##" 2049 echo 2050 for ac_var in $ac_subst_vars 2051 do 2052 eval ac_val=\$$ac_var 2053 case $ac_val in 2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2055 esac 2056 $as_echo "$ac_var='\''$ac_val'\''" 2057 done | sort 2058 echo 2059 2060 if test -n "$ac_subst_files"; then 2061 $as_echo "## ------------------- ## 2062## File substitutions. ## 2063## ------------------- ##" 2064 echo 2065 for ac_var in $ac_subst_files 2066 do 2067 eval ac_val=\$$ac_var 2068 case $ac_val in 2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2070 esac 2071 $as_echo "$ac_var='\''$ac_val'\''" 2072 done | sort 2073 echo 2074 fi 2075 2076 if test -s confdefs.h; then 2077 $as_echo "## ----------- ## 2078## confdefs.h. ## 2079## ----------- ##" 2080 echo 2081 cat confdefs.h 2082 echo 2083 fi 2084 test "$ac_signal" != 0 && 2085 $as_echo "$as_me: caught signal $ac_signal" 2086 $as_echo "$as_me: exit $exit_status" 2087 } >&5 2088 rm -f core *.core core.conftest.* && 2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2090 exit $exit_status 2091' 0 2092for ac_signal in 1 2 13 15; do 2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2094done 2095ac_signal=0 2096 2097# confdefs.h avoids OS command line length limits that DEFS can exceed. 2098rm -f -r conftest* confdefs.h 2099 2100$as_echo "/* confdefs.h */" > confdefs.h 2101 2102# Predefined preprocessor variables. 2103 2104cat >>confdefs.h <<_ACEOF 2105#define PACKAGE_NAME "$PACKAGE_NAME" 2106_ACEOF 2107 2108cat >>confdefs.h <<_ACEOF 2109#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2110_ACEOF 2111 2112cat >>confdefs.h <<_ACEOF 2113#define PACKAGE_VERSION "$PACKAGE_VERSION" 2114_ACEOF 2115 2116cat >>confdefs.h <<_ACEOF 2117#define PACKAGE_STRING "$PACKAGE_STRING" 2118_ACEOF 2119 2120cat >>confdefs.h <<_ACEOF 2121#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2122_ACEOF 2123 2124cat >>confdefs.h <<_ACEOF 2125#define PACKAGE_URL "$PACKAGE_URL" 2126_ACEOF 2127 2128 2129# Let the site file select an alternate cache file if it wants to. 2130# Prefer an explicitly selected file to automatically selected ones. 2131ac_site_file1=NONE 2132ac_site_file2=NONE 2133if test -n "$CONFIG_SITE"; then 2134 # We do not want a PATH search for config.site. 2135 case $CONFIG_SITE in #(( 2136 -*) ac_site_file1=./$CONFIG_SITE;; 2137 */*) ac_site_file1=$CONFIG_SITE;; 2138 *) ac_site_file1=./$CONFIG_SITE;; 2139 esac 2140elif test "x$prefix" != xNONE; then 2141 ac_site_file1=$prefix/share/config.site 2142 ac_site_file2=$prefix/etc/config.site 2143else 2144 ac_site_file1=$ac_default_prefix/share/config.site 2145 ac_site_file2=$ac_default_prefix/etc/config.site 2146fi 2147for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2148do 2149 test "x$ac_site_file" = xNONE && continue 2150 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2152$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2153 sed 's/^/| /' "$ac_site_file" >&5 2154 . "$ac_site_file" \ 2155 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2157as_fn_error $? "failed to load site script $ac_site_file 2158See \`config.log' for more details" "$LINENO" 5; } 2159 fi 2160done 2161 2162if test -r "$cache_file"; then 2163 # Some versions of bash will fail to source /dev/null (special files 2164 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2167$as_echo "$as_me: loading cache $cache_file" >&6;} 2168 case $cache_file in 2169 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2170 *) . "./$cache_file";; 2171 esac 2172 fi 2173else 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2175$as_echo "$as_me: creating cache $cache_file" >&6;} 2176 >$cache_file 2177fi 2178 2179# Check that the precious variables saved in the cache have kept the same 2180# value. 2181ac_cache_corrupted=false 2182for ac_var in $ac_precious_vars; do 2183 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2184 eval ac_new_set=\$ac_env_${ac_var}_set 2185 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2186 eval ac_new_val=\$ac_env_${ac_var}_value 2187 case $ac_old_set,$ac_new_set in 2188 set,) 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2190$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2191 ac_cache_corrupted=: ;; 2192 ,set) 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2194$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2195 ac_cache_corrupted=: ;; 2196 ,);; 2197 *) 2198 if test "x$ac_old_val" != "x$ac_new_val"; then 2199 # differences in whitespace do not lead to failure. 2200 ac_old_val_w=`echo x $ac_old_val` 2201 ac_new_val_w=`echo x $ac_new_val` 2202 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2204$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2205 ac_cache_corrupted=: 2206 else 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2208$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2209 eval $ac_var=\$ac_old_val 2210 fi 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2212$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2214$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2215 fi;; 2216 esac 2217 # Pass precious variables to config.status. 2218 if test "$ac_new_set" = set; then 2219 case $ac_new_val in 2220 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2221 *) ac_arg=$ac_var=$ac_new_val ;; 2222 esac 2223 case " $ac_configure_args " in 2224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2225 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2226 esac 2227 fi 2228done 2229if $ac_cache_corrupted; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2233$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2234 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2235fi 2236## -------------------- ## 2237## Main body of script. ## 2238## -------------------- ## 2239 2240ac_ext=c 2241ac_cpp='$CPP $CPPFLAGS' 2242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2244ac_compiler_gnu=$ac_cv_c_compiler_gnu 2245 2246 2247 2248ac_config_headers="$ac_config_headers config.h" 2249 2250 2251# Initialize Automake 2252am__api_version='1.14' 2253 2254ac_aux_dir= 2255for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2256 if test -f "$ac_dir/install-sh"; then 2257 ac_aux_dir=$ac_dir 2258 ac_install_sh="$ac_aux_dir/install-sh -c" 2259 break 2260 elif test -f "$ac_dir/install.sh"; then 2261 ac_aux_dir=$ac_dir 2262 ac_install_sh="$ac_aux_dir/install.sh -c" 2263 break 2264 elif test -f "$ac_dir/shtool"; then 2265 ac_aux_dir=$ac_dir 2266 ac_install_sh="$ac_aux_dir/shtool install -c" 2267 break 2268 fi 2269done 2270if test -z "$ac_aux_dir"; then 2271 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2272fi 2273 2274# These three variables are undocumented and unsupported, 2275# and are intended to be withdrawn in a future Autoconf release. 2276# They can cause serious problems if a builder's source tree is in a directory 2277# whose full name contains unusual characters. 2278ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2279ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2280ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2281 2282 2283# Find a good install program. We prefer a C program (faster), 2284# so one script is as good as another. But avoid the broken or 2285# incompatible versions: 2286# SysV /etc/install, /usr/sbin/install 2287# SunOS /usr/etc/install 2288# IRIX /sbin/install 2289# AIX /bin/install 2290# AmigaOS /C/install, which installs bootblocks on floppy discs 2291# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2292# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2293# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2294# OS/2's system install, which has a completely different semantic 2295# ./install, which can be erroneously created by make from ./install.sh. 2296# Reject install programs that cannot install multiple files. 2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2298$as_echo_n "checking for a BSD-compatible install... " >&6; } 2299if test -z "$INSTALL"; then 2300if ${ac_cv_path_install+:} false; then : 2301 $as_echo_n "(cached) " >&6 2302else 2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2304for as_dir in $PATH 2305do 2306 IFS=$as_save_IFS 2307 test -z "$as_dir" && as_dir=. 2308 # Account for people who put trailing slashes in PATH elements. 2309case $as_dir/ in #(( 2310 ./ | .// | /[cC]/* | \ 2311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2312 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2313 /usr/ucb/* ) ;; 2314 *) 2315 # OSF1 and SCO ODT 3.0 have their own names for install. 2316 # Don't use installbsd from OSF since it installs stuff as root 2317 # by default. 2318 for ac_prog in ginstall scoinst install; do 2319 for ac_exec_ext in '' $ac_executable_extensions; do 2320 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2321 if test $ac_prog = install && 2322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2323 # AIX install. It has an incompatible calling convention. 2324 : 2325 elif test $ac_prog = install && 2326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2327 # program-specific install script used by HP pwplus--don't use. 2328 : 2329 else 2330 rm -rf conftest.one conftest.two conftest.dir 2331 echo one > conftest.one 2332 echo two > conftest.two 2333 mkdir conftest.dir 2334 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2335 test -s conftest.one && test -s conftest.two && 2336 test -s conftest.dir/conftest.one && 2337 test -s conftest.dir/conftest.two 2338 then 2339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2340 break 3 2341 fi 2342 fi 2343 fi 2344 done 2345 done 2346 ;; 2347esac 2348 2349 done 2350IFS=$as_save_IFS 2351 2352rm -rf conftest.one conftest.two conftest.dir 2353 2354fi 2355 if test "${ac_cv_path_install+set}" = set; then 2356 INSTALL=$ac_cv_path_install 2357 else 2358 # As a last resort, use the slow shell script. Don't cache a 2359 # value for INSTALL within a source directory, because that will 2360 # break other packages using the cache if that directory is 2361 # removed, or if the value is a relative name. 2362 INSTALL=$ac_install_sh 2363 fi 2364fi 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2366$as_echo "$INSTALL" >&6; } 2367 2368# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2369# It thinks the first close brace ends the variable substitution. 2370test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2371 2372test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2373 2374test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2375 2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2377$as_echo_n "checking whether build environment is sane... " >&6; } 2378# Reject unsafe characters in $srcdir or the absolute working directory 2379# name. Accept space and tab only in the latter. 2380am_lf=' 2381' 2382case `pwd` in 2383 *[\\\"\#\$\&\'\`$am_lf]*) 2384 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2385esac 2386case $srcdir in 2387 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2388 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2389esac 2390 2391# Do 'set' in a subshell so we don't clobber the current shell's 2392# arguments. Must try -L first in case configure is actually a 2393# symlink; some systems play weird games with the mod time of symlinks 2394# (eg FreeBSD returns the mod time of the symlink's containing 2395# directory). 2396if ( 2397 am_has_slept=no 2398 for am_try in 1 2; do 2399 echo "timestamp, slept: $am_has_slept" > conftest.file 2400 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2401 if test "$*" = "X"; then 2402 # -L didn't work. 2403 set X `ls -t "$srcdir/configure" conftest.file` 2404 fi 2405 if test "$*" != "X $srcdir/configure conftest.file" \ 2406 && test "$*" != "X conftest.file $srcdir/configure"; then 2407 2408 # If neither matched, then we have a broken ls. This can happen 2409 # if, for instance, CONFIG_SHELL is bash and it inherits a 2410 # broken ls alias from the environment. This has actually 2411 # happened. Such a system could not be considered "sane". 2412 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2413 alias in your environment" "$LINENO" 5 2414 fi 2415 if test "$2" = conftest.file || test $am_try -eq 2; then 2416 break 2417 fi 2418 # Just in case. 2419 sleep 1 2420 am_has_slept=yes 2421 done 2422 test "$2" = conftest.file 2423 ) 2424then 2425 # Ok. 2426 : 2427else 2428 as_fn_error $? "newly created file is older than distributed files! 2429Check your system clock" "$LINENO" 5 2430fi 2431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2432$as_echo "yes" >&6; } 2433# If we didn't sleep, we still need to ensure time stamps of config.status and 2434# generated files are strictly newer. 2435am_sleep_pid= 2436if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2437 ( sleep 1 ) & 2438 am_sleep_pid=$! 2439fi 2440 2441rm -f conftest.file 2442 2443test "$program_prefix" != NONE && 2444 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2445# Use a double $ so make ignores it. 2446test "$program_suffix" != NONE && 2447 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2448# Double any \ or $. 2449# By default was `s,x,x', remove it if useless. 2450ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2451program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2452 2453# expand $ac_aux_dir to an absolute path 2454am_aux_dir=`cd $ac_aux_dir && pwd` 2455 2456if test x"${MISSING+set}" != xset; then 2457 case $am_aux_dir in 2458 *\ * | *\ *) 2459 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2460 *) 2461 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2462 esac 2463fi 2464# Use eval to expand $SHELL 2465if eval "$MISSING --is-lightweight"; then 2466 am_missing_run="$MISSING " 2467else 2468 am_missing_run= 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2470$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2471fi 2472 2473if test x"${install_sh}" != xset; then 2474 case $am_aux_dir in 2475 *\ * | *\ *) 2476 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2477 *) 2478 install_sh="\${SHELL} $am_aux_dir/install-sh" 2479 esac 2480fi 2481 2482# Installed binaries are usually stripped using 'strip' when the user 2483# run "make install-strip". However 'strip' might not be the right 2484# tool to use in cross-compilation environments, therefore Automake 2485# will honor the 'STRIP' environment variable to overrule this program. 2486if test "$cross_compiling" != no; then 2487 if test -n "$ac_tool_prefix"; then 2488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2489set dummy ${ac_tool_prefix}strip; ac_word=$2 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2491$as_echo_n "checking for $ac_word... " >&6; } 2492if ${ac_cv_prog_STRIP+:} false; then : 2493 $as_echo_n "(cached) " >&6 2494else 2495 if test -n "$STRIP"; then 2496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2497else 2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2499for as_dir in $PATH 2500do 2501 IFS=$as_save_IFS 2502 test -z "$as_dir" && as_dir=. 2503 for ac_exec_ext in '' $ac_executable_extensions; do 2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2505 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2507 break 2 2508 fi 2509done 2510 done 2511IFS=$as_save_IFS 2512 2513fi 2514fi 2515STRIP=$ac_cv_prog_STRIP 2516if test -n "$STRIP"; then 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2518$as_echo "$STRIP" >&6; } 2519else 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2521$as_echo "no" >&6; } 2522fi 2523 2524 2525fi 2526if test -z "$ac_cv_prog_STRIP"; then 2527 ac_ct_STRIP=$STRIP 2528 # Extract the first word of "strip", so it can be a program name with args. 2529set dummy strip; ac_word=$2 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2531$as_echo_n "checking for $ac_word... " >&6; } 2532if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2533 $as_echo_n "(cached) " >&6 2534else 2535 if test -n "$ac_ct_STRIP"; then 2536 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2537else 2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for ac_exec_ext in '' $ac_executable_extensions; do 2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2545 ac_cv_prog_ac_ct_STRIP="strip" 2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2547 break 2 2548 fi 2549done 2550 done 2551IFS=$as_save_IFS 2552 2553fi 2554fi 2555ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2556if test -n "$ac_ct_STRIP"; then 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2558$as_echo "$ac_ct_STRIP" >&6; } 2559else 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2561$as_echo "no" >&6; } 2562fi 2563 2564 if test "x$ac_ct_STRIP" = x; then 2565 STRIP=":" 2566 else 2567 case $cross_compiling:$ac_tool_warned in 2568yes:) 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2571ac_tool_warned=yes ;; 2572esac 2573 STRIP=$ac_ct_STRIP 2574 fi 2575else 2576 STRIP="$ac_cv_prog_STRIP" 2577fi 2578 2579fi 2580INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2581 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2583$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2584if test -z "$MKDIR_P"; then 2585 if ${ac_cv_path_mkdir+:} false; then : 2586 $as_echo_n "(cached) " >&6 2587else 2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_prog in mkdir gmkdir; do 2594 for ac_exec_ext in '' $ac_executable_extensions; do 2595 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2596 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2597 'mkdir (GNU coreutils) '* | \ 2598 'mkdir (coreutils) '* | \ 2599 'mkdir (fileutils) '4.1*) 2600 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2601 break 3;; 2602 esac 2603 done 2604 done 2605 done 2606IFS=$as_save_IFS 2607 2608fi 2609 2610 test -d ./--version && rmdir ./--version 2611 if test "${ac_cv_path_mkdir+set}" = set; then 2612 MKDIR_P="$ac_cv_path_mkdir -p" 2613 else 2614 # As a last resort, use the slow shell script. Don't cache a 2615 # value for MKDIR_P within a source directory, because that will 2616 # break other packages using the cache if that directory is 2617 # removed, or if the value is a relative name. 2618 MKDIR_P="$ac_install_sh -d" 2619 fi 2620fi 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2622$as_echo "$MKDIR_P" >&6; } 2623 2624for ac_prog in gawk mawk nawk awk 2625do 2626 # Extract the first word of "$ac_prog", so it can be a program name with args. 2627set dummy $ac_prog; ac_word=$2 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2629$as_echo_n "checking for $ac_word... " >&6; } 2630if ${ac_cv_prog_AWK+:} false; then : 2631 $as_echo_n "(cached) " >&6 2632else 2633 if test -n "$AWK"; then 2634 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2635else 2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637for as_dir in $PATH 2638do 2639 IFS=$as_save_IFS 2640 test -z "$as_dir" && as_dir=. 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2643 ac_cv_prog_AWK="$ac_prog" 2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2645 break 2 2646 fi 2647done 2648 done 2649IFS=$as_save_IFS 2650 2651fi 2652fi 2653AWK=$ac_cv_prog_AWK 2654if test -n "$AWK"; then 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2656$as_echo "$AWK" >&6; } 2657else 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2659$as_echo "no" >&6; } 2660fi 2661 2662 2663 test -n "$AWK" && break 2664done 2665 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2667$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2668set x ${MAKE-make} 2669ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2670if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672else 2673 cat >conftest.make <<\_ACEOF 2674SHELL = /bin/sh 2675all: 2676 @echo '@@@%%%=$(MAKE)=@@@%%%' 2677_ACEOF 2678# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2679case `${MAKE-make} -f conftest.make 2>/dev/null` in 2680 *@@@%%%=?*=@@@%%%*) 2681 eval ac_cv_prog_make_${ac_make}_set=yes;; 2682 *) 2683 eval ac_cv_prog_make_${ac_make}_set=no;; 2684esac 2685rm -f conftest.make 2686fi 2687if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2689$as_echo "yes" >&6; } 2690 SET_MAKE= 2691else 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2693$as_echo "no" >&6; } 2694 SET_MAKE="MAKE=${MAKE-make}" 2695fi 2696 2697rm -rf .tst 2>/dev/null 2698mkdir .tst 2>/dev/null 2699if test -d .tst; then 2700 am__leading_dot=. 2701else 2702 am__leading_dot=_ 2703fi 2704rmdir .tst 2>/dev/null 2705 2706# Check whether --enable-silent-rules was given. 2707if test "${enable_silent_rules+set}" = set; then : 2708 enableval=$enable_silent_rules; 2709fi 2710 2711case $enable_silent_rules in # ((( 2712 yes) AM_DEFAULT_VERBOSITY=0;; 2713 no) AM_DEFAULT_VERBOSITY=1;; 2714 *) AM_DEFAULT_VERBOSITY=1;; 2715esac 2716am_make=${MAKE-make} 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2718$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2719if ${am_cv_make_support_nested_variables+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 if $as_echo 'TRUE=$(BAR$(V)) 2723BAR0=false 2724BAR1=true 2725V=1 2726am__doit: 2727 @$(TRUE) 2728.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2729 am_cv_make_support_nested_variables=yes 2730else 2731 am_cv_make_support_nested_variables=no 2732fi 2733fi 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2735$as_echo "$am_cv_make_support_nested_variables" >&6; } 2736if test $am_cv_make_support_nested_variables = yes; then 2737 AM_V='$(V)' 2738 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2739else 2740 AM_V=$AM_DEFAULT_VERBOSITY 2741 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2742fi 2743AM_BACKSLASH='\' 2744 2745if test "`cd $srcdir && pwd`" != "`pwd`"; then 2746 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2747 # is not polluted with repeated "-I." 2748 am__isrc=' -I$(srcdir)' 2749 # test to see if srcdir already configured 2750 if test -f $srcdir/config.status; then 2751 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2752 fi 2753fi 2754 2755# test whether we have cygpath 2756if test -z "$CYGPATH_W"; then 2757 if (cygpath --version) >/dev/null 2>/dev/null; then 2758 CYGPATH_W='cygpath -w' 2759 else 2760 CYGPATH_W=echo 2761 fi 2762fi 2763 2764 2765# Define the identity of the package. 2766 PACKAGE='xconsole' 2767 VERSION='1.0.6' 2768 2769 2770cat >>confdefs.h <<_ACEOF 2771#define PACKAGE "$PACKAGE" 2772_ACEOF 2773 2774 2775cat >>confdefs.h <<_ACEOF 2776#define VERSION "$VERSION" 2777_ACEOF 2778 2779# Some tools Automake needs. 2780 2781ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2782 2783 2784AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2785 2786 2787AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2788 2789 2790AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2791 2792 2793MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2794 2795# For better backward compatibility. To be removed once Automake 1.9.x 2796# dies out for good. For more background, see: 2797# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2798# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2799mkdir_p='$(MKDIR_P)' 2800 2801# We need awk for the "check" target. The system "awk" is bad on 2802# some platforms. 2803# Always define AMTAR for backward compatibility. Yes, it's still used 2804# in the wild :-( We should find a proper way to deprecate it ... 2805AMTAR='$${TAR-tar}' 2806 2807 2808# We'll loop over all known methods to create a tar archive until one works. 2809_am_tools='gnutar pax cpio none' 2810 2811am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2812 2813 2814 2815 2816 2817 2818# POSIX will say in a future version that running "rm -f" with no argument 2819# is OK; and we want to be able to make that assumption in our Makefile 2820# recipes. So use an aggressive probe to check that the usage we want is 2821# actually supported "in the wild" to an acceptable degree. 2822# See automake bug#10828. 2823# To make any issue more visible, cause the running configure to be aborted 2824# by default if the 'rm' program in use doesn't match our expectations; the 2825# user can still override this though. 2826if rm -f && rm -fr && rm -rf; then : OK; else 2827 cat >&2 <<'END' 2828Oops! 2829 2830Your 'rm' program seems unable to run without file operands specified 2831on the command line, even when the '-f' option is present. This is contrary 2832to the behaviour of most rm programs out there, and not conforming with 2833the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2834 2835Please tell bug-automake@gnu.org about your system, including the value 2836of your $PATH and any error possibly output before this message. This 2837can help us improve future automake versions. 2838 2839END 2840 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2841 echo 'Configuration will proceed anyway, since you have set the' >&2 2842 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2843 echo >&2 2844 else 2845 cat >&2 <<'END' 2846Aborting the configuration process, to ensure you take notice of the issue. 2847 2848You can download and install GNU coreutils to get an 'rm' implementation 2849that behaves properly: <http://www.gnu.org/software/coreutils/>. 2850 2851If you want to complete the configuration process using your problematic 2852'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2853to "yes", and re-run configure. 2854 2855END 2856 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2857 fi 2858fi 2859 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2861$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2862 # Check whether --enable-maintainer-mode was given. 2863if test "${enable_maintainer_mode+set}" = set; then : 2864 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2865else 2866 USE_MAINTAINER_MODE=no 2867fi 2868 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2870$as_echo "$USE_MAINTAINER_MODE" >&6; } 2871 if test $USE_MAINTAINER_MODE = yes; then 2872 MAINTAINER_MODE_TRUE= 2873 MAINTAINER_MODE_FALSE='#' 2874else 2875 MAINTAINER_MODE_TRUE='#' 2876 MAINTAINER_MODE_FALSE= 2877fi 2878 2879 MAINT=$MAINTAINER_MODE_TRUE 2880 2881 2882 2883# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895DEPDIR="${am__leading_dot}deps" 2896 2897ac_config_commands="$ac_config_commands depfiles" 2898 2899 2900am_make=${MAKE-make} 2901cat > confinc << 'END' 2902am__doit: 2903 @echo this is the am__doit target 2904.PHONY: am__doit 2905END 2906# If we don't find an include directive, just comment out the code. 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2908$as_echo_n "checking for style of include used by $am_make... " >&6; } 2909am__include="#" 2910am__quote= 2911_am_result=none 2912# First try GNU make style include. 2913echo "include confinc" > confmf 2914# Ignore all kinds of additional output from 'make'. 2915case `$am_make -s -f confmf 2> /dev/null` in #( 2916*the\ am__doit\ target*) 2917 am__include=include 2918 am__quote= 2919 _am_result=GNU 2920 ;; 2921esac 2922# Now try BSD make style include. 2923if test "$am__include" = "#"; then 2924 echo '.include "confinc"' > confmf 2925 case `$am_make -s -f confmf 2> /dev/null` in #( 2926 *the\ am__doit\ target*) 2927 am__include=.include 2928 am__quote="\"" 2929 _am_result=BSD 2930 ;; 2931 esac 2932fi 2933 2934 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2936$as_echo "$_am_result" >&6; } 2937rm -f confinc confmf 2938 2939# Check whether --enable-dependency-tracking was given. 2940if test "${enable_dependency_tracking+set}" = set; then : 2941 enableval=$enable_dependency_tracking; 2942fi 2943 2944if test "x$enable_dependency_tracking" != xno; then 2945 am_depcomp="$ac_aux_dir/depcomp" 2946 AMDEPBACKSLASH='\' 2947 am__nodep='_no' 2948fi 2949 if test "x$enable_dependency_tracking" != xno; then 2950 AMDEP_TRUE= 2951 AMDEP_FALSE='#' 2952else 2953 AMDEP_TRUE='#' 2954 AMDEP_FALSE= 2955fi 2956 2957 2958ac_ext=c 2959ac_cpp='$CPP $CPPFLAGS' 2960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2962ac_compiler_gnu=$ac_cv_c_compiler_gnu 2963if test -n "$ac_tool_prefix"; then 2964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2965set dummy ${ac_tool_prefix}gcc; ac_word=$2 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2967$as_echo_n "checking for $ac_word... " >&6; } 2968if ${ac_cv_prog_CC+:} false; then : 2969 $as_echo_n "(cached) " >&6 2970else 2971 if test -n "$CC"; then 2972 ac_cv_prog_CC="$CC" # Let the user override the test. 2973else 2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2975for as_dir in $PATH 2976do 2977 IFS=$as_save_IFS 2978 test -z "$as_dir" && as_dir=. 2979 for ac_exec_ext in '' $ac_executable_extensions; do 2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2981 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2983 break 2 2984 fi 2985done 2986 done 2987IFS=$as_save_IFS 2988 2989fi 2990fi 2991CC=$ac_cv_prog_CC 2992if test -n "$CC"; then 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2994$as_echo "$CC" >&6; } 2995else 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2997$as_echo "no" >&6; } 2998fi 2999 3000 3001fi 3002if test -z "$ac_cv_prog_CC"; then 3003 ac_ct_CC=$CC 3004 # Extract the first word of "gcc", so it can be a program name with args. 3005set dummy gcc; ac_word=$2 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3007$as_echo_n "checking for $ac_word... " >&6; } 3008if ${ac_cv_prog_ac_ct_CC+:} false; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 if test -n "$ac_ct_CC"; then 3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3013else 3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3015for as_dir in $PATH 3016do 3017 IFS=$as_save_IFS 3018 test -z "$as_dir" && as_dir=. 3019 for ac_exec_ext in '' $ac_executable_extensions; do 3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3021 ac_cv_prog_ac_ct_CC="gcc" 3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3023 break 2 3024 fi 3025done 3026 done 3027IFS=$as_save_IFS 3028 3029fi 3030fi 3031ac_ct_CC=$ac_cv_prog_ac_ct_CC 3032if test -n "$ac_ct_CC"; then 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3034$as_echo "$ac_ct_CC" >&6; } 3035else 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3037$as_echo "no" >&6; } 3038fi 3039 3040 if test "x$ac_ct_CC" = x; then 3041 CC="" 3042 else 3043 case $cross_compiling:$ac_tool_warned in 3044yes:) 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3047ac_tool_warned=yes ;; 3048esac 3049 CC=$ac_ct_CC 3050 fi 3051else 3052 CC="$ac_cv_prog_CC" 3053fi 3054 3055if test -z "$CC"; then 3056 if test -n "$ac_tool_prefix"; then 3057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3058set dummy ${ac_tool_prefix}cc; ac_word=$2 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3060$as_echo_n "checking for $ac_word... " >&6; } 3061if ${ac_cv_prog_CC+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 if test -n "$CC"; then 3065 ac_cv_prog_CC="$CC" # Let the user override the test. 3066else 3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3068for as_dir in $PATH 3069do 3070 IFS=$as_save_IFS 3071 test -z "$as_dir" && as_dir=. 3072 for ac_exec_ext in '' $ac_executable_extensions; do 3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3074 ac_cv_prog_CC="${ac_tool_prefix}cc" 3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3076 break 2 3077 fi 3078done 3079 done 3080IFS=$as_save_IFS 3081 3082fi 3083fi 3084CC=$ac_cv_prog_CC 3085if test -n "$CC"; then 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3087$as_echo "$CC" >&6; } 3088else 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3090$as_echo "no" >&6; } 3091fi 3092 3093 3094 fi 3095fi 3096if test -z "$CC"; then 3097 # Extract the first word of "cc", so it can be a program name with args. 3098set dummy cc; ac_word=$2 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100$as_echo_n "checking for $ac_word... " >&6; } 3101if ${ac_cv_prog_CC+:} false; then : 3102 $as_echo_n "(cached) " >&6 3103else 3104 if test -n "$CC"; then 3105 ac_cv_prog_CC="$CC" # Let the user override the test. 3106else 3107 ac_prog_rejected=no 3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 test -z "$as_dir" && as_dir=. 3113 for ac_exec_ext in '' $ac_executable_extensions; do 3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3116 ac_prog_rejected=yes 3117 continue 3118 fi 3119 ac_cv_prog_CC="cc" 3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3121 break 2 3122 fi 3123done 3124 done 3125IFS=$as_save_IFS 3126 3127if test $ac_prog_rejected = yes; then 3128 # We found a bogon in the path, so make sure we never use it. 3129 set dummy $ac_cv_prog_CC 3130 shift 3131 if test $# != 0; then 3132 # We chose a different compiler from the bogus one. 3133 # However, it has the same basename, so the bogon will be chosen 3134 # first if we set CC to just the basename; use the full file name. 3135 shift 3136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3137 fi 3138fi 3139fi 3140fi 3141CC=$ac_cv_prog_CC 3142if test -n "$CC"; then 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3144$as_echo "$CC" >&6; } 3145else 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3147$as_echo "no" >&6; } 3148fi 3149 3150 3151fi 3152if test -z "$CC"; then 3153 if test -n "$ac_tool_prefix"; then 3154 for ac_prog in cl.exe 3155 do 3156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3157set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3159$as_echo_n "checking for $ac_word... " >&6; } 3160if ${ac_cv_prog_CC+:} false; then : 3161 $as_echo_n "(cached) " >&6 3162else 3163 if test -n "$CC"; then 3164 ac_cv_prog_CC="$CC" # Let the user override the test. 3165else 3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3167for as_dir in $PATH 3168do 3169 IFS=$as_save_IFS 3170 test -z "$as_dir" && as_dir=. 3171 for ac_exec_ext in '' $ac_executable_extensions; do 3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3175 break 2 3176 fi 3177done 3178 done 3179IFS=$as_save_IFS 3180 3181fi 3182fi 3183CC=$ac_cv_prog_CC 3184if test -n "$CC"; then 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3186$as_echo "$CC" >&6; } 3187else 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189$as_echo "no" >&6; } 3190fi 3191 3192 3193 test -n "$CC" && break 3194 done 3195fi 3196if test -z "$CC"; then 3197 ac_ct_CC=$CC 3198 for ac_prog in cl.exe 3199do 3200 # Extract the first word of "$ac_prog", so it can be a program name with args. 3201set dummy $ac_prog; ac_word=$2 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3203$as_echo_n "checking for $ac_word... " >&6; } 3204if ${ac_cv_prog_ac_ct_CC+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 if test -n "$ac_ct_CC"; then 3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3209else 3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211for as_dir in $PATH 3212do 3213 IFS=$as_save_IFS 3214 test -z "$as_dir" && as_dir=. 3215 for ac_exec_ext in '' $ac_executable_extensions; do 3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3217 ac_cv_prog_ac_ct_CC="$ac_prog" 3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221done 3222 done 3223IFS=$as_save_IFS 3224 3225fi 3226fi 3227ac_ct_CC=$ac_cv_prog_ac_ct_CC 3228if test -n "$ac_ct_CC"; then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3230$as_echo "$ac_ct_CC" >&6; } 3231else 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233$as_echo "no" >&6; } 3234fi 3235 3236 3237 test -n "$ac_ct_CC" && break 3238done 3239 3240 if test "x$ac_ct_CC" = x; then 3241 CC="" 3242 else 3243 case $cross_compiling:$ac_tool_warned in 3244yes:) 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3247ac_tool_warned=yes ;; 3248esac 3249 CC=$ac_ct_CC 3250 fi 3251fi 3252 3253fi 3254 3255 3256test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3258as_fn_error $? "no acceptable C compiler found in \$PATH 3259See \`config.log' for more details" "$LINENO" 5; } 3260 3261# Provide some information about the compiler. 3262$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3263set X $ac_compile 3264ac_compiler=$2 3265for ac_option in --version -v -V -qversion; do 3266 { { ac_try="$ac_compiler $ac_option >&5" 3267case "(($ac_try" in 3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3269 *) ac_try_echo=$ac_try;; 3270esac 3271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3272$as_echo "$ac_try_echo"; } >&5 3273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3274 ac_status=$? 3275 if test -s conftest.err; then 3276 sed '10a\ 3277... rest of stderr output deleted ... 3278 10q' conftest.err >conftest.er1 3279 cat conftest.er1 >&5 3280 fi 3281 rm -f conftest.er1 conftest.err 3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3283 test $ac_status = 0; } 3284done 3285 3286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3287/* end confdefs.h. */ 3288 3289int 3290main () 3291{ 3292 3293 ; 3294 return 0; 3295} 3296_ACEOF 3297ac_clean_files_save=$ac_clean_files 3298ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3299# Try to create an executable without -o first, disregard a.out. 3300# It will help us diagnose broken compilers, and finding out an intuition 3301# of exeext. 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3303$as_echo_n "checking whether the C compiler works... " >&6; } 3304ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3305 3306# The possible output files: 3307ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3308 3309ac_rmfiles= 3310for ac_file in $ac_files 3311do 3312 case $ac_file in 3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3314 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3315 esac 3316done 3317rm -f $ac_rmfiles 3318 3319if { { ac_try="$ac_link_default" 3320case "(($ac_try" in 3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3322 *) ac_try_echo=$ac_try;; 3323esac 3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3325$as_echo "$ac_try_echo"; } >&5 3326 (eval "$ac_link_default") 2>&5 3327 ac_status=$? 3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3329 test $ac_status = 0; }; then : 3330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3331# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3332# in a Makefile. We should not override ac_cv_exeext if it was cached, 3333# so that the user can short-circuit this test for compilers unknown to 3334# Autoconf. 3335for ac_file in $ac_files '' 3336do 3337 test -f "$ac_file" || continue 3338 case $ac_file in 3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3340 ;; 3341 [ab].out ) 3342 # We found the default executable, but exeext='' is most 3343 # certainly right. 3344 break;; 3345 *.* ) 3346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3347 then :; else 3348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3349 fi 3350 # We set ac_cv_exeext here because the later test for it is not 3351 # safe: cross compilers may not add the suffix if given an `-o' 3352 # argument, so we may need to know it at that point already. 3353 # Even if this section looks crufty: it has the advantage of 3354 # actually working. 3355 break;; 3356 * ) 3357 break;; 3358 esac 3359done 3360test "$ac_cv_exeext" = no && ac_cv_exeext= 3361 3362else 3363 ac_file='' 3364fi 3365if test -z "$ac_file"; then : 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3367$as_echo "no" >&6; } 3368$as_echo "$as_me: failed program was:" >&5 3369sed 's/^/| /' conftest.$ac_ext >&5 3370 3371{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3373as_fn_error 77 "C compiler cannot create executables 3374See \`config.log' for more details" "$LINENO" 5; } 3375else 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3377$as_echo "yes" >&6; } 3378fi 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3380$as_echo_n "checking for C compiler default output file name... " >&6; } 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3382$as_echo "$ac_file" >&6; } 3383ac_exeext=$ac_cv_exeext 3384 3385rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3386ac_clean_files=$ac_clean_files_save 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3388$as_echo_n "checking for suffix of executables... " >&6; } 3389if { { ac_try="$ac_link" 3390case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393esac 3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3395$as_echo "$ac_try_echo"; } >&5 3396 (eval "$ac_link") 2>&5 3397 ac_status=$? 3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3399 test $ac_status = 0; }; then : 3400 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3401# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3402# work properly (i.e., refer to `conftest.exe'), while it won't with 3403# `rm'. 3404for ac_file in conftest.exe conftest conftest.*; do 3405 test -f "$ac_file" || continue 3406 case $ac_file in 3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3409 break;; 3410 * ) break;; 3411 esac 3412done 3413else 3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3416as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3417See \`config.log' for more details" "$LINENO" 5; } 3418fi 3419rm -f conftest conftest$ac_cv_exeext 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3421$as_echo "$ac_cv_exeext" >&6; } 3422 3423rm -f conftest.$ac_ext 3424EXEEXT=$ac_cv_exeext 3425ac_exeext=$EXEEXT 3426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3427/* end confdefs.h. */ 3428#include <stdio.h> 3429int 3430main () 3431{ 3432FILE *f = fopen ("conftest.out", "w"); 3433 return ferror (f) || fclose (f) != 0; 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439ac_clean_files="$ac_clean_files conftest.out" 3440# Check that the compiler produces executables we can run. If not, either 3441# the compiler is broken, or we cross compile. 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3443$as_echo_n "checking whether we are cross compiling... " >&6; } 3444if test "$cross_compiling" != yes; then 3445 { { ac_try="$ac_link" 3446case "(($ac_try" in 3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3448 *) ac_try_echo=$ac_try;; 3449esac 3450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3451$as_echo "$ac_try_echo"; } >&5 3452 (eval "$ac_link") 2>&5 3453 ac_status=$? 3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3455 test $ac_status = 0; } 3456 if { ac_try='./conftest$ac_cv_exeext' 3457 { { case "(($ac_try" in 3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3459 *) ac_try_echo=$ac_try;; 3460esac 3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3462$as_echo "$ac_try_echo"; } >&5 3463 (eval "$ac_try") 2>&5 3464 ac_status=$? 3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3466 test $ac_status = 0; }; }; then 3467 cross_compiling=no 3468 else 3469 if test "$cross_compiling" = maybe; then 3470 cross_compiling=yes 3471 else 3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3474as_fn_error $? "cannot run C compiled programs. 3475If you meant to cross compile, use \`--host'. 3476See \`config.log' for more details" "$LINENO" 5; } 3477 fi 3478 fi 3479fi 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3481$as_echo "$cross_compiling" >&6; } 3482 3483rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3484ac_clean_files=$ac_clean_files_save 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3486$as_echo_n "checking for suffix of object files... " >&6; } 3487if ${ac_cv_objext+:} false; then : 3488 $as_echo_n "(cached) " >&6 3489else 3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3491/* end confdefs.h. */ 3492 3493int 3494main () 3495{ 3496 3497 ; 3498 return 0; 3499} 3500_ACEOF 3501rm -f conftest.o conftest.obj 3502if { { ac_try="$ac_compile" 3503case "(($ac_try" in 3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3505 *) ac_try_echo=$ac_try;; 3506esac 3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3508$as_echo "$ac_try_echo"; } >&5 3509 (eval "$ac_compile") 2>&5 3510 ac_status=$? 3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3512 test $ac_status = 0; }; then : 3513 for ac_file in conftest.o conftest.obj conftest.*; do 3514 test -f "$ac_file" || continue; 3515 case $ac_file in 3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3518 break;; 3519 esac 3520done 3521else 3522 $as_echo "$as_me: failed program was:" >&5 3523sed 's/^/| /' conftest.$ac_ext >&5 3524 3525{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3527as_fn_error $? "cannot compute suffix of object files: cannot compile 3528See \`config.log' for more details" "$LINENO" 5; } 3529fi 3530rm -f conftest.$ac_cv_objext conftest.$ac_ext 3531fi 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3533$as_echo "$ac_cv_objext" >&6; } 3534OBJEXT=$ac_cv_objext 3535ac_objext=$OBJEXT 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3537$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3538if ${ac_cv_c_compiler_gnu+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543 3544int 3545main () 3546{ 3547#ifndef __GNUC__ 3548 choke me 3549#endif 3550 3551 ; 3552 return 0; 3553} 3554_ACEOF 3555if ac_fn_c_try_compile "$LINENO"; then : 3556 ac_compiler_gnu=yes 3557else 3558 ac_compiler_gnu=no 3559fi 3560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3561ac_cv_c_compiler_gnu=$ac_compiler_gnu 3562 3563fi 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3565$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3566if test $ac_compiler_gnu = yes; then 3567 GCC=yes 3568else 3569 GCC= 3570fi 3571ac_test_CFLAGS=${CFLAGS+set} 3572ac_save_CFLAGS=$CFLAGS 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3574$as_echo_n "checking whether $CC accepts -g... " >&6; } 3575if ${ac_cv_prog_cc_g+:} false; then : 3576 $as_echo_n "(cached) " >&6 3577else 3578 ac_save_c_werror_flag=$ac_c_werror_flag 3579 ac_c_werror_flag=yes 3580 ac_cv_prog_cc_g=no 3581 CFLAGS="-g" 3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3583/* end confdefs.h. */ 3584 3585int 3586main () 3587{ 3588 3589 ; 3590 return 0; 3591} 3592_ACEOF 3593if ac_fn_c_try_compile "$LINENO"; then : 3594 ac_cv_prog_cc_g=yes 3595else 3596 CFLAGS="" 3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599 3600int 3601main () 3602{ 3603 3604 ; 3605 return 0; 3606} 3607_ACEOF 3608if ac_fn_c_try_compile "$LINENO"; then : 3609 3610else 3611 ac_c_werror_flag=$ac_save_c_werror_flag 3612 CFLAGS="-g" 3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3614/* end confdefs.h. */ 3615 3616int 3617main () 3618{ 3619 3620 ; 3621 return 0; 3622} 3623_ACEOF 3624if ac_fn_c_try_compile "$LINENO"; then : 3625 ac_cv_prog_cc_g=yes 3626fi 3627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3628fi 3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3630fi 3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3632 ac_c_werror_flag=$ac_save_c_werror_flag 3633fi 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3635$as_echo "$ac_cv_prog_cc_g" >&6; } 3636if test "$ac_test_CFLAGS" = set; then 3637 CFLAGS=$ac_save_CFLAGS 3638elif test $ac_cv_prog_cc_g = yes; then 3639 if test "$GCC" = yes; then 3640 CFLAGS="-g -O2" 3641 else 3642 CFLAGS="-g" 3643 fi 3644else 3645 if test "$GCC" = yes; then 3646 CFLAGS="-O2" 3647 else 3648 CFLAGS= 3649 fi 3650fi 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3652$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3653if ${ac_cv_prog_cc_c89+:} false; then : 3654 $as_echo_n "(cached) " >&6 3655else 3656 ac_cv_prog_cc_c89=no 3657ac_save_CC=$CC 3658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3659/* end confdefs.h. */ 3660#include <stdarg.h> 3661#include <stdio.h> 3662#include <sys/types.h> 3663#include <sys/stat.h> 3664/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3665struct buf { int x; }; 3666FILE * (*rcsopen) (struct buf *, struct stat *, int); 3667static char *e (p, i) 3668 char **p; 3669 int i; 3670{ 3671 return p[i]; 3672} 3673static char *f (char * (*g) (char **, int), char **p, ...) 3674{ 3675 char *s; 3676 va_list v; 3677 va_start (v,p); 3678 s = g (p, va_arg (v,int)); 3679 va_end (v); 3680 return s; 3681} 3682 3683/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3684 function prototypes and stuff, but not '\xHH' hex character constants. 3685 These don't provoke an error unfortunately, instead are silently treated 3686 as 'x'. The following induces an error, until -std is added to get 3687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3688 array size at least. It's necessary to write '\x00'==0 to get something 3689 that's true only with -std. */ 3690int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3691 3692/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3693 inside strings and character constants. */ 3694#define FOO(x) 'x' 3695int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3696 3697int test (int i, double x); 3698struct s1 {int (*f) (int a);}; 3699struct s2 {int (*f) (double a);}; 3700int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3701int argc; 3702char **argv; 3703int 3704main () 3705{ 3706return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3707 ; 3708 return 0; 3709} 3710_ACEOF 3711for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3712 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3713do 3714 CC="$ac_save_CC $ac_arg" 3715 if ac_fn_c_try_compile "$LINENO"; then : 3716 ac_cv_prog_cc_c89=$ac_arg 3717fi 3718rm -f core conftest.err conftest.$ac_objext 3719 test "x$ac_cv_prog_cc_c89" != "xno" && break 3720done 3721rm -f conftest.$ac_ext 3722CC=$ac_save_CC 3723 3724fi 3725# AC_CACHE_VAL 3726case "x$ac_cv_prog_cc_c89" in 3727 x) 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3729$as_echo "none needed" >&6; } ;; 3730 xno) 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3732$as_echo "unsupported" >&6; } ;; 3733 *) 3734 CC="$CC $ac_cv_prog_cc_c89" 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3736$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3737esac 3738if test "x$ac_cv_prog_cc_c89" != xno; then : 3739 3740fi 3741 3742ac_ext=c 3743ac_cpp='$CPP $CPPFLAGS' 3744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3746ac_compiler_gnu=$ac_cv_c_compiler_gnu 3747 3748ac_ext=c 3749ac_cpp='$CPP $CPPFLAGS' 3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3752ac_compiler_gnu=$ac_cv_c_compiler_gnu 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3754$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3755if ${am_cv_prog_cc_c_o+:} false; then : 3756 $as_echo_n "(cached) " >&6 3757else 3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3759/* end confdefs.h. */ 3760 3761int 3762main () 3763{ 3764 3765 ; 3766 return 0; 3767} 3768_ACEOF 3769 # Make sure it works both with $CC and with simple cc. 3770 # Following AC_PROG_CC_C_O, we do the test twice because some 3771 # compilers refuse to overwrite an existing .o file with -o, 3772 # though they will create one. 3773 am_cv_prog_cc_c_o=yes 3774 for am_i in 1 2; do 3775 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3776 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3777 ac_status=$? 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3779 (exit $ac_status); } \ 3780 && test -f conftest2.$ac_objext; then 3781 : OK 3782 else 3783 am_cv_prog_cc_c_o=no 3784 break 3785 fi 3786 done 3787 rm -f core conftest* 3788 unset am_i 3789fi 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3791$as_echo "$am_cv_prog_cc_c_o" >&6; } 3792if test "$am_cv_prog_cc_c_o" != yes; then 3793 # Losing compiler, so override with the script. 3794 # FIXME: It is wrong to rewrite CC. 3795 # But if we don't then we get into trouble of one sort or another. 3796 # A longer-term fix would be to have automake use am__CC in this case, 3797 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3798 CC="$am_aux_dir/compile $CC" 3799fi 3800ac_ext=c 3801ac_cpp='$CPP $CPPFLAGS' 3802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3804ac_compiler_gnu=$ac_cv_c_compiler_gnu 3805 3806 3807depcc="$CC" am_compiler_list= 3808 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3810$as_echo_n "checking dependency style of $depcc... " >&6; } 3811if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3812 $as_echo_n "(cached) " >&6 3813else 3814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3815 # We make a subdir and do the tests there. Otherwise we can end up 3816 # making bogus files that we don't know about and never remove. For 3817 # instance it was reported that on HP-UX the gcc test will end up 3818 # making a dummy file named 'D' -- because '-MD' means "put the output 3819 # in D". 3820 rm -rf conftest.dir 3821 mkdir conftest.dir 3822 # Copy depcomp to subdir because otherwise we won't find it if we're 3823 # using a relative directory. 3824 cp "$am_depcomp" conftest.dir 3825 cd conftest.dir 3826 # We will build objects and dependencies in a subdirectory because 3827 # it helps to detect inapplicable dependency modes. For instance 3828 # both Tru64's cc and ICC support -MD to output dependencies as a 3829 # side effect of compilation, but ICC will put the dependencies in 3830 # the current directory while Tru64 will put them in the object 3831 # directory. 3832 mkdir sub 3833 3834 am_cv_CC_dependencies_compiler_type=none 3835 if test "$am_compiler_list" = ""; then 3836 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3837 fi 3838 am__universal=false 3839 case " $depcc " in #( 3840 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3841 esac 3842 3843 for depmode in $am_compiler_list; do 3844 # Setup a source with many dependencies, because some compilers 3845 # like to wrap large dependency lists on column 80 (with \), and 3846 # we should not choose a depcomp mode which is confused by this. 3847 # 3848 # We need to recreate these files for each test, as the compiler may 3849 # overwrite some of them when testing with obscure command lines. 3850 # This happens at least with the AIX C compiler. 3851 : > sub/conftest.c 3852 for i in 1 2 3 4 5 6; do 3853 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3854 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3855 # Solaris 10 /bin/sh. 3856 echo '/* dummy */' > sub/conftst$i.h 3857 done 3858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3859 3860 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3861 # mode. It turns out that the SunPro C++ compiler does not properly 3862 # handle '-M -o', and we need to detect this. Also, some Intel 3863 # versions had trouble with output in subdirs. 3864 am__obj=sub/conftest.${OBJEXT-o} 3865 am__minus_obj="-o $am__obj" 3866 case $depmode in 3867 gcc) 3868 # This depmode causes a compiler race in universal mode. 3869 test "$am__universal" = false || continue 3870 ;; 3871 nosideeffect) 3872 # After this tag, mechanisms are not by side-effect, so they'll 3873 # only be used when explicitly requested. 3874 if test "x$enable_dependency_tracking" = xyes; then 3875 continue 3876 else 3877 break 3878 fi 3879 ;; 3880 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3881 # This compiler won't grok '-c -o', but also, the minuso test has 3882 # not run yet. These depmodes are late enough in the game, and 3883 # so weak that their functioning should not be impacted. 3884 am__obj=conftest.${OBJEXT-o} 3885 am__minus_obj= 3886 ;; 3887 none) break ;; 3888 esac 3889 if depmode=$depmode \ 3890 source=sub/conftest.c object=$am__obj \ 3891 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3892 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3893 >/dev/null 2>conftest.err && 3894 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3895 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3896 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3897 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3898 # icc doesn't choke on unknown options, it will just issue warnings 3899 # or remarks (even with -Werror). So we grep stderr for any message 3900 # that says an option was ignored or not supported. 3901 # When given -MP, icc 7.0 and 7.1 complain thusly: 3902 # icc: Command line warning: ignoring option '-M'; no argument required 3903 # The diagnosis changed in icc 8.0: 3904 # icc: Command line remark: option '-MP' not supported 3905 if (grep 'ignoring option' conftest.err || 3906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3907 am_cv_CC_dependencies_compiler_type=$depmode 3908 break 3909 fi 3910 fi 3911 done 3912 3913 cd .. 3914 rm -rf conftest.dir 3915else 3916 am_cv_CC_dependencies_compiler_type=none 3917fi 3918 3919fi 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3921$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3922CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3923 3924 if 3925 test "x$enable_dependency_tracking" != xno \ 3926 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3927 am__fastdepCC_TRUE= 3928 am__fastdepCC_FALSE='#' 3929else 3930 am__fastdepCC_TRUE='#' 3931 am__fastdepCC_FALSE= 3932fi 3933 3934 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3936$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3937if ${ac_cv_prog_cc_c99+:} false; then : 3938 $as_echo_n "(cached) " >&6 3939else 3940 ac_cv_prog_cc_c99=no 3941ac_save_CC=$CC 3942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3943/* end confdefs.h. */ 3944#include <stdarg.h> 3945#include <stdbool.h> 3946#include <stdlib.h> 3947#include <wchar.h> 3948#include <stdio.h> 3949 3950// Check varargs macros. These examples are taken from C99 6.10.3.5. 3951#define debug(...) fprintf (stderr, __VA_ARGS__) 3952#define showlist(...) puts (#__VA_ARGS__) 3953#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3954static void 3955test_varargs_macros (void) 3956{ 3957 int x = 1234; 3958 int y = 5678; 3959 debug ("Flag"); 3960 debug ("X = %d\n", x); 3961 showlist (The first, second, and third items.); 3962 report (x>y, "x is %d but y is %d", x, y); 3963} 3964 3965// Check long long types. 3966#define BIG64 18446744073709551615ull 3967#define BIG32 4294967295ul 3968#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3969#if !BIG_OK 3970 your preprocessor is broken; 3971#endif 3972#if BIG_OK 3973#else 3974 your preprocessor is broken; 3975#endif 3976static long long int bignum = -9223372036854775807LL; 3977static unsigned long long int ubignum = BIG64; 3978 3979struct incomplete_array 3980{ 3981 int datasize; 3982 double data[]; 3983}; 3984 3985struct named_init { 3986 int number; 3987 const wchar_t *name; 3988 double average; 3989}; 3990 3991typedef const char *ccp; 3992 3993static inline int 3994test_restrict (ccp restrict text) 3995{ 3996 // See if C++-style comments work. 3997 // Iterate through items via the restricted pointer. 3998 // Also check for declarations in for loops. 3999 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4000 continue; 4001 return 0; 4002} 4003 4004// Check varargs and va_copy. 4005static void 4006test_varargs (const char *format, ...) 4007{ 4008 va_list args; 4009 va_start (args, format); 4010 va_list args_copy; 4011 va_copy (args_copy, args); 4012 4013 const char *str; 4014 int number; 4015 float fnumber; 4016 4017 while (*format) 4018 { 4019 switch (*format++) 4020 { 4021 case 's': // string 4022 str = va_arg (args_copy, const char *); 4023 break; 4024 case 'd': // int 4025 number = va_arg (args_copy, int); 4026 break; 4027 case 'f': // float 4028 fnumber = va_arg (args_copy, double); 4029 break; 4030 default: 4031 break; 4032 } 4033 } 4034 va_end (args_copy); 4035 va_end (args); 4036} 4037 4038int 4039main () 4040{ 4041 4042 // Check bool. 4043 _Bool success = false; 4044 4045 // Check restrict. 4046 if (test_restrict ("String literal") == 0) 4047 success = true; 4048 char *restrict newvar = "Another string"; 4049 4050 // Check varargs. 4051 test_varargs ("s, d' f .", "string", 65, 34.234); 4052 test_varargs_macros (); 4053 4054 // Check flexible array members. 4055 struct incomplete_array *ia = 4056 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4057 ia->datasize = 10; 4058 for (int i = 0; i < ia->datasize; ++i) 4059 ia->data[i] = i * 1.234; 4060 4061 // Check named initializers. 4062 struct named_init ni = { 4063 .number = 34, 4064 .name = L"Test wide string", 4065 .average = 543.34343, 4066 }; 4067 4068 ni.number = 58; 4069 4070 int dynamic_array[ni.number]; 4071 dynamic_array[ni.number - 1] = 543; 4072 4073 // work around unused variable warnings 4074 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4075 || dynamic_array[ni.number - 1] != 543); 4076 4077 ; 4078 return 0; 4079} 4080_ACEOF 4081for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4082do 4083 CC="$ac_save_CC $ac_arg" 4084 if ac_fn_c_try_compile "$LINENO"; then : 4085 ac_cv_prog_cc_c99=$ac_arg 4086fi 4087rm -f core conftest.err conftest.$ac_objext 4088 test "x$ac_cv_prog_cc_c99" != "xno" && break 4089done 4090rm -f conftest.$ac_ext 4091CC=$ac_save_CC 4092 4093fi 4094# AC_CACHE_VAL 4095case "x$ac_cv_prog_cc_c99" in 4096 x) 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4098$as_echo "none needed" >&6; } ;; 4099 xno) 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4101$as_echo "unsupported" >&6; } ;; 4102 *) 4103 CC="$CC $ac_cv_prog_cc_c99" 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4105$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4106esac 4107if test "x$ac_cv_prog_cc_c99" != xno; then : 4108 4109fi 4110 4111 4112 4113ac_ext=c 4114ac_cpp='$CPP $CPPFLAGS' 4115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4117ac_compiler_gnu=$ac_cv_c_compiler_gnu 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4119$as_echo_n "checking how to run the C preprocessor... " >&6; } 4120# On Suns, sometimes $CPP names a directory. 4121if test -n "$CPP" && test -d "$CPP"; then 4122 CPP= 4123fi 4124if test -z "$CPP"; then 4125 if ${ac_cv_prog_CPP+:} false; then : 4126 $as_echo_n "(cached) " >&6 4127else 4128 # Double quotes because CPP needs to be expanded 4129 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4130 do 4131 ac_preproc_ok=false 4132for ac_c_preproc_warn_flag in '' yes 4133do 4134 # Use a header file that comes with gcc, so configuring glibc 4135 # with a fresh cross-compiler works. 4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4137 # <limits.h> exists even on freestanding compilers. 4138 # On the NeXT, cc -E runs the code through the compiler's parser, 4139 # not just through cpp. "Syntax error" is here to catch this case. 4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4141/* end confdefs.h. */ 4142#ifdef __STDC__ 4143# include <limits.h> 4144#else 4145# include <assert.h> 4146#endif 4147 Syntax error 4148_ACEOF 4149if ac_fn_c_try_cpp "$LINENO"; then : 4150 4151else 4152 # Broken: fails on valid input. 4153continue 4154fi 4155rm -f conftest.err conftest.i conftest.$ac_ext 4156 4157 # OK, works on sane cases. Now check whether nonexistent headers 4158 # can be detected and how. 4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161#include <ac_nonexistent.h> 4162_ACEOF 4163if ac_fn_c_try_cpp "$LINENO"; then : 4164 # Broken: success on invalid input. 4165continue 4166else 4167 # Passes both tests. 4168ac_preproc_ok=: 4169break 4170fi 4171rm -f conftest.err conftest.i conftest.$ac_ext 4172 4173done 4174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4175rm -f conftest.i conftest.err conftest.$ac_ext 4176if $ac_preproc_ok; then : 4177 break 4178fi 4179 4180 done 4181 ac_cv_prog_CPP=$CPP 4182 4183fi 4184 CPP=$ac_cv_prog_CPP 4185else 4186 ac_cv_prog_CPP=$CPP 4187fi 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4189$as_echo "$CPP" >&6; } 4190ac_preproc_ok=false 4191for ac_c_preproc_warn_flag in '' yes 4192do 4193 # Use a header file that comes with gcc, so configuring glibc 4194 # with a fresh cross-compiler works. 4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4196 # <limits.h> exists even on freestanding compilers. 4197 # On the NeXT, cc -E runs the code through the compiler's parser, 4198 # not just through cpp. "Syntax error" is here to catch this case. 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4200/* end confdefs.h. */ 4201#ifdef __STDC__ 4202# include <limits.h> 4203#else 4204# include <assert.h> 4205#endif 4206 Syntax error 4207_ACEOF 4208if ac_fn_c_try_cpp "$LINENO"; then : 4209 4210else 4211 # Broken: fails on valid input. 4212continue 4213fi 4214rm -f conftest.err conftest.i conftest.$ac_ext 4215 4216 # OK, works on sane cases. Now check whether nonexistent headers 4217 # can be detected and how. 4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4219/* end confdefs.h. */ 4220#include <ac_nonexistent.h> 4221_ACEOF 4222if ac_fn_c_try_cpp "$LINENO"; then : 4223 # Broken: success on invalid input. 4224continue 4225else 4226 # Passes both tests. 4227ac_preproc_ok=: 4228break 4229fi 4230rm -f conftest.err conftest.i conftest.$ac_ext 4231 4232done 4233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4234rm -f conftest.i conftest.err conftest.$ac_ext 4235if $ac_preproc_ok; then : 4236 4237else 4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4240as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4241See \`config.log' for more details" "$LINENO" 5; } 4242fi 4243 4244ac_ext=c 4245ac_cpp='$CPP $CPPFLAGS' 4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4248ac_compiler_gnu=$ac_cv_c_compiler_gnu 4249 4250 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4252$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4253if ${ac_cv_path_GREP+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 if test -z "$GREP"; then 4257 ac_path_GREP_found=false 4258 # Loop through the user's path and test for each of PROGNAME-LIST 4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4260for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4261do 4262 IFS=$as_save_IFS 4263 test -z "$as_dir" && as_dir=. 4264 for ac_prog in grep ggrep; do 4265 for ac_exec_ext in '' $ac_executable_extensions; do 4266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4267 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4268# Check for GNU ac_path_GREP and select it if it is found. 4269 # Check for GNU $ac_path_GREP 4270case `"$ac_path_GREP" --version 2>&1` in 4271*GNU*) 4272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4273*) 4274 ac_count=0 4275 $as_echo_n 0123456789 >"conftest.in" 4276 while : 4277 do 4278 cat "conftest.in" "conftest.in" >"conftest.tmp" 4279 mv "conftest.tmp" "conftest.in" 4280 cp "conftest.in" "conftest.nl" 4281 $as_echo 'GREP' >> "conftest.nl" 4282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4284 as_fn_arith $ac_count + 1 && ac_count=$as_val 4285 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4286 # Best one so far, save it but keep looking for a better one 4287 ac_cv_path_GREP="$ac_path_GREP" 4288 ac_path_GREP_max=$ac_count 4289 fi 4290 # 10*(2^10) chars as input seems more than enough 4291 test $ac_count -gt 10 && break 4292 done 4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4294esac 4295 4296 $ac_path_GREP_found && break 3 4297 done 4298 done 4299 done 4300IFS=$as_save_IFS 4301 if test -z "$ac_cv_path_GREP"; then 4302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4303 fi 4304else 4305 ac_cv_path_GREP=$GREP 4306fi 4307 4308fi 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4310$as_echo "$ac_cv_path_GREP" >&6; } 4311 GREP="$ac_cv_path_GREP" 4312 4313 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4315$as_echo_n "checking for egrep... " >&6; } 4316if ${ac_cv_path_EGREP+:} false; then : 4317 $as_echo_n "(cached) " >&6 4318else 4319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4320 then ac_cv_path_EGREP="$GREP -E" 4321 else 4322 if test -z "$EGREP"; then 4323 ac_path_EGREP_found=false 4324 # Loop through the user's path and test for each of PROGNAME-LIST 4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4326for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4327do 4328 IFS=$as_save_IFS 4329 test -z "$as_dir" && as_dir=. 4330 for ac_prog in egrep; do 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4333 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4334# Check for GNU ac_path_EGREP and select it if it is found. 4335 # Check for GNU $ac_path_EGREP 4336case `"$ac_path_EGREP" --version 2>&1` in 4337*GNU*) 4338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4339*) 4340 ac_count=0 4341 $as_echo_n 0123456789 >"conftest.in" 4342 while : 4343 do 4344 cat "conftest.in" "conftest.in" >"conftest.tmp" 4345 mv "conftest.tmp" "conftest.in" 4346 cp "conftest.in" "conftest.nl" 4347 $as_echo 'EGREP' >> "conftest.nl" 4348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4350 as_fn_arith $ac_count + 1 && ac_count=$as_val 4351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4352 # Best one so far, save it but keep looking for a better one 4353 ac_cv_path_EGREP="$ac_path_EGREP" 4354 ac_path_EGREP_max=$ac_count 4355 fi 4356 # 10*(2^10) chars as input seems more than enough 4357 test $ac_count -gt 10 && break 4358 done 4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4360esac 4361 4362 $ac_path_EGREP_found && break 3 4363 done 4364 done 4365 done 4366IFS=$as_save_IFS 4367 if test -z "$ac_cv_path_EGREP"; then 4368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4369 fi 4370else 4371 ac_cv_path_EGREP=$EGREP 4372fi 4373 4374 fi 4375fi 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4377$as_echo "$ac_cv_path_EGREP" >&6; } 4378 EGREP="$ac_cv_path_EGREP" 4379 4380 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4382$as_echo_n "checking for ANSI C header files... " >&6; } 4383if ${ac_cv_header_stdc+:} false; then : 4384 $as_echo_n "(cached) " >&6 4385else 4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4387/* end confdefs.h. */ 4388#include <stdlib.h> 4389#include <stdarg.h> 4390#include <string.h> 4391#include <float.h> 4392 4393int 4394main () 4395{ 4396 4397 ; 4398 return 0; 4399} 4400_ACEOF 4401if ac_fn_c_try_compile "$LINENO"; then : 4402 ac_cv_header_stdc=yes 4403else 4404 ac_cv_header_stdc=no 4405fi 4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4407 4408if test $ac_cv_header_stdc = yes; then 4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4411/* end confdefs.h. */ 4412#include <string.h> 4413 4414_ACEOF 4415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4416 $EGREP "memchr" >/dev/null 2>&1; then : 4417 4418else 4419 ac_cv_header_stdc=no 4420fi 4421rm -f conftest* 4422 4423fi 4424 4425if test $ac_cv_header_stdc = yes; then 4426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428/* end confdefs.h. */ 4429#include <stdlib.h> 4430 4431_ACEOF 4432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4433 $EGREP "free" >/dev/null 2>&1; then : 4434 4435else 4436 ac_cv_header_stdc=no 4437fi 4438rm -f conftest* 4439 4440fi 4441 4442if test $ac_cv_header_stdc = yes; then 4443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4444 if test "$cross_compiling" = yes; then : 4445 : 4446else 4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4448/* end confdefs.h. */ 4449#include <ctype.h> 4450#include <stdlib.h> 4451#if ((' ' & 0x0FF) == 0x020) 4452# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4453# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4454#else 4455# define ISLOWER(c) \ 4456 (('a' <= (c) && (c) <= 'i') \ 4457 || ('j' <= (c) && (c) <= 'r') \ 4458 || ('s' <= (c) && (c) <= 'z')) 4459# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4460#endif 4461 4462#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4463int 4464main () 4465{ 4466 int i; 4467 for (i = 0; i < 256; i++) 4468 if (XOR (islower (i), ISLOWER (i)) 4469 || toupper (i) != TOUPPER (i)) 4470 return 2; 4471 return 0; 4472} 4473_ACEOF 4474if ac_fn_c_try_run "$LINENO"; then : 4475 4476else 4477 ac_cv_header_stdc=no 4478fi 4479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4480 conftest.$ac_objext conftest.beam conftest.$ac_ext 4481fi 4482 4483fi 4484fi 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4486$as_echo "$ac_cv_header_stdc" >&6; } 4487if test $ac_cv_header_stdc = yes; then 4488 4489$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4490 4491fi 4492 4493# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4494for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4495 inttypes.h stdint.h unistd.h 4496do : 4497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4498ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4499" 4500if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4501 cat >>confdefs.h <<_ACEOF 4502#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4503_ACEOF 4504 4505fi 4506 4507done 4508 4509 4510 4511 4512 4513 4514ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4515if test "x$ac_cv_have_decl___clang__" = xyes; then : 4516 CLANGCC="yes" 4517else 4518 CLANGCC="no" 4519fi 4520 4521ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4522if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4523 INTELCC="yes" 4524else 4525 INTELCC="no" 4526fi 4527 4528ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4529if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4530 SUNCC="yes" 4531else 4532 SUNCC="no" 4533fi 4534 4535 4536 4537 4538if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4539 if test -n "$ac_tool_prefix"; then 4540 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4541set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4543$as_echo_n "checking for $ac_word... " >&6; } 4544if ${ac_cv_path_PKG_CONFIG+:} false; then : 4545 $as_echo_n "(cached) " >&6 4546else 4547 case $PKG_CONFIG in 4548 [\\/]* | ?:[\\/]*) 4549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4550 ;; 4551 *) 4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4553for as_dir in $PATH 4554do 4555 IFS=$as_save_IFS 4556 test -z "$as_dir" && as_dir=. 4557 for ac_exec_ext in '' $ac_executable_extensions; do 4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4561 break 2 4562 fi 4563done 4564 done 4565IFS=$as_save_IFS 4566 4567 ;; 4568esac 4569fi 4570PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4571if test -n "$PKG_CONFIG"; then 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4573$as_echo "$PKG_CONFIG" >&6; } 4574else 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4576$as_echo "no" >&6; } 4577fi 4578 4579 4580fi 4581if test -z "$ac_cv_path_PKG_CONFIG"; then 4582 ac_pt_PKG_CONFIG=$PKG_CONFIG 4583 # Extract the first word of "pkg-config", so it can be a program name with args. 4584set dummy pkg-config; ac_word=$2 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4586$as_echo_n "checking for $ac_word... " >&6; } 4587if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 case $ac_pt_PKG_CONFIG in 4591 [\\/]* | ?:[\\/]*) 4592 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4593 ;; 4594 *) 4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4596for as_dir in $PATH 4597do 4598 IFS=$as_save_IFS 4599 test -z "$as_dir" && as_dir=. 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4602 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4604 break 2 4605 fi 4606done 4607 done 4608IFS=$as_save_IFS 4609 4610 ;; 4611esac 4612fi 4613ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4614if test -n "$ac_pt_PKG_CONFIG"; then 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4616$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4617else 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619$as_echo "no" >&6; } 4620fi 4621 4622 if test "x$ac_pt_PKG_CONFIG" = x; then 4623 PKG_CONFIG="" 4624 else 4625 case $cross_compiling:$ac_tool_warned in 4626yes:) 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4629ac_tool_warned=yes ;; 4630esac 4631 PKG_CONFIG=$ac_pt_PKG_CONFIG 4632 fi 4633else 4634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4635fi 4636 4637fi 4638if test -n "$PKG_CONFIG"; then 4639 _pkg_min_version=0.9.0 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4641$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4642 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4644$as_echo "yes" >&6; } 4645 else 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648 PKG_CONFIG="" 4649 fi 4650 4651fi 4652# Make sure we can run config.sub. 4653$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4654 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4655 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4657$as_echo_n "checking build system type... " >&6; } 4658if ${ac_cv_build+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660else 4661 ac_build_alias=$build_alias 4662test "x$ac_build_alias" = x && 4663 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4664test "x$ac_build_alias" = x && 4665 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4666ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4668 4669fi 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4671$as_echo "$ac_cv_build" >&6; } 4672case $ac_cv_build in 4673*-*-*) ;; 4674*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4675esac 4676build=$ac_cv_build 4677ac_save_IFS=$IFS; IFS='-' 4678set x $ac_cv_build 4679shift 4680build_cpu=$1 4681build_vendor=$2 4682shift; shift 4683# Remember, the first character of IFS is used to create $*, 4684# except with old shells: 4685build_os=$* 4686IFS=$ac_save_IFS 4687case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4688 4689 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4691$as_echo_n "checking host system type... " >&6; } 4692if ${ac_cv_host+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 if test "x$host_alias" = x; then 4696 ac_cv_host=$ac_cv_build 4697else 4698 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4699 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4700fi 4701 4702fi 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4704$as_echo "$ac_cv_host" >&6; } 4705case $ac_cv_host in 4706*-*-*) ;; 4707*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4708esac 4709host=$ac_cv_host 4710ac_save_IFS=$IFS; IFS='-' 4711set x $ac_cv_host 4712shift 4713host_cpu=$1 4714host_vendor=$2 4715shift; shift 4716# Remember, the first character of IFS is used to create $*, 4717# except with old shells: 4718host_os=$* 4719IFS=$ac_save_IFS 4720case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4721 4722 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4724$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4725if ${ac_cv_path_SED+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4729 for ac_i in 1 2 3 4 5 6 7; do 4730 ac_script="$ac_script$as_nl$ac_script" 4731 done 4732 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4733 { ac_script=; unset ac_script;} 4734 if test -z "$SED"; then 4735 ac_path_SED_found=false 4736 # Loop through the user's path and test for each of PROGNAME-LIST 4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4738for as_dir in $PATH 4739do 4740 IFS=$as_save_IFS 4741 test -z "$as_dir" && as_dir=. 4742 for ac_prog in sed gsed; do 4743 for ac_exec_ext in '' $ac_executable_extensions; do 4744 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4745 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4746# Check for GNU ac_path_SED and select it if it is found. 4747 # Check for GNU $ac_path_SED 4748case `"$ac_path_SED" --version 2>&1` in 4749*GNU*) 4750 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4751*) 4752 ac_count=0 4753 $as_echo_n 0123456789 >"conftest.in" 4754 while : 4755 do 4756 cat "conftest.in" "conftest.in" >"conftest.tmp" 4757 mv "conftest.tmp" "conftest.in" 4758 cp "conftest.in" "conftest.nl" 4759 $as_echo '' >> "conftest.nl" 4760 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4762 as_fn_arith $ac_count + 1 && ac_count=$as_val 4763 if test $ac_count -gt ${ac_path_SED_max-0}; then 4764 # Best one so far, save it but keep looking for a better one 4765 ac_cv_path_SED="$ac_path_SED" 4766 ac_path_SED_max=$ac_count 4767 fi 4768 # 10*(2^10) chars as input seems more than enough 4769 test $ac_count -gt 10 && break 4770 done 4771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4772esac 4773 4774 $ac_path_SED_found && break 3 4775 done 4776 done 4777 done 4778IFS=$as_save_IFS 4779 if test -z "$ac_cv_path_SED"; then 4780 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4781 fi 4782else 4783 ac_cv_path_SED=$SED 4784fi 4785 4786fi 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4788$as_echo "$ac_cv_path_SED" >&6; } 4789 SED="$ac_cv_path_SED" 4790 rm -f conftest.sed 4791 4792 4793 4794 4795 4796 4797# Check whether --enable-selective-werror was given. 4798if test "${enable_selective_werror+set}" = set; then : 4799 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4800else 4801 SELECTIVE_WERROR=yes 4802fi 4803 4804 4805 4806 4807 4808# -v is too short to test reliably with XORG_TESTSET_CFLAG 4809if test "x$SUNCC" = "xyes"; then 4810 BASE_CFLAGS="-v" 4811else 4812 BASE_CFLAGS="" 4813fi 4814 4815# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829xorg_testset_save_CFLAGS="$CFLAGS" 4830 4831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4836 $as_echo_n "(cached) " >&6 4837else 4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4839/* end confdefs.h. */ 4840int i; 4841_ACEOF 4842if ac_fn_c_try_compile "$LINENO"; then : 4843 xorg_cv_cc_flag_unknown_warning_option=yes 4844else 4845 xorg_cv_cc_flag_unknown_warning_option=no 4846fi 4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4852 CFLAGS="$xorg_testset_save_CFLAGS" 4853fi 4854 4855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4858 fi 4859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4863 $as_echo_n "(cached) " >&6 4864else 4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4866/* end confdefs.h. */ 4867int i; 4868_ACEOF 4869if ac_fn_c_try_compile "$LINENO"; then : 4870 xorg_cv_cc_flag_unused_command_line_argument=yes 4871else 4872 xorg_cv_cc_flag_unused_command_line_argument=no 4873fi 4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4879 CFLAGS="$xorg_testset_save_CFLAGS" 4880fi 4881 4882found="no" 4883 4884 if test $found = "no" ; then 4885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4887 fi 4888 4889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4891 fi 4892 4893 CFLAGS="$CFLAGS -Wall" 4894 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4896$as_echo_n "checking if $CC supports -Wall... " >&6; } 4897 cacheid=xorg_cv_cc_flag__Wall 4898 if eval \${$cacheid+:} false; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4902/* end confdefs.h. */ 4903int i; 4904int 4905main () 4906{ 4907 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912if ac_fn_c_try_link "$LINENO"; then : 4913 eval $cacheid=yes 4914else 4915 eval $cacheid=no 4916fi 4917rm -f core conftest.err conftest.$ac_objext \ 4918 conftest$ac_exeext conftest.$ac_ext 4919fi 4920 4921 4922 CFLAGS="$xorg_testset_save_CFLAGS" 4923 4924 eval supported=\$$cacheid 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4926$as_echo "$supported" >&6; } 4927 if test "$supported" = "yes" ; then 4928 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4929 found="yes" 4930 fi 4931 fi 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947xorg_testset_save_CFLAGS="$CFLAGS" 4948 4949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958int i; 4959_ACEOF 4960if ac_fn_c_try_compile "$LINENO"; then : 4961 xorg_cv_cc_flag_unknown_warning_option=yes 4962else 4963 xorg_cv_cc_flag_unknown_warning_option=no 4964fi 4965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4966fi 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4970 CFLAGS="$xorg_testset_save_CFLAGS" 4971fi 4972 4973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4976 fi 4977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4981 $as_echo_n "(cached) " >&6 4982else 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985int i; 4986_ACEOF 4987if ac_fn_c_try_compile "$LINENO"; then : 4988 xorg_cv_cc_flag_unused_command_line_argument=yes 4989else 4990 xorg_cv_cc_flag_unused_command_line_argument=no 4991fi 4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4993fi 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4997 CFLAGS="$xorg_testset_save_CFLAGS" 4998fi 4999 5000found="no" 5001 5002 if test $found = "no" ; then 5003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5005 fi 5006 5007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5009 fi 5010 5011 CFLAGS="$CFLAGS -Wpointer-arith" 5012 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5014$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5015 cacheid=xorg_cv_cc_flag__Wpointer_arith 5016 if eval \${$cacheid+:} false; then : 5017 $as_echo_n "(cached) " >&6 5018else 5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020/* end confdefs.h. */ 5021int i; 5022int 5023main () 5024{ 5025 5026 ; 5027 return 0; 5028} 5029_ACEOF 5030if ac_fn_c_try_link "$LINENO"; then : 5031 eval $cacheid=yes 5032else 5033 eval $cacheid=no 5034fi 5035rm -f core conftest.err conftest.$ac_objext \ 5036 conftest$ac_exeext conftest.$ac_ext 5037fi 5038 5039 5040 CFLAGS="$xorg_testset_save_CFLAGS" 5041 5042 eval supported=\$$cacheid 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5044$as_echo "$supported" >&6; } 5045 if test "$supported" = "yes" ; then 5046 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5047 found="yes" 5048 fi 5049 fi 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065xorg_testset_save_CFLAGS="$CFLAGS" 5066 5067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5075/* end confdefs.h. */ 5076int i; 5077_ACEOF 5078if ac_fn_c_try_compile "$LINENO"; then : 5079 xorg_cv_cc_flag_unknown_warning_option=yes 5080else 5081 xorg_cv_cc_flag_unknown_warning_option=no 5082fi 5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5084fi 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5088 CFLAGS="$xorg_testset_save_CFLAGS" 5089fi 5090 5091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5094 fi 5095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100else 5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102/* end confdefs.h. */ 5103int i; 5104_ACEOF 5105if ac_fn_c_try_compile "$LINENO"; then : 5106 xorg_cv_cc_flag_unused_command_line_argument=yes 5107else 5108 xorg_cv_cc_flag_unused_command_line_argument=no 5109fi 5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5111fi 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5115 CFLAGS="$xorg_testset_save_CFLAGS" 5116fi 5117 5118found="no" 5119 5120 if test $found = "no" ; then 5121 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5123 fi 5124 5125 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5127 fi 5128 5129 CFLAGS="$CFLAGS -Wmissing-declarations" 5130 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5132$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5133 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5134 if eval \${$cacheid+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5138/* end confdefs.h. */ 5139int i; 5140int 5141main () 5142{ 5143 5144 ; 5145 return 0; 5146} 5147_ACEOF 5148if ac_fn_c_try_link "$LINENO"; then : 5149 eval $cacheid=yes 5150else 5151 eval $cacheid=no 5152fi 5153rm -f core conftest.err conftest.$ac_objext \ 5154 conftest$ac_exeext conftest.$ac_ext 5155fi 5156 5157 5158 CFLAGS="$xorg_testset_save_CFLAGS" 5159 5160 eval supported=\$$cacheid 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5162$as_echo "$supported" >&6; } 5163 if test "$supported" = "yes" ; then 5164 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5165 found="yes" 5166 fi 5167 fi 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183xorg_testset_save_CFLAGS="$CFLAGS" 5184 5185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5190 $as_echo_n "(cached) " >&6 5191else 5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193/* end confdefs.h. */ 5194int i; 5195_ACEOF 5196if ac_fn_c_try_compile "$LINENO"; then : 5197 xorg_cv_cc_flag_unknown_warning_option=yes 5198else 5199 xorg_cv_cc_flag_unknown_warning_option=no 5200fi 5201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5202fi 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5206 CFLAGS="$xorg_testset_save_CFLAGS" 5207fi 5208 5209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5212 fi 5213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5220/* end confdefs.h. */ 5221int i; 5222_ACEOF 5223if ac_fn_c_try_compile "$LINENO"; then : 5224 xorg_cv_cc_flag_unused_command_line_argument=yes 5225else 5226 xorg_cv_cc_flag_unused_command_line_argument=no 5227fi 5228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5229fi 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5233 CFLAGS="$xorg_testset_save_CFLAGS" 5234fi 5235 5236found="no" 5237 5238 if test $found = "no" ; then 5239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5241 fi 5242 5243 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5245 fi 5246 5247 CFLAGS="$CFLAGS -Wformat=2" 5248 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5250$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5251 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5252 if eval \${$cacheid+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5256/* end confdefs.h. */ 5257int i; 5258int 5259main () 5260{ 5261 5262 ; 5263 return 0; 5264} 5265_ACEOF 5266if ac_fn_c_try_link "$LINENO"; then : 5267 eval $cacheid=yes 5268else 5269 eval $cacheid=no 5270fi 5271rm -f core conftest.err conftest.$ac_objext \ 5272 conftest$ac_exeext conftest.$ac_ext 5273fi 5274 5275 5276 CFLAGS="$xorg_testset_save_CFLAGS" 5277 5278 eval supported=\$$cacheid 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5280$as_echo "$supported" >&6; } 5281 if test "$supported" = "yes" ; then 5282 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5283 found="yes" 5284 fi 5285 fi 5286 5287 if test $found = "no" ; then 5288 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5290 fi 5291 5292 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5294 fi 5295 5296 CFLAGS="$CFLAGS -Wformat" 5297 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5299$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5300 cacheid=xorg_cv_cc_flag__Wformat 5301 if eval \${$cacheid+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306int i; 5307int 5308main () 5309{ 5310 5311 ; 5312 return 0; 5313} 5314_ACEOF 5315if ac_fn_c_try_link "$LINENO"; then : 5316 eval $cacheid=yes 5317else 5318 eval $cacheid=no 5319fi 5320rm -f core conftest.err conftest.$ac_objext \ 5321 conftest$ac_exeext conftest.$ac_ext 5322fi 5323 5324 5325 CFLAGS="$xorg_testset_save_CFLAGS" 5326 5327 eval supported=\$$cacheid 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5329$as_echo "$supported" >&6; } 5330 if test "$supported" = "yes" ; then 5331 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5332 found="yes" 5333 fi 5334 fi 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352xorg_testset_save_CFLAGS="$CFLAGS" 5353 5354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5357$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5358if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5362/* end confdefs.h. */ 5363int i; 5364_ACEOF 5365if ac_fn_c_try_compile "$LINENO"; then : 5366 xorg_cv_cc_flag_unknown_warning_option=yes 5367else 5368 xorg_cv_cc_flag_unknown_warning_option=no 5369fi 5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5371fi 5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5373$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5375 CFLAGS="$xorg_testset_save_CFLAGS" 5376fi 5377 5378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5381 fi 5382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5384$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5385if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5389/* end confdefs.h. */ 5390int i; 5391_ACEOF 5392if ac_fn_c_try_compile "$LINENO"; then : 5393 xorg_cv_cc_flag_unused_command_line_argument=yes 5394else 5395 xorg_cv_cc_flag_unused_command_line_argument=no 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5398fi 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5400$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5402 CFLAGS="$xorg_testset_save_CFLAGS" 5403fi 5404 5405found="no" 5406 5407 if test $found = "no" ; then 5408 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5410 fi 5411 5412 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5414 fi 5415 5416 CFLAGS="$CFLAGS -Wstrict-prototypes" 5417 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5419$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5420 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5421 if eval \${$cacheid+:} false; then : 5422 $as_echo_n "(cached) " >&6 5423else 5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5425/* end confdefs.h. */ 5426int i; 5427int 5428main () 5429{ 5430 5431 ; 5432 return 0; 5433} 5434_ACEOF 5435if ac_fn_c_try_link "$LINENO"; then : 5436 eval $cacheid=yes 5437else 5438 eval $cacheid=no 5439fi 5440rm -f core conftest.err conftest.$ac_objext \ 5441 conftest$ac_exeext conftest.$ac_ext 5442fi 5443 5444 5445 CFLAGS="$xorg_testset_save_CFLAGS" 5446 5447 eval supported=\$$cacheid 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5449$as_echo "$supported" >&6; } 5450 if test "$supported" = "yes" ; then 5451 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5452 found="yes" 5453 fi 5454 fi 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470xorg_testset_save_CFLAGS="$CFLAGS" 5471 5472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5477 $as_echo_n "(cached) " >&6 5478else 5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5480/* end confdefs.h. */ 5481int i; 5482_ACEOF 5483if ac_fn_c_try_compile "$LINENO"; then : 5484 xorg_cv_cc_flag_unknown_warning_option=yes 5485else 5486 xorg_cv_cc_flag_unknown_warning_option=no 5487fi 5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5489fi 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5493 CFLAGS="$xorg_testset_save_CFLAGS" 5494fi 5495 5496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5499 fi 5500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508int i; 5509_ACEOF 5510if ac_fn_c_try_compile "$LINENO"; then : 5511 xorg_cv_cc_flag_unused_command_line_argument=yes 5512else 5513 xorg_cv_cc_flag_unused_command_line_argument=no 5514fi 5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5516fi 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5520 CFLAGS="$xorg_testset_save_CFLAGS" 5521fi 5522 5523found="no" 5524 5525 if test $found = "no" ; then 5526 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5528 fi 5529 5530 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5532 fi 5533 5534 CFLAGS="$CFLAGS -Wmissing-prototypes" 5535 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5537$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5538 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5539 if eval \${$cacheid+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543/* end confdefs.h. */ 5544int i; 5545int 5546main () 5547{ 5548 5549 ; 5550 return 0; 5551} 5552_ACEOF 5553if ac_fn_c_try_link "$LINENO"; then : 5554 eval $cacheid=yes 5555else 5556 eval $cacheid=no 5557fi 5558rm -f core conftest.err conftest.$ac_objext \ 5559 conftest$ac_exeext conftest.$ac_ext 5560fi 5561 5562 5563 CFLAGS="$xorg_testset_save_CFLAGS" 5564 5565 eval supported=\$$cacheid 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5567$as_echo "$supported" >&6; } 5568 if test "$supported" = "yes" ; then 5569 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5570 found="yes" 5571 fi 5572 fi 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588xorg_testset_save_CFLAGS="$CFLAGS" 5589 5590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5595 $as_echo_n "(cached) " >&6 5596else 5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5598/* end confdefs.h. */ 5599int i; 5600_ACEOF 5601if ac_fn_c_try_compile "$LINENO"; then : 5602 xorg_cv_cc_flag_unknown_warning_option=yes 5603else 5604 xorg_cv_cc_flag_unknown_warning_option=no 5605fi 5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5607fi 5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5611 CFLAGS="$xorg_testset_save_CFLAGS" 5612fi 5613 5614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5617 fi 5618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626int i; 5627_ACEOF 5628if ac_fn_c_try_compile "$LINENO"; then : 5629 xorg_cv_cc_flag_unused_command_line_argument=yes 5630else 5631 xorg_cv_cc_flag_unused_command_line_argument=no 5632fi 5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5634fi 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5638 CFLAGS="$xorg_testset_save_CFLAGS" 5639fi 5640 5641found="no" 5642 5643 if test $found = "no" ; then 5644 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5646 fi 5647 5648 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5650 fi 5651 5652 CFLAGS="$CFLAGS -Wnested-externs" 5653 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5655$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5656 cacheid=xorg_cv_cc_flag__Wnested_externs 5657 if eval \${$cacheid+:} false; then : 5658 $as_echo_n "(cached) " >&6 5659else 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662int i; 5663int 5664main () 5665{ 5666 5667 ; 5668 return 0; 5669} 5670_ACEOF 5671if ac_fn_c_try_link "$LINENO"; then : 5672 eval $cacheid=yes 5673else 5674 eval $cacheid=no 5675fi 5676rm -f core conftest.err conftest.$ac_objext \ 5677 conftest$ac_exeext conftest.$ac_ext 5678fi 5679 5680 5681 CFLAGS="$xorg_testset_save_CFLAGS" 5682 5683 eval supported=\$$cacheid 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5685$as_echo "$supported" >&6; } 5686 if test "$supported" = "yes" ; then 5687 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5688 found="yes" 5689 fi 5690 fi 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706xorg_testset_save_CFLAGS="$CFLAGS" 5707 5708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5716/* end confdefs.h. */ 5717int i; 5718_ACEOF 5719if ac_fn_c_try_compile "$LINENO"; then : 5720 xorg_cv_cc_flag_unknown_warning_option=yes 5721else 5722 xorg_cv_cc_flag_unknown_warning_option=no 5723fi 5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5725fi 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5729 CFLAGS="$xorg_testset_save_CFLAGS" 5730fi 5731 5732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5735 fi 5736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743/* end confdefs.h. */ 5744int i; 5745_ACEOF 5746if ac_fn_c_try_compile "$LINENO"; then : 5747 xorg_cv_cc_flag_unused_command_line_argument=yes 5748else 5749 xorg_cv_cc_flag_unused_command_line_argument=no 5750fi 5751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5752fi 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5756 CFLAGS="$xorg_testset_save_CFLAGS" 5757fi 5758 5759found="no" 5760 5761 if test $found = "no" ; then 5762 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5764 fi 5765 5766 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5768 fi 5769 5770 CFLAGS="$CFLAGS -Wbad-function-cast" 5771 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5773$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5774 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5775 if eval \${$cacheid+:} false; then : 5776 $as_echo_n "(cached) " >&6 5777else 5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5779/* end confdefs.h. */ 5780int i; 5781int 5782main () 5783{ 5784 5785 ; 5786 return 0; 5787} 5788_ACEOF 5789if ac_fn_c_try_link "$LINENO"; then : 5790 eval $cacheid=yes 5791else 5792 eval $cacheid=no 5793fi 5794rm -f core conftest.err conftest.$ac_objext \ 5795 conftest$ac_exeext conftest.$ac_ext 5796fi 5797 5798 5799 CFLAGS="$xorg_testset_save_CFLAGS" 5800 5801 eval supported=\$$cacheid 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5803$as_echo "$supported" >&6; } 5804 if test "$supported" = "yes" ; then 5805 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5806 found="yes" 5807 fi 5808 fi 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824xorg_testset_save_CFLAGS="$CFLAGS" 5825 5826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5829$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5830if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5834/* end confdefs.h. */ 5835int i; 5836_ACEOF 5837if ac_fn_c_try_compile "$LINENO"; then : 5838 xorg_cv_cc_flag_unknown_warning_option=yes 5839else 5840 xorg_cv_cc_flag_unknown_warning_option=no 5841fi 5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5843fi 5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5845$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5847 CFLAGS="$xorg_testset_save_CFLAGS" 5848fi 5849 5850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5853 fi 5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5856$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5857if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5861/* end confdefs.h. */ 5862int i; 5863_ACEOF 5864if ac_fn_c_try_compile "$LINENO"; then : 5865 xorg_cv_cc_flag_unused_command_line_argument=yes 5866else 5867 xorg_cv_cc_flag_unused_command_line_argument=no 5868fi 5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5870fi 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5872$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5874 CFLAGS="$xorg_testset_save_CFLAGS" 5875fi 5876 5877found="no" 5878 5879 if test $found = "no" ; then 5880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5882 fi 5883 5884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5886 fi 5887 5888 CFLAGS="$CFLAGS -Wold-style-definition" 5889 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5891$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5892 cacheid=xorg_cv_cc_flag__Wold_style_definition 5893 if eval \${$cacheid+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5897/* end confdefs.h. */ 5898int i; 5899int 5900main () 5901{ 5902 5903 ; 5904 return 0; 5905} 5906_ACEOF 5907if ac_fn_c_try_link "$LINENO"; then : 5908 eval $cacheid=yes 5909else 5910 eval $cacheid=no 5911fi 5912rm -f core conftest.err conftest.$ac_objext \ 5913 conftest$ac_exeext conftest.$ac_ext 5914fi 5915 5916 5917 CFLAGS="$xorg_testset_save_CFLAGS" 5918 5919 eval supported=\$$cacheid 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5921$as_echo "$supported" >&6; } 5922 if test "$supported" = "yes" ; then 5923 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5924 found="yes" 5925 fi 5926 fi 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942xorg_testset_save_CFLAGS="$CFLAGS" 5943 5944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952/* end confdefs.h. */ 5953int i; 5954_ACEOF 5955if ac_fn_c_try_compile "$LINENO"; then : 5956 xorg_cv_cc_flag_unknown_warning_option=yes 5957else 5958 xorg_cv_cc_flag_unknown_warning_option=no 5959fi 5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5961fi 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5965 CFLAGS="$xorg_testset_save_CFLAGS" 5966fi 5967 5968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5971 fi 5972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5976 $as_echo_n "(cached) " >&6 5977else 5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5979/* end confdefs.h. */ 5980int i; 5981_ACEOF 5982if ac_fn_c_try_compile "$LINENO"; then : 5983 xorg_cv_cc_flag_unused_command_line_argument=yes 5984else 5985 xorg_cv_cc_flag_unused_command_line_argument=no 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5988fi 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5992 CFLAGS="$xorg_testset_save_CFLAGS" 5993fi 5994 5995found="no" 5996 5997 if test $found = "no" ; then 5998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 fi 6001 6002 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6004 fi 6005 6006 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6007 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6009$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6010 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6011 if eval \${$cacheid+:} false; then : 6012 $as_echo_n "(cached) " >&6 6013else 6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015/* end confdefs.h. */ 6016int i; 6017int 6018main () 6019{ 6020 6021 ; 6022 return 0; 6023} 6024_ACEOF 6025if ac_fn_c_try_link "$LINENO"; then : 6026 eval $cacheid=yes 6027else 6028 eval $cacheid=no 6029fi 6030rm -f core conftest.err conftest.$ac_objext \ 6031 conftest$ac_exeext conftest.$ac_ext 6032fi 6033 6034 6035 CFLAGS="$xorg_testset_save_CFLAGS" 6036 6037 eval supported=\$$cacheid 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6039$as_echo "$supported" >&6; } 6040 if test "$supported" = "yes" ; then 6041 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6042 found="yes" 6043 fi 6044 fi 6045 6046 6047 6048 6049 6050# This chunk adds additional warnings that could catch undesired effects. 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064xorg_testset_save_CFLAGS="$CFLAGS" 6065 6066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6071 $as_echo_n "(cached) " >&6 6072else 6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6074/* end confdefs.h. */ 6075int i; 6076_ACEOF 6077if ac_fn_c_try_compile "$LINENO"; then : 6078 xorg_cv_cc_flag_unknown_warning_option=yes 6079else 6080 xorg_cv_cc_flag_unknown_warning_option=no 6081fi 6082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6083fi 6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6087 CFLAGS="$xorg_testset_save_CFLAGS" 6088fi 6089 6090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6093 fi 6094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6101/* end confdefs.h. */ 6102int i; 6103_ACEOF 6104if ac_fn_c_try_compile "$LINENO"; then : 6105 xorg_cv_cc_flag_unused_command_line_argument=yes 6106else 6107 xorg_cv_cc_flag_unused_command_line_argument=no 6108fi 6109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6110fi 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6114 CFLAGS="$xorg_testset_save_CFLAGS" 6115fi 6116 6117found="no" 6118 6119 if test $found = "no" ; then 6120 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6122 fi 6123 6124 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6126 fi 6127 6128 CFLAGS="$CFLAGS -Wunused" 6129 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6131$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6132 cacheid=xorg_cv_cc_flag__Wunused 6133 if eval \${$cacheid+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6137/* end confdefs.h. */ 6138int i; 6139int 6140main () 6141{ 6142 6143 ; 6144 return 0; 6145} 6146_ACEOF 6147if ac_fn_c_try_link "$LINENO"; then : 6148 eval $cacheid=yes 6149else 6150 eval $cacheid=no 6151fi 6152rm -f core conftest.err conftest.$ac_objext \ 6153 conftest$ac_exeext conftest.$ac_ext 6154fi 6155 6156 6157 CFLAGS="$xorg_testset_save_CFLAGS" 6158 6159 eval supported=\$$cacheid 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6161$as_echo "$supported" >&6; } 6162 if test "$supported" = "yes" ; then 6163 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6164 found="yes" 6165 fi 6166 fi 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182xorg_testset_save_CFLAGS="$CFLAGS" 6183 6184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190else 6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6192/* end confdefs.h. */ 6193int i; 6194_ACEOF 6195if ac_fn_c_try_compile "$LINENO"; then : 6196 xorg_cv_cc_flag_unknown_warning_option=yes 6197else 6198 xorg_cv_cc_flag_unknown_warning_option=no 6199fi 6200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6201fi 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6203$as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6219/* end confdefs.h. */ 6220int i; 6221_ACEOF 6222if ac_fn_c_try_compile "$LINENO"; then : 6223 xorg_cv_cc_flag_unused_command_line_argument=yes 6224else 6225 xorg_cv_cc_flag_unused_command_line_argument=no 6226fi 6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6228fi 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6232 CFLAGS="$xorg_testset_save_CFLAGS" 6233fi 6234 6235found="no" 6236 6237 if test $found = "no" ; then 6238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6240 fi 6241 6242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6244 fi 6245 6246 CFLAGS="$CFLAGS -Wuninitialized" 6247 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6249$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6250 cacheid=xorg_cv_cc_flag__Wuninitialized 6251 if eval \${$cacheid+:} false; then : 6252 $as_echo_n "(cached) " >&6 6253else 6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6255/* end confdefs.h. */ 6256int i; 6257int 6258main () 6259{ 6260 6261 ; 6262 return 0; 6263} 6264_ACEOF 6265if ac_fn_c_try_link "$LINENO"; then : 6266 eval $cacheid=yes 6267else 6268 eval $cacheid=no 6269fi 6270rm -f core conftest.err conftest.$ac_objext \ 6271 conftest$ac_exeext conftest.$ac_ext 6272fi 6273 6274 6275 CFLAGS="$xorg_testset_save_CFLAGS" 6276 6277 eval supported=\$$cacheid 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6279$as_echo "$supported" >&6; } 6280 if test "$supported" = "yes" ; then 6281 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6282 found="yes" 6283 fi 6284 fi 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300xorg_testset_save_CFLAGS="$CFLAGS" 6301 6302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6310/* end confdefs.h. */ 6311int i; 6312_ACEOF 6313if ac_fn_c_try_compile "$LINENO"; then : 6314 xorg_cv_cc_flag_unknown_warning_option=yes 6315else 6316 xorg_cv_cc_flag_unknown_warning_option=no 6317fi 6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6319fi 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6323 CFLAGS="$xorg_testset_save_CFLAGS" 6324fi 6325 6326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6329 fi 6330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6337/* end confdefs.h. */ 6338int i; 6339_ACEOF 6340if ac_fn_c_try_compile "$LINENO"; then : 6341 xorg_cv_cc_flag_unused_command_line_argument=yes 6342else 6343 xorg_cv_cc_flag_unused_command_line_argument=no 6344fi 6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6346fi 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6350 CFLAGS="$xorg_testset_save_CFLAGS" 6351fi 6352 6353found="no" 6354 6355 if test $found = "no" ; then 6356 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6358 fi 6359 6360 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6362 fi 6363 6364 CFLAGS="$CFLAGS -Wshadow" 6365 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6367$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6368 cacheid=xorg_cv_cc_flag__Wshadow 6369 if eval \${$cacheid+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374int i; 6375int 6376main () 6377{ 6378 6379 ; 6380 return 0; 6381} 6382_ACEOF 6383if ac_fn_c_try_link "$LINENO"; then : 6384 eval $cacheid=yes 6385else 6386 eval $cacheid=no 6387fi 6388rm -f core conftest.err conftest.$ac_objext \ 6389 conftest$ac_exeext conftest.$ac_ext 6390fi 6391 6392 6393 CFLAGS="$xorg_testset_save_CFLAGS" 6394 6395 eval supported=\$$cacheid 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6397$as_echo "$supported" >&6; } 6398 if test "$supported" = "yes" ; then 6399 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6400 found="yes" 6401 fi 6402 fi 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418xorg_testset_save_CFLAGS="$CFLAGS" 6419 6420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6425 $as_echo_n "(cached) " >&6 6426else 6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6428/* end confdefs.h. */ 6429int i; 6430_ACEOF 6431if ac_fn_c_try_compile "$LINENO"; then : 6432 xorg_cv_cc_flag_unknown_warning_option=yes 6433else 6434 xorg_cv_cc_flag_unknown_warning_option=no 6435fi 6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6437fi 6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6441 CFLAGS="$xorg_testset_save_CFLAGS" 6442fi 6443 6444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6447 fi 6448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6452 $as_echo_n "(cached) " >&6 6453else 6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6455/* end confdefs.h. */ 6456int i; 6457_ACEOF 6458if ac_fn_c_try_compile "$LINENO"; then : 6459 xorg_cv_cc_flag_unused_command_line_argument=yes 6460else 6461 xorg_cv_cc_flag_unused_command_line_argument=no 6462fi 6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6464fi 6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6468 CFLAGS="$xorg_testset_save_CFLAGS" 6469fi 6470 6471found="no" 6472 6473 if test $found = "no" ; then 6474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6476 fi 6477 6478 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6480 fi 6481 6482 CFLAGS="$CFLAGS -Wcast-qual" 6483 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6485$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6486 cacheid=xorg_cv_cc_flag__Wcast_qual 6487 if eval \${$cacheid+:} false; then : 6488 $as_echo_n "(cached) " >&6 6489else 6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6491/* end confdefs.h. */ 6492int i; 6493int 6494main () 6495{ 6496 6497 ; 6498 return 0; 6499} 6500_ACEOF 6501if ac_fn_c_try_link "$LINENO"; then : 6502 eval $cacheid=yes 6503else 6504 eval $cacheid=no 6505fi 6506rm -f core conftest.err conftest.$ac_objext \ 6507 conftest$ac_exeext conftest.$ac_ext 6508fi 6509 6510 6511 CFLAGS="$xorg_testset_save_CFLAGS" 6512 6513 eval supported=\$$cacheid 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6515$as_echo "$supported" >&6; } 6516 if test "$supported" = "yes" ; then 6517 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6518 found="yes" 6519 fi 6520 fi 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536xorg_testset_save_CFLAGS="$CFLAGS" 6537 6538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6543 $as_echo_n "(cached) " >&6 6544else 6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6546/* end confdefs.h. */ 6547int i; 6548_ACEOF 6549if ac_fn_c_try_compile "$LINENO"; then : 6550 xorg_cv_cc_flag_unknown_warning_option=yes 6551else 6552 xorg_cv_cc_flag_unknown_warning_option=no 6553fi 6554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6555fi 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6559 CFLAGS="$xorg_testset_save_CFLAGS" 6560fi 6561 6562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6565 fi 6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6570 $as_echo_n "(cached) " >&6 6571else 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574int i; 6575_ACEOF 6576if ac_fn_c_try_compile "$LINENO"; then : 6577 xorg_cv_cc_flag_unused_command_line_argument=yes 6578else 6579 xorg_cv_cc_flag_unused_command_line_argument=no 6580fi 6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6582fi 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6586 CFLAGS="$xorg_testset_save_CFLAGS" 6587fi 6588 6589found="no" 6590 6591 if test $found = "no" ; then 6592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6594 fi 6595 6596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6598 fi 6599 6600 CFLAGS="$CFLAGS -Wmissing-noreturn" 6601 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6603$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6604 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6605 if eval \${$cacheid+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6609/* end confdefs.h. */ 6610int i; 6611int 6612main () 6613{ 6614 6615 ; 6616 return 0; 6617} 6618_ACEOF 6619if ac_fn_c_try_link "$LINENO"; then : 6620 eval $cacheid=yes 6621else 6622 eval $cacheid=no 6623fi 6624rm -f core conftest.err conftest.$ac_objext \ 6625 conftest$ac_exeext conftest.$ac_ext 6626fi 6627 6628 6629 CFLAGS="$xorg_testset_save_CFLAGS" 6630 6631 eval supported=\$$cacheid 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6633$as_echo "$supported" >&6; } 6634 if test "$supported" = "yes" ; then 6635 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6636 found="yes" 6637 fi 6638 fi 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654xorg_testset_save_CFLAGS="$CFLAGS" 6655 6656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6664/* end confdefs.h. */ 6665int i; 6666_ACEOF 6667if ac_fn_c_try_compile "$LINENO"; then : 6668 xorg_cv_cc_flag_unknown_warning_option=yes 6669else 6670 xorg_cv_cc_flag_unknown_warning_option=no 6671fi 6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6673fi 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6677 CFLAGS="$xorg_testset_save_CFLAGS" 6678fi 6679 6680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6683 fi 6684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689else 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691/* end confdefs.h. */ 6692int i; 6693_ACEOF 6694if ac_fn_c_try_compile "$LINENO"; then : 6695 xorg_cv_cc_flag_unused_command_line_argument=yes 6696else 6697 xorg_cv_cc_flag_unused_command_line_argument=no 6698fi 6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6700fi 6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6704 CFLAGS="$xorg_testset_save_CFLAGS" 6705fi 6706 6707found="no" 6708 6709 if test $found = "no" ; then 6710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6712 fi 6713 6714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6716 fi 6717 6718 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6719 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6721$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6722 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6723 if eval \${$cacheid+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725else 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6727/* end confdefs.h. */ 6728int i; 6729int 6730main () 6731{ 6732 6733 ; 6734 return 0; 6735} 6736_ACEOF 6737if ac_fn_c_try_link "$LINENO"; then : 6738 eval $cacheid=yes 6739else 6740 eval $cacheid=no 6741fi 6742rm -f core conftest.err conftest.$ac_objext \ 6743 conftest$ac_exeext conftest.$ac_ext 6744fi 6745 6746 6747 CFLAGS="$xorg_testset_save_CFLAGS" 6748 6749 eval supported=\$$cacheid 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6751$as_echo "$supported" >&6; } 6752 if test "$supported" = "yes" ; then 6753 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6754 found="yes" 6755 fi 6756 fi 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772xorg_testset_save_CFLAGS="$CFLAGS" 6773 6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6782/* end confdefs.h. */ 6783int i; 6784_ACEOF 6785if ac_fn_c_try_compile "$LINENO"; then : 6786 xorg_cv_cc_flag_unknown_warning_option=yes 6787else 6788 xorg_cv_cc_flag_unknown_warning_option=no 6789fi 6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6791fi 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6795 CFLAGS="$xorg_testset_save_CFLAGS" 6796fi 6797 6798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6801 fi 6802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6806 $as_echo_n "(cached) " >&6 6807else 6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6809/* end confdefs.h. */ 6810int i; 6811_ACEOF 6812if ac_fn_c_try_compile "$LINENO"; then : 6813 xorg_cv_cc_flag_unused_command_line_argument=yes 6814else 6815 xorg_cv_cc_flag_unused_command_line_argument=no 6816fi 6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6818fi 6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6822 CFLAGS="$xorg_testset_save_CFLAGS" 6823fi 6824 6825found="no" 6826 6827 if test $found = "no" ; then 6828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6830 fi 6831 6832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6834 fi 6835 6836 CFLAGS="$CFLAGS -Wredundant-decls" 6837 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6839$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6840 cacheid=xorg_cv_cc_flag__Wredundant_decls 6841 if eval \${$cacheid+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6845/* end confdefs.h. */ 6846int i; 6847int 6848main () 6849{ 6850 6851 ; 6852 return 0; 6853} 6854_ACEOF 6855if ac_fn_c_try_link "$LINENO"; then : 6856 eval $cacheid=yes 6857else 6858 eval $cacheid=no 6859fi 6860rm -f core conftest.err conftest.$ac_objext \ 6861 conftest$ac_exeext conftest.$ac_ext 6862fi 6863 6864 6865 CFLAGS="$xorg_testset_save_CFLAGS" 6866 6867 eval supported=\$$cacheid 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6869$as_echo "$supported" >&6; } 6870 if test "$supported" = "yes" ; then 6871 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6872 found="yes" 6873 fi 6874 fi 6875 6876 6877 6878# These are currently disabled because they are noisy. They will be enabled 6879# in the future once the codebase is sufficiently modernized to silence 6880# them. For now, I don't want them to drown out the other warnings. 6881# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6882# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6883# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6884 6885# Turn some warnings into errors, so we don't accidently get successful builds 6886# when there are problems that should be fixed. 6887 6888if test "x$SELECTIVE_WERROR" = "xyes" ; then 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902xorg_testset_save_CFLAGS="$CFLAGS" 6903 6904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6912/* end confdefs.h. */ 6913int i; 6914_ACEOF 6915if ac_fn_c_try_compile "$LINENO"; then : 6916 xorg_cv_cc_flag_unknown_warning_option=yes 6917else 6918 xorg_cv_cc_flag_unknown_warning_option=no 6919fi 6920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6921fi 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6925 CFLAGS="$xorg_testset_save_CFLAGS" 6926fi 6927 6928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6931 fi 6932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6936 $as_echo_n "(cached) " >&6 6937else 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939/* end confdefs.h. */ 6940int i; 6941_ACEOF 6942if ac_fn_c_try_compile "$LINENO"; then : 6943 xorg_cv_cc_flag_unused_command_line_argument=yes 6944else 6945 xorg_cv_cc_flag_unused_command_line_argument=no 6946fi 6947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6948fi 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6952 CFLAGS="$xorg_testset_save_CFLAGS" 6953fi 6954 6955found="no" 6956 6957 if test $found = "no" ; then 6958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6960 fi 6961 6962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6964 fi 6965 6966 CFLAGS="$CFLAGS -Werror=implicit" 6967 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6969$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6970 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6971 if eval \${$cacheid+:} false; then : 6972 $as_echo_n "(cached) " >&6 6973else 6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6975/* end confdefs.h. */ 6976int i; 6977int 6978main () 6979{ 6980 6981 ; 6982 return 0; 6983} 6984_ACEOF 6985if ac_fn_c_try_link "$LINENO"; then : 6986 eval $cacheid=yes 6987else 6988 eval $cacheid=no 6989fi 6990rm -f core conftest.err conftest.$ac_objext \ 6991 conftest$ac_exeext conftest.$ac_ext 6992fi 6993 6994 6995 CFLAGS="$xorg_testset_save_CFLAGS" 6996 6997 eval supported=\$$cacheid 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6999$as_echo "$supported" >&6; } 7000 if test "$supported" = "yes" ; then 7001 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7002 found="yes" 7003 fi 7004 fi 7005 7006 if test $found = "no" ; then 7007 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7009 fi 7010 7011 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7013 fi 7014 7015 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7016 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7018$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7019 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 7020 if eval \${$cacheid+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024/* end confdefs.h. */ 7025int i; 7026int 7027main () 7028{ 7029 7030 ; 7031 return 0; 7032} 7033_ACEOF 7034if ac_fn_c_try_link "$LINENO"; then : 7035 eval $cacheid=yes 7036else 7037 eval $cacheid=no 7038fi 7039rm -f core conftest.err conftest.$ac_objext \ 7040 conftest$ac_exeext conftest.$ac_ext 7041fi 7042 7043 7044 CFLAGS="$xorg_testset_save_CFLAGS" 7045 7046 eval supported=\$$cacheid 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7048$as_echo "$supported" >&6; } 7049 if test "$supported" = "yes" ; then 7050 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7051 found="yes" 7052 fi 7053 fi 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069xorg_testset_save_CFLAGS="$CFLAGS" 7070 7071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7079/* end confdefs.h. */ 7080int i; 7081_ACEOF 7082if ac_fn_c_try_compile "$LINENO"; then : 7083 xorg_cv_cc_flag_unknown_warning_option=yes 7084else 7085 xorg_cv_cc_flag_unknown_warning_option=no 7086fi 7087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7088fi 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7092 CFLAGS="$xorg_testset_save_CFLAGS" 7093fi 7094 7095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 fi 7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107int i; 7108_ACEOF 7109if ac_fn_c_try_compile "$LINENO"; then : 7110 xorg_cv_cc_flag_unused_command_line_argument=yes 7111else 7112 xorg_cv_cc_flag_unused_command_line_argument=no 7113fi 7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7115fi 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7119 CFLAGS="$xorg_testset_save_CFLAGS" 7120fi 7121 7122found="no" 7123 7124 if test $found = "no" ; then 7125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7127 fi 7128 7129 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7131 fi 7132 7133 CFLAGS="$CFLAGS -Werror=nonnull" 7134 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7136$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7137 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7138 if eval \${$cacheid+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143int i; 7144int 7145main () 7146{ 7147 7148 ; 7149 return 0; 7150} 7151_ACEOF 7152if ac_fn_c_try_link "$LINENO"; then : 7153 eval $cacheid=yes 7154else 7155 eval $cacheid=no 7156fi 7157rm -f core conftest.err conftest.$ac_objext \ 7158 conftest$ac_exeext conftest.$ac_ext 7159fi 7160 7161 7162 CFLAGS="$xorg_testset_save_CFLAGS" 7163 7164 eval supported=\$$cacheid 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7166$as_echo "$supported" >&6; } 7167 if test "$supported" = "yes" ; then 7168 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7169 found="yes" 7170 fi 7171 fi 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187xorg_testset_save_CFLAGS="$CFLAGS" 7188 7189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7197/* end confdefs.h. */ 7198int i; 7199_ACEOF 7200if ac_fn_c_try_compile "$LINENO"; then : 7201 xorg_cv_cc_flag_unknown_warning_option=yes 7202else 7203 xorg_cv_cc_flag_unknown_warning_option=no 7204fi 7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7206fi 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7210 CFLAGS="$xorg_testset_save_CFLAGS" 7211fi 7212 7213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7216 fi 7217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7221 $as_echo_n "(cached) " >&6 7222else 7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7224/* end confdefs.h. */ 7225int i; 7226_ACEOF 7227if ac_fn_c_try_compile "$LINENO"; then : 7228 xorg_cv_cc_flag_unused_command_line_argument=yes 7229else 7230 xorg_cv_cc_flag_unused_command_line_argument=no 7231fi 7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7233fi 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7237 CFLAGS="$xorg_testset_save_CFLAGS" 7238fi 7239 7240found="no" 7241 7242 if test $found = "no" ; then 7243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7245 fi 7246 7247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7249 fi 7250 7251 CFLAGS="$CFLAGS -Werror=init-self" 7252 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7254$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7255 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7256 if eval \${$cacheid+:} false; then : 7257 $as_echo_n "(cached) " >&6 7258else 7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260/* end confdefs.h. */ 7261int i; 7262int 7263main () 7264{ 7265 7266 ; 7267 return 0; 7268} 7269_ACEOF 7270if ac_fn_c_try_link "$LINENO"; then : 7271 eval $cacheid=yes 7272else 7273 eval $cacheid=no 7274fi 7275rm -f core conftest.err conftest.$ac_objext \ 7276 conftest$ac_exeext conftest.$ac_ext 7277fi 7278 7279 7280 CFLAGS="$xorg_testset_save_CFLAGS" 7281 7282 eval supported=\$$cacheid 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7284$as_echo "$supported" >&6; } 7285 if test "$supported" = "yes" ; then 7286 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7287 found="yes" 7288 fi 7289 fi 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305xorg_testset_save_CFLAGS="$CFLAGS" 7306 7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313else 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315/* end confdefs.h. */ 7316int i; 7317_ACEOF 7318if ac_fn_c_try_compile "$LINENO"; then : 7319 xorg_cv_cc_flag_unknown_warning_option=yes 7320else 7321 xorg_cv_cc_flag_unknown_warning_option=no 7322fi 7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7324fi 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7328 CFLAGS="$xorg_testset_save_CFLAGS" 7329fi 7330 7331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7334 fi 7335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7339 $as_echo_n "(cached) " >&6 7340else 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342/* end confdefs.h. */ 7343int i; 7344_ACEOF 7345if ac_fn_c_try_compile "$LINENO"; then : 7346 xorg_cv_cc_flag_unused_command_line_argument=yes 7347else 7348 xorg_cv_cc_flag_unused_command_line_argument=no 7349fi 7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7351fi 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7355 CFLAGS="$xorg_testset_save_CFLAGS" 7356fi 7357 7358found="no" 7359 7360 if test $found = "no" ; then 7361 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7363 fi 7364 7365 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7367 fi 7368 7369 CFLAGS="$CFLAGS -Werror=main" 7370 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7372$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7373 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7374 if eval \${$cacheid+:} false; then : 7375 $as_echo_n "(cached) " >&6 7376else 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379int i; 7380int 7381main () 7382{ 7383 7384 ; 7385 return 0; 7386} 7387_ACEOF 7388if ac_fn_c_try_link "$LINENO"; then : 7389 eval $cacheid=yes 7390else 7391 eval $cacheid=no 7392fi 7393rm -f core conftest.err conftest.$ac_objext \ 7394 conftest$ac_exeext conftest.$ac_ext 7395fi 7396 7397 7398 CFLAGS="$xorg_testset_save_CFLAGS" 7399 7400 eval supported=\$$cacheid 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7402$as_echo "$supported" >&6; } 7403 if test "$supported" = "yes" ; then 7404 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7405 found="yes" 7406 fi 7407 fi 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423xorg_testset_save_CFLAGS="$CFLAGS" 7424 7425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7433/* end confdefs.h. */ 7434int i; 7435_ACEOF 7436if ac_fn_c_try_compile "$LINENO"; then : 7437 xorg_cv_cc_flag_unknown_warning_option=yes 7438else 7439 xorg_cv_cc_flag_unknown_warning_option=no 7440fi 7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7442fi 7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7446 CFLAGS="$xorg_testset_save_CFLAGS" 7447fi 7448 7449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7452 fi 7453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7457 $as_echo_n "(cached) " >&6 7458else 7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7460/* end confdefs.h. */ 7461int i; 7462_ACEOF 7463if ac_fn_c_try_compile "$LINENO"; then : 7464 xorg_cv_cc_flag_unused_command_line_argument=yes 7465else 7466 xorg_cv_cc_flag_unused_command_line_argument=no 7467fi 7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7469fi 7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7473 CFLAGS="$xorg_testset_save_CFLAGS" 7474fi 7475 7476found="no" 7477 7478 if test $found = "no" ; then 7479 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7481 fi 7482 7483 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7485 fi 7486 7487 CFLAGS="$CFLAGS -Werror=missing-braces" 7488 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7490$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7491 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7492 if eval \${$cacheid+:} false; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7496/* end confdefs.h. */ 7497int i; 7498int 7499main () 7500{ 7501 7502 ; 7503 return 0; 7504} 7505_ACEOF 7506if ac_fn_c_try_link "$LINENO"; then : 7507 eval $cacheid=yes 7508else 7509 eval $cacheid=no 7510fi 7511rm -f core conftest.err conftest.$ac_objext \ 7512 conftest$ac_exeext conftest.$ac_ext 7513fi 7514 7515 7516 CFLAGS="$xorg_testset_save_CFLAGS" 7517 7518 eval supported=\$$cacheid 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7520$as_echo "$supported" >&6; } 7521 if test "$supported" = "yes" ; then 7522 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7523 found="yes" 7524 fi 7525 fi 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541xorg_testset_save_CFLAGS="$CFLAGS" 7542 7543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549else 7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551/* end confdefs.h. */ 7552int i; 7553_ACEOF 7554if ac_fn_c_try_compile "$LINENO"; then : 7555 xorg_cv_cc_flag_unknown_warning_option=yes 7556else 7557 xorg_cv_cc_flag_unknown_warning_option=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7560fi 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565fi 7566 7567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7570 fi 7571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7575 $as_echo_n "(cached) " >&6 7576else 7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579int i; 7580_ACEOF 7581if ac_fn_c_try_compile "$LINENO"; then : 7582 xorg_cv_cc_flag_unused_command_line_argument=yes 7583else 7584 xorg_cv_cc_flag_unused_command_line_argument=no 7585fi 7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7587fi 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7591 CFLAGS="$xorg_testset_save_CFLAGS" 7592fi 7593 7594found="no" 7595 7596 if test $found = "no" ; then 7597 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7599 fi 7600 7601 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7603 fi 7604 7605 CFLAGS="$CFLAGS -Werror=sequence-point" 7606 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7608$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7609 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7610 if eval \${$cacheid+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615int i; 7616int 7617main () 7618{ 7619 7620 ; 7621 return 0; 7622} 7623_ACEOF 7624if ac_fn_c_try_link "$LINENO"; then : 7625 eval $cacheid=yes 7626else 7627 eval $cacheid=no 7628fi 7629rm -f core conftest.err conftest.$ac_objext \ 7630 conftest$ac_exeext conftest.$ac_ext 7631fi 7632 7633 7634 CFLAGS="$xorg_testset_save_CFLAGS" 7635 7636 eval supported=\$$cacheid 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7638$as_echo "$supported" >&6; } 7639 if test "$supported" = "yes" ; then 7640 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7641 found="yes" 7642 fi 7643 fi 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659xorg_testset_save_CFLAGS="$CFLAGS" 7660 7661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7666 $as_echo_n "(cached) " >&6 7667else 7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670int i; 7671_ACEOF 7672if ac_fn_c_try_compile "$LINENO"; then : 7673 xorg_cv_cc_flag_unknown_warning_option=yes 7674else 7675 xorg_cv_cc_flag_unknown_warning_option=no 7676fi 7677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7678fi 7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7682 CFLAGS="$xorg_testset_save_CFLAGS" 7683fi 7684 7685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7688 fi 7689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697int i; 7698_ACEOF 7699if ac_fn_c_try_compile "$LINENO"; then : 7700 xorg_cv_cc_flag_unused_command_line_argument=yes 7701else 7702 xorg_cv_cc_flag_unused_command_line_argument=no 7703fi 7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7705fi 7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7709 CFLAGS="$xorg_testset_save_CFLAGS" 7710fi 7711 7712found="no" 7713 7714 if test $found = "no" ; then 7715 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7717 fi 7718 7719 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7721 fi 7722 7723 CFLAGS="$CFLAGS -Werror=return-type" 7724 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7726$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7727 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7728 if eval \${$cacheid+:} false; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733int i; 7734int 7735main () 7736{ 7737 7738 ; 7739 return 0; 7740} 7741_ACEOF 7742if ac_fn_c_try_link "$LINENO"; then : 7743 eval $cacheid=yes 7744else 7745 eval $cacheid=no 7746fi 7747rm -f core conftest.err conftest.$ac_objext \ 7748 conftest$ac_exeext conftest.$ac_ext 7749fi 7750 7751 7752 CFLAGS="$xorg_testset_save_CFLAGS" 7753 7754 eval supported=\$$cacheid 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7756$as_echo "$supported" >&6; } 7757 if test "$supported" = "yes" ; then 7758 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7759 found="yes" 7760 fi 7761 fi 7762 7763 if test $found = "no" ; then 7764 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7766 fi 7767 7768 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7770 fi 7771 7772 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7773 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7775$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7776 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7777 if eval \${$cacheid+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782int i; 7783int 7784main () 7785{ 7786 7787 ; 7788 return 0; 7789} 7790_ACEOF 7791if ac_fn_c_try_link "$LINENO"; then : 7792 eval $cacheid=yes 7793else 7794 eval $cacheid=no 7795fi 7796rm -f core conftest.err conftest.$ac_objext \ 7797 conftest$ac_exeext conftest.$ac_ext 7798fi 7799 7800 7801 CFLAGS="$xorg_testset_save_CFLAGS" 7802 7803 eval supported=\$$cacheid 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7805$as_echo "$supported" >&6; } 7806 if test "$supported" = "yes" ; then 7807 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7808 found="yes" 7809 fi 7810 fi 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826xorg_testset_save_CFLAGS="$CFLAGS" 7827 7828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7831$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7832if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7833 $as_echo_n "(cached) " >&6 7834else 7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7836/* end confdefs.h. */ 7837int i; 7838_ACEOF 7839if ac_fn_c_try_compile "$LINENO"; then : 7840 xorg_cv_cc_flag_unknown_warning_option=yes 7841else 7842 xorg_cv_cc_flag_unknown_warning_option=no 7843fi 7844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7845fi 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7847$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7849 CFLAGS="$xorg_testset_save_CFLAGS" 7850fi 7851 7852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 fi 7856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7858$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7859if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7860 $as_echo_n "(cached) " >&6 7861else 7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7863/* end confdefs.h. */ 7864int i; 7865_ACEOF 7866if ac_fn_c_try_compile "$LINENO"; then : 7867 xorg_cv_cc_flag_unused_command_line_argument=yes 7868else 7869 xorg_cv_cc_flag_unused_command_line_argument=no 7870fi 7871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7872fi 7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7874$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7876 CFLAGS="$xorg_testset_save_CFLAGS" 7877fi 7878 7879found="no" 7880 7881 if test $found = "no" ; then 7882 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7884 fi 7885 7886 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7888 fi 7889 7890 CFLAGS="$CFLAGS -Werror=trigraphs" 7891 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7893$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7894 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7895 if eval \${$cacheid+:} false; then : 7896 $as_echo_n "(cached) " >&6 7897else 7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7899/* end confdefs.h. */ 7900int i; 7901int 7902main () 7903{ 7904 7905 ; 7906 return 0; 7907} 7908_ACEOF 7909if ac_fn_c_try_link "$LINENO"; then : 7910 eval $cacheid=yes 7911else 7912 eval $cacheid=no 7913fi 7914rm -f core conftest.err conftest.$ac_objext \ 7915 conftest$ac_exeext conftest.$ac_ext 7916fi 7917 7918 7919 CFLAGS="$xorg_testset_save_CFLAGS" 7920 7921 eval supported=\$$cacheid 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7923$as_echo "$supported" >&6; } 7924 if test "$supported" = "yes" ; then 7925 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7926 found="yes" 7927 fi 7928 fi 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944xorg_testset_save_CFLAGS="$CFLAGS" 7945 7946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7951 $as_echo_n "(cached) " >&6 7952else 7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7954/* end confdefs.h. */ 7955int i; 7956_ACEOF 7957if ac_fn_c_try_compile "$LINENO"; then : 7958 xorg_cv_cc_flag_unknown_warning_option=yes 7959else 7960 xorg_cv_cc_flag_unknown_warning_option=no 7961fi 7962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7963fi 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7967 CFLAGS="$xorg_testset_save_CFLAGS" 7968fi 7969 7970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7973 fi 7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7978 $as_echo_n "(cached) " >&6 7979else 7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7981/* end confdefs.h. */ 7982int i; 7983_ACEOF 7984if ac_fn_c_try_compile "$LINENO"; then : 7985 xorg_cv_cc_flag_unused_command_line_argument=yes 7986else 7987 xorg_cv_cc_flag_unused_command_line_argument=no 7988fi 7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7990fi 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7994 CFLAGS="$xorg_testset_save_CFLAGS" 7995fi 7996 7997found="no" 7998 7999 if test $found = "no" ; then 8000 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8002 fi 8003 8004 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8006 fi 8007 8008 CFLAGS="$CFLAGS -Werror=array-bounds" 8009 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8011$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8012 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 8013 if eval \${$cacheid+:} false; then : 8014 $as_echo_n "(cached) " >&6 8015else 8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017/* end confdefs.h. */ 8018int i; 8019int 8020main () 8021{ 8022 8023 ; 8024 return 0; 8025} 8026_ACEOF 8027if ac_fn_c_try_link "$LINENO"; then : 8028 eval $cacheid=yes 8029else 8030 eval $cacheid=no 8031fi 8032rm -f core conftest.err conftest.$ac_objext \ 8033 conftest$ac_exeext conftest.$ac_ext 8034fi 8035 8036 8037 CFLAGS="$xorg_testset_save_CFLAGS" 8038 8039 eval supported=\$$cacheid 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8041$as_echo "$supported" >&6; } 8042 if test "$supported" = "yes" ; then 8043 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8044 found="yes" 8045 fi 8046 fi 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062xorg_testset_save_CFLAGS="$CFLAGS" 8063 8064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8069 $as_echo_n "(cached) " >&6 8070else 8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8072/* end confdefs.h. */ 8073int i; 8074_ACEOF 8075if ac_fn_c_try_compile "$LINENO"; then : 8076 xorg_cv_cc_flag_unknown_warning_option=yes 8077else 8078 xorg_cv_cc_flag_unknown_warning_option=no 8079fi 8080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8081fi 8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086fi 8087 8088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8091 fi 8092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8096 $as_echo_n "(cached) " >&6 8097else 8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8099/* end confdefs.h. */ 8100int i; 8101_ACEOF 8102if ac_fn_c_try_compile "$LINENO"; then : 8103 xorg_cv_cc_flag_unused_command_line_argument=yes 8104else 8105 xorg_cv_cc_flag_unused_command_line_argument=no 8106fi 8107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8108fi 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8112 CFLAGS="$xorg_testset_save_CFLAGS" 8113fi 8114 8115found="no" 8116 8117 if test $found = "no" ; then 8118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8120 fi 8121 8122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8124 fi 8125 8126 CFLAGS="$CFLAGS -Werror=write-strings" 8127 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8129$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8130 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8131 if eval \${$cacheid+:} false; then : 8132 $as_echo_n "(cached) " >&6 8133else 8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8135/* end confdefs.h. */ 8136int i; 8137int 8138main () 8139{ 8140 8141 ; 8142 return 0; 8143} 8144_ACEOF 8145if ac_fn_c_try_link "$LINENO"; then : 8146 eval $cacheid=yes 8147else 8148 eval $cacheid=no 8149fi 8150rm -f core conftest.err conftest.$ac_objext \ 8151 conftest$ac_exeext conftest.$ac_ext 8152fi 8153 8154 8155 CFLAGS="$xorg_testset_save_CFLAGS" 8156 8157 eval supported=\$$cacheid 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8159$as_echo "$supported" >&6; } 8160 if test "$supported" = "yes" ; then 8161 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8162 found="yes" 8163 fi 8164 fi 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180xorg_testset_save_CFLAGS="$CFLAGS" 8181 8182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188else 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191int i; 8192_ACEOF 8193if ac_fn_c_try_compile "$LINENO"; then : 8194 xorg_cv_cc_flag_unknown_warning_option=yes 8195else 8196 xorg_cv_cc_flag_unknown_warning_option=no 8197fi 8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8199fi 8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8203 CFLAGS="$xorg_testset_save_CFLAGS" 8204fi 8205 8206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8209 fi 8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8214 $as_echo_n "(cached) " >&6 8215else 8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8217/* end confdefs.h. */ 8218int i; 8219_ACEOF 8220if ac_fn_c_try_compile "$LINENO"; then : 8221 xorg_cv_cc_flag_unused_command_line_argument=yes 8222else 8223 xorg_cv_cc_flag_unused_command_line_argument=no 8224fi 8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8226fi 8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8230 CFLAGS="$xorg_testset_save_CFLAGS" 8231fi 8232 8233found="no" 8234 8235 if test $found = "no" ; then 8236 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8238 fi 8239 8240 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8242 fi 8243 8244 CFLAGS="$CFLAGS -Werror=address" 8245 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8247$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8248 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8249 if eval \${$cacheid+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254int i; 8255int 8256main () 8257{ 8258 8259 ; 8260 return 0; 8261} 8262_ACEOF 8263if ac_fn_c_try_link "$LINENO"; then : 8264 eval $cacheid=yes 8265else 8266 eval $cacheid=no 8267fi 8268rm -f core conftest.err conftest.$ac_objext \ 8269 conftest$ac_exeext conftest.$ac_ext 8270fi 8271 8272 8273 CFLAGS="$xorg_testset_save_CFLAGS" 8274 8275 eval supported=\$$cacheid 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8277$as_echo "$supported" >&6; } 8278 if test "$supported" = "yes" ; then 8279 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8280 found="yes" 8281 fi 8282 fi 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298xorg_testset_save_CFLAGS="$CFLAGS" 8299 8300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308/* end confdefs.h. */ 8309int i; 8310_ACEOF 8311if ac_fn_c_try_compile "$LINENO"; then : 8312 xorg_cv_cc_flag_unknown_warning_option=yes 8313else 8314 xorg_cv_cc_flag_unknown_warning_option=no 8315fi 8316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8317fi 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8321 CFLAGS="$xorg_testset_save_CFLAGS" 8322fi 8323 8324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8327 fi 8328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8335/* end confdefs.h. */ 8336int i; 8337_ACEOF 8338if ac_fn_c_try_compile "$LINENO"; then : 8339 xorg_cv_cc_flag_unused_command_line_argument=yes 8340else 8341 xorg_cv_cc_flag_unused_command_line_argument=no 8342fi 8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8344fi 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8348 CFLAGS="$xorg_testset_save_CFLAGS" 8349fi 8350 8351found="no" 8352 8353 if test $found = "no" ; then 8354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8356 fi 8357 8358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8360 fi 8361 8362 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8363 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8365$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8366 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8367 if eval \${$cacheid+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369else 8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372int i; 8373int 8374main () 8375{ 8376 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381if ac_fn_c_try_link "$LINENO"; then : 8382 eval $cacheid=yes 8383else 8384 eval $cacheid=no 8385fi 8386rm -f core conftest.err conftest.$ac_objext \ 8387 conftest$ac_exeext conftest.$ac_ext 8388fi 8389 8390 8391 CFLAGS="$xorg_testset_save_CFLAGS" 8392 8393 eval supported=\$$cacheid 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8395$as_echo "$supported" >&6; } 8396 if test "$supported" = "yes" ; then 8397 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8398 found="yes" 8399 fi 8400 fi 8401 8402 if test $found = "no" ; then 8403 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8405 fi 8406 8407 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8409 fi 8410 8411 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8412 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8414$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8415 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8416 if eval \${$cacheid+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421int i; 8422int 8423main () 8424{ 8425 8426 ; 8427 return 0; 8428} 8429_ACEOF 8430if ac_fn_c_try_link "$LINENO"; then : 8431 eval $cacheid=yes 8432else 8433 eval $cacheid=no 8434fi 8435rm -f core conftest.err conftest.$ac_objext \ 8436 conftest$ac_exeext conftest.$ac_ext 8437fi 8438 8439 8440 CFLAGS="$xorg_testset_save_CFLAGS" 8441 8442 eval supported=\$$cacheid 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8444$as_echo "$supported" >&6; } 8445 if test "$supported" = "yes" ; then 8446 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8447 found="yes" 8448 fi 8449 fi 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465xorg_testset_save_CFLAGS="$CFLAGS" 8466 8467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8472 $as_echo_n "(cached) " >&6 8473else 8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8475/* end confdefs.h. */ 8476int i; 8477_ACEOF 8478if ac_fn_c_try_compile "$LINENO"; then : 8479 xorg_cv_cc_flag_unknown_warning_option=yes 8480else 8481 xorg_cv_cc_flag_unknown_warning_option=no 8482fi 8483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8484fi 8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8488 CFLAGS="$xorg_testset_save_CFLAGS" 8489fi 8490 8491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8499 $as_echo_n "(cached) " >&6 8500else 8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8502/* end confdefs.h. */ 8503int i; 8504_ACEOF 8505if ac_fn_c_try_compile "$LINENO"; then : 8506 xorg_cv_cc_flag_unused_command_line_argument=yes 8507else 8508 xorg_cv_cc_flag_unused_command_line_argument=no 8509fi 8510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8511fi 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8515 CFLAGS="$xorg_testset_save_CFLAGS" 8516fi 8517 8518found="no" 8519 8520 if test $found = "no" ; then 8521 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8523 fi 8524 8525 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8527 fi 8528 8529 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8530 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8532$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8533 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8534 if eval \${$cacheid+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536else 8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8538/* end confdefs.h. */ 8539int i; 8540int 8541main () 8542{ 8543 8544 ; 8545 return 0; 8546} 8547_ACEOF 8548if ac_fn_c_try_link "$LINENO"; then : 8549 eval $cacheid=yes 8550else 8551 eval $cacheid=no 8552fi 8553rm -f core conftest.err conftest.$ac_objext \ 8554 conftest$ac_exeext conftest.$ac_ext 8555fi 8556 8557 8558 CFLAGS="$xorg_testset_save_CFLAGS" 8559 8560 eval supported=\$$cacheid 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8562$as_echo "$supported" >&6; } 8563 if test "$supported" = "yes" ; then 8564 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8565 found="yes" 8566 fi 8567 fi 8568 8569 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8570else 8571{ $as_echo "$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 8572$as_echo "$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;} 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586xorg_testset_save_CFLAGS="$CFLAGS" 8587 8588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8593 $as_echo_n "(cached) " >&6 8594else 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596/* end confdefs.h. */ 8597int i; 8598_ACEOF 8599if ac_fn_c_try_compile "$LINENO"; then : 8600 xorg_cv_cc_flag_unknown_warning_option=yes 8601else 8602 xorg_cv_cc_flag_unknown_warning_option=no 8603fi 8604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8605fi 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8609 CFLAGS="$xorg_testset_save_CFLAGS" 8610fi 8611 8612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8615 fi 8616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621else 8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8623/* end confdefs.h. */ 8624int i; 8625_ACEOF 8626if ac_fn_c_try_compile "$LINENO"; then : 8627 xorg_cv_cc_flag_unused_command_line_argument=yes 8628else 8629 xorg_cv_cc_flag_unused_command_line_argument=no 8630fi 8631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8632fi 8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8636 CFLAGS="$xorg_testset_save_CFLAGS" 8637fi 8638 8639found="no" 8640 8641 if test $found = "no" ; then 8642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8644 fi 8645 8646 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8648 fi 8649 8650 CFLAGS="$CFLAGS -Wimplicit" 8651 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8653$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8654 cacheid=xorg_cv_cc_flag__Wimplicit 8655 if eval \${$cacheid+:} false; then : 8656 $as_echo_n "(cached) " >&6 8657else 8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8659/* end confdefs.h. */ 8660int i; 8661int 8662main () 8663{ 8664 8665 ; 8666 return 0; 8667} 8668_ACEOF 8669if ac_fn_c_try_link "$LINENO"; then : 8670 eval $cacheid=yes 8671else 8672 eval $cacheid=no 8673fi 8674rm -f core conftest.err conftest.$ac_objext \ 8675 conftest$ac_exeext conftest.$ac_ext 8676fi 8677 8678 8679 CFLAGS="$xorg_testset_save_CFLAGS" 8680 8681 eval supported=\$$cacheid 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8683$as_echo "$supported" >&6; } 8684 if test "$supported" = "yes" ; then 8685 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8686 found="yes" 8687 fi 8688 fi 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704xorg_testset_save_CFLAGS="$CFLAGS" 8705 8706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8711 $as_echo_n "(cached) " >&6 8712else 8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8714/* end confdefs.h. */ 8715int i; 8716_ACEOF 8717if ac_fn_c_try_compile "$LINENO"; then : 8718 xorg_cv_cc_flag_unknown_warning_option=yes 8719else 8720 xorg_cv_cc_flag_unknown_warning_option=no 8721fi 8722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8723fi 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8727 CFLAGS="$xorg_testset_save_CFLAGS" 8728fi 8729 8730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8733 fi 8734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8738 $as_echo_n "(cached) " >&6 8739else 8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742int i; 8743_ACEOF 8744if ac_fn_c_try_compile "$LINENO"; then : 8745 xorg_cv_cc_flag_unused_command_line_argument=yes 8746else 8747 xorg_cv_cc_flag_unused_command_line_argument=no 8748fi 8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8750fi 8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8754 CFLAGS="$xorg_testset_save_CFLAGS" 8755fi 8756 8757found="no" 8758 8759 if test $found = "no" ; then 8760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8762 fi 8763 8764 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8766 fi 8767 8768 CFLAGS="$CFLAGS -Wnonnull" 8769 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8771$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8772 cacheid=xorg_cv_cc_flag__Wnonnull 8773 if eval \${$cacheid+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8777/* end confdefs.h. */ 8778int i; 8779int 8780main () 8781{ 8782 8783 ; 8784 return 0; 8785} 8786_ACEOF 8787if ac_fn_c_try_link "$LINENO"; then : 8788 eval $cacheid=yes 8789else 8790 eval $cacheid=no 8791fi 8792rm -f core conftest.err conftest.$ac_objext \ 8793 conftest$ac_exeext conftest.$ac_ext 8794fi 8795 8796 8797 CFLAGS="$xorg_testset_save_CFLAGS" 8798 8799 eval supported=\$$cacheid 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8801$as_echo "$supported" >&6; } 8802 if test "$supported" = "yes" ; then 8803 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8804 found="yes" 8805 fi 8806 fi 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822xorg_testset_save_CFLAGS="$CFLAGS" 8823 8824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8829 $as_echo_n "(cached) " >&6 8830else 8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8832/* end confdefs.h. */ 8833int i; 8834_ACEOF 8835if ac_fn_c_try_compile "$LINENO"; then : 8836 xorg_cv_cc_flag_unknown_warning_option=yes 8837else 8838 xorg_cv_cc_flag_unknown_warning_option=no 8839fi 8840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8841fi 8842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8845 CFLAGS="$xorg_testset_save_CFLAGS" 8846fi 8847 8848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8851 fi 8852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8856 $as_echo_n "(cached) " >&6 8857else 8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8859/* end confdefs.h. */ 8860int i; 8861_ACEOF 8862if ac_fn_c_try_compile "$LINENO"; then : 8863 xorg_cv_cc_flag_unused_command_line_argument=yes 8864else 8865 xorg_cv_cc_flag_unused_command_line_argument=no 8866fi 8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8868fi 8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8872 CFLAGS="$xorg_testset_save_CFLAGS" 8873fi 8874 8875found="no" 8876 8877 if test $found = "no" ; then 8878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8880 fi 8881 8882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8884 fi 8885 8886 CFLAGS="$CFLAGS -Winit-self" 8887 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8889$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8890 cacheid=xorg_cv_cc_flag__Winit_self 8891 if eval \${$cacheid+:} false; then : 8892 $as_echo_n "(cached) " >&6 8893else 8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8895/* end confdefs.h. */ 8896int i; 8897int 8898main () 8899{ 8900 8901 ; 8902 return 0; 8903} 8904_ACEOF 8905if ac_fn_c_try_link "$LINENO"; then : 8906 eval $cacheid=yes 8907else 8908 eval $cacheid=no 8909fi 8910rm -f core conftest.err conftest.$ac_objext \ 8911 conftest$ac_exeext conftest.$ac_ext 8912fi 8913 8914 8915 CFLAGS="$xorg_testset_save_CFLAGS" 8916 8917 eval supported=\$$cacheid 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8919$as_echo "$supported" >&6; } 8920 if test "$supported" = "yes" ; then 8921 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8922 found="yes" 8923 fi 8924 fi 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940xorg_testset_save_CFLAGS="$CFLAGS" 8941 8942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8947 $as_echo_n "(cached) " >&6 8948else 8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8950/* end confdefs.h. */ 8951int i; 8952_ACEOF 8953if ac_fn_c_try_compile "$LINENO"; then : 8954 xorg_cv_cc_flag_unknown_warning_option=yes 8955else 8956 xorg_cv_cc_flag_unknown_warning_option=no 8957fi 8958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8959fi 8960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8963 CFLAGS="$xorg_testset_save_CFLAGS" 8964fi 8965 8966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8969 fi 8970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8974 $as_echo_n "(cached) " >&6 8975else 8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8977/* end confdefs.h. */ 8978int i; 8979_ACEOF 8980if ac_fn_c_try_compile "$LINENO"; then : 8981 xorg_cv_cc_flag_unused_command_line_argument=yes 8982else 8983 xorg_cv_cc_flag_unused_command_line_argument=no 8984fi 8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8986fi 8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8990 CFLAGS="$xorg_testset_save_CFLAGS" 8991fi 8992 8993found="no" 8994 8995 if test $found = "no" ; then 8996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8998 fi 8999 9000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9002 fi 9003 9004 CFLAGS="$CFLAGS -Wmain" 9005 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9007$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9008 cacheid=xorg_cv_cc_flag__Wmain 9009 if eval \${$cacheid+:} false; then : 9010 $as_echo_n "(cached) " >&6 9011else 9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9013/* end confdefs.h. */ 9014int i; 9015int 9016main () 9017{ 9018 9019 ; 9020 return 0; 9021} 9022_ACEOF 9023if ac_fn_c_try_link "$LINENO"; then : 9024 eval $cacheid=yes 9025else 9026 eval $cacheid=no 9027fi 9028rm -f core conftest.err conftest.$ac_objext \ 9029 conftest$ac_exeext conftest.$ac_ext 9030fi 9031 9032 9033 CFLAGS="$xorg_testset_save_CFLAGS" 9034 9035 eval supported=\$$cacheid 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9037$as_echo "$supported" >&6; } 9038 if test "$supported" = "yes" ; then 9039 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9040 found="yes" 9041 fi 9042 fi 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058xorg_testset_save_CFLAGS="$CFLAGS" 9059 9060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9068/* end confdefs.h. */ 9069int i; 9070_ACEOF 9071if ac_fn_c_try_compile "$LINENO"; then : 9072 xorg_cv_cc_flag_unknown_warning_option=yes 9073else 9074 xorg_cv_cc_flag_unknown_warning_option=no 9075fi 9076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9077fi 9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9081 CFLAGS="$xorg_testset_save_CFLAGS" 9082fi 9083 9084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9087 fi 9088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9092 $as_echo_n "(cached) " >&6 9093else 9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9095/* end confdefs.h. */ 9096int i; 9097_ACEOF 9098if ac_fn_c_try_compile "$LINENO"; then : 9099 xorg_cv_cc_flag_unused_command_line_argument=yes 9100else 9101 xorg_cv_cc_flag_unused_command_line_argument=no 9102fi 9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9104fi 9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9108 CFLAGS="$xorg_testset_save_CFLAGS" 9109fi 9110 9111found="no" 9112 9113 if test $found = "no" ; then 9114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9116 fi 9117 9118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9120 fi 9121 9122 CFLAGS="$CFLAGS -Wmissing-braces" 9123 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9125$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9126 cacheid=xorg_cv_cc_flag__Wmissing_braces 9127 if eval \${$cacheid+:} false; then : 9128 $as_echo_n "(cached) " >&6 9129else 9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131/* end confdefs.h. */ 9132int i; 9133int 9134main () 9135{ 9136 9137 ; 9138 return 0; 9139} 9140_ACEOF 9141if ac_fn_c_try_link "$LINENO"; then : 9142 eval $cacheid=yes 9143else 9144 eval $cacheid=no 9145fi 9146rm -f core conftest.err conftest.$ac_objext \ 9147 conftest$ac_exeext conftest.$ac_ext 9148fi 9149 9150 9151 CFLAGS="$xorg_testset_save_CFLAGS" 9152 9153 eval supported=\$$cacheid 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9155$as_echo "$supported" >&6; } 9156 if test "$supported" = "yes" ; then 9157 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9158 found="yes" 9159 fi 9160 fi 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176xorg_testset_save_CFLAGS="$CFLAGS" 9177 9178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9183 $as_echo_n "(cached) " >&6 9184else 9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9186/* end confdefs.h. */ 9187int i; 9188_ACEOF 9189if ac_fn_c_try_compile "$LINENO"; then : 9190 xorg_cv_cc_flag_unknown_warning_option=yes 9191else 9192 xorg_cv_cc_flag_unknown_warning_option=no 9193fi 9194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9195fi 9196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9199 CFLAGS="$xorg_testset_save_CFLAGS" 9200fi 9201 9202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9205 fi 9206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9210 $as_echo_n "(cached) " >&6 9211else 9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9213/* end confdefs.h. */ 9214int i; 9215_ACEOF 9216if ac_fn_c_try_compile "$LINENO"; then : 9217 xorg_cv_cc_flag_unused_command_line_argument=yes 9218else 9219 xorg_cv_cc_flag_unused_command_line_argument=no 9220fi 9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9222fi 9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9226 CFLAGS="$xorg_testset_save_CFLAGS" 9227fi 9228 9229found="no" 9230 9231 if test $found = "no" ; then 9232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9234 fi 9235 9236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9238 fi 9239 9240 CFLAGS="$CFLAGS -Wsequence-point" 9241 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9243$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9244 cacheid=xorg_cv_cc_flag__Wsequence_point 9245 if eval \${$cacheid+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9249/* end confdefs.h. */ 9250int i; 9251int 9252main () 9253{ 9254 9255 ; 9256 return 0; 9257} 9258_ACEOF 9259if ac_fn_c_try_link "$LINENO"; then : 9260 eval $cacheid=yes 9261else 9262 eval $cacheid=no 9263fi 9264rm -f core conftest.err conftest.$ac_objext \ 9265 conftest$ac_exeext conftest.$ac_ext 9266fi 9267 9268 9269 CFLAGS="$xorg_testset_save_CFLAGS" 9270 9271 eval supported=\$$cacheid 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9273$as_echo "$supported" >&6; } 9274 if test "$supported" = "yes" ; then 9275 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9276 found="yes" 9277 fi 9278 fi 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294xorg_testset_save_CFLAGS="$CFLAGS" 9295 9296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9301 $as_echo_n "(cached) " >&6 9302else 9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9304/* end confdefs.h. */ 9305int i; 9306_ACEOF 9307if ac_fn_c_try_compile "$LINENO"; then : 9308 xorg_cv_cc_flag_unknown_warning_option=yes 9309else 9310 xorg_cv_cc_flag_unknown_warning_option=no 9311fi 9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9313fi 9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9317 CFLAGS="$xorg_testset_save_CFLAGS" 9318fi 9319 9320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 fi 9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9328 $as_echo_n "(cached) " >&6 9329else 9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9331/* end confdefs.h. */ 9332int i; 9333_ACEOF 9334if ac_fn_c_try_compile "$LINENO"; then : 9335 xorg_cv_cc_flag_unused_command_line_argument=yes 9336else 9337 xorg_cv_cc_flag_unused_command_line_argument=no 9338fi 9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9340fi 9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9344 CFLAGS="$xorg_testset_save_CFLAGS" 9345fi 9346 9347found="no" 9348 9349 if test $found = "no" ; then 9350 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9352 fi 9353 9354 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9356 fi 9357 9358 CFLAGS="$CFLAGS -Wreturn-type" 9359 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9361$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9362 cacheid=xorg_cv_cc_flag__Wreturn_type 9363 if eval \${$cacheid+:} false; then : 9364 $as_echo_n "(cached) " >&6 9365else 9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9367/* end confdefs.h. */ 9368int i; 9369int 9370main () 9371{ 9372 9373 ; 9374 return 0; 9375} 9376_ACEOF 9377if ac_fn_c_try_link "$LINENO"; then : 9378 eval $cacheid=yes 9379else 9380 eval $cacheid=no 9381fi 9382rm -f core conftest.err conftest.$ac_objext \ 9383 conftest$ac_exeext conftest.$ac_ext 9384fi 9385 9386 9387 CFLAGS="$xorg_testset_save_CFLAGS" 9388 9389 eval supported=\$$cacheid 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9391$as_echo "$supported" >&6; } 9392 if test "$supported" = "yes" ; then 9393 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9394 found="yes" 9395 fi 9396 fi 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412xorg_testset_save_CFLAGS="$CFLAGS" 9413 9414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9419 $as_echo_n "(cached) " >&6 9420else 9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9422/* end confdefs.h. */ 9423int i; 9424_ACEOF 9425if ac_fn_c_try_compile "$LINENO"; then : 9426 xorg_cv_cc_flag_unknown_warning_option=yes 9427else 9428 xorg_cv_cc_flag_unknown_warning_option=no 9429fi 9430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9431fi 9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9435 CFLAGS="$xorg_testset_save_CFLAGS" 9436fi 9437 9438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9441 fi 9442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9446 $as_echo_n "(cached) " >&6 9447else 9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9449/* end confdefs.h. */ 9450int i; 9451_ACEOF 9452if ac_fn_c_try_compile "$LINENO"; then : 9453 xorg_cv_cc_flag_unused_command_line_argument=yes 9454else 9455 xorg_cv_cc_flag_unused_command_line_argument=no 9456fi 9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9458fi 9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9462 CFLAGS="$xorg_testset_save_CFLAGS" 9463fi 9464 9465found="no" 9466 9467 if test $found = "no" ; then 9468 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9470 fi 9471 9472 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9474 fi 9475 9476 CFLAGS="$CFLAGS -Wtrigraphs" 9477 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9479$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9480 cacheid=xorg_cv_cc_flag__Wtrigraphs 9481 if eval \${$cacheid+:} false; then : 9482 $as_echo_n "(cached) " >&6 9483else 9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9485/* end confdefs.h. */ 9486int i; 9487int 9488main () 9489{ 9490 9491 ; 9492 return 0; 9493} 9494_ACEOF 9495if ac_fn_c_try_link "$LINENO"; then : 9496 eval $cacheid=yes 9497else 9498 eval $cacheid=no 9499fi 9500rm -f core conftest.err conftest.$ac_objext \ 9501 conftest$ac_exeext conftest.$ac_ext 9502fi 9503 9504 9505 CFLAGS="$xorg_testset_save_CFLAGS" 9506 9507 eval supported=\$$cacheid 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9509$as_echo "$supported" >&6; } 9510 if test "$supported" = "yes" ; then 9511 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9512 found="yes" 9513 fi 9514 fi 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530xorg_testset_save_CFLAGS="$CFLAGS" 9531 9532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9537 $as_echo_n "(cached) " >&6 9538else 9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9540/* end confdefs.h. */ 9541int i; 9542_ACEOF 9543if ac_fn_c_try_compile "$LINENO"; then : 9544 xorg_cv_cc_flag_unknown_warning_option=yes 9545else 9546 xorg_cv_cc_flag_unknown_warning_option=no 9547fi 9548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9549fi 9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554fi 9555 9556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9559 fi 9560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9564 $as_echo_n "(cached) " >&6 9565else 9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9567/* end confdefs.h. */ 9568int i; 9569_ACEOF 9570if ac_fn_c_try_compile "$LINENO"; then : 9571 xorg_cv_cc_flag_unused_command_line_argument=yes 9572else 9573 xorg_cv_cc_flag_unused_command_line_argument=no 9574fi 9575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9576fi 9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9580 CFLAGS="$xorg_testset_save_CFLAGS" 9581fi 9582 9583found="no" 9584 9585 if test $found = "no" ; then 9586 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9588 fi 9589 9590 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9592 fi 9593 9594 CFLAGS="$CFLAGS -Warray-bounds" 9595 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9597$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9598 cacheid=xorg_cv_cc_flag__Warray_bounds 9599 if eval \${$cacheid+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601else 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604int i; 9605int 9606main () 9607{ 9608 9609 ; 9610 return 0; 9611} 9612_ACEOF 9613if ac_fn_c_try_link "$LINENO"; then : 9614 eval $cacheid=yes 9615else 9616 eval $cacheid=no 9617fi 9618rm -f core conftest.err conftest.$ac_objext \ 9619 conftest$ac_exeext conftest.$ac_ext 9620fi 9621 9622 9623 CFLAGS="$xorg_testset_save_CFLAGS" 9624 9625 eval supported=\$$cacheid 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9627$as_echo "$supported" >&6; } 9628 if test "$supported" = "yes" ; then 9629 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9630 found="yes" 9631 fi 9632 fi 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648xorg_testset_save_CFLAGS="$CFLAGS" 9649 9650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9655 $as_echo_n "(cached) " >&6 9656else 9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9658/* end confdefs.h. */ 9659int i; 9660_ACEOF 9661if ac_fn_c_try_compile "$LINENO"; then : 9662 xorg_cv_cc_flag_unknown_warning_option=yes 9663else 9664 xorg_cv_cc_flag_unknown_warning_option=no 9665fi 9666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9667fi 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9671 CFLAGS="$xorg_testset_save_CFLAGS" 9672fi 9673 9674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9677 fi 9678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9682 $as_echo_n "(cached) " >&6 9683else 9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9685/* end confdefs.h. */ 9686int i; 9687_ACEOF 9688if ac_fn_c_try_compile "$LINENO"; then : 9689 xorg_cv_cc_flag_unused_command_line_argument=yes 9690else 9691 xorg_cv_cc_flag_unused_command_line_argument=no 9692fi 9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9694fi 9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9698 CFLAGS="$xorg_testset_save_CFLAGS" 9699fi 9700 9701found="no" 9702 9703 if test $found = "no" ; then 9704 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9706 fi 9707 9708 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9710 fi 9711 9712 CFLAGS="$CFLAGS -Wwrite-strings" 9713 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9715$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9716 cacheid=xorg_cv_cc_flag__Wwrite_strings 9717 if eval \${$cacheid+:} false; then : 9718 $as_echo_n "(cached) " >&6 9719else 9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9721/* end confdefs.h. */ 9722int i; 9723int 9724main () 9725{ 9726 9727 ; 9728 return 0; 9729} 9730_ACEOF 9731if ac_fn_c_try_link "$LINENO"; then : 9732 eval $cacheid=yes 9733else 9734 eval $cacheid=no 9735fi 9736rm -f core conftest.err conftest.$ac_objext \ 9737 conftest$ac_exeext conftest.$ac_ext 9738fi 9739 9740 9741 CFLAGS="$xorg_testset_save_CFLAGS" 9742 9743 eval supported=\$$cacheid 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9745$as_echo "$supported" >&6; } 9746 if test "$supported" = "yes" ; then 9747 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9748 found="yes" 9749 fi 9750 fi 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766xorg_testset_save_CFLAGS="$CFLAGS" 9767 9768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9773 $as_echo_n "(cached) " >&6 9774else 9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776/* end confdefs.h. */ 9777int i; 9778_ACEOF 9779if ac_fn_c_try_compile "$LINENO"; then : 9780 xorg_cv_cc_flag_unknown_warning_option=yes 9781else 9782 xorg_cv_cc_flag_unknown_warning_option=no 9783fi 9784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9785fi 9786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9789 CFLAGS="$xorg_testset_save_CFLAGS" 9790fi 9791 9792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9795 fi 9796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9800 $as_echo_n "(cached) " >&6 9801else 9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9803/* end confdefs.h. */ 9804int i; 9805_ACEOF 9806if ac_fn_c_try_compile "$LINENO"; then : 9807 xorg_cv_cc_flag_unused_command_line_argument=yes 9808else 9809 xorg_cv_cc_flag_unused_command_line_argument=no 9810fi 9811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9812fi 9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9816 CFLAGS="$xorg_testset_save_CFLAGS" 9817fi 9818 9819found="no" 9820 9821 if test $found = "no" ; then 9822 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9824 fi 9825 9826 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9828 fi 9829 9830 CFLAGS="$CFLAGS -Waddress" 9831 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9833$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9834 cacheid=xorg_cv_cc_flag__Waddress 9835 if eval \${$cacheid+:} false; then : 9836 $as_echo_n "(cached) " >&6 9837else 9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9839/* end confdefs.h. */ 9840int i; 9841int 9842main () 9843{ 9844 9845 ; 9846 return 0; 9847} 9848_ACEOF 9849if ac_fn_c_try_link "$LINENO"; then : 9850 eval $cacheid=yes 9851else 9852 eval $cacheid=no 9853fi 9854rm -f core conftest.err conftest.$ac_objext \ 9855 conftest$ac_exeext conftest.$ac_ext 9856fi 9857 9858 9859 CFLAGS="$xorg_testset_save_CFLAGS" 9860 9861 eval supported=\$$cacheid 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9863$as_echo "$supported" >&6; } 9864 if test "$supported" = "yes" ; then 9865 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9866 found="yes" 9867 fi 9868 fi 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884xorg_testset_save_CFLAGS="$CFLAGS" 9885 9886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9891 $as_echo_n "(cached) " >&6 9892else 9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894/* end confdefs.h. */ 9895int i; 9896_ACEOF 9897if ac_fn_c_try_compile "$LINENO"; then : 9898 xorg_cv_cc_flag_unknown_warning_option=yes 9899else 9900 xorg_cv_cc_flag_unknown_warning_option=no 9901fi 9902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9903fi 9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9907 CFLAGS="$xorg_testset_save_CFLAGS" 9908fi 9909 9910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9913 fi 9914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9918 $as_echo_n "(cached) " >&6 9919else 9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9921/* end confdefs.h. */ 9922int i; 9923_ACEOF 9924if ac_fn_c_try_compile "$LINENO"; then : 9925 xorg_cv_cc_flag_unused_command_line_argument=yes 9926else 9927 xorg_cv_cc_flag_unused_command_line_argument=no 9928fi 9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9930fi 9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9934 CFLAGS="$xorg_testset_save_CFLAGS" 9935fi 9936 9937found="no" 9938 9939 if test $found = "no" ; then 9940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9942 fi 9943 9944 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9946 fi 9947 9948 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9949 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9951$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9952 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9953 if eval \${$cacheid+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958int i; 9959int 9960main () 9961{ 9962 9963 ; 9964 return 0; 9965} 9966_ACEOF 9967if ac_fn_c_try_link "$LINENO"; then : 9968 eval $cacheid=yes 9969else 9970 eval $cacheid=no 9971fi 9972rm -f core conftest.err conftest.$ac_objext \ 9973 conftest$ac_exeext conftest.$ac_ext 9974fi 9975 9976 9977 CFLAGS="$xorg_testset_save_CFLAGS" 9978 9979 eval supported=\$$cacheid 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9981$as_echo "$supported" >&6; } 9982 if test "$supported" = "yes" ; then 9983 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9984 found="yes" 9985 fi 9986 fi 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002xorg_testset_save_CFLAGS="$CFLAGS" 10003 10004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10009 $as_echo_n "(cached) " >&6 10010else 10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10012/* end confdefs.h. */ 10013int i; 10014_ACEOF 10015if ac_fn_c_try_compile "$LINENO"; then : 10016 xorg_cv_cc_flag_unknown_warning_option=yes 10017else 10018 xorg_cv_cc_flag_unknown_warning_option=no 10019fi 10020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10021fi 10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10025 CFLAGS="$xorg_testset_save_CFLAGS" 10026fi 10027 10028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10031 fi 10032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10036 $as_echo_n "(cached) " >&6 10037else 10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10039/* end confdefs.h. */ 10040int i; 10041_ACEOF 10042if ac_fn_c_try_compile "$LINENO"; then : 10043 xorg_cv_cc_flag_unused_command_line_argument=yes 10044else 10045 xorg_cv_cc_flag_unused_command_line_argument=no 10046fi 10047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10048fi 10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10052 CFLAGS="$xorg_testset_save_CFLAGS" 10053fi 10054 10055found="no" 10056 10057 if test $found = "no" ; then 10058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10060 fi 10061 10062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10064 fi 10065 10066 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10067 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10069$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10070 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10071 if eval \${$cacheid+:} false; then : 10072 $as_echo_n "(cached) " >&6 10073else 10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075/* end confdefs.h. */ 10076int i; 10077int 10078main () 10079{ 10080 10081 ; 10082 return 0; 10083} 10084_ACEOF 10085if ac_fn_c_try_link "$LINENO"; then : 10086 eval $cacheid=yes 10087else 10088 eval $cacheid=no 10089fi 10090rm -f core conftest.err conftest.$ac_objext \ 10091 conftest$ac_exeext conftest.$ac_ext 10092fi 10093 10094 10095 CFLAGS="$xorg_testset_save_CFLAGS" 10096 10097 eval supported=\$$cacheid 10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10099$as_echo "$supported" >&6; } 10100 if test "$supported" = "yes" ; then 10101 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10102 found="yes" 10103 fi 10104 fi 10105 10106 10107fi 10108 10109 10110 10111 10112 10113 10114 10115 CWARNFLAGS="$BASE_CFLAGS" 10116 if test "x$GCC" = xyes ; then 10117 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10118 fi 10119 10120 10121 10122 10123 10124 10125 10126 10127# Check whether --enable-strict-compilation was given. 10128if test "${enable_strict_compilation+set}" = set; then : 10129 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10130else 10131 STRICT_COMPILE=no 10132fi 10133 10134 10135 10136 10137 10138 10139STRICT_CFLAGS="" 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153xorg_testset_save_CFLAGS="$CFLAGS" 10154 10155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10160 $as_echo_n "(cached) " >&6 10161else 10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10163/* end confdefs.h. */ 10164int i; 10165_ACEOF 10166if ac_fn_c_try_compile "$LINENO"; then : 10167 xorg_cv_cc_flag_unknown_warning_option=yes 10168else 10169 xorg_cv_cc_flag_unknown_warning_option=no 10170fi 10171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10172fi 10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10176 CFLAGS="$xorg_testset_save_CFLAGS" 10177fi 10178 10179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10182 fi 10183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10187 $as_echo_n "(cached) " >&6 10188else 10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10190/* end confdefs.h. */ 10191int i; 10192_ACEOF 10193if ac_fn_c_try_compile "$LINENO"; then : 10194 xorg_cv_cc_flag_unused_command_line_argument=yes 10195else 10196 xorg_cv_cc_flag_unused_command_line_argument=no 10197fi 10198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10199fi 10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10203 CFLAGS="$xorg_testset_save_CFLAGS" 10204fi 10205 10206found="no" 10207 10208 if test $found = "no" ; then 10209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10211 fi 10212 10213 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10215 fi 10216 10217 CFLAGS="$CFLAGS -pedantic" 10218 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10220$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10221 cacheid=xorg_cv_cc_flag__pedantic 10222 if eval \${$cacheid+:} false; then : 10223 $as_echo_n "(cached) " >&6 10224else 10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227int i; 10228int 10229main () 10230{ 10231 10232 ; 10233 return 0; 10234} 10235_ACEOF 10236if ac_fn_c_try_link "$LINENO"; then : 10237 eval $cacheid=yes 10238else 10239 eval $cacheid=no 10240fi 10241rm -f core conftest.err conftest.$ac_objext \ 10242 conftest$ac_exeext conftest.$ac_ext 10243fi 10244 10245 10246 CFLAGS="$xorg_testset_save_CFLAGS" 10247 10248 eval supported=\$$cacheid 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10250$as_echo "$supported" >&6; } 10251 if test "$supported" = "yes" ; then 10252 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10253 found="yes" 10254 fi 10255 fi 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271xorg_testset_save_CFLAGS="$CFLAGS" 10272 10273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10278 $as_echo_n "(cached) " >&6 10279else 10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281/* end confdefs.h. */ 10282int i; 10283_ACEOF 10284if ac_fn_c_try_compile "$LINENO"; then : 10285 xorg_cv_cc_flag_unknown_warning_option=yes 10286else 10287 xorg_cv_cc_flag_unknown_warning_option=no 10288fi 10289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10290fi 10291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10294 CFLAGS="$xorg_testset_save_CFLAGS" 10295fi 10296 10297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10300 fi 10301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10308/* end confdefs.h. */ 10309int i; 10310_ACEOF 10311if ac_fn_c_try_compile "$LINENO"; then : 10312 xorg_cv_cc_flag_unused_command_line_argument=yes 10313else 10314 xorg_cv_cc_flag_unused_command_line_argument=no 10315fi 10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10317fi 10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10321 CFLAGS="$xorg_testset_save_CFLAGS" 10322fi 10323 10324found="no" 10325 10326 if test $found = "no" ; then 10327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10329 fi 10330 10331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10333 fi 10334 10335 CFLAGS="$CFLAGS -Werror" 10336 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10338$as_echo_n "checking if $CC supports -Werror... " >&6; } 10339 cacheid=xorg_cv_cc_flag__Werror 10340 if eval \${$cacheid+:} false; then : 10341 $as_echo_n "(cached) " >&6 10342else 10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344/* end confdefs.h. */ 10345int i; 10346int 10347main () 10348{ 10349 10350 ; 10351 return 0; 10352} 10353_ACEOF 10354if ac_fn_c_try_link "$LINENO"; then : 10355 eval $cacheid=yes 10356else 10357 eval $cacheid=no 10358fi 10359rm -f core conftest.err conftest.$ac_objext \ 10360 conftest$ac_exeext conftest.$ac_ext 10361fi 10362 10363 10364 CFLAGS="$xorg_testset_save_CFLAGS" 10365 10366 eval supported=\$$cacheid 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10368$as_echo "$supported" >&6; } 10369 if test "$supported" = "yes" ; then 10370 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10371 found="yes" 10372 fi 10373 fi 10374 10375 if test $found = "no" ; then 10376 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10378 fi 10379 10380 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10382 fi 10383 10384 CFLAGS="$CFLAGS -errwarn" 10385 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10387$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10388 cacheid=xorg_cv_cc_flag__errwarn 10389 if eval \${$cacheid+:} false; then : 10390 $as_echo_n "(cached) " >&6 10391else 10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10393/* end confdefs.h. */ 10394int i; 10395int 10396main () 10397{ 10398 10399 ; 10400 return 0; 10401} 10402_ACEOF 10403if ac_fn_c_try_link "$LINENO"; then : 10404 eval $cacheid=yes 10405else 10406 eval $cacheid=no 10407fi 10408rm -f core conftest.err conftest.$ac_objext \ 10409 conftest$ac_exeext conftest.$ac_ext 10410fi 10411 10412 10413 CFLAGS="$xorg_testset_save_CFLAGS" 10414 10415 eval supported=\$$cacheid 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10417$as_echo "$supported" >&6; } 10418 if test "$supported" = "yes" ; then 10419 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10420 found="yes" 10421 fi 10422 fi 10423 10424 10425 10426# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10427# activate it with -Werror, so we add it here explicitly. 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441xorg_testset_save_CFLAGS="$CFLAGS" 10442 10443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10448 $as_echo_n "(cached) " >&6 10449else 10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10451/* end confdefs.h. */ 10452int i; 10453_ACEOF 10454if ac_fn_c_try_compile "$LINENO"; then : 10455 xorg_cv_cc_flag_unknown_warning_option=yes 10456else 10457 xorg_cv_cc_flag_unknown_warning_option=no 10458fi 10459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10460fi 10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10464 CFLAGS="$xorg_testset_save_CFLAGS" 10465fi 10466 10467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10470 fi 10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476else 10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10478/* end confdefs.h. */ 10479int i; 10480_ACEOF 10481if ac_fn_c_try_compile "$LINENO"; then : 10482 xorg_cv_cc_flag_unused_command_line_argument=yes 10483else 10484 xorg_cv_cc_flag_unused_command_line_argument=no 10485fi 10486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10487fi 10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10491 CFLAGS="$xorg_testset_save_CFLAGS" 10492fi 10493 10494found="no" 10495 10496 if test $found = "no" ; then 10497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10499 fi 10500 10501 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10503 fi 10504 10505 CFLAGS="$CFLAGS -Werror=attributes" 10506 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10508$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10509 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10510 if eval \${$cacheid+:} false; then : 10511 $as_echo_n "(cached) " >&6 10512else 10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10514/* end confdefs.h. */ 10515int i; 10516int 10517main () 10518{ 10519 10520 ; 10521 return 0; 10522} 10523_ACEOF 10524if ac_fn_c_try_link "$LINENO"; then : 10525 eval $cacheid=yes 10526else 10527 eval $cacheid=no 10528fi 10529rm -f core conftest.err conftest.$ac_objext \ 10530 conftest$ac_exeext conftest.$ac_ext 10531fi 10532 10533 10534 CFLAGS="$xorg_testset_save_CFLAGS" 10535 10536 eval supported=\$$cacheid 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10538$as_echo "$supported" >&6; } 10539 if test "$supported" = "yes" ; then 10540 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10541 found="yes" 10542 fi 10543 fi 10544 10545 10546 10547if test "x$STRICT_COMPILE" = "xyes"; then 10548 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10549 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10550fi 10551 10552 10553 10554 10555 10556 10557cat >>confdefs.h <<_ACEOF 10558#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10559_ACEOF 10560 10561 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10562 if test "x$PVM" = "x"; then 10563 PVM="0" 10564 fi 10565 10566cat >>confdefs.h <<_ACEOF 10567#define PACKAGE_VERSION_MINOR $PVM 10568_ACEOF 10569 10570 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10571 if test "x$PVP" = "x"; then 10572 PVP="0" 10573 fi 10574 10575cat >>confdefs.h <<_ACEOF 10576#define PACKAGE_VERSION_PATCHLEVEL $PVP 10577_ACEOF 10578 10579 10580 10581CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10582mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10583|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10584echo 'git directory not found: installing possibly empty changelog.' >&2)" 10585 10586 10587 10588 10589macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10590INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10591mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10592|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10593echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10594 10595 10596 10597 10598 10599 10600if test x$APP_MAN_SUFFIX = x ; then 10601 APP_MAN_SUFFIX=1 10602fi 10603if test x$APP_MAN_DIR = x ; then 10604 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10605fi 10606 10607if test x$LIB_MAN_SUFFIX = x ; then 10608 LIB_MAN_SUFFIX=3 10609fi 10610if test x$LIB_MAN_DIR = x ; then 10611 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10612fi 10613 10614if test x$FILE_MAN_SUFFIX = x ; then 10615 case $host_os in 10616 solaris*) FILE_MAN_SUFFIX=4 ;; 10617 *) FILE_MAN_SUFFIX=5 ;; 10618 esac 10619fi 10620if test x$FILE_MAN_DIR = x ; then 10621 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10622fi 10623 10624if test x$MISC_MAN_SUFFIX = x ; then 10625 case $host_os in 10626 solaris*) MISC_MAN_SUFFIX=5 ;; 10627 *) MISC_MAN_SUFFIX=7 ;; 10628 esac 10629fi 10630if test x$MISC_MAN_DIR = x ; then 10631 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10632fi 10633 10634if test x$DRIVER_MAN_SUFFIX = x ; then 10635 case $host_os in 10636 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10637 *) DRIVER_MAN_SUFFIX=4 ;; 10638 esac 10639fi 10640if test x$DRIVER_MAN_DIR = x ; then 10641 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10642fi 10643 10644if test x$ADMIN_MAN_SUFFIX = x ; then 10645 case $host_os in 10646 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10647 *) ADMIN_MAN_SUFFIX=8 ;; 10648 esac 10649fi 10650if test x$ADMIN_MAN_DIR = x ; then 10651 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10652fi 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668XORG_MAN_PAGE="X Version 11" 10669 10670MAN_SUBSTS="\ 10671 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10672 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10673 -e 's|__xservername__|Xorg|g' \ 10674 -e 's|__xconfigfile__|xorg.conf|g' \ 10675 -e 's|__projectroot__|\$(prefix)|g' \ 10676 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10677 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10678 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10679 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10680 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10681 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10682 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10683 10684 10685 10686# Check whether --enable-silent-rules was given. 10687if test "${enable_silent_rules+set}" = set; then : 10688 enableval=$enable_silent_rules; 10689fi 10690 10691case $enable_silent_rules in # ((( 10692 yes) AM_DEFAULT_VERBOSITY=0;; 10693 no) AM_DEFAULT_VERBOSITY=1;; 10694 *) AM_DEFAULT_VERBOSITY=0;; 10695esac 10696am_make=${MAKE-make} 10697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10698$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10699if ${am_cv_make_support_nested_variables+:} false; then : 10700 $as_echo_n "(cached) " >&6 10701else 10702 if $as_echo 'TRUE=$(BAR$(V)) 10703BAR0=false 10704BAR1=true 10705V=1 10706am__doit: 10707 @$(TRUE) 10708.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10709 am_cv_make_support_nested_variables=yes 10710else 10711 am_cv_make_support_nested_variables=no 10712fi 10713fi 10714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10715$as_echo "$am_cv_make_support_nested_variables" >&6; } 10716if test $am_cv_make_support_nested_variables = yes; then 10717 AM_V='$(V)' 10718 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10719else 10720 AM_V=$AM_DEFAULT_VERBOSITY 10721 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10722fi 10723AM_BACKSLASH='\' 10724 10725 10726 10727# Checks for pkg-config packages 10728 10729pkg_failed=no 10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCONSOLE" >&5 10731$as_echo_n "checking for XCONSOLE... " >&6; } 10732 10733if test -n "$XCONSOLE_CFLAGS"; then 10734 pkg_cv_XCONSOLE_CFLAGS="$XCONSOLE_CFLAGS" 10735 elif test -n "$PKG_CONFIG"; then 10736 if test -n "$PKG_CONFIG" && \ 10737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5 10738 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5 10739 ac_status=$? 10740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10741 test $ac_status = 0; }; then 10742 pkg_cv_XCONSOLE_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null` 10743else 10744 pkg_failed=yes 10745fi 10746 else 10747 pkg_failed=untried 10748fi 10749if test -n "$XCONSOLE_LIBS"; then 10750 pkg_cv_XCONSOLE_LIBS="$XCONSOLE_LIBS" 10751 elif test -n "$PKG_CONFIG"; then 10752 if test -n "$PKG_CONFIG" && \ 10753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5 10754 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5 10755 ac_status=$? 10756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10757 test $ac_status = 0; }; then 10758 pkg_cv_XCONSOLE_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null` 10759else 10760 pkg_failed=yes 10761fi 10762 else 10763 pkg_failed=untried 10764fi 10765 10766 10767 10768if test $pkg_failed = yes; then 10769 10770if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10771 _pkg_short_errors_supported=yes 10772else 10773 _pkg_short_errors_supported=no 10774fi 10775 if test $_pkg_short_errors_supported = yes; then 10776 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1` 10777 else 10778 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1` 10779 fi 10780 # Put the nasty error message in config.log where it belongs 10781 echo "$XCONSOLE_PKG_ERRORS" >&5 10782 10783 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17) were not met: 10784 10785$XCONSOLE_PKG_ERRORS 10786 10787Consider adjusting the PKG_CONFIG_PATH environment variable if you 10788installed software in a non-standard prefix. 10789 10790Alternatively, you may set the environment variables XCONSOLE_CFLAGS 10791and XCONSOLE_LIBS to avoid the need to call pkg-config. 10792See the pkg-config man page for more details. 10793" "$LINENO" 5 10794elif test $pkg_failed = untried; then 10795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10797as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10798is in your PATH or set the PKG_CONFIG environment variable to the full 10799path to pkg-config. 10800 10801Alternatively, you may set the environment variables XCONSOLE_CFLAGS 10802and XCONSOLE_LIBS to avoid the need to call pkg-config. 10803See the pkg-config man page for more details. 10804 10805To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10806See \`config.log' for more details" "$LINENO" 5; } 10807else 10808 XCONSOLE_CFLAGS=$pkg_cv_XCONSOLE_CFLAGS 10809 XCONSOLE_LIBS=$pkg_cv_XCONSOLE_LIBS 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10811$as_echo "yes" >&6; } 10812 : 10813fi 10814 10815 10816pkg_failed=no 10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 10818$as_echo_n "checking for APPDEFS... " >&6; } 10819 10820if test -n "$APPDEFS_CFLAGS"; then 10821 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 10822 elif test -n "$PKG_CONFIG"; then 10823 if test -n "$PKG_CONFIG" && \ 10824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10825 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10826 ac_status=$? 10827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10828 test $ac_status = 0; }; then 10829 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 10830else 10831 pkg_failed=yes 10832fi 10833 else 10834 pkg_failed=untried 10835fi 10836if test -n "$APPDEFS_LIBS"; then 10837 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 10838 elif test -n "$PKG_CONFIG"; then 10839 if test -n "$PKG_CONFIG" && \ 10840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10841 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10842 ac_status=$? 10843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10844 test $ac_status = 0; }; then 10845 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 10846else 10847 pkg_failed=yes 10848fi 10849 else 10850 pkg_failed=untried 10851fi 10852 10853 10854 10855if test $pkg_failed = yes; then 10856 10857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10858 _pkg_short_errors_supported=yes 10859else 10860 _pkg_short_errors_supported=no 10861fi 10862 if test $_pkg_short_errors_supported = yes; then 10863 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 10864 else 10865 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 10866 fi 10867 # Put the nasty error message in config.log where it belongs 10868 echo "$APPDEFS_PKG_ERRORS" >&5 10869 10870 as_fn_error $? "Package requirements (xt) were not met: 10871 10872$APPDEFS_PKG_ERRORS 10873 10874Consider adjusting the PKG_CONFIG_PATH environment variable if you 10875installed software in a non-standard prefix. 10876 10877Alternatively, you may set the environment variables APPDEFS_CFLAGS 10878and APPDEFS_LIBS to avoid the need to call pkg-config. 10879See the pkg-config man page for more details. 10880" "$LINENO" 5 10881elif test $pkg_failed = untried; then 10882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10884as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10885is in your PATH or set the PKG_CONFIG environment variable to the full 10886path to pkg-config. 10887 10888Alternatively, you may set the environment variables APPDEFS_CFLAGS 10889and APPDEFS_LIBS to avoid the need to call pkg-config. 10890See the pkg-config man page for more details. 10891 10892To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10893See \`config.log' for more details" "$LINENO" 5; } 10894else 10895 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 10896 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10898$as_echo "yes" >&6; } 10899 : 10900fi 10901xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10902 10903# Check whether --with-appdefaultdir was given. 10904if test "${with_appdefaultdir+set}" = set; then : 10905 withval=$with_appdefaultdir; appdefaultdir="$withval" 10906else 10907 appdefaultdir="${xt_appdefaultdir}" 10908fi 10909 10910 10911 10912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 10913$as_echo_n "checking for library containing openpty... " >&6; } 10914if ${ac_cv_search_openpty+:} false; then : 10915 $as_echo_n "(cached) " >&6 10916else 10917 ac_func_search_save_LIBS=$LIBS 10918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10919/* end confdefs.h. */ 10920 10921/* Override any GCC internal prototype to avoid an error. 10922 Use char because int might match the return type of a GCC 10923 builtin and then its argument prototype would still apply. */ 10924#ifdef __cplusplus 10925extern "C" 10926#endif 10927char openpty (); 10928int 10929main () 10930{ 10931return openpty (); 10932 ; 10933 return 0; 10934} 10935_ACEOF 10936for ac_lib in '' util; do 10937 if test -z "$ac_lib"; then 10938 ac_res="none required" 10939 else 10940 ac_res=-l$ac_lib 10941 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10942 fi 10943 if ac_fn_c_try_link "$LINENO"; then : 10944 ac_cv_search_openpty=$ac_res 10945fi 10946rm -f core conftest.err conftest.$ac_objext \ 10947 conftest$ac_exeext 10948 if ${ac_cv_search_openpty+:} false; then : 10949 break 10950fi 10951done 10952if ${ac_cv_search_openpty+:} false; then : 10953 10954else 10955 ac_cv_search_openpty=no 10956fi 10957rm conftest.$ac_ext 10958LIBS=$ac_func_search_save_LIBS 10959fi 10960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 10961$as_echo "$ac_cv_search_openpty" >&6; } 10962ac_res=$ac_cv_search_openpty 10963if test "$ac_res" != no; then : 10964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10965 10966fi 10967 10968ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 10969if test "x$ac_cv_func_openpty" = xyes; then : 10970 HAS_OPENPTY="yes" 10971fi 10972 10973if test "x$HAS_OPENPTY" = "xyes" ; then 10974 10975$as_echo "#define HAS_OPENPTY 1" >>confdefs.h 10976 10977 for ac_header in util.h libutil.h pty.h 10978do : 10979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10980ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10981if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10982 cat >>confdefs.h <<_ACEOF 10983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10984_ACEOF 10985 break 10986fi 10987 10988done 10989 10990fi 10991 10992 10993ac_config_files="$ac_config_files Makefile man/Makefile" 10994 10995cat >confcache <<\_ACEOF 10996# This file is a shell script that caches the results of configure 10997# tests run on this system so they can be shared between configure 10998# scripts and configure runs, see configure's option --config-cache. 10999# It is not useful on other systems. If it contains results you don't 11000# want to keep, you may remove or edit it. 11001# 11002# config.status only pays attention to the cache file if you give it 11003# the --recheck option to rerun configure. 11004# 11005# `ac_cv_env_foo' variables (set or unset) will be overridden when 11006# loading this file, other *unset* `ac_cv_foo' will be assigned the 11007# following values. 11008 11009_ACEOF 11010 11011# The following way of writing the cache mishandles newlines in values, 11012# but we know of no workaround that is simple, portable, and efficient. 11013# So, we kill variables containing newlines. 11014# Ultrix sh set writes to stderr and can't be redirected directly, 11015# and sets the high bit in the cache file unless we assign to the vars. 11016( 11017 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11018 eval ac_val=\$$ac_var 11019 case $ac_val in #( 11020 *${as_nl}*) 11021 case $ac_var in #( 11022 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11023$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11024 esac 11025 case $ac_var in #( 11026 _ | IFS | as_nl) ;; #( 11027 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11028 *) { eval $ac_var=; unset $ac_var;} ;; 11029 esac ;; 11030 esac 11031 done 11032 11033 (set) 2>&1 | 11034 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11035 *${as_nl}ac_space=\ *) 11036 # `set' does not quote correctly, so add quotes: double-quote 11037 # substitution turns \\\\ into \\, and sed turns \\ into \. 11038 sed -n \ 11039 "s/'/'\\\\''/g; 11040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11041 ;; #( 11042 *) 11043 # `set' quotes correctly as required by POSIX, so do not add quotes. 11044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11045 ;; 11046 esac | 11047 sort 11048) | 11049 sed ' 11050 /^ac_cv_env_/b end 11051 t clear 11052 :clear 11053 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11054 t end 11055 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11056 :end' >>confcache 11057if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11058 if test -w "$cache_file"; then 11059 if test "x$cache_file" != "x/dev/null"; then 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11061$as_echo "$as_me: updating cache $cache_file" >&6;} 11062 if test ! -f "$cache_file" || test -h "$cache_file"; then 11063 cat confcache >"$cache_file" 11064 else 11065 case $cache_file in #( 11066 */* | ?:*) 11067 mv -f confcache "$cache_file"$$ && 11068 mv -f "$cache_file"$$ "$cache_file" ;; #( 11069 *) 11070 mv -f confcache "$cache_file" ;; 11071 esac 11072 fi 11073 fi 11074 else 11075 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11076$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11077 fi 11078fi 11079rm -f confcache 11080 11081test "x$prefix" = xNONE && prefix=$ac_default_prefix 11082# Let make expand exec_prefix. 11083test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11084 11085DEFS=-DHAVE_CONFIG_H 11086 11087ac_libobjs= 11088ac_ltlibobjs= 11089U= 11090for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11091 # 1. Remove the extension, and $U if already installed. 11092 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11093 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11094 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11095 # will be set to the directory where LIBOBJS objects are built. 11096 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11097 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11098done 11099LIBOBJS=$ac_libobjs 11100 11101LTLIBOBJS=$ac_ltlibobjs 11102 11103 11104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11105$as_echo_n "checking that generated files are newer than configure... " >&6; } 11106 if test -n "$am_sleep_pid"; then 11107 # Hide warnings about reused PIDs. 11108 wait $am_sleep_pid 2>/dev/null 11109 fi 11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11111$as_echo "done" >&6; } 11112 if test -n "$EXEEXT"; then 11113 am__EXEEXT_TRUE= 11114 am__EXEEXT_FALSE='#' 11115else 11116 am__EXEEXT_TRUE='#' 11117 am__EXEEXT_FALSE= 11118fi 11119 11120if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11121 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11122Usually this means the macro was only invoked conditionally." "$LINENO" 5 11123fi 11124if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11125 as_fn_error $? "conditional \"AMDEP\" was never defined. 11126Usually this means the macro was only invoked conditionally." "$LINENO" 5 11127fi 11128if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11129 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11130Usually this means the macro was only invoked conditionally." "$LINENO" 5 11131fi 11132 11133: "${CONFIG_STATUS=./config.status}" 11134ac_write_fail=0 11135ac_clean_files_save=$ac_clean_files 11136ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11137{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11138$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11139as_write_fail=0 11140cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11141#! $SHELL 11142# Generated by $as_me. 11143# Run this file to recreate the current configuration. 11144# Compiler output produced by configure, useful for debugging 11145# configure, is in config.log if it exists. 11146 11147debug=false 11148ac_cs_recheck=false 11149ac_cs_silent=false 11150 11151SHELL=\${CONFIG_SHELL-$SHELL} 11152export SHELL 11153_ASEOF 11154cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11155## -------------------- ## 11156## M4sh Initialization. ## 11157## -------------------- ## 11158 11159# Be more Bourne compatible 11160DUALCASE=1; export DUALCASE # for MKS sh 11161if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11162 emulate sh 11163 NULLCMD=: 11164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11165 # is contrary to our usage. Disable this feature. 11166 alias -g '${1+"$@"}'='"$@"' 11167 setopt NO_GLOB_SUBST 11168else 11169 case `(set -o) 2>/dev/null` in #( 11170 *posix*) : 11171 set -o posix ;; #( 11172 *) : 11173 ;; 11174esac 11175fi 11176 11177 11178as_nl=' 11179' 11180export as_nl 11181# Printing a long string crashes Solaris 7 /usr/bin/printf. 11182as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11184as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11185# Prefer a ksh shell builtin over an external printf program on Solaris, 11186# but without wasting forks for bash or zsh. 11187if test -z "$BASH_VERSION$ZSH_VERSION" \ 11188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11189 as_echo='print -r --' 11190 as_echo_n='print -rn --' 11191elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11192 as_echo='printf %s\n' 11193 as_echo_n='printf %s' 11194else 11195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11197 as_echo_n='/usr/ucb/echo -n' 11198 else 11199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11200 as_echo_n_body='eval 11201 arg=$1; 11202 case $arg in #( 11203 *"$as_nl"*) 11204 expr "X$arg" : "X\\(.*\\)$as_nl"; 11205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11206 esac; 11207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11208 ' 11209 export as_echo_n_body 11210 as_echo_n='sh -c $as_echo_n_body as_echo' 11211 fi 11212 export as_echo_body 11213 as_echo='sh -c $as_echo_body as_echo' 11214fi 11215 11216# The user is always right. 11217if test "${PATH_SEPARATOR+set}" != set; then 11218 PATH_SEPARATOR=: 11219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11221 PATH_SEPARATOR=';' 11222 } 11223fi 11224 11225 11226# IFS 11227# We need space, tab and new line, in precisely that order. Quoting is 11228# there to prevent editors from complaining about space-tab. 11229# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11230# splitting by setting IFS to empty value.) 11231IFS=" "" $as_nl" 11232 11233# Find who we are. Look in the path if we contain no directory separator. 11234as_myself= 11235case $0 in #(( 11236 *[\\/]* ) as_myself=$0 ;; 11237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11238for as_dir in $PATH 11239do 11240 IFS=$as_save_IFS 11241 test -z "$as_dir" && as_dir=. 11242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11243 done 11244IFS=$as_save_IFS 11245 11246 ;; 11247esac 11248# We did not find ourselves, most probably we were run as `sh COMMAND' 11249# in which case we are not to be found in the path. 11250if test "x$as_myself" = x; then 11251 as_myself=$0 11252fi 11253if test ! -f "$as_myself"; then 11254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11255 exit 1 11256fi 11257 11258# Unset variables that we do not need and which cause bugs (e.g. in 11259# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11260# suppresses any "Segmentation fault" message there. '((' could 11261# trigger a bug in pdksh 5.2.14. 11262for as_var in BASH_ENV ENV MAIL MAILPATH 11263do eval test x\${$as_var+set} = xset \ 11264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11265done 11266PS1='$ ' 11267PS2='> ' 11268PS4='+ ' 11269 11270# NLS nuisances. 11271LC_ALL=C 11272export LC_ALL 11273LANGUAGE=C 11274export LANGUAGE 11275 11276# CDPATH. 11277(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11278 11279 11280# as_fn_error STATUS ERROR [LINENO LOG_FD] 11281# ---------------------------------------- 11282# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11283# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11284# script with STATUS, using 1 if that was 0. 11285as_fn_error () 11286{ 11287 as_status=$1; test $as_status -eq 0 && as_status=1 11288 if test "$4"; then 11289 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11291 fi 11292 $as_echo "$as_me: error: $2" >&2 11293 as_fn_exit $as_status 11294} # as_fn_error 11295 11296 11297# as_fn_set_status STATUS 11298# ----------------------- 11299# Set $? to STATUS, without forking. 11300as_fn_set_status () 11301{ 11302 return $1 11303} # as_fn_set_status 11304 11305# as_fn_exit STATUS 11306# ----------------- 11307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11308as_fn_exit () 11309{ 11310 set +e 11311 as_fn_set_status $1 11312 exit $1 11313} # as_fn_exit 11314 11315# as_fn_unset VAR 11316# --------------- 11317# Portably unset VAR. 11318as_fn_unset () 11319{ 11320 { eval $1=; unset $1;} 11321} 11322as_unset=as_fn_unset 11323# as_fn_append VAR VALUE 11324# ---------------------- 11325# Append the text in VALUE to the end of the definition contained in VAR. Take 11326# advantage of any shell optimizations that allow amortized linear growth over 11327# repeated appends, instead of the typical quadratic growth present in naive 11328# implementations. 11329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11330 eval 'as_fn_append () 11331 { 11332 eval $1+=\$2 11333 }' 11334else 11335 as_fn_append () 11336 { 11337 eval $1=\$$1\$2 11338 } 11339fi # as_fn_append 11340 11341# as_fn_arith ARG... 11342# ------------------ 11343# Perform arithmetic evaluation on the ARGs, and store the result in the 11344# global $as_val. Take advantage of shells that can avoid forks. The arguments 11345# must be portable across $(()) and expr. 11346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11347 eval 'as_fn_arith () 11348 { 11349 as_val=$(( $* )) 11350 }' 11351else 11352 as_fn_arith () 11353 { 11354 as_val=`expr "$@" || test $? -eq 1` 11355 } 11356fi # as_fn_arith 11357 11358 11359if expr a : '\(a\)' >/dev/null 2>&1 && 11360 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11361 as_expr=expr 11362else 11363 as_expr=false 11364fi 11365 11366if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11367 as_basename=basename 11368else 11369 as_basename=false 11370fi 11371 11372if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11373 as_dirname=dirname 11374else 11375 as_dirname=false 11376fi 11377 11378as_me=`$as_basename -- "$0" || 11379$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11380 X"$0" : 'X\(//\)$' \| \ 11381 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11382$as_echo X/"$0" | 11383 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11384 s//\1/ 11385 q 11386 } 11387 /^X\/\(\/\/\)$/{ 11388 s//\1/ 11389 q 11390 } 11391 /^X\/\(\/\).*/{ 11392 s//\1/ 11393 q 11394 } 11395 s/.*/./; q'` 11396 11397# Avoid depending upon Character Ranges. 11398as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11400as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11401as_cr_digits='0123456789' 11402as_cr_alnum=$as_cr_Letters$as_cr_digits 11403 11404ECHO_C= ECHO_N= ECHO_T= 11405case `echo -n x` in #((((( 11406-n*) 11407 case `echo 'xy\c'` in 11408 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11409 xy) ECHO_C='\c';; 11410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11411 ECHO_T=' ';; 11412 esac;; 11413*) 11414 ECHO_N='-n';; 11415esac 11416 11417rm -f conf$$ conf$$.exe conf$$.file 11418if test -d conf$$.dir; then 11419 rm -f conf$$.dir/conf$$.file 11420else 11421 rm -f conf$$.dir 11422 mkdir conf$$.dir 2>/dev/null 11423fi 11424if (echo >conf$$.file) 2>/dev/null; then 11425 if ln -s conf$$.file conf$$ 2>/dev/null; then 11426 as_ln_s='ln -s' 11427 # ... but there are two gotchas: 11428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11430 # In both cases, we have to default to `cp -p'. 11431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11432 as_ln_s='cp -p' 11433 elif ln conf$$.file conf$$ 2>/dev/null; then 11434 as_ln_s=ln 11435 else 11436 as_ln_s='cp -p' 11437 fi 11438else 11439 as_ln_s='cp -p' 11440fi 11441rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11442rmdir conf$$.dir 2>/dev/null 11443 11444 11445# as_fn_mkdir_p 11446# ------------- 11447# Create "$as_dir" as a directory, including parents if necessary. 11448as_fn_mkdir_p () 11449{ 11450 11451 case $as_dir in #( 11452 -*) as_dir=./$as_dir;; 11453 esac 11454 test -d "$as_dir" || eval $as_mkdir_p || { 11455 as_dirs= 11456 while :; do 11457 case $as_dir in #( 11458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11459 *) as_qdir=$as_dir;; 11460 esac 11461 as_dirs="'$as_qdir' $as_dirs" 11462 as_dir=`$as_dirname -- "$as_dir" || 11463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11464 X"$as_dir" : 'X\(//\)[^/]' \| \ 11465 X"$as_dir" : 'X\(//\)$' \| \ 11466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11467$as_echo X"$as_dir" | 11468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11469 s//\1/ 11470 q 11471 } 11472 /^X\(\/\/\)[^/].*/{ 11473 s//\1/ 11474 q 11475 } 11476 /^X\(\/\/\)$/{ 11477 s//\1/ 11478 q 11479 } 11480 /^X\(\/\).*/{ 11481 s//\1/ 11482 q 11483 } 11484 s/.*/./; q'` 11485 test -d "$as_dir" && break 11486 done 11487 test -z "$as_dirs" || eval "mkdir $as_dirs" 11488 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11489 11490 11491} # as_fn_mkdir_p 11492if mkdir -p . 2>/dev/null; then 11493 as_mkdir_p='mkdir -p "$as_dir"' 11494else 11495 test -d ./-p && rmdir ./-p 11496 as_mkdir_p=false 11497fi 11498 11499if test -x / >/dev/null 2>&1; then 11500 as_test_x='test -x' 11501else 11502 if ls -dL / >/dev/null 2>&1; then 11503 as_ls_L_option=L 11504 else 11505 as_ls_L_option= 11506 fi 11507 as_test_x=' 11508 eval sh -c '\'' 11509 if test -d "$1"; then 11510 test -d "$1/."; 11511 else 11512 case $1 in #( 11513 -*)set "./$1";; 11514 esac; 11515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11516 ???[sx]*):;;*)false;;esac;fi 11517 '\'' sh 11518 ' 11519fi 11520as_executable_p=$as_test_x 11521 11522# Sed expression to map a string onto a valid CPP name. 11523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11524 11525# Sed expression to map a string onto a valid variable name. 11526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11527 11528 11529exec 6>&1 11530## ----------------------------------- ## 11531## Main body of $CONFIG_STATUS script. ## 11532## ----------------------------------- ## 11533_ASEOF 11534test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11535 11536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11537# Save the log message, to keep $0 and so on meaningful, and to 11538# report actual input values of CONFIG_FILES etc. instead of their 11539# values after options handling. 11540ac_log=" 11541This file was extended by xconsole $as_me 1.0.6, which was 11542generated by GNU Autoconf 2.68. Invocation command line was 11543 11544 CONFIG_FILES = $CONFIG_FILES 11545 CONFIG_HEADERS = $CONFIG_HEADERS 11546 CONFIG_LINKS = $CONFIG_LINKS 11547 CONFIG_COMMANDS = $CONFIG_COMMANDS 11548 $ $0 $@ 11549 11550on `(hostname || uname -n) 2>/dev/null | sed 1q` 11551" 11552 11553_ACEOF 11554 11555case $ac_config_files in *" 11556"*) set x $ac_config_files; shift; ac_config_files=$*;; 11557esac 11558 11559case $ac_config_headers in *" 11560"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11561esac 11562 11563 11564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11565# Files that config.status was made for. 11566config_files="$ac_config_files" 11567config_headers="$ac_config_headers" 11568config_commands="$ac_config_commands" 11569 11570_ACEOF 11571 11572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11573ac_cs_usage="\ 11574\`$as_me' instantiates files and other configuration actions 11575from templates according to the current configuration. Unless the files 11576and actions are specified as TAGs, all are instantiated by default. 11577 11578Usage: $0 [OPTION]... [TAG]... 11579 11580 -h, --help print this help, then exit 11581 -V, --version print version number and configuration settings, then exit 11582 --config print configuration, then exit 11583 -q, --quiet, --silent 11584 do not print progress messages 11585 -d, --debug don't remove temporary files 11586 --recheck update $as_me by reconfiguring in the same conditions 11587 --file=FILE[:TEMPLATE] 11588 instantiate the configuration file FILE 11589 --header=FILE[:TEMPLATE] 11590 instantiate the configuration header FILE 11591 11592Configuration files: 11593$config_files 11594 11595Configuration headers: 11596$config_headers 11597 11598Configuration commands: 11599$config_commands 11600 11601Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11602 11603_ACEOF 11604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11605ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11606ac_cs_version="\\ 11607xconsole config.status 1.0.6 11608configured by $0, generated by GNU Autoconf 2.68, 11609 with options \\"\$ac_cs_config\\" 11610 11611Copyright (C) 2010 Free Software Foundation, Inc. 11612This config.status script is free software; the Free Software Foundation 11613gives unlimited permission to copy, distribute and modify it." 11614 11615ac_pwd='$ac_pwd' 11616srcdir='$srcdir' 11617INSTALL='$INSTALL' 11618MKDIR_P='$MKDIR_P' 11619AWK='$AWK' 11620test -n "\$AWK" || AWK=awk 11621_ACEOF 11622 11623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11624# The default lists apply if the user does not specify any file. 11625ac_need_defaults=: 11626while test $# != 0 11627do 11628 case $1 in 11629 --*=?*) 11630 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11632 ac_shift=: 11633 ;; 11634 --*=) 11635 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11636 ac_optarg= 11637 ac_shift=: 11638 ;; 11639 *) 11640 ac_option=$1 11641 ac_optarg=$2 11642 ac_shift=shift 11643 ;; 11644 esac 11645 11646 case $ac_option in 11647 # Handling of the options. 11648 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11649 ac_cs_recheck=: ;; 11650 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11651 $as_echo "$ac_cs_version"; exit ;; 11652 --config | --confi | --conf | --con | --co | --c ) 11653 $as_echo "$ac_cs_config"; exit ;; 11654 --debug | --debu | --deb | --de | --d | -d ) 11655 debug=: ;; 11656 --file | --fil | --fi | --f ) 11657 $ac_shift 11658 case $ac_optarg in 11659 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11660 '') as_fn_error $? "missing file argument" ;; 11661 esac 11662 as_fn_append CONFIG_FILES " '$ac_optarg'" 11663 ac_need_defaults=false;; 11664 --header | --heade | --head | --hea ) 11665 $ac_shift 11666 case $ac_optarg in 11667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11668 esac 11669 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11670 ac_need_defaults=false;; 11671 --he | --h) 11672 # Conflict between --help and --header 11673 as_fn_error $? "ambiguous option: \`$1' 11674Try \`$0 --help' for more information.";; 11675 --help | --hel | -h ) 11676 $as_echo "$ac_cs_usage"; exit ;; 11677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11678 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11679 ac_cs_silent=: ;; 11680 11681 # This is an error. 11682 -*) as_fn_error $? "unrecognized option: \`$1' 11683Try \`$0 --help' for more information." ;; 11684 11685 *) as_fn_append ac_config_targets " $1" 11686 ac_need_defaults=false ;; 11687 11688 esac 11689 shift 11690done 11691 11692ac_configure_extra_args= 11693 11694if $ac_cs_silent; then 11695 exec 6>/dev/null 11696 ac_configure_extra_args="$ac_configure_extra_args --silent" 11697fi 11698 11699_ACEOF 11700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11701if \$ac_cs_recheck; then 11702 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11703 shift 11704 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11705 CONFIG_SHELL='$SHELL' 11706 export CONFIG_SHELL 11707 exec "\$@" 11708fi 11709 11710_ACEOF 11711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11712exec 5>>config.log 11713{ 11714 echo 11715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11716## Running $as_me. ## 11717_ASBOX 11718 $as_echo "$ac_log" 11719} >&5 11720 11721_ACEOF 11722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11723# 11724# INIT-COMMANDS 11725# 11726AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11727 11728_ACEOF 11729 11730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11731 11732# Handling of arguments. 11733for ac_config_target in $ac_config_targets 11734do 11735 case $ac_config_target in 11736 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11737 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11738 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11739 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11740 11741 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11742 esac 11743done 11744 11745 11746# If the user did not use the arguments to specify the items to instantiate, 11747# then the envvar interface is used. Set only those that are not. 11748# We use the long form for the default assignment because of an extremely 11749# bizarre bug on SunOS 4.1.3. 11750if $ac_need_defaults; then 11751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11754fi 11755 11756# Have a temporary directory for convenience. Make it in the build tree 11757# simply because there is no reason against having it here, and in addition, 11758# creating and moving files from /tmp can sometimes cause problems. 11759# Hook for its removal unless debugging. 11760# Note that there is a small window in which the directory will not be cleaned: 11761# after its creation but before its name has been assigned to `$tmp'. 11762$debug || 11763{ 11764 tmp= ac_tmp= 11765 trap 'exit_status=$? 11766 : "${ac_tmp:=$tmp}" 11767 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11768' 0 11769 trap 'as_fn_exit 1' 1 2 13 15 11770} 11771# Create a (secure) tmp directory for tmp files. 11772 11773{ 11774 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11775 test -d "$tmp" 11776} || 11777{ 11778 tmp=./conf$$-$RANDOM 11779 (umask 077 && mkdir "$tmp") 11780} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11781ac_tmp=$tmp 11782 11783# Set up the scripts for CONFIG_FILES section. 11784# No need to generate them if there are no CONFIG_FILES. 11785# This happens for instance with `./config.status config.h'. 11786if test -n "$CONFIG_FILES"; then 11787 11788 11789ac_cr=`echo X | tr X '\015'` 11790# On cygwin, bash can eat \r inside `` if the user requested igncr. 11791# But we know of no other shell where ac_cr would be empty at this 11792# point, so we can use a bashism as a fallback. 11793if test "x$ac_cr" = x; then 11794 eval ac_cr=\$\'\\r\' 11795fi 11796ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11797if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11798 ac_cs_awk_cr='\\r' 11799else 11800 ac_cs_awk_cr=$ac_cr 11801fi 11802 11803echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11804_ACEOF 11805 11806 11807{ 11808 echo "cat >conf$$subs.awk <<_ACEOF" && 11809 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11810 echo "_ACEOF" 11811} >conf$$subs.sh || 11812 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11813ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11814ac_delim='%!_!# ' 11815for ac_last_try in false false false false false :; do 11816 . ./conf$$subs.sh || 11817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11818 11819 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11820 if test $ac_delim_n = $ac_delim_num; then 11821 break 11822 elif $ac_last_try; then 11823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11824 else 11825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11826 fi 11827done 11828rm -f conf$$subs.sh 11829 11830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11831cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11832_ACEOF 11833sed -n ' 11834h 11835s/^/S["/; s/!.*/"]=/ 11836p 11837g 11838s/^[^!]*!// 11839:repl 11840t repl 11841s/'"$ac_delim"'$// 11842t delim 11843:nl 11844h 11845s/\(.\{148\}\)..*/\1/ 11846t more1 11847s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11848p 11849n 11850b repl 11851:more1 11852s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11853p 11854g 11855s/.\{148\}// 11856t nl 11857:delim 11858h 11859s/\(.\{148\}\)..*/\1/ 11860t more2 11861s/["\\]/\\&/g; s/^/"/; s/$/"/ 11862p 11863b 11864:more2 11865s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11866p 11867g 11868s/.\{148\}// 11869t delim 11870' <conf$$subs.awk | sed ' 11871/^[^""]/{ 11872 N 11873 s/\n// 11874} 11875' >>$CONFIG_STATUS || ac_write_fail=1 11876rm -f conf$$subs.awk 11877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11878_ACAWK 11879cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11880 for (key in S) S_is_set[key] = 1 11881 FS = "" 11882 11883} 11884{ 11885 line = $ 0 11886 nfields = split(line, field, "@") 11887 substed = 0 11888 len = length(field[1]) 11889 for (i = 2; i < nfields; i++) { 11890 key = field[i] 11891 keylen = length(key) 11892 if (S_is_set[key]) { 11893 value = S[key] 11894 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11895 len += length(value) + length(field[++i]) 11896 substed = 1 11897 } else 11898 len += 1 + keylen 11899 } 11900 11901 print line 11902} 11903 11904_ACAWK 11905_ACEOF 11906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11907if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11908 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11909else 11910 cat 11911fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11912 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11913_ACEOF 11914 11915# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11916# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11917# trailing colons and then remove the whole line if VPATH becomes empty 11918# (actually we leave an empty line to preserve line numbers). 11919if test "x$srcdir" = x.; then 11920 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11921h 11922s/// 11923s/^/:/ 11924s/[ ]*$/:/ 11925s/:\$(srcdir):/:/g 11926s/:\${srcdir}:/:/g 11927s/:@srcdir@:/:/g 11928s/^:*// 11929s/:*$// 11930x 11931s/\(=[ ]*\).*/\1/ 11932G 11933s/\n// 11934s/^[^=]*=[ ]*$// 11935}' 11936fi 11937 11938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11939fi # test -n "$CONFIG_FILES" 11940 11941# Set up the scripts for CONFIG_HEADERS section. 11942# No need to generate them if there are no CONFIG_HEADERS. 11943# This happens for instance with `./config.status Makefile'. 11944if test -n "$CONFIG_HEADERS"; then 11945cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11946BEGIN { 11947_ACEOF 11948 11949# Transform confdefs.h into an awk script `defines.awk', embedded as 11950# here-document in config.status, that substitutes the proper values into 11951# config.h.in to produce config.h. 11952 11953# Create a delimiter string that does not exist in confdefs.h, to ease 11954# handling of long lines. 11955ac_delim='%!_!# ' 11956for ac_last_try in false false :; do 11957 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11958 if test -z "$ac_tt"; then 11959 break 11960 elif $ac_last_try; then 11961 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11962 else 11963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11964 fi 11965done 11966 11967# For the awk script, D is an array of macro values keyed by name, 11968# likewise P contains macro parameters if any. Preserve backslash 11969# newline sequences. 11970 11971ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11972sed -n ' 11973s/.\{148\}/&'"$ac_delim"'/g 11974t rset 11975:rset 11976s/^[ ]*#[ ]*define[ ][ ]*/ / 11977t def 11978d 11979:def 11980s/\\$// 11981t bsnl 11982s/["\\]/\\&/g 11983s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11984D["\1"]=" \3"/p 11985s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11986d 11987:bsnl 11988s/["\\]/\\&/g 11989s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11990D["\1"]=" \3\\\\\\n"\\/p 11991t cont 11992s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11993t cont 11994d 11995:cont 11996n 11997s/.\{148\}/&'"$ac_delim"'/g 11998t clear 11999:clear 12000s/\\$// 12001t bsnlc 12002s/["\\]/\\&/g; s/^/"/; s/$/"/p 12003d 12004:bsnlc 12005s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12006b cont 12007' <confdefs.h | sed ' 12008s/'"$ac_delim"'/"\\\ 12009"/g' >>$CONFIG_STATUS || ac_write_fail=1 12010 12011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12012 for (key in D) D_is_set[key] = 1 12013 FS = "" 12014} 12015/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12016 line = \$ 0 12017 split(line, arg, " ") 12018 if (arg[1] == "#") { 12019 defundef = arg[2] 12020 mac1 = arg[3] 12021 } else { 12022 defundef = substr(arg[1], 2) 12023 mac1 = arg[2] 12024 } 12025 split(mac1, mac2, "(") #) 12026 macro = mac2[1] 12027 prefix = substr(line, 1, index(line, defundef) - 1) 12028 if (D_is_set[macro]) { 12029 # Preserve the white space surrounding the "#". 12030 print prefix "define", macro P[macro] D[macro] 12031 next 12032 } else { 12033 # Replace #undef with comments. This is necessary, for example, 12034 # in the case of _POSIX_SOURCE, which is predefined and required 12035 # on some systems where configure will not decide to define it. 12036 if (defundef == "undef") { 12037 print "/*", prefix defundef, macro, "*/" 12038 next 12039 } 12040 } 12041} 12042{ print } 12043_ACAWK 12044_ACEOF 12045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12046 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12047fi # test -n "$CONFIG_HEADERS" 12048 12049 12050eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12051shift 12052for ac_tag 12053do 12054 case $ac_tag in 12055 :[FHLC]) ac_mode=$ac_tag; continue;; 12056 esac 12057 case $ac_mode$ac_tag in 12058 :[FHL]*:*);; 12059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12060 :[FH]-) ac_tag=-:-;; 12061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12062 esac 12063 ac_save_IFS=$IFS 12064 IFS=: 12065 set x $ac_tag 12066 IFS=$ac_save_IFS 12067 shift 12068 ac_file=$1 12069 shift 12070 12071 case $ac_mode in 12072 :L) ac_source=$1;; 12073 :[FH]) 12074 ac_file_inputs= 12075 for ac_f 12076 do 12077 case $ac_f in 12078 -) ac_f="$ac_tmp/stdin";; 12079 *) # Look for the file first in the build tree, then in the source tree 12080 # (if the path is not absolute). The absolute path cannot be DOS-style, 12081 # because $ac_f cannot contain `:'. 12082 test -f "$ac_f" || 12083 case $ac_f in 12084 [\\/$]*) false;; 12085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12086 esac || 12087 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12088 esac 12089 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12090 as_fn_append ac_file_inputs " '$ac_f'" 12091 done 12092 12093 # Let's still pretend it is `configure' which instantiates (i.e., don't 12094 # use $as_me), people would be surprised to read: 12095 # /* config.h. Generated by config.status. */ 12096 configure_input='Generated from '` 12097 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12098 `' by configure.' 12099 if test x"$ac_file" != x-; then 12100 configure_input="$ac_file. $configure_input" 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12102$as_echo "$as_me: creating $ac_file" >&6;} 12103 fi 12104 # Neutralize special characters interpreted by sed in replacement strings. 12105 case $configure_input in #( 12106 *\&* | *\|* | *\\* ) 12107 ac_sed_conf_input=`$as_echo "$configure_input" | 12108 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12109 *) ac_sed_conf_input=$configure_input;; 12110 esac 12111 12112 case $ac_tag in 12113 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12115 esac 12116 ;; 12117 esac 12118 12119 ac_dir=`$as_dirname -- "$ac_file" || 12120$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12121 X"$ac_file" : 'X\(//\)[^/]' \| \ 12122 X"$ac_file" : 'X\(//\)$' \| \ 12123 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12124$as_echo X"$ac_file" | 12125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12126 s//\1/ 12127 q 12128 } 12129 /^X\(\/\/\)[^/].*/{ 12130 s//\1/ 12131 q 12132 } 12133 /^X\(\/\/\)$/{ 12134 s//\1/ 12135 q 12136 } 12137 /^X\(\/\).*/{ 12138 s//\1/ 12139 q 12140 } 12141 s/.*/./; q'` 12142 as_dir="$ac_dir"; as_fn_mkdir_p 12143 ac_builddir=. 12144 12145case "$ac_dir" in 12146.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12147*) 12148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12149 # A ".." for each directory in $ac_dir_suffix. 12150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12151 case $ac_top_builddir_sub in 12152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12154 esac ;; 12155esac 12156ac_abs_top_builddir=$ac_pwd 12157ac_abs_builddir=$ac_pwd$ac_dir_suffix 12158# for backward compatibility: 12159ac_top_builddir=$ac_top_build_prefix 12160 12161case $srcdir in 12162 .) # We are building in place. 12163 ac_srcdir=. 12164 ac_top_srcdir=$ac_top_builddir_sub 12165 ac_abs_top_srcdir=$ac_pwd ;; 12166 [\\/]* | ?:[\\/]* ) # Absolute name. 12167 ac_srcdir=$srcdir$ac_dir_suffix; 12168 ac_top_srcdir=$srcdir 12169 ac_abs_top_srcdir=$srcdir ;; 12170 *) # Relative name. 12171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12172 ac_top_srcdir=$ac_top_build_prefix$srcdir 12173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12174esac 12175ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12176 12177 12178 case $ac_mode in 12179 :F) 12180 # 12181 # CONFIG_FILE 12182 # 12183 12184 case $INSTALL in 12185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12186 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12187 esac 12188 ac_MKDIR_P=$MKDIR_P 12189 case $MKDIR_P in 12190 [\\/$]* | ?:[\\/]* ) ;; 12191 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12192 esac 12193_ACEOF 12194 12195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12196# If the template does not know about datarootdir, expand it. 12197# FIXME: This hack should be removed a few years after 2.60. 12198ac_datarootdir_hack=; ac_datarootdir_seen= 12199ac_sed_dataroot=' 12200/datarootdir/ { 12201 p 12202 q 12203} 12204/@datadir@/p 12205/@docdir@/p 12206/@infodir@/p 12207/@localedir@/p 12208/@mandir@/p' 12209case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12210*datarootdir*) ac_datarootdir_seen=yes;; 12211*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12213$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12214_ACEOF 12215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12216 ac_datarootdir_hack=' 12217 s&@datadir@&$datadir&g 12218 s&@docdir@&$docdir&g 12219 s&@infodir@&$infodir&g 12220 s&@localedir@&$localedir&g 12221 s&@mandir@&$mandir&g 12222 s&\\\${datarootdir}&$datarootdir&g' ;; 12223esac 12224_ACEOF 12225 12226# Neutralize VPATH when `$srcdir' = `.'. 12227# Shell code in configure.ac might set extrasub. 12228# FIXME: do we really want to maintain this feature? 12229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12230ac_sed_extra="$ac_vpsub 12231$extrasub 12232_ACEOF 12233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12234:t 12235/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12236s|@configure_input@|$ac_sed_conf_input|;t t 12237s&@top_builddir@&$ac_top_builddir_sub&;t t 12238s&@top_build_prefix@&$ac_top_build_prefix&;t t 12239s&@srcdir@&$ac_srcdir&;t t 12240s&@abs_srcdir@&$ac_abs_srcdir&;t t 12241s&@top_srcdir@&$ac_top_srcdir&;t t 12242s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12243s&@builddir@&$ac_builddir&;t t 12244s&@abs_builddir@&$ac_abs_builddir&;t t 12245s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12246s&@INSTALL@&$ac_INSTALL&;t t 12247s&@MKDIR_P@&$ac_MKDIR_P&;t t 12248$ac_datarootdir_hack 12249" 12250eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12251 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12252 12253test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12254 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12255 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12256 "$ac_tmp/out"`; test -z "$ac_out"; } && 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12258which seems to be undefined. Please make sure it is defined" >&5 12259$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12260which seems to be undefined. Please make sure it is defined" >&2;} 12261 12262 rm -f "$ac_tmp/stdin" 12263 case $ac_file in 12264 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12265 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12266 esac \ 12267 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12268 ;; 12269 :H) 12270 # 12271 # CONFIG_HEADER 12272 # 12273 if test x"$ac_file" != x-; then 12274 { 12275 $as_echo "/* $configure_input */" \ 12276 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12277 } >"$ac_tmp/config.h" \ 12278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12279 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12281$as_echo "$as_me: $ac_file is unchanged" >&6;} 12282 else 12283 rm -f "$ac_file" 12284 mv "$ac_tmp/config.h" "$ac_file" \ 12285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12286 fi 12287 else 12288 $as_echo "/* $configure_input */" \ 12289 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12290 || as_fn_error $? "could not create -" "$LINENO" 5 12291 fi 12292# Compute "$ac_file"'s index in $config_headers. 12293_am_arg="$ac_file" 12294_am_stamp_count=1 12295for _am_header in $config_headers :; do 12296 case $_am_header in 12297 $_am_arg | $_am_arg:* ) 12298 break ;; 12299 * ) 12300 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12301 esac 12302done 12303echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12304$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12305 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12306 X"$_am_arg" : 'X\(//\)$' \| \ 12307 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12308$as_echo X"$_am_arg" | 12309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12310 s//\1/ 12311 q 12312 } 12313 /^X\(\/\/\)[^/].*/{ 12314 s//\1/ 12315 q 12316 } 12317 /^X\(\/\/\)$/{ 12318 s//\1/ 12319 q 12320 } 12321 /^X\(\/\).*/{ 12322 s//\1/ 12323 q 12324 } 12325 s/.*/./; q'`/stamp-h$_am_stamp_count 12326 ;; 12327 12328 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12329$as_echo "$as_me: executing $ac_file commands" >&6;} 12330 ;; 12331 esac 12332 12333 12334 case $ac_file$ac_mode in 12335 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12336 # Older Autoconf quotes --file arguments for eval, but not when files 12337 # are listed without --file. Let's play safe and only enable the eval 12338 # if we detect the quoting. 12339 case $CONFIG_FILES in 12340 *\'*) eval set x "$CONFIG_FILES" ;; 12341 *) set x $CONFIG_FILES ;; 12342 esac 12343 shift 12344 for mf 12345 do 12346 # Strip MF so we end up with the name of the file. 12347 mf=`echo "$mf" | sed -e 's/:.*$//'` 12348 # Check whether this is an Automake generated Makefile or not. 12349 # We used to match only the files named 'Makefile.in', but 12350 # some people rename them; so instead we look at the file content. 12351 # Grep'ing the first line is not enough: some people post-process 12352 # each Makefile.in and add a new line on top of each file to say so. 12353 # Grep'ing the whole file is not good either: AIX grep has a line 12354 # limit of 2048, but all sed's we know have understand at least 4000. 12355 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12356 dirpart=`$as_dirname -- "$mf" || 12357$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12358 X"$mf" : 'X\(//\)[^/]' \| \ 12359 X"$mf" : 'X\(//\)$' \| \ 12360 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12361$as_echo X"$mf" | 12362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12363 s//\1/ 12364 q 12365 } 12366 /^X\(\/\/\)[^/].*/{ 12367 s//\1/ 12368 q 12369 } 12370 /^X\(\/\/\)$/{ 12371 s//\1/ 12372 q 12373 } 12374 /^X\(\/\).*/{ 12375 s//\1/ 12376 q 12377 } 12378 s/.*/./; q'` 12379 else 12380 continue 12381 fi 12382 # Extract the definition of DEPDIR, am__include, and am__quote 12383 # from the Makefile without running 'make'. 12384 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12385 test -z "$DEPDIR" && continue 12386 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12387 test -z "$am__include" && continue 12388 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12389 # Find all dependency output files, they are included files with 12390 # $(DEPDIR) in their names. We invoke sed twice because it is the 12391 # simplest approach to changing $(DEPDIR) to its actual value in the 12392 # expansion. 12393 for file in `sed -n " 12394 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12395 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12396 # Make sure the directory exists. 12397 test -f "$dirpart/$file" && continue 12398 fdir=`$as_dirname -- "$file" || 12399$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12400 X"$file" : 'X\(//\)[^/]' \| \ 12401 X"$file" : 'X\(//\)$' \| \ 12402 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12403$as_echo X"$file" | 12404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12405 s//\1/ 12406 q 12407 } 12408 /^X\(\/\/\)[^/].*/{ 12409 s//\1/ 12410 q 12411 } 12412 /^X\(\/\/\)$/{ 12413 s//\1/ 12414 q 12415 } 12416 /^X\(\/\).*/{ 12417 s//\1/ 12418 q 12419 } 12420 s/.*/./; q'` 12421 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12422 # echo "creating $dirpart/$file" 12423 echo '# dummy' > "$dirpart/$file" 12424 done 12425 done 12426} 12427 ;; 12428 12429 esac 12430done # for ac_tag 12431 12432 12433as_fn_exit 0 12434_ACEOF 12435ac_clean_files=$ac_clean_files_save 12436 12437test $ac_write_fail = 0 || 12438 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12439 12440 12441# configure is writing to config.log, and then calls config.status. 12442# config.status does its own redirection, appending to config.log. 12443# Unfortunately, on DOS this fails, as config.log is still kept open 12444# by configure, so config.status won't be able to write to it; its 12445# output is simply discarded. So we exec the FD to /dev/null, 12446# effectively closing config.log, so it can be properly (re)opened and 12447# appended to by config.status. When coming back to configure, we 12448# need to make the FD available again. 12449if test "$no_create" != yes; then 12450 ac_cs_success=: 12451 ac_config_status_args= 12452 test "$silent" = yes && 12453 ac_config_status_args="$ac_config_status_args --quiet" 12454 exec 5>/dev/null 12455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12456 exec 5>>config.log 12457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12458 # would make configure fail if this is the last instruction. 12459 $ac_cs_success || as_fn_exit 1 12460fi 12461if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12463$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12464fi 12465 12466