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