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