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