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