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