configure revision d43532a6
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for makedepend 1.0.4. 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='makedepend' 563PACKAGE_TARNAME='makedepend' 564PACKAGE_VERSION='1.0.4' 565PACKAGE_STRING='makedepend 1.0.4' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#ifdef HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#ifdef HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#ifdef STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# ifdef HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#ifdef HAVE_STRING_H 587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#ifdef HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#ifdef HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#ifdef HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#ifdef HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='am__EXEEXT_FALSE 606am__EXEEXT_TRUE 607LTLIBOBJS 608LIBOBJS 609X_LIBS 610X_CFLAGS 611LINT_FALSE 612LINT_TRUE 613LINT_FLAGS 614LINT 615AM_BACKSLASH 616AM_DEFAULT_VERBOSITY 617MAN_SUBSTS 618XORG_MAN_PAGE 619ADMIN_MAN_DIR 620DRIVER_MAN_DIR 621MISC_MAN_DIR 622FILE_MAN_DIR 623LIB_MAN_DIR 624APP_MAN_DIR 625ADMIN_MAN_SUFFIX 626DRIVER_MAN_SUFFIX 627MISC_MAN_SUFFIX 628FILE_MAN_SUFFIX 629LIB_MAN_SUFFIX 630APP_MAN_SUFFIX 631SED 632host_os 633host_vendor 634host_cpu 635host 636build_os 637build_vendor 638build_cpu 639build 640INSTALL_CMD 641PKG_CONFIG 642CHANGELOG_CMD 643STRICT_CFLAGS 644CWARNFLAGS 645BASE_CFLAGS 646EGREP 647GREP 648CPP 649am__fastdepCC_FALSE 650am__fastdepCC_TRUE 651CCDEPMODE 652AMDEPBACKSLASH 653AMDEP_FALSE 654AMDEP_TRUE 655am__quote 656am__include 657DEPDIR 658OBJEXT 659EXEEXT 660ac_ct_CC 661CPPFLAGS 662LDFLAGS 663CFLAGS 664CC 665am__untar 666am__tar 667AMTAR 668am__leading_dot 669SET_MAKE 670AWK 671mkdir_p 672MKDIR_P 673INSTALL_STRIP_PROGRAM 674STRIP 675install_sh 676MAKEINFO 677AUTOHEADER 678AUTOMAKE 679AUTOCONF 680ACLOCAL 681VERSION 682PACKAGE 683CYGPATH_W 684am__isrc 685INSTALL_DATA 686INSTALL_SCRIPT 687INSTALL_PROGRAM 688target_alias 689host_alias 690build_alias 691LIBS 692ECHO_T 693ECHO_N 694ECHO_C 695DEFS 696mandir 697localedir 698libdir 699psdir 700pdfdir 701dvidir 702htmldir 703infodir 704docdir 705oldincludedir 706includedir 707localstatedir 708sharedstatedir 709sysconfdir 710datadir 711datarootdir 712libexecdir 713sbindir 714bindir 715program_transform_name 716prefix 717exec_prefix 718PACKAGE_URL 719PACKAGE_BUGREPORT 720PACKAGE_STRING 721PACKAGE_VERSION 722PACKAGE_TARNAME 723PACKAGE_NAME 724PATH_SEPARATOR 725SHELL' 726ac_subst_files='' 727ac_user_opts=' 728enable_option_checking 729enable_dependency_tracking 730enable_selective_werror 731enable_strict_compilation 732enable_silent_rules 733with_lint 734enable_largefile 735' 736 ac_precious_vars='build_alias 737host_alias 738target_alias 739CC 740CFLAGS 741LDFLAGS 742LIBS 743CPPFLAGS 744CPP 745PKG_CONFIG 746LINT 747LINT_FLAGS 748X_CFLAGS 749X_LIBS' 750 751 752# Initialize some variables set by options. 753ac_init_help= 754ac_init_version=false 755ac_unrecognized_opts= 756ac_unrecognized_sep= 757# The variables have the same names as the options, with 758# dashes changed to underlines. 759cache_file=/dev/null 760exec_prefix=NONE 761no_create= 762no_recursion= 763prefix=NONE 764program_prefix=NONE 765program_suffix=NONE 766program_transform_name=s,x,x, 767silent= 768site= 769srcdir= 770verbose= 771x_includes=NONE 772x_libraries=NONE 773 774# Installation directory options. 775# These are left unexpanded so users can "make install exec_prefix=/foo" 776# and all the variables that are supposed to be based on exec_prefix 777# by default will actually change. 778# Use braces instead of parens because sh, perl, etc. also accept them. 779# (The list follows the same order as the GNU Coding Standards.) 780bindir='${exec_prefix}/bin' 781sbindir='${exec_prefix}/sbin' 782libexecdir='${exec_prefix}/libexec' 783datarootdir='${prefix}/share' 784datadir='${datarootdir}' 785sysconfdir='${prefix}/etc' 786sharedstatedir='${prefix}/com' 787localstatedir='${prefix}/var' 788includedir='${prefix}/include' 789oldincludedir='/usr/include' 790docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 791infodir='${datarootdir}/info' 792htmldir='${docdir}' 793dvidir='${docdir}' 794pdfdir='${docdir}' 795psdir='${docdir}' 796libdir='${exec_prefix}/lib' 797localedir='${datarootdir}/locale' 798mandir='${datarootdir}/man' 799 800ac_prev= 801ac_dashdash= 802for ac_option 803do 804 # If the previous option needs an argument, assign it. 805 if test -n "$ac_prev"; then 806 eval $ac_prev=\$ac_option 807 ac_prev= 808 continue 809 fi 810 811 case $ac_option in 812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 813 *=) ac_optarg= ;; 814 *) ac_optarg=yes ;; 815 esac 816 817 # Accept the important Cygnus configure options, so we can diagnose typos. 818 819 case $ac_dashdash$ac_option in 820 --) 821 ac_dashdash=yes ;; 822 823 -bindir | --bindir | --bindi | --bind | --bin | --bi) 824 ac_prev=bindir ;; 825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 826 bindir=$ac_optarg ;; 827 828 -build | --build | --buil | --bui | --bu) 829 ac_prev=build_alias ;; 830 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 831 build_alias=$ac_optarg ;; 832 833 -cache-file | --cache-file | --cache-fil | --cache-fi \ 834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 835 ac_prev=cache_file ;; 836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 838 cache_file=$ac_optarg ;; 839 840 --config-cache | -C) 841 cache_file=config.cache ;; 842 843 -datadir | --datadir | --datadi | --datad) 844 ac_prev=datadir ;; 845 -datadir=* | --datadir=* | --datadi=* | --datad=*) 846 datadir=$ac_optarg ;; 847 848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 849 | --dataroo | --dataro | --datar) 850 ac_prev=datarootdir ;; 851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 853 datarootdir=$ac_optarg ;; 854 855 -disable-* | --disable-*) 856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 859 as_fn_error $? "invalid feature name: $ac_useropt" 860 ac_useropt_orig=$ac_useropt 861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 862 case $ac_user_opts in 863 *" 864"enable_$ac_useropt" 865"*) ;; 866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 867 ac_unrecognized_sep=', ';; 868 esac 869 eval enable_$ac_useropt=no ;; 870 871 -docdir | --docdir | --docdi | --doc | --do) 872 ac_prev=docdir ;; 873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 874 docdir=$ac_optarg ;; 875 876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 877 ac_prev=dvidir ;; 878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 879 dvidir=$ac_optarg ;; 880 881 -enable-* | --enable-*) 882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 885 as_fn_error $? "invalid feature name: $ac_useropt" 886 ac_useropt_orig=$ac_useropt 887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 888 case $ac_user_opts in 889 *" 890"enable_$ac_useropt" 891"*) ;; 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 893 ac_unrecognized_sep=', ';; 894 esac 895 eval enable_$ac_useropt=\$ac_optarg ;; 896 897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 899 | --exec | --exe | --ex) 900 ac_prev=exec_prefix ;; 901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 903 | --exec=* | --exe=* | --ex=*) 904 exec_prefix=$ac_optarg ;; 905 906 -gas | --gas | --ga | --g) 907 # Obsolete; use --with-gas. 908 with_gas=yes ;; 909 910 -help | --help | --hel | --he | -h) 911 ac_init_help=long ;; 912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 913 ac_init_help=recursive ;; 914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 915 ac_init_help=short ;; 916 917 -host | --host | --hos | --ho) 918 ac_prev=host_alias ;; 919 -host=* | --host=* | --hos=* | --ho=*) 920 host_alias=$ac_optarg ;; 921 922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 923 ac_prev=htmldir ;; 924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 925 | --ht=*) 926 htmldir=$ac_optarg ;; 927 928 -includedir | --includedir | --includedi | --included | --include \ 929 | --includ | --inclu | --incl | --inc) 930 ac_prev=includedir ;; 931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 932 | --includ=* | --inclu=* | --incl=* | --inc=*) 933 includedir=$ac_optarg ;; 934 935 -infodir | --infodir | --infodi | --infod | --info | --inf) 936 ac_prev=infodir ;; 937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 938 infodir=$ac_optarg ;; 939 940 -libdir | --libdir | --libdi | --libd) 941 ac_prev=libdir ;; 942 -libdir=* | --libdir=* | --libdi=* | --libd=*) 943 libdir=$ac_optarg ;; 944 945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 946 | --libexe | --libex | --libe) 947 ac_prev=libexecdir ;; 948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 949 | --libexe=* | --libex=* | --libe=*) 950 libexecdir=$ac_optarg ;; 951 952 -localedir | --localedir | --localedi | --localed | --locale) 953 ac_prev=localedir ;; 954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 955 localedir=$ac_optarg ;; 956 957 -localstatedir | --localstatedir | --localstatedi | --localstated \ 958 | --localstate | --localstat | --localsta | --localst | --locals) 959 ac_prev=localstatedir ;; 960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 962 localstatedir=$ac_optarg ;; 963 964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 965 ac_prev=mandir ;; 966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 967 mandir=$ac_optarg ;; 968 969 -nfp | --nfp | --nf) 970 # Obsolete; use --without-fp. 971 with_fp=no ;; 972 973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 974 | --no-cr | --no-c | -n) 975 no_create=yes ;; 976 977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 979 no_recursion=yes ;; 980 981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 983 | --oldin | --oldi | --old | --ol | --o) 984 ac_prev=oldincludedir ;; 985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 988 oldincludedir=$ac_optarg ;; 989 990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 991 ac_prev=prefix ;; 992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 993 prefix=$ac_optarg ;; 994 995 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 996 | --program-pre | --program-pr | --program-p) 997 ac_prev=program_prefix ;; 998 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1000 program_prefix=$ac_optarg ;; 1001 1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1003 | --program-suf | --program-su | --program-s) 1004 ac_prev=program_suffix ;; 1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1007 program_suffix=$ac_optarg ;; 1008 1009 -program-transform-name | --program-transform-name \ 1010 | --program-transform-nam | --program-transform-na \ 1011 | --program-transform-n | --program-transform- \ 1012 | --program-transform | --program-transfor \ 1013 | --program-transfo | --program-transf \ 1014 | --program-trans | --program-tran \ 1015 | --progr-tra | --program-tr | --program-t) 1016 ac_prev=program_transform_name ;; 1017 -program-transform-name=* | --program-transform-name=* \ 1018 | --program-transform-nam=* | --program-transform-na=* \ 1019 | --program-transform-n=* | --program-transform-=* \ 1020 | --program-transform=* | --program-transfor=* \ 1021 | --program-transfo=* | --program-transf=* \ 1022 | --program-trans=* | --program-tran=* \ 1023 | --progr-tra=* | --program-tr=* | --program-t=*) 1024 program_transform_name=$ac_optarg ;; 1025 1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1027 ac_prev=pdfdir ;; 1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1029 pdfdir=$ac_optarg ;; 1030 1031 -psdir | --psdir | --psdi | --psd | --ps) 1032 ac_prev=psdir ;; 1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1034 psdir=$ac_optarg ;; 1035 1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1037 | -silent | --silent | --silen | --sile | --sil) 1038 silent=yes ;; 1039 1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1041 ac_prev=sbindir ;; 1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1043 | --sbi=* | --sb=*) 1044 sbindir=$ac_optarg ;; 1045 1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1048 | --sharedst | --shareds | --shared | --share | --shar \ 1049 | --sha | --sh) 1050 ac_prev=sharedstatedir ;; 1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1054 | --sha=* | --sh=*) 1055 sharedstatedir=$ac_optarg ;; 1056 1057 -site | --site | --sit) 1058 ac_prev=site ;; 1059 -site=* | --site=* | --sit=*) 1060 site=$ac_optarg ;; 1061 1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1063 ac_prev=srcdir ;; 1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1065 srcdir=$ac_optarg ;; 1066 1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1068 | --syscon | --sysco | --sysc | --sys | --sy) 1069 ac_prev=sysconfdir ;; 1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1072 sysconfdir=$ac_optarg ;; 1073 1074 -target | --target | --targe | --targ | --tar | --ta | --t) 1075 ac_prev=target_alias ;; 1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1077 target_alias=$ac_optarg ;; 1078 1079 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1080 verbose=yes ;; 1081 1082 -version | --version | --versio | --versi | --vers | -V) 1083 ac_init_version=: ;; 1084 1085 -with-* | --with-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 as_fn_error $? "invalid package name: $ac_useropt" 1090 ac_useropt_orig=$ac_useropt 1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1092 case $ac_user_opts in 1093 *" 1094"with_$ac_useropt" 1095"*) ;; 1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1097 ac_unrecognized_sep=', ';; 1098 esac 1099 eval with_$ac_useropt=\$ac_optarg ;; 1100 1101 -without-* | --without-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=no ;; 1116 1117 --x) 1118 # Obsolete; use --with-x. 1119 with_x=yes ;; 1120 1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1122 | --x-incl | --x-inc | --x-in | --x-i) 1123 ac_prev=x_includes ;; 1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1126 x_includes=$ac_optarg ;; 1127 1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1130 ac_prev=x_libraries ;; 1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1133 x_libraries=$ac_optarg ;; 1134 1135 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1136Try \`$0 --help' for more information" 1137 ;; 1138 1139 *=*) 1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1141 # Reject names that are not valid shell variable names. 1142 case $ac_envvar in #( 1143 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1145 esac 1146 eval $ac_envvar=\$ac_optarg 1147 export $ac_envvar ;; 1148 1149 *) 1150 # FIXME: should be removed in autoconf 3.0. 1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1155 ;; 1156 1157 esac 1158done 1159 1160if test -n "$ac_prev"; then 1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1162 as_fn_error $? "missing argument to $ac_option" 1163fi 1164 1165if test -n "$ac_unrecognized_opts"; then 1166 case $enable_option_checking in 1167 no) ;; 1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1170 esac 1171fi 1172 1173# Check all directory arguments for consistency. 1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1175 datadir sysconfdir sharedstatedir localstatedir includedir \ 1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1177 libdir localedir mandir 1178do 1179 eval ac_val=\$$ac_var 1180 # Remove trailing slashes. 1181 case $ac_val in 1182 */ ) 1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1184 eval $ac_var=\$ac_val;; 1185 esac 1186 # Be sure to have absolute directory names. 1187 case $ac_val in 1188 [\\/$]* | ?:[\\/]* ) continue;; 1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1190 esac 1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1192done 1193 1194# There might be people who depend on the old broken behavior: `$host' 1195# used to hold the argument of --host etc. 1196# FIXME: To remove some day. 1197build=$build_alias 1198host=$host_alias 1199target=$target_alias 1200 1201# FIXME: To remove some day. 1202if test "x$host_alias" != x; then 1203 if test "x$build_alias" = x; then 1204 cross_compiling=maybe 1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1206 If a cross compiler is detected then cross compile mode will be used" >&2 1207 elif test "x$build_alias" != "x$host_alias"; then 1208 cross_compiling=yes 1209 fi 1210fi 1211 1212ac_tool_prefix= 1213test -n "$host_alias" && ac_tool_prefix=$host_alias- 1214 1215test "$silent" = yes && exec 6>/dev/null 1216 1217 1218ac_pwd=`pwd` && test -n "$ac_pwd" && 1219ac_ls_di=`ls -di .` && 1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1221 as_fn_error $? "working directory cannot be determined" 1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1223 as_fn_error $? "pwd does not report name of working directory" 1224 1225 1226# Find the source files, if location was not specified. 1227if test -z "$srcdir"; then 1228 ac_srcdir_defaulted=yes 1229 # Try the directory containing this script, then the parent directory. 1230 ac_confdir=`$as_dirname -- "$as_myself" || 1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1232 X"$as_myself" : 'X\(//\)[^/]' \| \ 1233 X"$as_myself" : 'X\(//\)$' \| \ 1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1235$as_echo X"$as_myself" | 1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)[^/].*/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\/\)$/{ 1245 s//\1/ 1246 q 1247 } 1248 /^X\(\/\).*/{ 1249 s//\1/ 1250 q 1251 } 1252 s/.*/./; q'` 1253 srcdir=$ac_confdir 1254 if test ! -r "$srcdir/$ac_unique_file"; then 1255 srcdir=.. 1256 fi 1257else 1258 ac_srcdir_defaulted=no 1259fi 1260if test ! -r "$srcdir/$ac_unique_file"; then 1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1263fi 1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1265ac_abs_confdir=`( 1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1267 pwd)` 1268# When building in place, set srcdir=. 1269if test "$ac_abs_confdir" = "$ac_pwd"; then 1270 srcdir=. 1271fi 1272# Remove unnecessary trailing slashes from srcdir. 1273# Double slashes in file names in object file debugging info 1274# mess up M-x gdb in Emacs. 1275case $srcdir in 1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1277esac 1278for ac_var in $ac_precious_vars; do 1279 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_env_${ac_var}_value=\$${ac_var} 1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1283done 1284 1285# 1286# Report the --help message. 1287# 1288if test "$ac_init_help" = "long"; then 1289 # Omit some internal or obsolete options to make the list less imposing. 1290 # This message is too long to be a string in the A/UX 3.1 sh. 1291 cat <<_ACEOF 1292\`configure' configures makedepend 1.0.4 to adapt to many kinds of systems. 1293 1294Usage: $0 [OPTION]... [VAR=VALUE]... 1295 1296To assign environment variables (e.g., CC, CFLAGS...), specify them as 1297VAR=VALUE. See below for descriptions of some of the useful variables. 1298 1299Defaults for the options are specified in brackets. 1300 1301Configuration: 1302 -h, --help display this help and exit 1303 --help=short display options specific to this package 1304 --help=recursive display the short help of all the included packages 1305 -V, --version display version information and exit 1306 -q, --quiet, --silent do not print \`checking ...' messages 1307 --cache-file=FILE cache test results in FILE [disabled] 1308 -C, --config-cache alias for \`--cache-file=config.cache' 1309 -n, --no-create do not create output files 1310 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1311 1312Installation directories: 1313 --prefix=PREFIX install architecture-independent files in PREFIX 1314 [$ac_default_prefix] 1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1316 [PREFIX] 1317 1318By default, \`make install' will install all the files in 1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1320an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1321for instance \`--prefix=\$HOME'. 1322 1323For better control, use the options below. 1324 1325Fine tuning of the installation directories: 1326 --bindir=DIR user executables [EPREFIX/bin] 1327 --sbindir=DIR system admin executables [EPREFIX/sbin] 1328 --libexecdir=DIR program executables [EPREFIX/libexec] 1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1332 --libdir=DIR object code libraries [EPREFIX/lib] 1333 --includedir=DIR C header files [PREFIX/include] 1334 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1337 --infodir=DIR info documentation [DATAROOTDIR/info] 1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1339 --mandir=DIR man documentation [DATAROOTDIR/man] 1340 --docdir=DIR documentation root [DATAROOTDIR/doc/makedepend] 1341 --htmldir=DIR html documentation [DOCDIR] 1342 --dvidir=DIR dvi documentation [DOCDIR] 1343 --pdfdir=DIR pdf documentation [DOCDIR] 1344 --psdir=DIR ps documentation [DOCDIR] 1345_ACEOF 1346 1347 cat <<\_ACEOF 1348 1349Program names: 1350 --program-prefix=PREFIX prepend PREFIX to installed program names 1351 --program-suffix=SUFFIX append SUFFIX to installed program names 1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1353 1354System types: 1355 --build=BUILD configure for building on BUILD [guessed] 1356 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1357_ACEOF 1358fi 1359 1360if test -n "$ac_init_help"; then 1361 case $ac_init_help in 1362 short | recursive ) echo "Configuration of makedepend 1.0.4:";; 1363 esac 1364 cat <<\_ACEOF 1365 1366Optional Features: 1367 --disable-option-checking ignore unrecognized --enable/--with options 1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1370 --disable-dependency-tracking speeds up one-time build 1371 --enable-dependency-tracking do not reject slow dependency extractors 1372 --disable-selective-werror 1373 Turn off selective compiler errors. (default: 1374 enabled) 1375 --enable-strict-compilation 1376 Enable all warnings from compiler and make them 1377 errors (default: disabled) 1378 --enable-silent-rules less verbose build output (undo: `make V=1') 1379 --disable-silent-rules verbose build output (undo: `make V=0') 1380 --disable-largefile omit support for large files 1381 1382Optional Packages: 1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1385 --with-lint Use a lint-style source code checker (default: 1386 disabled) 1387 1388Some influential environment variables: 1389 CC C compiler command 1390 CFLAGS C compiler flags 1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1392 nonstandard directory <lib dir> 1393 LIBS libraries to pass to the linker, e.g. -l<library> 1394 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1395 you have headers in a nonstandard directory <include dir> 1396 CPP C preprocessor 1397 PKG_CONFIG path to pkg-config utility 1398 LINT Path to a lint-style command 1399 LINT_FLAGS Flags for the lint-style command 1400 X_CFLAGS C compiler flags for X, overriding pkg-config 1401 X_LIBS linker flags for X, overriding pkg-config 1402 1403Use these variables to override the choices made by `configure' or to help 1404it to find libraries and programs with nonstandard names/locations. 1405 1406Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1407_ACEOF 1408ac_status=$? 1409fi 1410 1411if test "$ac_init_help" = "recursive"; then 1412 # If there are subdirs, report their specific --help. 1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1414 test -d "$ac_dir" || 1415 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1416 continue 1417 ac_builddir=. 1418 1419case "$ac_dir" in 1420.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1421*) 1422 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1423 # A ".." for each directory in $ac_dir_suffix. 1424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1425 case $ac_top_builddir_sub in 1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1428 esac ;; 1429esac 1430ac_abs_top_builddir=$ac_pwd 1431ac_abs_builddir=$ac_pwd$ac_dir_suffix 1432# for backward compatibility: 1433ac_top_builddir=$ac_top_build_prefix 1434 1435case $srcdir in 1436 .) # We are building in place. 1437 ac_srcdir=. 1438 ac_top_srcdir=$ac_top_builddir_sub 1439 ac_abs_top_srcdir=$ac_pwd ;; 1440 [\\/]* | ?:[\\/]* ) # Absolute name. 1441 ac_srcdir=$srcdir$ac_dir_suffix; 1442 ac_top_srcdir=$srcdir 1443 ac_abs_top_srcdir=$srcdir ;; 1444 *) # Relative name. 1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1446 ac_top_srcdir=$ac_top_build_prefix$srcdir 1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1448esac 1449ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1450 1451 cd "$ac_dir" || { ac_status=$?; continue; } 1452 # Check for guested configure. 1453 if test -f "$ac_srcdir/configure.gnu"; then 1454 echo && 1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1456 elif test -f "$ac_srcdir/configure"; then 1457 echo && 1458 $SHELL "$ac_srcdir/configure" --help=recursive 1459 else 1460 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1461 fi || ac_status=$? 1462 cd "$ac_pwd" || { ac_status=$?; break; } 1463 done 1464fi 1465 1466test -n "$ac_init_help" && exit $ac_status 1467if $ac_init_version; then 1468 cat <<\_ACEOF 1469makedepend configure 1.0.4 1470generated by GNU Autoconf 2.68 1471 1472Copyright (C) 2010 Free Software Foundation, Inc. 1473This configure script is free software; the Free Software Foundation 1474gives unlimited permission to copy, distribute and modify it. 1475_ACEOF 1476 exit 1477fi 1478 1479## ------------------------ ## 1480## Autoconf initialization. ## 1481## ------------------------ ## 1482 1483# ac_fn_c_try_compile LINENO 1484# -------------------------- 1485# Try to compile conftest.$ac_ext, and return whether this succeeded. 1486ac_fn_c_try_compile () 1487{ 1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1489 rm -f conftest.$ac_objext 1490 if { { ac_try="$ac_compile" 1491case "(($ac_try" in 1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1493 *) ac_try_echo=$ac_try;; 1494esac 1495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1496$as_echo "$ac_try_echo"; } >&5 1497 (eval "$ac_compile") 2>conftest.err 1498 ac_status=$? 1499 if test -s conftest.err; then 1500 grep -v '^ *+' conftest.err >conftest.er1 1501 cat conftest.er1 >&5 1502 mv -f conftest.er1 conftest.err 1503 fi 1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1505 test $ac_status = 0; } && { 1506 test -z "$ac_c_werror_flag" || 1507 test ! -s conftest.err 1508 } && test -s conftest.$ac_objext; then : 1509 ac_retval=0 1510else 1511 $as_echo "$as_me: failed program was:" >&5 1512sed 's/^/| /' conftest.$ac_ext >&5 1513 1514 ac_retval=1 1515fi 1516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1517 as_fn_set_status $ac_retval 1518 1519} # ac_fn_c_try_compile 1520 1521# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1522# --------------------------------------------- 1523# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1524# accordingly. 1525ac_fn_c_check_decl () 1526{ 1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1528 as_decl_name=`echo $2|sed 's/ *(.*//'` 1529 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1531$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1532if eval \${$3+:} false; then : 1533 $as_echo_n "(cached) " >&6 1534else 1535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1536/* end confdefs.h. */ 1537$4 1538int 1539main () 1540{ 1541#ifndef $as_decl_name 1542#ifdef __cplusplus 1543 (void) $as_decl_use; 1544#else 1545 (void) $as_decl_name; 1546#endif 1547#endif 1548 1549 ; 1550 return 0; 1551} 1552_ACEOF 1553if ac_fn_c_try_compile "$LINENO"; then : 1554 eval "$3=yes" 1555else 1556 eval "$3=no" 1557fi 1558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1559fi 1560eval ac_res=\$$3 1561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1562$as_echo "$ac_res" >&6; } 1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1564 1565} # ac_fn_c_check_decl 1566 1567# ac_fn_c_try_cpp LINENO 1568# ---------------------- 1569# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1570ac_fn_c_try_cpp () 1571{ 1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1573 if { { ac_try="$ac_cpp conftest.$ac_ext" 1574case "(($ac_try" in 1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1576 *) ac_try_echo=$ac_try;; 1577esac 1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1579$as_echo "$ac_try_echo"; } >&5 1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1581 ac_status=$? 1582 if test -s conftest.err; then 1583 grep -v '^ *+' conftest.err >conftest.er1 1584 cat conftest.er1 >&5 1585 mv -f conftest.er1 conftest.err 1586 fi 1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1588 test $ac_status = 0; } > conftest.i && { 1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1590 test ! -s conftest.err 1591 }; then : 1592 ac_retval=0 1593else 1594 $as_echo "$as_me: failed program was:" >&5 1595sed 's/^/| /' conftest.$ac_ext >&5 1596 1597 ac_retval=1 1598fi 1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1600 as_fn_set_status $ac_retval 1601 1602} # ac_fn_c_try_cpp 1603 1604# ac_fn_c_try_run LINENO 1605# ---------------------- 1606# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1607# that executables *can* be run. 1608ac_fn_c_try_run () 1609{ 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 if { { ac_try="$ac_link" 1612case "(($ac_try" in 1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1614 *) ac_try_echo=$ac_try;; 1615esac 1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1617$as_echo "$ac_try_echo"; } >&5 1618 (eval "$ac_link") 2>&5 1619 ac_status=$? 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1622 { { case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625esac 1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627$as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_try") 2>&5 1629 ac_status=$? 1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631 test $ac_status = 0; }; }; then : 1632 ac_retval=0 1633else 1634 $as_echo "$as_me: program exited with status $ac_status" >&5 1635 $as_echo "$as_me: failed program was:" >&5 1636sed 's/^/| /' conftest.$ac_ext >&5 1637 1638 ac_retval=$ac_status 1639fi 1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1642 as_fn_set_status $ac_retval 1643 1644} # ac_fn_c_try_run 1645 1646# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1647# ------------------------------------------------------- 1648# Tests whether HEADER exists and can be compiled using the include files in 1649# INCLUDES, setting the cache variable VAR accordingly. 1650ac_fn_c_check_header_compile () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1654$as_echo_n "checking for $2... " >&6; } 1655if eval \${$3+:} false; then : 1656 $as_echo_n "(cached) " >&6 1657else 1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1659/* end confdefs.h. */ 1660$4 1661#include <$2> 1662_ACEOF 1663if ac_fn_c_try_compile "$LINENO"; then : 1664 eval "$3=yes" 1665else 1666 eval "$3=no" 1667fi 1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1669fi 1670eval ac_res=\$$3 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1672$as_echo "$ac_res" >&6; } 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674 1675} # ac_fn_c_check_header_compile 1676 1677# ac_fn_c_try_link LINENO 1678# ----------------------- 1679# Try to link conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_link () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 rm -f conftest.$ac_objext conftest$ac_exeext 1684 if { { ac_try="$ac_link" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_link") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } && { 1700 test -z "$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 } && test -s conftest$ac_exeext && { 1703 test "$cross_compiling" = yes || 1704 $as_test_x conftest$ac_exeext 1705 }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1715 # interfere with the next link command; also delete a directory that is 1716 # left behind by Apple's compiler. We do this before executing the actions. 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_link 1722 1723# ac_fn_c_check_func LINENO FUNC VAR 1724# ---------------------------------- 1725# Tests whether FUNC exists, setting the cache variable VAR accordingly 1726ac_fn_c_check_func () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1737 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1738#define $2 innocuous_$2 1739 1740/* System header to define __stub macros and hopefully few prototypes, 1741 which can conflict with char $2 (); below. 1742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1743 <limits.h> exists even on freestanding compilers. */ 1744 1745#ifdef __STDC__ 1746# include <limits.h> 1747#else 1748# include <assert.h> 1749#endif 1750 1751#undef $2 1752 1753/* Override any GCC internal prototype to avoid an error. 1754 Use char because int might match the return type of a GCC 1755 builtin and then its argument prototype would still apply. */ 1756#ifdef __cplusplus 1757extern "C" 1758#endif 1759char $2 (); 1760/* The GNU C library defines this for functions which it implements 1761 to always fail with ENOSYS. Some functions are actually named 1762 something starting with __ and the normal name is an alias. */ 1763#if defined __stub_$2 || defined __stub___$2 1764choke me 1765#endif 1766 1767int 1768main () 1769{ 1770return $2 (); 1771 ; 1772 return 0; 1773} 1774_ACEOF 1775if ac_fn_c_try_link "$LINENO"; then : 1776 eval "$3=yes" 1777else 1778 eval "$3=no" 1779fi 1780rm -f core conftest.err conftest.$ac_objext \ 1781 conftest$ac_exeext conftest.$ac_ext 1782fi 1783eval ac_res=\$$3 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1785$as_echo "$ac_res" >&6; } 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 1788} # ac_fn_c_check_func 1789cat >config.log <<_ACEOF 1790This file contains any messages produced by compilers while 1791running configure, to aid debugging if configure makes a mistake. 1792 1793It was created by makedepend $as_me 1.0.4, which was 1794generated by GNU Autoconf 2.68. Invocation command line was 1795 1796 $ $0 $@ 1797 1798_ACEOF 1799exec 5>>config.log 1800{ 1801cat <<_ASUNAME 1802## --------- ## 1803## Platform. ## 1804## --------- ## 1805 1806hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1807uname -m = `(uname -m) 2>/dev/null || echo unknown` 1808uname -r = `(uname -r) 2>/dev/null || echo unknown` 1809uname -s = `(uname -s) 2>/dev/null || echo unknown` 1810uname -v = `(uname -v) 2>/dev/null || echo unknown` 1811 1812/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1813/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1814 1815/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1816/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1817/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1818/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1819/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1820/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1821/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1822 1823_ASUNAME 1824 1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1826for as_dir in $PATH 1827do 1828 IFS=$as_save_IFS 1829 test -z "$as_dir" && as_dir=. 1830 $as_echo "PATH: $as_dir" 1831 done 1832IFS=$as_save_IFS 1833 1834} >&5 1835 1836cat >&5 <<_ACEOF 1837 1838 1839## ----------- ## 1840## Core tests. ## 1841## ----------- ## 1842 1843_ACEOF 1844 1845 1846# Keep a trace of the command line. 1847# Strip out --no-create and --no-recursion so they do not pile up. 1848# Strip out --silent because we don't want to record it for future runs. 1849# Also quote any args containing shell meta-characters. 1850# Make two passes to allow for proper duplicate-argument suppression. 1851ac_configure_args= 1852ac_configure_args0= 1853ac_configure_args1= 1854ac_must_keep_next=false 1855for ac_pass in 1 2 1856do 1857 for ac_arg 1858 do 1859 case $ac_arg in 1860 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1861 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1862 | -silent | --silent | --silen | --sile | --sil) 1863 continue ;; 1864 *\'*) 1865 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1866 esac 1867 case $ac_pass in 1868 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1869 2) 1870 as_fn_append ac_configure_args1 " '$ac_arg'" 1871 if test $ac_must_keep_next = true; then 1872 ac_must_keep_next=false # Got value, back to normal. 1873 else 1874 case $ac_arg in 1875 *=* | --config-cache | -C | -disable-* | --disable-* \ 1876 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1877 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1878 | -with-* | --with-* | -without-* | --without-* | --x) 1879 case "$ac_configure_args0 " in 1880 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1881 esac 1882 ;; 1883 -* ) ac_must_keep_next=true ;; 1884 esac 1885 fi 1886 as_fn_append ac_configure_args " '$ac_arg'" 1887 ;; 1888 esac 1889 done 1890done 1891{ ac_configure_args0=; unset ac_configure_args0;} 1892{ ac_configure_args1=; unset ac_configure_args1;} 1893 1894# When interrupted or exit'd, cleanup temporary files, and complete 1895# config.log. We remove comments because anyway the quotes in there 1896# would cause problems or look ugly. 1897# WARNING: Use '\'' to represent an apostrophe within the trap. 1898# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1899trap 'exit_status=$? 1900 # Save into config.log some information that might help in debugging. 1901 { 1902 echo 1903 1904 $as_echo "## ---------------- ## 1905## Cache variables. ## 1906## ---------------- ##" 1907 echo 1908 # The following way of writing the cache mishandles newlines in values, 1909( 1910 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1911 eval ac_val=\$$ac_var 1912 case $ac_val in #( 1913 *${as_nl}*) 1914 case $ac_var in #( 1915 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1916$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1917 esac 1918 case $ac_var in #( 1919 _ | IFS | as_nl) ;; #( 1920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1921 *) { eval $ac_var=; unset $ac_var;} ;; 1922 esac ;; 1923 esac 1924 done 1925 (set) 2>&1 | 1926 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1927 *${as_nl}ac_space=\ *) 1928 sed -n \ 1929 "s/'\''/'\''\\\\'\'''\''/g; 1930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1931 ;; #( 1932 *) 1933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1934 ;; 1935 esac | 1936 sort 1937) 1938 echo 1939 1940 $as_echo "## ----------------- ## 1941## Output variables. ## 1942## ----------------- ##" 1943 echo 1944 for ac_var in $ac_subst_vars 1945 do 1946 eval ac_val=\$$ac_var 1947 case $ac_val in 1948 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1949 esac 1950 $as_echo "$ac_var='\''$ac_val'\''" 1951 done | sort 1952 echo 1953 1954 if test -n "$ac_subst_files"; then 1955 $as_echo "## ------------------- ## 1956## File substitutions. ## 1957## ------------------- ##" 1958 echo 1959 for ac_var in $ac_subst_files 1960 do 1961 eval ac_val=\$$ac_var 1962 case $ac_val in 1963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1964 esac 1965 $as_echo "$ac_var='\''$ac_val'\''" 1966 done | sort 1967 echo 1968 fi 1969 1970 if test -s confdefs.h; then 1971 $as_echo "## ----------- ## 1972## confdefs.h. ## 1973## ----------- ##" 1974 echo 1975 cat confdefs.h 1976 echo 1977 fi 1978 test "$ac_signal" != 0 && 1979 $as_echo "$as_me: caught signal $ac_signal" 1980 $as_echo "$as_me: exit $exit_status" 1981 } >&5 1982 rm -f core *.core core.conftest.* && 1983 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1984 exit $exit_status 1985' 0 1986for ac_signal in 1 2 13 15; do 1987 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1988done 1989ac_signal=0 1990 1991# confdefs.h avoids OS command line length limits that DEFS can exceed. 1992rm -f -r conftest* confdefs.h 1993 1994$as_echo "/* confdefs.h */" > confdefs.h 1995 1996# Predefined preprocessor variables. 1997 1998cat >>confdefs.h <<_ACEOF 1999#define PACKAGE_NAME "$PACKAGE_NAME" 2000_ACEOF 2001 2002cat >>confdefs.h <<_ACEOF 2003#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2004_ACEOF 2005 2006cat >>confdefs.h <<_ACEOF 2007#define PACKAGE_VERSION "$PACKAGE_VERSION" 2008_ACEOF 2009 2010cat >>confdefs.h <<_ACEOF 2011#define PACKAGE_STRING "$PACKAGE_STRING" 2012_ACEOF 2013 2014cat >>confdefs.h <<_ACEOF 2015#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2016_ACEOF 2017 2018cat >>confdefs.h <<_ACEOF 2019#define PACKAGE_URL "$PACKAGE_URL" 2020_ACEOF 2021 2022 2023# Let the site file select an alternate cache file if it wants to. 2024# Prefer an explicitly selected file to automatically selected ones. 2025ac_site_file1=NONE 2026ac_site_file2=NONE 2027if test -n "$CONFIG_SITE"; then 2028 # We do not want a PATH search for config.site. 2029 case $CONFIG_SITE in #(( 2030 -*) ac_site_file1=./$CONFIG_SITE;; 2031 */*) ac_site_file1=$CONFIG_SITE;; 2032 *) ac_site_file1=./$CONFIG_SITE;; 2033 esac 2034elif test "x$prefix" != xNONE; then 2035 ac_site_file1=$prefix/share/config.site 2036 ac_site_file2=$prefix/etc/config.site 2037else 2038 ac_site_file1=$ac_default_prefix/share/config.site 2039 ac_site_file2=$ac_default_prefix/etc/config.site 2040fi 2041for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2042do 2043 test "x$ac_site_file" = xNONE && continue 2044 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2046$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2047 sed 's/^/| /' "$ac_site_file" >&5 2048 . "$ac_site_file" \ 2049 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2051as_fn_error $? "failed to load site script $ac_site_file 2052See \`config.log' for more details" "$LINENO" 5; } 2053 fi 2054done 2055 2056if test -r "$cache_file"; then 2057 # Some versions of bash will fail to source /dev/null (special files 2058 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2059 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2061$as_echo "$as_me: loading cache $cache_file" >&6;} 2062 case $cache_file in 2063 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2064 *) . "./$cache_file";; 2065 esac 2066 fi 2067else 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2069$as_echo "$as_me: creating cache $cache_file" >&6;} 2070 >$cache_file 2071fi 2072 2073# Check that the precious variables saved in the cache have kept the same 2074# value. 2075ac_cache_corrupted=false 2076for ac_var in $ac_precious_vars; do 2077 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2078 eval ac_new_set=\$ac_env_${ac_var}_set 2079 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2080 eval ac_new_val=\$ac_env_${ac_var}_value 2081 case $ac_old_set,$ac_new_set in 2082 set,) 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2084$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2085 ac_cache_corrupted=: ;; 2086 ,set) 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2088$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2089 ac_cache_corrupted=: ;; 2090 ,);; 2091 *) 2092 if test "x$ac_old_val" != "x$ac_new_val"; then 2093 # differences in whitespace do not lead to failure. 2094 ac_old_val_w=`echo x $ac_old_val` 2095 ac_new_val_w=`echo x $ac_new_val` 2096 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2098$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2099 ac_cache_corrupted=: 2100 else 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2102$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2103 eval $ac_var=\$ac_old_val 2104 fi 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2106$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2108$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2109 fi;; 2110 esac 2111 # Pass precious variables to config.status. 2112 if test "$ac_new_set" = set; then 2113 case $ac_new_val in 2114 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2115 *) ac_arg=$ac_var=$ac_new_val ;; 2116 esac 2117 case " $ac_configure_args " in 2118 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2119 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2120 esac 2121 fi 2122done 2123if $ac_cache_corrupted; then 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2127$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2128 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2129fi 2130## -------------------- ## 2131## Main body of script. ## 2132## -------------------- ## 2133 2134ac_ext=c 2135ac_cpp='$CPP $CPPFLAGS' 2136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2138ac_compiler_gnu=$ac_cv_c_compiler_gnu 2139 2140 2141am__api_version='1.11' 2142 2143ac_aux_dir= 2144for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2145 if test -f "$ac_dir/install-sh"; then 2146 ac_aux_dir=$ac_dir 2147 ac_install_sh="$ac_aux_dir/install-sh -c" 2148 break 2149 elif test -f "$ac_dir/install.sh"; then 2150 ac_aux_dir=$ac_dir 2151 ac_install_sh="$ac_aux_dir/install.sh -c" 2152 break 2153 elif test -f "$ac_dir/shtool"; then 2154 ac_aux_dir=$ac_dir 2155 ac_install_sh="$ac_aux_dir/shtool install -c" 2156 break 2157 fi 2158done 2159if test -z "$ac_aux_dir"; then 2160 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2161fi 2162 2163# These three variables are undocumented and unsupported, 2164# and are intended to be withdrawn in a future Autoconf release. 2165# They can cause serious problems if a builder's source tree is in a directory 2166# whose full name contains unusual characters. 2167ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2168ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2169ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2170 2171 2172# Find a good install program. We prefer a C program (faster), 2173# so one script is as good as another. But avoid the broken or 2174# incompatible versions: 2175# SysV /etc/install, /usr/sbin/install 2176# SunOS /usr/etc/install 2177# IRIX /sbin/install 2178# AIX /bin/install 2179# AmigaOS /C/install, which installs bootblocks on floppy discs 2180# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2181# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2182# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2183# OS/2's system install, which has a completely different semantic 2184# ./install, which can be erroneously created by make from ./install.sh. 2185# Reject install programs that cannot install multiple files. 2186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2187$as_echo_n "checking for a BSD-compatible install... " >&6; } 2188if test -z "$INSTALL"; then 2189if ${ac_cv_path_install+:} false; then : 2190 $as_echo_n "(cached) " >&6 2191else 2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2193for as_dir in $PATH 2194do 2195 IFS=$as_save_IFS 2196 test -z "$as_dir" && as_dir=. 2197 # Account for people who put trailing slashes in PATH elements. 2198case $as_dir/ in #(( 2199 ./ | .// | /[cC]/* | \ 2200 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2201 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2202 /usr/ucb/* ) ;; 2203 *) 2204 # OSF1 and SCO ODT 3.0 have their own names for install. 2205 # Don't use installbsd from OSF since it installs stuff as root 2206 # by default. 2207 for ac_prog in ginstall scoinst install; do 2208 for ac_exec_ext in '' $ac_executable_extensions; do 2209 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2210 if test $ac_prog = install && 2211 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2212 # AIX install. It has an incompatible calling convention. 2213 : 2214 elif test $ac_prog = install && 2215 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2216 # program-specific install script used by HP pwplus--don't use. 2217 : 2218 else 2219 rm -rf conftest.one conftest.two conftest.dir 2220 echo one > conftest.one 2221 echo two > conftest.two 2222 mkdir conftest.dir 2223 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2224 test -s conftest.one && test -s conftest.two && 2225 test -s conftest.dir/conftest.one && 2226 test -s conftest.dir/conftest.two 2227 then 2228 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2229 break 3 2230 fi 2231 fi 2232 fi 2233 done 2234 done 2235 ;; 2236esac 2237 2238 done 2239IFS=$as_save_IFS 2240 2241rm -rf conftest.one conftest.two conftest.dir 2242 2243fi 2244 if test "${ac_cv_path_install+set}" = set; then 2245 INSTALL=$ac_cv_path_install 2246 else 2247 # As a last resort, use the slow shell script. Don't cache a 2248 # value for INSTALL within a source directory, because that will 2249 # break other packages using the cache if that directory is 2250 # removed, or if the value is a relative name. 2251 INSTALL=$ac_install_sh 2252 fi 2253fi 2254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2255$as_echo "$INSTALL" >&6; } 2256 2257# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2258# It thinks the first close brace ends the variable substitution. 2259test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2260 2261test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2262 2263test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2264 2265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2266$as_echo_n "checking whether build environment is sane... " >&6; } 2267# Just in case 2268sleep 1 2269echo timestamp > conftest.file 2270# Reject unsafe characters in $srcdir or the absolute working directory 2271# name. Accept space and tab only in the latter. 2272am_lf=' 2273' 2274case `pwd` in 2275 *[\\\"\#\$\&\'\`$am_lf]*) 2276 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2277esac 2278case $srcdir in 2279 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2280 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2281esac 2282 2283# Do `set' in a subshell so we don't clobber the current shell's 2284# arguments. Must try -L first in case configure is actually a 2285# symlink; some systems play weird games with the mod time of symlinks 2286# (eg FreeBSD returns the mod time of the symlink's containing 2287# directory). 2288if ( 2289 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2290 if test "$*" = "X"; then 2291 # -L didn't work. 2292 set X `ls -t "$srcdir/configure" conftest.file` 2293 fi 2294 rm -f conftest.file 2295 if test "$*" != "X $srcdir/configure conftest.file" \ 2296 && test "$*" != "X conftest.file $srcdir/configure"; then 2297 2298 # If neither matched, then we have a broken ls. This can happen 2299 # if, for instance, CONFIG_SHELL is bash and it inherits a 2300 # broken ls alias from the environment. This has actually 2301 # happened. Such a system could not be considered "sane". 2302 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2303alias in your environment" "$LINENO" 5 2304 fi 2305 2306 test "$2" = conftest.file 2307 ) 2308then 2309 # Ok. 2310 : 2311else 2312 as_fn_error $? "newly created file is older than distributed files! 2313Check your system clock" "$LINENO" 5 2314fi 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2316$as_echo "yes" >&6; } 2317test "$program_prefix" != NONE && 2318 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2319# Use a double $ so make ignores it. 2320test "$program_suffix" != NONE && 2321 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2322# Double any \ or $. 2323# By default was `s,x,x', remove it if useless. 2324ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2325program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2326 2327# expand $ac_aux_dir to an absolute path 2328am_aux_dir=`cd $ac_aux_dir && pwd` 2329 2330if test x"${MISSING+set}" != xset; then 2331 case $am_aux_dir in 2332 *\ * | *\ *) 2333 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2334 *) 2335 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2336 esac 2337fi 2338# Use eval to expand $SHELL 2339if eval "$MISSING --run true"; then 2340 am_missing_run="$MISSING --run " 2341else 2342 am_missing_run= 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2344$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2345fi 2346 2347if test x"${install_sh}" != xset; then 2348 case $am_aux_dir in 2349 *\ * | *\ *) 2350 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2351 *) 2352 install_sh="\${SHELL} $am_aux_dir/install-sh" 2353 esac 2354fi 2355 2356# Installed binaries are usually stripped using `strip' when the user 2357# run `make install-strip'. However `strip' might not be the right 2358# tool to use in cross-compilation environments, therefore Automake 2359# will honor the `STRIP' environment variable to overrule this program. 2360if test "$cross_compiling" != no; then 2361 if test -n "$ac_tool_prefix"; then 2362 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2363set dummy ${ac_tool_prefix}strip; ac_word=$2 2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2365$as_echo_n "checking for $ac_word... " >&6; } 2366if ${ac_cv_prog_STRIP+:} false; then : 2367 $as_echo_n "(cached) " >&6 2368else 2369 if test -n "$STRIP"; then 2370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2371else 2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2373for as_dir in $PATH 2374do 2375 IFS=$as_save_IFS 2376 test -z "$as_dir" && as_dir=. 2377 for ac_exec_ext in '' $ac_executable_extensions; do 2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2379 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2381 break 2 2382 fi 2383done 2384 done 2385IFS=$as_save_IFS 2386 2387fi 2388fi 2389STRIP=$ac_cv_prog_STRIP 2390if test -n "$STRIP"; then 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2392$as_echo "$STRIP" >&6; } 2393else 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2395$as_echo "no" >&6; } 2396fi 2397 2398 2399fi 2400if test -z "$ac_cv_prog_STRIP"; then 2401 ac_ct_STRIP=$STRIP 2402 # Extract the first word of "strip", so it can be a program name with args. 2403set dummy strip; ac_word=$2 2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2405$as_echo_n "checking for $ac_word... " >&6; } 2406if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2407 $as_echo_n "(cached) " >&6 2408else 2409 if test -n "$ac_ct_STRIP"; then 2410 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2411else 2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2413for as_dir in $PATH 2414do 2415 IFS=$as_save_IFS 2416 test -z "$as_dir" && as_dir=. 2417 for ac_exec_ext in '' $ac_executable_extensions; do 2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2419 ac_cv_prog_ac_ct_STRIP="strip" 2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2421 break 2 2422 fi 2423done 2424 done 2425IFS=$as_save_IFS 2426 2427fi 2428fi 2429ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2430if test -n "$ac_ct_STRIP"; then 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2432$as_echo "$ac_ct_STRIP" >&6; } 2433else 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2435$as_echo "no" >&6; } 2436fi 2437 2438 if test "x$ac_ct_STRIP" = x; then 2439 STRIP=":" 2440 else 2441 case $cross_compiling:$ac_tool_warned in 2442yes:) 2443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2445ac_tool_warned=yes ;; 2446esac 2447 STRIP=$ac_ct_STRIP 2448 fi 2449else 2450 STRIP="$ac_cv_prog_STRIP" 2451fi 2452 2453fi 2454INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2455 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2457$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2458if test -z "$MKDIR_P"; then 2459 if ${ac_cv_path_mkdir+:} false; then : 2460 $as_echo_n "(cached) " >&6 2461else 2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2463for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2464do 2465 IFS=$as_save_IFS 2466 test -z "$as_dir" && as_dir=. 2467 for ac_prog in mkdir gmkdir; do 2468 for ac_exec_ext in '' $ac_executable_extensions; do 2469 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2470 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2471 'mkdir (GNU coreutils) '* | \ 2472 'mkdir (coreutils) '* | \ 2473 'mkdir (fileutils) '4.1*) 2474 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2475 break 3;; 2476 esac 2477 done 2478 done 2479 done 2480IFS=$as_save_IFS 2481 2482fi 2483 2484 test -d ./--version && rmdir ./--version 2485 if test "${ac_cv_path_mkdir+set}" = set; then 2486 MKDIR_P="$ac_cv_path_mkdir -p" 2487 else 2488 # As a last resort, use the slow shell script. Don't cache a 2489 # value for MKDIR_P within a source directory, because that will 2490 # break other packages using the cache if that directory is 2491 # removed, or if the value is a relative name. 2492 MKDIR_P="$ac_install_sh -d" 2493 fi 2494fi 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2496$as_echo "$MKDIR_P" >&6; } 2497 2498mkdir_p="$MKDIR_P" 2499case $mkdir_p in 2500 [\\/$]* | ?:[\\/]*) ;; 2501 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2502esac 2503 2504for ac_prog in gawk mawk nawk awk 2505do 2506 # Extract the first word of "$ac_prog", so it can be a program name with args. 2507set dummy $ac_prog; ac_word=$2 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2509$as_echo_n "checking for $ac_word... " >&6; } 2510if ${ac_cv_prog_AWK+:} false; then : 2511 $as_echo_n "(cached) " >&6 2512else 2513 if test -n "$AWK"; then 2514 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2515else 2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2517for as_dir in $PATH 2518do 2519 IFS=$as_save_IFS 2520 test -z "$as_dir" && as_dir=. 2521 for ac_exec_ext in '' $ac_executable_extensions; do 2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2523 ac_cv_prog_AWK="$ac_prog" 2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2525 break 2 2526 fi 2527done 2528 done 2529IFS=$as_save_IFS 2530 2531fi 2532fi 2533AWK=$ac_cv_prog_AWK 2534if test -n "$AWK"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2536$as_echo "$AWK" >&6; } 2537else 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2539$as_echo "no" >&6; } 2540fi 2541 2542 2543 test -n "$AWK" && break 2544done 2545 2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2547$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2548set x ${MAKE-make} 2549ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2550if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2551 $as_echo_n "(cached) " >&6 2552else 2553 cat >conftest.make <<\_ACEOF 2554SHELL = /bin/sh 2555all: 2556 @echo '@@@%%%=$(MAKE)=@@@%%%' 2557_ACEOF 2558# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2559case `${MAKE-make} -f conftest.make 2>/dev/null` in 2560 *@@@%%%=?*=@@@%%%*) 2561 eval ac_cv_prog_make_${ac_make}_set=yes;; 2562 *) 2563 eval ac_cv_prog_make_${ac_make}_set=no;; 2564esac 2565rm -f conftest.make 2566fi 2567if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2569$as_echo "yes" >&6; } 2570 SET_MAKE= 2571else 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2573$as_echo "no" >&6; } 2574 SET_MAKE="MAKE=${MAKE-make}" 2575fi 2576 2577rm -rf .tst 2>/dev/null 2578mkdir .tst 2>/dev/null 2579if test -d .tst; then 2580 am__leading_dot=. 2581else 2582 am__leading_dot=_ 2583fi 2584rmdir .tst 2>/dev/null 2585 2586if test "`cd $srcdir && pwd`" != "`pwd`"; then 2587 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2588 # is not polluted with repeated "-I." 2589 am__isrc=' -I$(srcdir)' 2590 # test to see if srcdir already configured 2591 if test -f $srcdir/config.status; then 2592 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2593 fi 2594fi 2595 2596# test whether we have cygpath 2597if test -z "$CYGPATH_W"; then 2598 if (cygpath --version) >/dev/null 2>/dev/null; then 2599 CYGPATH_W='cygpath -w' 2600 else 2601 CYGPATH_W=echo 2602 fi 2603fi 2604 2605 2606# Define the identity of the package. 2607 PACKAGE='makedepend' 2608 VERSION='1.0.4' 2609 2610 2611cat >>confdefs.h <<_ACEOF 2612#define PACKAGE "$PACKAGE" 2613_ACEOF 2614 2615 2616cat >>confdefs.h <<_ACEOF 2617#define VERSION "$VERSION" 2618_ACEOF 2619 2620# Some tools Automake needs. 2621 2622ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2623 2624 2625AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2626 2627 2628AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2629 2630 2631AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2632 2633 2634MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2635 2636# We need awk for the "check" target. The system "awk" is bad on 2637# some platforms. 2638# Always define AMTAR for backward compatibility. 2639 2640AMTAR=${AMTAR-"${am_missing_run}tar"} 2641 2642am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2643 2644 2645 2646 2647 2648ac_config_headers="$ac_config_headers makedepend-config.h" 2649 2650 2651# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664ac_ext=c 2665ac_cpp='$CPP $CPPFLAGS' 2666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2668ac_compiler_gnu=$ac_cv_c_compiler_gnu 2669if test -n "$ac_tool_prefix"; then 2670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2671set dummy ${ac_tool_prefix}gcc; ac_word=$2 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2673$as_echo_n "checking for $ac_word... " >&6; } 2674if ${ac_cv_prog_CC+:} false; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 if test -n "$CC"; then 2678 ac_cv_prog_CC="$CC" # Let the user override the test. 2679else 2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2681for as_dir in $PATH 2682do 2683 IFS=$as_save_IFS 2684 test -z "$as_dir" && as_dir=. 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2687 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2689 break 2 2690 fi 2691done 2692 done 2693IFS=$as_save_IFS 2694 2695fi 2696fi 2697CC=$ac_cv_prog_CC 2698if test -n "$CC"; then 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2700$as_echo "$CC" >&6; } 2701else 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2703$as_echo "no" >&6; } 2704fi 2705 2706 2707fi 2708if test -z "$ac_cv_prog_CC"; then 2709 ac_ct_CC=$CC 2710 # Extract the first word of "gcc", so it can be a program name with args. 2711set dummy gcc; ac_word=$2 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2713$as_echo_n "checking for $ac_word... " >&6; } 2714if ${ac_cv_prog_ac_ct_CC+:} false; then : 2715 $as_echo_n "(cached) " >&6 2716else 2717 if test -n "$ac_ct_CC"; then 2718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2719else 2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2721for as_dir in $PATH 2722do 2723 IFS=$as_save_IFS 2724 test -z "$as_dir" && as_dir=. 2725 for ac_exec_ext in '' $ac_executable_extensions; do 2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2727 ac_cv_prog_ac_ct_CC="gcc" 2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2729 break 2 2730 fi 2731done 2732 done 2733IFS=$as_save_IFS 2734 2735fi 2736fi 2737ac_ct_CC=$ac_cv_prog_ac_ct_CC 2738if test -n "$ac_ct_CC"; then 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2740$as_echo "$ac_ct_CC" >&6; } 2741else 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2743$as_echo "no" >&6; } 2744fi 2745 2746 if test "x$ac_ct_CC" = x; then 2747 CC="" 2748 else 2749 case $cross_compiling:$ac_tool_warned in 2750yes:) 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2753ac_tool_warned=yes ;; 2754esac 2755 CC=$ac_ct_CC 2756 fi 2757else 2758 CC="$ac_cv_prog_CC" 2759fi 2760 2761if test -z "$CC"; then 2762 if test -n "$ac_tool_prefix"; then 2763 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2764set dummy ${ac_tool_prefix}cc; ac_word=$2 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2766$as_echo_n "checking for $ac_word... " >&6; } 2767if ${ac_cv_prog_CC+:} false; then : 2768 $as_echo_n "(cached) " >&6 2769else 2770 if test -n "$CC"; then 2771 ac_cv_prog_CC="$CC" # Let the user override the test. 2772else 2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2774for as_dir in $PATH 2775do 2776 IFS=$as_save_IFS 2777 test -z "$as_dir" && as_dir=. 2778 for ac_exec_ext in '' $ac_executable_extensions; do 2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2780 ac_cv_prog_CC="${ac_tool_prefix}cc" 2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2782 break 2 2783 fi 2784done 2785 done 2786IFS=$as_save_IFS 2787 2788fi 2789fi 2790CC=$ac_cv_prog_CC 2791if test -n "$CC"; then 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2793$as_echo "$CC" >&6; } 2794else 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2796$as_echo "no" >&6; } 2797fi 2798 2799 2800 fi 2801fi 2802if test -z "$CC"; then 2803 # Extract the first word of "cc", so it can be a program name with args. 2804set dummy cc; ac_word=$2 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2806$as_echo_n "checking for $ac_word... " >&6; } 2807if ${ac_cv_prog_CC+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 if test -n "$CC"; then 2811 ac_cv_prog_CC="$CC" # Let the user override the test. 2812else 2813 ac_prog_rejected=no 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2821 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2822 ac_prog_rejected=yes 2823 continue 2824 fi 2825 ac_cv_prog_CC="cc" 2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2827 break 2 2828 fi 2829done 2830 done 2831IFS=$as_save_IFS 2832 2833if test $ac_prog_rejected = yes; then 2834 # We found a bogon in the path, so make sure we never use it. 2835 set dummy $ac_cv_prog_CC 2836 shift 2837 if test $# != 0; then 2838 # We chose a different compiler from the bogus one. 2839 # However, it has the same basename, so the bogon will be chosen 2840 # first if we set CC to just the basename; use the full file name. 2841 shift 2842 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2843 fi 2844fi 2845fi 2846fi 2847CC=$ac_cv_prog_CC 2848if test -n "$CC"; then 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2850$as_echo "$CC" >&6; } 2851else 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2853$as_echo "no" >&6; } 2854fi 2855 2856 2857fi 2858if test -z "$CC"; then 2859 if test -n "$ac_tool_prefix"; then 2860 for ac_prog in cl.exe 2861 do 2862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2863set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2865$as_echo_n "checking for $ac_word... " >&6; } 2866if ${ac_cv_prog_CC+:} false; then : 2867 $as_echo_n "(cached) " >&6 2868else 2869 if test -n "$CC"; then 2870 ac_cv_prog_CC="$CC" # Let the user override the test. 2871else 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873for as_dir in $PATH 2874do 2875 IFS=$as_save_IFS 2876 test -z "$as_dir" && as_dir=. 2877 for ac_exec_ext in '' $ac_executable_extensions; do 2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2881 break 2 2882 fi 2883done 2884 done 2885IFS=$as_save_IFS 2886 2887fi 2888fi 2889CC=$ac_cv_prog_CC 2890if test -n "$CC"; then 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2892$as_echo "$CC" >&6; } 2893else 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2895$as_echo "no" >&6; } 2896fi 2897 2898 2899 test -n "$CC" && break 2900 done 2901fi 2902if test -z "$CC"; then 2903 ac_ct_CC=$CC 2904 for ac_prog in cl.exe 2905do 2906 # Extract the first word of "$ac_prog", so it can be a program name with args. 2907set dummy $ac_prog; ac_word=$2 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2909$as_echo_n "checking for $ac_word... " >&6; } 2910if ${ac_cv_prog_ac_ct_CC+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912else 2913 if test -n "$ac_ct_CC"; then 2914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2915else 2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2917for as_dir in $PATH 2918do 2919 IFS=$as_save_IFS 2920 test -z "$as_dir" && as_dir=. 2921 for ac_exec_ext in '' $ac_executable_extensions; do 2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2923 ac_cv_prog_ac_ct_CC="$ac_prog" 2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2925 break 2 2926 fi 2927done 2928 done 2929IFS=$as_save_IFS 2930 2931fi 2932fi 2933ac_ct_CC=$ac_cv_prog_ac_ct_CC 2934if test -n "$ac_ct_CC"; then 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2936$as_echo "$ac_ct_CC" >&6; } 2937else 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2939$as_echo "no" >&6; } 2940fi 2941 2942 2943 test -n "$ac_ct_CC" && break 2944done 2945 2946 if test "x$ac_ct_CC" = x; then 2947 CC="" 2948 else 2949 case $cross_compiling:$ac_tool_warned in 2950yes:) 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2953ac_tool_warned=yes ;; 2954esac 2955 CC=$ac_ct_CC 2956 fi 2957fi 2958 2959fi 2960 2961 2962test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2964as_fn_error $? "no acceptable C compiler found in \$PATH 2965See \`config.log' for more details" "$LINENO" 5; } 2966 2967# Provide some information about the compiler. 2968$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2969set X $ac_compile 2970ac_compiler=$2 2971for ac_option in --version -v -V -qversion; do 2972 { { ac_try="$ac_compiler $ac_option >&5" 2973case "(($ac_try" in 2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2975 *) ac_try_echo=$ac_try;; 2976esac 2977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2978$as_echo "$ac_try_echo"; } >&5 2979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2980 ac_status=$? 2981 if test -s conftest.err; then 2982 sed '10a\ 2983... rest of stderr output deleted ... 2984 10q' conftest.err >conftest.er1 2985 cat conftest.er1 >&5 2986 fi 2987 rm -f conftest.er1 conftest.err 2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2989 test $ac_status = 0; } 2990done 2991 2992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2993/* end confdefs.h. */ 2994 2995int 2996main () 2997{ 2998 2999 ; 3000 return 0; 3001} 3002_ACEOF 3003ac_clean_files_save=$ac_clean_files 3004ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3005# Try to create an executable without -o first, disregard a.out. 3006# It will help us diagnose broken compilers, and finding out an intuition 3007# of exeext. 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3009$as_echo_n "checking whether the C compiler works... " >&6; } 3010ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3011 3012# The possible output files: 3013ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3014 3015ac_rmfiles= 3016for ac_file in $ac_files 3017do 3018 case $ac_file in 3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3020 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3021 esac 3022done 3023rm -f $ac_rmfiles 3024 3025if { { ac_try="$ac_link_default" 3026case "(($ac_try" in 3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3028 *) ac_try_echo=$ac_try;; 3029esac 3030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3031$as_echo "$ac_try_echo"; } >&5 3032 (eval "$ac_link_default") 2>&5 3033 ac_status=$? 3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3035 test $ac_status = 0; }; then : 3036 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3037# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3038# in a Makefile. We should not override ac_cv_exeext if it was cached, 3039# so that the user can short-circuit this test for compilers unknown to 3040# Autoconf. 3041for ac_file in $ac_files '' 3042do 3043 test -f "$ac_file" || continue 3044 case $ac_file in 3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3046 ;; 3047 [ab].out ) 3048 # We found the default executable, but exeext='' is most 3049 # certainly right. 3050 break;; 3051 *.* ) 3052 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3053 then :; else 3054 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3055 fi 3056 # We set ac_cv_exeext here because the later test for it is not 3057 # safe: cross compilers may not add the suffix if given an `-o' 3058 # argument, so we may need to know it at that point already. 3059 # Even if this section looks crufty: it has the advantage of 3060 # actually working. 3061 break;; 3062 * ) 3063 break;; 3064 esac 3065done 3066test "$ac_cv_exeext" = no && ac_cv_exeext= 3067 3068else 3069 ac_file='' 3070fi 3071if test -z "$ac_file"; then : 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3073$as_echo "no" >&6; } 3074$as_echo "$as_me: failed program was:" >&5 3075sed 's/^/| /' conftest.$ac_ext >&5 3076 3077{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3079as_fn_error 77 "C compiler cannot create executables 3080See \`config.log' for more details" "$LINENO" 5; } 3081else 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3083$as_echo "yes" >&6; } 3084fi 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3086$as_echo_n "checking for C compiler default output file name... " >&6; } 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3088$as_echo "$ac_file" >&6; } 3089ac_exeext=$ac_cv_exeext 3090 3091rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3092ac_clean_files=$ac_clean_files_save 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3094$as_echo_n "checking for suffix of executables... " >&6; } 3095if { { ac_try="$ac_link" 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_link") 2>&5 3103 ac_status=$? 3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3105 test $ac_status = 0; }; then : 3106 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3107# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3108# work properly (i.e., refer to `conftest.exe'), while it won't with 3109# `rm'. 3110for ac_file in conftest.exe conftest conftest.*; do 3111 test -f "$ac_file" || continue 3112 case $ac_file in 3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3115 break;; 3116 * ) break;; 3117 esac 3118done 3119else 3120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3122as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3123See \`config.log' for more details" "$LINENO" 5; } 3124fi 3125rm -f conftest conftest$ac_cv_exeext 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3127$as_echo "$ac_cv_exeext" >&6; } 3128 3129rm -f conftest.$ac_ext 3130EXEEXT=$ac_cv_exeext 3131ac_exeext=$EXEEXT 3132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3133/* end confdefs.h. */ 3134#include <stdio.h> 3135int 3136main () 3137{ 3138FILE *f = fopen ("conftest.out", "w"); 3139 return ferror (f) || fclose (f) != 0; 3140 3141 ; 3142 return 0; 3143} 3144_ACEOF 3145ac_clean_files="$ac_clean_files conftest.out" 3146# Check that the compiler produces executables we can run. If not, either 3147# the compiler is broken, or we cross compile. 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3149$as_echo_n "checking whether we are cross compiling... " >&6; } 3150if test "$cross_compiling" != yes; then 3151 { { ac_try="$ac_link" 3152case "(($ac_try" in 3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3154 *) ac_try_echo=$ac_try;; 3155esac 3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3157$as_echo "$ac_try_echo"; } >&5 3158 (eval "$ac_link") 2>&5 3159 ac_status=$? 3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3161 test $ac_status = 0; } 3162 if { ac_try='./conftest$ac_cv_exeext' 3163 { { case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3168$as_echo "$ac_try_echo"; } >&5 3169 (eval "$ac_try") 2>&5 3170 ac_status=$? 3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3172 test $ac_status = 0; }; }; then 3173 cross_compiling=no 3174 else 3175 if test "$cross_compiling" = maybe; then 3176 cross_compiling=yes 3177 else 3178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3180as_fn_error $? "cannot run C compiled programs. 3181If you meant to cross compile, use \`--host'. 3182See \`config.log' for more details" "$LINENO" 5; } 3183 fi 3184 fi 3185fi 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3187$as_echo "$cross_compiling" >&6; } 3188 3189rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3190ac_clean_files=$ac_clean_files_save 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3192$as_echo_n "checking for suffix of object files... " >&6; } 3193if ${ac_cv_objext+:} false; then : 3194 $as_echo_n "(cached) " >&6 3195else 3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3197/* end confdefs.h. */ 3198 3199int 3200main () 3201{ 3202 3203 ; 3204 return 0; 3205} 3206_ACEOF 3207rm -f conftest.o conftest.obj 3208if { { ac_try="$ac_compile" 3209case "(($ac_try" in 3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3211 *) ac_try_echo=$ac_try;; 3212esac 3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3214$as_echo "$ac_try_echo"; } >&5 3215 (eval "$ac_compile") 2>&5 3216 ac_status=$? 3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3218 test $ac_status = 0; }; then : 3219 for ac_file in conftest.o conftest.obj conftest.*; do 3220 test -f "$ac_file" || continue; 3221 case $ac_file in 3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3223 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3224 break;; 3225 esac 3226done 3227else 3228 $as_echo "$as_me: failed program was:" >&5 3229sed 's/^/| /' conftest.$ac_ext >&5 3230 3231{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3233as_fn_error $? "cannot compute suffix of object files: cannot compile 3234See \`config.log' for more details" "$LINENO" 5; } 3235fi 3236rm -f conftest.$ac_cv_objext conftest.$ac_ext 3237fi 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3239$as_echo "$ac_cv_objext" >&6; } 3240OBJEXT=$ac_cv_objext 3241ac_objext=$OBJEXT 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3243$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3244if ${ac_cv_c_compiler_gnu+:} false; then : 3245 $as_echo_n "(cached) " >&6 3246else 3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3248/* end confdefs.h. */ 3249 3250int 3251main () 3252{ 3253#ifndef __GNUC__ 3254 choke me 3255#endif 3256 3257 ; 3258 return 0; 3259} 3260_ACEOF 3261if ac_fn_c_try_compile "$LINENO"; then : 3262 ac_compiler_gnu=yes 3263else 3264 ac_compiler_gnu=no 3265fi 3266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3267ac_cv_c_compiler_gnu=$ac_compiler_gnu 3268 3269fi 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3271$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3272if test $ac_compiler_gnu = yes; then 3273 GCC=yes 3274else 3275 GCC= 3276fi 3277ac_test_CFLAGS=${CFLAGS+set} 3278ac_save_CFLAGS=$CFLAGS 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3280$as_echo_n "checking whether $CC accepts -g... " >&6; } 3281if ${ac_cv_prog_cc_g+:} false; then : 3282 $as_echo_n "(cached) " >&6 3283else 3284 ac_save_c_werror_flag=$ac_c_werror_flag 3285 ac_c_werror_flag=yes 3286 ac_cv_prog_cc_g=no 3287 CFLAGS="-g" 3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294 3295 ; 3296 return 0; 3297} 3298_ACEOF 3299if ac_fn_c_try_compile "$LINENO"; then : 3300 ac_cv_prog_cc_g=yes 3301else 3302 CFLAGS="" 3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3304/* end confdefs.h. */ 3305 3306int 3307main () 3308{ 3309 3310 ; 3311 return 0; 3312} 3313_ACEOF 3314if ac_fn_c_try_compile "$LINENO"; then : 3315 3316else 3317 ac_c_werror_flag=$ac_save_c_werror_flag 3318 CFLAGS="-g" 3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3320/* end confdefs.h. */ 3321 3322int 3323main () 3324{ 3325 3326 ; 3327 return 0; 3328} 3329_ACEOF 3330if ac_fn_c_try_compile "$LINENO"; then : 3331 ac_cv_prog_cc_g=yes 3332fi 3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3334fi 3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3336fi 3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3338 ac_c_werror_flag=$ac_save_c_werror_flag 3339fi 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3341$as_echo "$ac_cv_prog_cc_g" >&6; } 3342if test "$ac_test_CFLAGS" = set; then 3343 CFLAGS=$ac_save_CFLAGS 3344elif test $ac_cv_prog_cc_g = yes; then 3345 if test "$GCC" = yes; then 3346 CFLAGS="-g -O2" 3347 else 3348 CFLAGS="-g" 3349 fi 3350else 3351 if test "$GCC" = yes; then 3352 CFLAGS="-O2" 3353 else 3354 CFLAGS= 3355 fi 3356fi 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3358$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3359if ${ac_cv_prog_cc_c89+:} false; then : 3360 $as_echo_n "(cached) " >&6 3361else 3362 ac_cv_prog_cc_c89=no 3363ac_save_CC=$CC 3364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3365/* end confdefs.h. */ 3366#include <stdarg.h> 3367#include <stdio.h> 3368#include <sys/types.h> 3369#include <sys/stat.h> 3370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3371struct buf { int x; }; 3372FILE * (*rcsopen) (struct buf *, struct stat *, int); 3373static char *e (p, i) 3374 char **p; 3375 int i; 3376{ 3377 return p[i]; 3378} 3379static char *f (char * (*g) (char **, int), char **p, ...) 3380{ 3381 char *s; 3382 va_list v; 3383 va_start (v,p); 3384 s = g (p, va_arg (v,int)); 3385 va_end (v); 3386 return s; 3387} 3388 3389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3390 function prototypes and stuff, but not '\xHH' hex character constants. 3391 These don't provoke an error unfortunately, instead are silently treated 3392 as 'x'. The following induces an error, until -std is added to get 3393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3394 array size at least. It's necessary to write '\x00'==0 to get something 3395 that's true only with -std. */ 3396int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3397 3398/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3399 inside strings and character constants. */ 3400#define FOO(x) 'x' 3401int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3402 3403int test (int i, double x); 3404struct s1 {int (*f) (int a);}; 3405struct s2 {int (*f) (double a);}; 3406int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3407int argc; 3408char **argv; 3409int 3410main () 3411{ 3412return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3419do 3420 CC="$ac_save_CC $ac_arg" 3421 if ac_fn_c_try_compile "$LINENO"; then : 3422 ac_cv_prog_cc_c89=$ac_arg 3423fi 3424rm -f core conftest.err conftest.$ac_objext 3425 test "x$ac_cv_prog_cc_c89" != "xno" && break 3426done 3427rm -f conftest.$ac_ext 3428CC=$ac_save_CC 3429 3430fi 3431# AC_CACHE_VAL 3432case "x$ac_cv_prog_cc_c89" in 3433 x) 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3435$as_echo "none needed" >&6; } ;; 3436 xno) 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3438$as_echo "unsupported" >&6; } ;; 3439 *) 3440 CC="$CC $ac_cv_prog_cc_c89" 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3442$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3443esac 3444if test "x$ac_cv_prog_cc_c89" != xno; then : 3445 3446fi 3447 3448ac_ext=c 3449ac_cpp='$CPP $CPPFLAGS' 3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3452ac_compiler_gnu=$ac_cv_c_compiler_gnu 3453DEPDIR="${am__leading_dot}deps" 3454 3455ac_config_commands="$ac_config_commands depfiles" 3456 3457 3458am_make=${MAKE-make} 3459cat > confinc << 'END' 3460am__doit: 3461 @echo this is the am__doit target 3462.PHONY: am__doit 3463END 3464# If we don't find an include directive, just comment out the code. 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3466$as_echo_n "checking for style of include used by $am_make... " >&6; } 3467am__include="#" 3468am__quote= 3469_am_result=none 3470# First try GNU make style include. 3471echo "include confinc" > confmf 3472# Ignore all kinds of additional output from `make'. 3473case `$am_make -s -f confmf 2> /dev/null` in #( 3474*the\ am__doit\ target*) 3475 am__include=include 3476 am__quote= 3477 _am_result=GNU 3478 ;; 3479esac 3480# Now try BSD make style include. 3481if test "$am__include" = "#"; then 3482 echo '.include "confinc"' > confmf 3483 case `$am_make -s -f confmf 2> /dev/null` in #( 3484 *the\ am__doit\ target*) 3485 am__include=.include 3486 am__quote="\"" 3487 _am_result=BSD 3488 ;; 3489 esac 3490fi 3491 3492 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3494$as_echo "$_am_result" >&6; } 3495rm -f confinc confmf 3496 3497# Check whether --enable-dependency-tracking was given. 3498if test "${enable_dependency_tracking+set}" = set; then : 3499 enableval=$enable_dependency_tracking; 3500fi 3501 3502if test "x$enable_dependency_tracking" != xno; then 3503 am_depcomp="$ac_aux_dir/depcomp" 3504 AMDEPBACKSLASH='\' 3505fi 3506 if test "x$enable_dependency_tracking" != xno; then 3507 AMDEP_TRUE= 3508 AMDEP_FALSE='#' 3509else 3510 AMDEP_TRUE='#' 3511 AMDEP_FALSE= 3512fi 3513 3514 3515 3516depcc="$CC" am_compiler_list= 3517 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3519$as_echo_n "checking dependency style of $depcc... " >&6; } 3520if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3521 $as_echo_n "(cached) " >&6 3522else 3523 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3524 # We make a subdir and do the tests there. Otherwise we can end up 3525 # making bogus files that we don't know about and never remove. For 3526 # instance it was reported that on HP-UX the gcc test will end up 3527 # making a dummy file named `D' -- because `-MD' means `put the output 3528 # in D'. 3529 mkdir conftest.dir 3530 # Copy depcomp to subdir because otherwise we won't find it if we're 3531 # using a relative directory. 3532 cp "$am_depcomp" conftest.dir 3533 cd conftest.dir 3534 # We will build objects and dependencies in a subdirectory because 3535 # it helps to detect inapplicable dependency modes. For instance 3536 # both Tru64's cc and ICC support -MD to output dependencies as a 3537 # side effect of compilation, but ICC will put the dependencies in 3538 # the current directory while Tru64 will put them in the object 3539 # directory. 3540 mkdir sub 3541 3542 am_cv_CC_dependencies_compiler_type=none 3543 if test "$am_compiler_list" = ""; then 3544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3545 fi 3546 am__universal=false 3547 case " $depcc " in #( 3548 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3549 esac 3550 3551 for depmode in $am_compiler_list; do 3552 # Setup a source with many dependencies, because some compilers 3553 # like to wrap large dependency lists on column 80 (with \), and 3554 # we should not choose a depcomp mode which is confused by this. 3555 # 3556 # We need to recreate these files for each test, as the compiler may 3557 # overwrite some of them when testing with obscure command lines. 3558 # This happens at least with the AIX C compiler. 3559 : > sub/conftest.c 3560 for i in 1 2 3 4 5 6; do 3561 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3562 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3563 # Solaris 8's {/usr,}/bin/sh. 3564 touch sub/conftst$i.h 3565 done 3566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3567 3568 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3569 # mode. It turns out that the SunPro C++ compiler does not properly 3570 # handle `-M -o', and we need to detect this. Also, some Intel 3571 # versions had trouble with output in subdirs 3572 am__obj=sub/conftest.${OBJEXT-o} 3573 am__minus_obj="-o $am__obj" 3574 case $depmode in 3575 gcc) 3576 # This depmode causes a compiler race in universal mode. 3577 test "$am__universal" = false || continue 3578 ;; 3579 nosideeffect) 3580 # after this tag, mechanisms are not by side-effect, so they'll 3581 # only be used when explicitly requested 3582 if test "x$enable_dependency_tracking" = xyes; then 3583 continue 3584 else 3585 break 3586 fi 3587 ;; 3588 msvisualcpp | msvcmsys) 3589 # This compiler won't grok `-c -o', but also, the minuso test has 3590 # not run yet. These depmodes are late enough in the game, and 3591 # so weak that their functioning should not be impacted. 3592 am__obj=conftest.${OBJEXT-o} 3593 am__minus_obj= 3594 ;; 3595 none) break ;; 3596 esac 3597 if depmode=$depmode \ 3598 source=sub/conftest.c object=$am__obj \ 3599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3601 >/dev/null 2>conftest.err && 3602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3606 # icc doesn't choke on unknown options, it will just issue warnings 3607 # or remarks (even with -Werror). So we grep stderr for any message 3608 # that says an option was ignored or not supported. 3609 # When given -MP, icc 7.0 and 7.1 complain thusly: 3610 # icc: Command line warning: ignoring option '-M'; no argument required 3611 # The diagnosis changed in icc 8.0: 3612 # icc: Command line remark: option '-MP' not supported 3613 if (grep 'ignoring option' conftest.err || 3614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3615 am_cv_CC_dependencies_compiler_type=$depmode 3616 break 3617 fi 3618 fi 3619 done 3620 3621 cd .. 3622 rm -rf conftest.dir 3623else 3624 am_cv_CC_dependencies_compiler_type=none 3625fi 3626 3627fi 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3629$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3630CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3631 3632 if 3633 test "x$enable_dependency_tracking" != xno \ 3634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3635 am__fastdepCC_TRUE= 3636 am__fastdepCC_FALSE='#' 3637else 3638 am__fastdepCC_TRUE='#' 3639 am__fastdepCC_FALSE= 3640fi 3641 3642 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3644$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3645if ${ac_cv_prog_cc_c99+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 ac_cv_prog_cc_c99=no 3649ac_save_CC=$CC 3650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652#include <stdarg.h> 3653#include <stdbool.h> 3654#include <stdlib.h> 3655#include <wchar.h> 3656#include <stdio.h> 3657 3658// Check varargs macros. These examples are taken from C99 6.10.3.5. 3659#define debug(...) fprintf (stderr, __VA_ARGS__) 3660#define showlist(...) puts (#__VA_ARGS__) 3661#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3662static void 3663test_varargs_macros (void) 3664{ 3665 int x = 1234; 3666 int y = 5678; 3667 debug ("Flag"); 3668 debug ("X = %d\n", x); 3669 showlist (The first, second, and third items.); 3670 report (x>y, "x is %d but y is %d", x, y); 3671} 3672 3673// Check long long types. 3674#define BIG64 18446744073709551615ull 3675#define BIG32 4294967295ul 3676#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3677#if !BIG_OK 3678 your preprocessor is broken; 3679#endif 3680#if BIG_OK 3681#else 3682 your preprocessor is broken; 3683#endif 3684static long long int bignum = -9223372036854775807LL; 3685static unsigned long long int ubignum = BIG64; 3686 3687struct incomplete_array 3688{ 3689 int datasize; 3690 double data[]; 3691}; 3692 3693struct named_init { 3694 int number; 3695 const wchar_t *name; 3696 double average; 3697}; 3698 3699typedef const char *ccp; 3700 3701static inline int 3702test_restrict (ccp restrict text) 3703{ 3704 // See if C++-style comments work. 3705 // Iterate through items via the restricted pointer. 3706 // Also check for declarations in for loops. 3707 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3708 continue; 3709 return 0; 3710} 3711 3712// Check varargs and va_copy. 3713static void 3714test_varargs (const char *format, ...) 3715{ 3716 va_list args; 3717 va_start (args, format); 3718 va_list args_copy; 3719 va_copy (args_copy, args); 3720 3721 const char *str; 3722 int number; 3723 float fnumber; 3724 3725 while (*format) 3726 { 3727 switch (*format++) 3728 { 3729 case 's': // string 3730 str = va_arg (args_copy, const char *); 3731 break; 3732 case 'd': // int 3733 number = va_arg (args_copy, int); 3734 break; 3735 case 'f': // float 3736 fnumber = va_arg (args_copy, double); 3737 break; 3738 default: 3739 break; 3740 } 3741 } 3742 va_end (args_copy); 3743 va_end (args); 3744} 3745 3746int 3747main () 3748{ 3749 3750 // Check bool. 3751 _Bool success = false; 3752 3753 // Check restrict. 3754 if (test_restrict ("String literal") == 0) 3755 success = true; 3756 char *restrict newvar = "Another string"; 3757 3758 // Check varargs. 3759 test_varargs ("s, d' f .", "string", 65, 34.234); 3760 test_varargs_macros (); 3761 3762 // Check flexible array members. 3763 struct incomplete_array *ia = 3764 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3765 ia->datasize = 10; 3766 for (int i = 0; i < ia->datasize; ++i) 3767 ia->data[i] = i * 1.234; 3768 3769 // Check named initializers. 3770 struct named_init ni = { 3771 .number = 34, 3772 .name = L"Test wide string", 3773 .average = 543.34343, 3774 }; 3775 3776 ni.number = 58; 3777 3778 int dynamic_array[ni.number]; 3779 dynamic_array[ni.number - 1] = 543; 3780 3781 // work around unused variable warnings 3782 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3783 || dynamic_array[ni.number - 1] != 543); 3784 3785 ; 3786 return 0; 3787} 3788_ACEOF 3789for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3790do 3791 CC="$ac_save_CC $ac_arg" 3792 if ac_fn_c_try_compile "$LINENO"; then : 3793 ac_cv_prog_cc_c99=$ac_arg 3794fi 3795rm -f core conftest.err conftest.$ac_objext 3796 test "x$ac_cv_prog_cc_c99" != "xno" && break 3797done 3798rm -f conftest.$ac_ext 3799CC=$ac_save_CC 3800 3801fi 3802# AC_CACHE_VAL 3803case "x$ac_cv_prog_cc_c99" in 3804 x) 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3806$as_echo "none needed" >&6; } ;; 3807 xno) 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3809$as_echo "unsupported" >&6; } ;; 3810 *) 3811 CC="$CC $ac_cv_prog_cc_c99" 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3813$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3814esac 3815if test "x$ac_cv_prog_cc_c99" != xno; then : 3816 3817fi 3818 3819 3820 3821ac_ext=c 3822ac_cpp='$CPP $CPPFLAGS' 3823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3825ac_compiler_gnu=$ac_cv_c_compiler_gnu 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3827$as_echo_n "checking how to run the C preprocessor... " >&6; } 3828# On Suns, sometimes $CPP names a directory. 3829if test -n "$CPP" && test -d "$CPP"; then 3830 CPP= 3831fi 3832if test -z "$CPP"; then 3833 if ${ac_cv_prog_CPP+:} false; then : 3834 $as_echo_n "(cached) " >&6 3835else 3836 # Double quotes because CPP needs to be expanded 3837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3838 do 3839 ac_preproc_ok=false 3840for ac_c_preproc_warn_flag in '' yes 3841do 3842 # Use a header file that comes with gcc, so configuring glibc 3843 # with a fresh cross-compiler works. 3844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3845 # <limits.h> exists even on freestanding compilers. 3846 # On the NeXT, cc -E runs the code through the compiler's parser, 3847 # not just through cpp. "Syntax error" is here to catch this case. 3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3849/* end confdefs.h. */ 3850#ifdef __STDC__ 3851# include <limits.h> 3852#else 3853# include <assert.h> 3854#endif 3855 Syntax error 3856_ACEOF 3857if ac_fn_c_try_cpp "$LINENO"; then : 3858 3859else 3860 # Broken: fails on valid input. 3861continue 3862fi 3863rm -f conftest.err conftest.i conftest.$ac_ext 3864 3865 # OK, works on sane cases. Now check whether nonexistent headers 3866 # can be detected and how. 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869#include <ac_nonexistent.h> 3870_ACEOF 3871if ac_fn_c_try_cpp "$LINENO"; then : 3872 # Broken: success on invalid input. 3873continue 3874else 3875 # Passes both tests. 3876ac_preproc_ok=: 3877break 3878fi 3879rm -f conftest.err conftest.i conftest.$ac_ext 3880 3881done 3882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3883rm -f conftest.i conftest.err conftest.$ac_ext 3884if $ac_preproc_ok; then : 3885 break 3886fi 3887 3888 done 3889 ac_cv_prog_CPP=$CPP 3890 3891fi 3892 CPP=$ac_cv_prog_CPP 3893else 3894 ac_cv_prog_CPP=$CPP 3895fi 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3897$as_echo "$CPP" >&6; } 3898ac_preproc_ok=false 3899for ac_c_preproc_warn_flag in '' yes 3900do 3901 # Use a header file that comes with gcc, so configuring glibc 3902 # with a fresh cross-compiler works. 3903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3904 # <limits.h> exists even on freestanding compilers. 3905 # On the NeXT, cc -E runs the code through the compiler's parser, 3906 # not just through cpp. "Syntax error" is here to catch this case. 3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3908/* end confdefs.h. */ 3909#ifdef __STDC__ 3910# include <limits.h> 3911#else 3912# include <assert.h> 3913#endif 3914 Syntax error 3915_ACEOF 3916if ac_fn_c_try_cpp "$LINENO"; then : 3917 3918else 3919 # Broken: fails on valid input. 3920continue 3921fi 3922rm -f conftest.err conftest.i conftest.$ac_ext 3923 3924 # OK, works on sane cases. Now check whether nonexistent headers 3925 # can be detected and how. 3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3927/* end confdefs.h. */ 3928#include <ac_nonexistent.h> 3929_ACEOF 3930if ac_fn_c_try_cpp "$LINENO"; then : 3931 # Broken: success on invalid input. 3932continue 3933else 3934 # Passes both tests. 3935ac_preproc_ok=: 3936break 3937fi 3938rm -f conftest.err conftest.i conftest.$ac_ext 3939 3940done 3941# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3942rm -f conftest.i conftest.err conftest.$ac_ext 3943if $ac_preproc_ok; then : 3944 3945else 3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3948as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3949See \`config.log' for more details" "$LINENO" 5; } 3950fi 3951 3952ac_ext=c 3953ac_cpp='$CPP $CPPFLAGS' 3954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3956ac_compiler_gnu=$ac_cv_c_compiler_gnu 3957 3958 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3960$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3961if ${ac_cv_path_GREP+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 if test -z "$GREP"; then 3965 ac_path_GREP_found=false 3966 # Loop through the user's path and test for each of PROGNAME-LIST 3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3968for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3969do 3970 IFS=$as_save_IFS 3971 test -z "$as_dir" && as_dir=. 3972 for ac_prog in grep ggrep; do 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3975 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3976# Check for GNU ac_path_GREP and select it if it is found. 3977 # Check for GNU $ac_path_GREP 3978case `"$ac_path_GREP" --version 2>&1` in 3979*GNU*) 3980 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3981*) 3982 ac_count=0 3983 $as_echo_n 0123456789 >"conftest.in" 3984 while : 3985 do 3986 cat "conftest.in" "conftest.in" >"conftest.tmp" 3987 mv "conftest.tmp" "conftest.in" 3988 cp "conftest.in" "conftest.nl" 3989 $as_echo 'GREP' >> "conftest.nl" 3990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3992 as_fn_arith $ac_count + 1 && ac_count=$as_val 3993 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3994 # Best one so far, save it but keep looking for a better one 3995 ac_cv_path_GREP="$ac_path_GREP" 3996 ac_path_GREP_max=$ac_count 3997 fi 3998 # 10*(2^10) chars as input seems more than enough 3999 test $ac_count -gt 10 && break 4000 done 4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4002esac 4003 4004 $ac_path_GREP_found && break 3 4005 done 4006 done 4007 done 4008IFS=$as_save_IFS 4009 if test -z "$ac_cv_path_GREP"; then 4010 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4011 fi 4012else 4013 ac_cv_path_GREP=$GREP 4014fi 4015 4016fi 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4018$as_echo "$ac_cv_path_GREP" >&6; } 4019 GREP="$ac_cv_path_GREP" 4020 4021 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4023$as_echo_n "checking for egrep... " >&6; } 4024if ${ac_cv_path_EGREP+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026else 4027 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4028 then ac_cv_path_EGREP="$GREP -E" 4029 else 4030 if test -z "$EGREP"; then 4031 ac_path_EGREP_found=false 4032 # Loop through the user's path and test for each of PROGNAME-LIST 4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4034for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4035do 4036 IFS=$as_save_IFS 4037 test -z "$as_dir" && as_dir=. 4038 for ac_prog in egrep; do 4039 for ac_exec_ext in '' $ac_executable_extensions; do 4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4042# Check for GNU ac_path_EGREP and select it if it is found. 4043 # Check for GNU $ac_path_EGREP 4044case `"$ac_path_EGREP" --version 2>&1` in 4045*GNU*) 4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4047*) 4048 ac_count=0 4049 $as_echo_n 0123456789 >"conftest.in" 4050 while : 4051 do 4052 cat "conftest.in" "conftest.in" >"conftest.tmp" 4053 mv "conftest.tmp" "conftest.in" 4054 cp "conftest.in" "conftest.nl" 4055 $as_echo 'EGREP' >> "conftest.nl" 4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4058 as_fn_arith $ac_count + 1 && ac_count=$as_val 4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4060 # Best one so far, save it but keep looking for a better one 4061 ac_cv_path_EGREP="$ac_path_EGREP" 4062 ac_path_EGREP_max=$ac_count 4063 fi 4064 # 10*(2^10) chars as input seems more than enough 4065 test $ac_count -gt 10 && break 4066 done 4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4068esac 4069 4070 $ac_path_EGREP_found && break 3 4071 done 4072 done 4073 done 4074IFS=$as_save_IFS 4075 if test -z "$ac_cv_path_EGREP"; then 4076 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4077 fi 4078else 4079 ac_cv_path_EGREP=$EGREP 4080fi 4081 4082 fi 4083fi 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4085$as_echo "$ac_cv_path_EGREP" >&6; } 4086 EGREP="$ac_cv_path_EGREP" 4087 4088 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4090$as_echo_n "checking for ANSI C header files... " >&6; } 4091if ${ac_cv_header_stdc+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093else 4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4095/* end confdefs.h. */ 4096#include <stdlib.h> 4097#include <stdarg.h> 4098#include <string.h> 4099#include <float.h> 4100 4101int 4102main () 4103{ 4104 4105 ; 4106 return 0; 4107} 4108_ACEOF 4109if ac_fn_c_try_compile "$LINENO"; then : 4110 ac_cv_header_stdc=yes 4111else 4112 ac_cv_header_stdc=no 4113fi 4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4115 4116if test $ac_cv_header_stdc = yes; then 4117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119/* end confdefs.h. */ 4120#include <string.h> 4121 4122_ACEOF 4123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4124 $EGREP "memchr" >/dev/null 2>&1; then : 4125 4126else 4127 ac_cv_header_stdc=no 4128fi 4129rm -f conftest* 4130 4131fi 4132 4133if test $ac_cv_header_stdc = yes; then 4134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137#include <stdlib.h> 4138 4139_ACEOF 4140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4141 $EGREP "free" >/dev/null 2>&1; then : 4142 4143else 4144 ac_cv_header_stdc=no 4145fi 4146rm -f conftest* 4147 4148fi 4149 4150if test $ac_cv_header_stdc = yes; then 4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4152 if test "$cross_compiling" = yes; then : 4153 : 4154else 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156/* end confdefs.h. */ 4157#include <ctype.h> 4158#include <stdlib.h> 4159#if ((' ' & 0x0FF) == 0x020) 4160# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4161# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4162#else 4163# define ISLOWER(c) \ 4164 (('a' <= (c) && (c) <= 'i') \ 4165 || ('j' <= (c) && (c) <= 'r') \ 4166 || ('s' <= (c) && (c) <= 'z')) 4167# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4168#endif 4169 4170#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4171int 4172main () 4173{ 4174 int i; 4175 for (i = 0; i < 256; i++) 4176 if (XOR (islower (i), ISLOWER (i)) 4177 || toupper (i) != TOUPPER (i)) 4178 return 2; 4179 return 0; 4180} 4181_ACEOF 4182if ac_fn_c_try_run "$LINENO"; then : 4183 4184else 4185 ac_cv_header_stdc=no 4186fi 4187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4188 conftest.$ac_objext conftest.beam conftest.$ac_ext 4189fi 4190 4191fi 4192fi 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4194$as_echo "$ac_cv_header_stdc" >&6; } 4195if test $ac_cv_header_stdc = yes; then 4196 4197$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4198 4199fi 4200 4201# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4202for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4203 inttypes.h stdint.h unistd.h 4204do : 4205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4206ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4207" 4208if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4209 cat >>confdefs.h <<_ACEOF 4210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4211_ACEOF 4212 4213fi 4214 4215done 4216 4217 4218 4219 4220 4221 4222ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4223if test "x$ac_cv_have_decl___clang__" = xyes; then : 4224 CLANGCC="yes" 4225else 4226 CLANGCC="no" 4227fi 4228 4229ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4230if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4231 INTELCC="yes" 4232else 4233 INTELCC="no" 4234fi 4235 4236ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4237if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4238 SUNCC="yes" 4239else 4240 SUNCC="no" 4241fi 4242 4243 4244 4245 4246if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4247 if test -n "$ac_tool_prefix"; then 4248 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4249set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4251$as_echo_n "checking for $ac_word... " >&6; } 4252if ${ac_cv_path_PKG_CONFIG+:} false; then : 4253 $as_echo_n "(cached) " >&6 4254else 4255 case $PKG_CONFIG in 4256 [\\/]* | ?:[\\/]*) 4257 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4258 ;; 4259 *) 4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4261for as_dir in $PATH 4262do 4263 IFS=$as_save_IFS 4264 test -z "$as_dir" && as_dir=. 4265 for ac_exec_ext in '' $ac_executable_extensions; do 4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4267 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4269 break 2 4270 fi 4271done 4272 done 4273IFS=$as_save_IFS 4274 4275 ;; 4276esac 4277fi 4278PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4279if test -n "$PKG_CONFIG"; then 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4281$as_echo "$PKG_CONFIG" >&6; } 4282else 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4284$as_echo "no" >&6; } 4285fi 4286 4287 4288fi 4289if test -z "$ac_cv_path_PKG_CONFIG"; then 4290 ac_pt_PKG_CONFIG=$PKG_CONFIG 4291 # Extract the first word of "pkg-config", so it can be a program name with args. 4292set dummy pkg-config; ac_word=$2 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4294$as_echo_n "checking for $ac_word... " >&6; } 4295if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4296 $as_echo_n "(cached) " >&6 4297else 4298 case $ac_pt_PKG_CONFIG in 4299 [\\/]* | ?:[\\/]*) 4300 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4301 ;; 4302 *) 4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4304for as_dir in $PATH 4305do 4306 IFS=$as_save_IFS 4307 test -z "$as_dir" && as_dir=. 4308 for ac_exec_ext in '' $ac_executable_extensions; do 4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4310 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4312 break 2 4313 fi 4314done 4315 done 4316IFS=$as_save_IFS 4317 4318 ;; 4319esac 4320fi 4321ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4322if test -n "$ac_pt_PKG_CONFIG"; then 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4324$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4325else 4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4327$as_echo "no" >&6; } 4328fi 4329 4330 if test "x$ac_pt_PKG_CONFIG" = x; then 4331 PKG_CONFIG="" 4332 else 4333 case $cross_compiling:$ac_tool_warned in 4334yes:) 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4337ac_tool_warned=yes ;; 4338esac 4339 PKG_CONFIG=$ac_pt_PKG_CONFIG 4340 fi 4341else 4342 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4343fi 4344 4345fi 4346if test -n "$PKG_CONFIG"; then 4347 _pkg_min_version=0.9.0 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4349$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4350 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4352$as_echo "yes" >&6; } 4353 else 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4355$as_echo "no" >&6; } 4356 PKG_CONFIG="" 4357 fi 4358 4359fi 4360# Make sure we can run config.sub. 4361$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4362 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4363 4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4365$as_echo_n "checking build system type... " >&6; } 4366if ${ac_cv_build+:} false; then : 4367 $as_echo_n "(cached) " >&6 4368else 4369 ac_build_alias=$build_alias 4370test "x$ac_build_alias" = x && 4371 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4372test "x$ac_build_alias" = x && 4373 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4374ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4376 4377fi 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4379$as_echo "$ac_cv_build" >&6; } 4380case $ac_cv_build in 4381*-*-*) ;; 4382*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4383esac 4384build=$ac_cv_build 4385ac_save_IFS=$IFS; IFS='-' 4386set x $ac_cv_build 4387shift 4388build_cpu=$1 4389build_vendor=$2 4390shift; shift 4391# Remember, the first character of IFS is used to create $*, 4392# except with old shells: 4393build_os=$* 4394IFS=$ac_save_IFS 4395case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4396 4397 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4399$as_echo_n "checking host system type... " >&6; } 4400if ${ac_cv_host+:} false; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 if test "x$host_alias" = x; then 4404 ac_cv_host=$ac_cv_build 4405else 4406 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4407 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4408fi 4409 4410fi 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4412$as_echo "$ac_cv_host" >&6; } 4413case $ac_cv_host in 4414*-*-*) ;; 4415*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4416esac 4417host=$ac_cv_host 4418ac_save_IFS=$IFS; IFS='-' 4419set x $ac_cv_host 4420shift 4421host_cpu=$1 4422host_vendor=$2 4423shift; shift 4424# Remember, the first character of IFS is used to create $*, 4425# except with old shells: 4426host_os=$* 4427IFS=$ac_save_IFS 4428case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4429 4430 4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4432$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4433if ${ac_cv_path_SED+:} false; then : 4434 $as_echo_n "(cached) " >&6 4435else 4436 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4437 for ac_i in 1 2 3 4 5 6 7; do 4438 ac_script="$ac_script$as_nl$ac_script" 4439 done 4440 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4441 { ac_script=; unset ac_script;} 4442 if test -z "$SED"; then 4443 ac_path_SED_found=false 4444 # Loop through the user's path and test for each of PROGNAME-LIST 4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4446for as_dir in $PATH 4447do 4448 IFS=$as_save_IFS 4449 test -z "$as_dir" && as_dir=. 4450 for ac_prog in sed gsed; do 4451 for ac_exec_ext in '' $ac_executable_extensions; do 4452 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4453 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4454# Check for GNU ac_path_SED and select it if it is found. 4455 # Check for GNU $ac_path_SED 4456case `"$ac_path_SED" --version 2>&1` in 4457*GNU*) 4458 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4459*) 4460 ac_count=0 4461 $as_echo_n 0123456789 >"conftest.in" 4462 while : 4463 do 4464 cat "conftest.in" "conftest.in" >"conftest.tmp" 4465 mv "conftest.tmp" "conftest.in" 4466 cp "conftest.in" "conftest.nl" 4467 $as_echo '' >> "conftest.nl" 4468 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4470 as_fn_arith $ac_count + 1 && ac_count=$as_val 4471 if test $ac_count -gt ${ac_path_SED_max-0}; then 4472 # Best one so far, save it but keep looking for a better one 4473 ac_cv_path_SED="$ac_path_SED" 4474 ac_path_SED_max=$ac_count 4475 fi 4476 # 10*(2^10) chars as input seems more than enough 4477 test $ac_count -gt 10 && break 4478 done 4479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4480esac 4481 4482 $ac_path_SED_found && break 3 4483 done 4484 done 4485 done 4486IFS=$as_save_IFS 4487 if test -z "$ac_cv_path_SED"; then 4488 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4489 fi 4490else 4491 ac_cv_path_SED=$SED 4492fi 4493 4494fi 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4496$as_echo "$ac_cv_path_SED" >&6; } 4497 SED="$ac_cv_path_SED" 4498 rm -f conftest.sed 4499 4500 4501 4502 4503 4504 4505# Check whether --enable-selective-werror was given. 4506if test "${enable_selective_werror+set}" = set; then : 4507 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4508else 4509 SELECTIVE_WERROR=yes 4510fi 4511 4512 4513 4514 4515 4516# -v is too short to test reliably with XORG_TESTSET_CFLAG 4517if test "x$SUNCC" = "xyes"; then 4518 BASE_CFLAGS="-v" 4519else 4520 BASE_CFLAGS="" 4521fi 4522 4523# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535xorg_testset_save_CFLAGS="$CFLAGS" 4536 4537if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 4540$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 4541if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 4542 $as_echo_n "(cached) " >&6 4543else 4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4545/* end confdefs.h. */ 4546int i; 4547_ACEOF 4548if ac_fn_c_try_compile "$LINENO"; then : 4549 xorg_cv_compiler_flag_unknown_warning_option=yes 4550else 4551 xorg_cv_compiler_flag_unknown_warning_option=no 4552fi 4553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4554fi 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 4556$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 4557 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 4558 CFLAGS="$xorg_testset_save_CFLAGS" 4559fi 4560 4561if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4564 fi 4565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 4567$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 4568if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 4569 $as_echo_n "(cached) " >&6 4570else 4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4572/* end confdefs.h. */ 4573int i; 4574_ACEOF 4575if ac_fn_c_try_compile "$LINENO"; then : 4576 xorg_cv_compiler_flag_unused_command_line_argument=yes 4577else 4578 xorg_cv_compiler_flag_unused_command_line_argument=no 4579fi 4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4581fi 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 4583$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 4584 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 4585 CFLAGS="$xorg_testset_save_CFLAGS" 4586fi 4587 4588found="no" 4589 4590 if test $found = "no" ; then 4591 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4593 fi 4594 4595 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4597 fi 4598 4599 CFLAGS="$CFLAGS -Wall" 4600 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4602$as_echo_n "checking if $CC supports -Wall... " >&6; } 4603 cacheid=`$as_echo xorg_cv_cc_flag_-Wall` 4604 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4605 $as_echo_n "(cached) " >&6 4606else 4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4608/* end confdefs.h. */ 4609int i; 4610int 4611main () 4612{ 4613 4614 ; 4615 return 0; 4616} 4617_ACEOF 4618if ac_fn_c_try_link "$LINENO"; then : 4619 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4620else 4621 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4622fi 4623rm -f core conftest.err conftest.$ac_objext \ 4624 conftest$ac_exeext conftest.$ac_ext 4625fi 4626 4627 4628 CFLAGS="$xorg_testset_save_CFLAGS" 4629 4630 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4632$as_echo "$supported" >&6; } 4633 if test "$supported" = "yes" ; then 4634 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4635 found="yes" 4636 fi 4637 fi 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651xorg_testset_save_CFLAGS="$CFLAGS" 4652 4653if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 4656$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 4657if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661/* end confdefs.h. */ 4662int i; 4663_ACEOF 4664if ac_fn_c_try_compile "$LINENO"; then : 4665 xorg_cv_compiler_flag_unknown_warning_option=yes 4666else 4667 xorg_cv_compiler_flag_unknown_warning_option=no 4668fi 4669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4670fi 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 4672$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 4673 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 4674 CFLAGS="$xorg_testset_save_CFLAGS" 4675fi 4676 4677if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4680 fi 4681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 4683$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 4684if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 4685 $as_echo_n "(cached) " >&6 4686else 4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4688/* end confdefs.h. */ 4689int i; 4690_ACEOF 4691if ac_fn_c_try_compile "$LINENO"; then : 4692 xorg_cv_compiler_flag_unused_command_line_argument=yes 4693else 4694 xorg_cv_compiler_flag_unused_command_line_argument=no 4695fi 4696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4697fi 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 4699$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 4700 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 4701 CFLAGS="$xorg_testset_save_CFLAGS" 4702fi 4703 4704found="no" 4705 4706 if test $found = "no" ; then 4707 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4709 fi 4710 4711 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4713 fi 4714 4715 CFLAGS="$CFLAGS -Wpointer-arith" 4716 4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4718$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4719 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` 4720 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4721 $as_echo_n "(cached) " >&6 4722else 4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4724/* end confdefs.h. */ 4725int i; 4726int 4727main () 4728{ 4729 4730 ; 4731 return 0; 4732} 4733_ACEOF 4734if ac_fn_c_try_link "$LINENO"; then : 4735 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4736else 4737 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4738fi 4739rm -f core conftest.err conftest.$ac_objext \ 4740 conftest$ac_exeext conftest.$ac_ext 4741fi 4742 4743 4744 CFLAGS="$xorg_testset_save_CFLAGS" 4745 4746 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4748$as_echo "$supported" >&6; } 4749 if test "$supported" = "yes" ; then 4750 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4751 found="yes" 4752 fi 4753 fi 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767xorg_testset_save_CFLAGS="$CFLAGS" 4768 4769if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 4772$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 4773if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 4774 $as_echo_n "(cached) " >&6 4775else 4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4777/* end confdefs.h. */ 4778int i; 4779_ACEOF 4780if ac_fn_c_try_compile "$LINENO"; then : 4781 xorg_cv_compiler_flag_unknown_warning_option=yes 4782else 4783 xorg_cv_compiler_flag_unknown_warning_option=no 4784fi 4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4786fi 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 4788$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 4789 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 4790 CFLAGS="$xorg_testset_save_CFLAGS" 4791fi 4792 4793if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4796 fi 4797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 4799$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 4800if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 4801 $as_echo_n "(cached) " >&6 4802else 4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805int i; 4806_ACEOF 4807if ac_fn_c_try_compile "$LINENO"; then : 4808 xorg_cv_compiler_flag_unused_command_line_argument=yes 4809else 4810 xorg_cv_compiler_flag_unused_command_line_argument=no 4811fi 4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4813fi 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 4815$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 4816 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 4817 CFLAGS="$xorg_testset_save_CFLAGS" 4818fi 4819 4820found="no" 4821 4822 if test $found = "no" ; then 4823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4825 fi 4826 4827 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4829 fi 4830 4831 CFLAGS="$CFLAGS -Wmissing-declarations" 4832 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4834$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4835 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` 4836 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4837 $as_echo_n "(cached) " >&6 4838else 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840/* end confdefs.h. */ 4841int i; 4842int 4843main () 4844{ 4845 4846 ; 4847 return 0; 4848} 4849_ACEOF 4850if ac_fn_c_try_link "$LINENO"; then : 4851 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4852else 4853 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4854fi 4855rm -f core conftest.err conftest.$ac_objext \ 4856 conftest$ac_exeext conftest.$ac_ext 4857fi 4858 4859 4860 CFLAGS="$xorg_testset_save_CFLAGS" 4861 4862 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4864$as_echo "$supported" >&6; } 4865 if test "$supported" = "yes" ; then 4866 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4867 found="yes" 4868 fi 4869 fi 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883xorg_testset_save_CFLAGS="$CFLAGS" 4884 4885if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 4888$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 4889if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 4890 $as_echo_n "(cached) " >&6 4891else 4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4893/* end confdefs.h. */ 4894int i; 4895_ACEOF 4896if ac_fn_c_try_compile "$LINENO"; then : 4897 xorg_cv_compiler_flag_unknown_warning_option=yes 4898else 4899 xorg_cv_compiler_flag_unknown_warning_option=no 4900fi 4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4902fi 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 4904$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 4905 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 4906 CFLAGS="$xorg_testset_save_CFLAGS" 4907fi 4908 4909if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4910 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4912 fi 4913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 4915$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 4916if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 4917 $as_echo_n "(cached) " >&6 4918else 4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4920/* end confdefs.h. */ 4921int i; 4922_ACEOF 4923if ac_fn_c_try_compile "$LINENO"; then : 4924 xorg_cv_compiler_flag_unused_command_line_argument=yes 4925else 4926 xorg_cv_compiler_flag_unused_command_line_argument=no 4927fi 4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4929fi 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 4931$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 4932 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 4933 CFLAGS="$xorg_testset_save_CFLAGS" 4934fi 4935 4936found="no" 4937 4938 if test $found = "no" ; then 4939 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4941 fi 4942 4943 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4945 fi 4946 4947 CFLAGS="$CFLAGS -Wformat=2" 4948 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4950$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4951 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2` 4952 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4956/* end confdefs.h. */ 4957int i; 4958int 4959main () 4960{ 4961 4962 ; 4963 return 0; 4964} 4965_ACEOF 4966if ac_fn_c_try_link "$LINENO"; then : 4967 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4968else 4969 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4970fi 4971rm -f core conftest.err conftest.$ac_objext \ 4972 conftest$ac_exeext conftest.$ac_ext 4973fi 4974 4975 4976 CFLAGS="$xorg_testset_save_CFLAGS" 4977 4978 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4980$as_echo "$supported" >&6; } 4981 if test "$supported" = "yes" ; then 4982 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4983 found="yes" 4984 fi 4985 fi 4986 4987 if test $found = "no" ; then 4988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4990 fi 4991 4992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4994 fi 4995 4996 CFLAGS="$CFLAGS -Wformat" 4997 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4999$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5000 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` 5001 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5005/* end confdefs.h. */ 5006int i; 5007int 5008main () 5009{ 5010 5011 ; 5012 return 0; 5013} 5014_ACEOF 5015if ac_fn_c_try_link "$LINENO"; then : 5016 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5017else 5018 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5019fi 5020rm -f core conftest.err conftest.$ac_objext \ 5021 conftest$ac_exeext conftest.$ac_ext 5022fi 5023 5024 5025 CFLAGS="$xorg_testset_save_CFLAGS" 5026 5027 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5029$as_echo "$supported" >&6; } 5030 if test "$supported" = "yes" ; then 5031 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5032 found="yes" 5033 fi 5034 fi 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050xorg_testset_save_CFLAGS="$CFLAGS" 5051 5052if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5055$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5056if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5057 $as_echo_n "(cached) " >&6 5058else 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060/* end confdefs.h. */ 5061int i; 5062_ACEOF 5063if ac_fn_c_try_compile "$LINENO"; then : 5064 xorg_cv_compiler_flag_unknown_warning_option=yes 5065else 5066 xorg_cv_compiler_flag_unknown_warning_option=no 5067fi 5068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5069fi 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5071$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5072 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5073 CFLAGS="$xorg_testset_save_CFLAGS" 5074fi 5075 5076if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5079 fi 5080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5082$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5083if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088int i; 5089_ACEOF 5090if ac_fn_c_try_compile "$LINENO"; then : 5091 xorg_cv_compiler_flag_unused_command_line_argument=yes 5092else 5093 xorg_cv_compiler_flag_unused_command_line_argument=no 5094fi 5095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5096fi 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5098$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5099 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5100 CFLAGS="$xorg_testset_save_CFLAGS" 5101fi 5102 5103found="no" 5104 5105 if test $found = "no" ; then 5106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5108 fi 5109 5110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5112 fi 5113 5114 CFLAGS="$CFLAGS -Wstrict-prototypes" 5115 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5117$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5118 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` 5119 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5120 $as_echo_n "(cached) " >&6 5121else 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124int i; 5125int 5126main () 5127{ 5128 5129 ; 5130 return 0; 5131} 5132_ACEOF 5133if ac_fn_c_try_link "$LINENO"; then : 5134 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5135else 5136 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5137fi 5138rm -f core conftest.err conftest.$ac_objext \ 5139 conftest$ac_exeext conftest.$ac_ext 5140fi 5141 5142 5143 CFLAGS="$xorg_testset_save_CFLAGS" 5144 5145 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5147$as_echo "$supported" >&6; } 5148 if test "$supported" = "yes" ; then 5149 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5150 found="yes" 5151 fi 5152 fi 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166xorg_testset_save_CFLAGS="$CFLAGS" 5167 5168if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5171$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5172if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5176/* end confdefs.h. */ 5177int i; 5178_ACEOF 5179if ac_fn_c_try_compile "$LINENO"; then : 5180 xorg_cv_compiler_flag_unknown_warning_option=yes 5181else 5182 xorg_cv_compiler_flag_unknown_warning_option=no 5183fi 5184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5185fi 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5187$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5188 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5189 CFLAGS="$xorg_testset_save_CFLAGS" 5190fi 5191 5192if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5193 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5195 fi 5196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5198$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5199if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5200 $as_echo_n "(cached) " >&6 5201else 5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5203/* end confdefs.h. */ 5204int i; 5205_ACEOF 5206if ac_fn_c_try_compile "$LINENO"; then : 5207 xorg_cv_compiler_flag_unused_command_line_argument=yes 5208else 5209 xorg_cv_compiler_flag_unused_command_line_argument=no 5210fi 5211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5212fi 5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5214$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5215 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5216 CFLAGS="$xorg_testset_save_CFLAGS" 5217fi 5218 5219found="no" 5220 5221 if test $found = "no" ; then 5222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5224 fi 5225 5226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5228 fi 5229 5230 CFLAGS="$CFLAGS -Wmissing-prototypes" 5231 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5233$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5234 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` 5235 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5236 $as_echo_n "(cached) " >&6 5237else 5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5239/* end confdefs.h. */ 5240int i; 5241int 5242main () 5243{ 5244 5245 ; 5246 return 0; 5247} 5248_ACEOF 5249if ac_fn_c_try_link "$LINENO"; then : 5250 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5251else 5252 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5253fi 5254rm -f core conftest.err conftest.$ac_objext \ 5255 conftest$ac_exeext conftest.$ac_ext 5256fi 5257 5258 5259 CFLAGS="$xorg_testset_save_CFLAGS" 5260 5261 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5263$as_echo "$supported" >&6; } 5264 if test "$supported" = "yes" ; then 5265 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5266 found="yes" 5267 fi 5268 fi 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282xorg_testset_save_CFLAGS="$CFLAGS" 5283 5284if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5287$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5288if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292/* end confdefs.h. */ 5293int i; 5294_ACEOF 5295if ac_fn_c_try_compile "$LINENO"; then : 5296 xorg_cv_compiler_flag_unknown_warning_option=yes 5297else 5298 xorg_cv_compiler_flag_unknown_warning_option=no 5299fi 5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5301fi 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5303$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5304 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5305 CFLAGS="$xorg_testset_save_CFLAGS" 5306fi 5307 5308if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5311 fi 5312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5314$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5315if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5316 $as_echo_n "(cached) " >&6 5317else 5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5319/* end confdefs.h. */ 5320int i; 5321_ACEOF 5322if ac_fn_c_try_compile "$LINENO"; then : 5323 xorg_cv_compiler_flag_unused_command_line_argument=yes 5324else 5325 xorg_cv_compiler_flag_unused_command_line_argument=no 5326fi 5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5328fi 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5330$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5331 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5332 CFLAGS="$xorg_testset_save_CFLAGS" 5333fi 5334 5335found="no" 5336 5337 if test $found = "no" ; then 5338 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340 fi 5341 5342 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5344 fi 5345 5346 CFLAGS="$CFLAGS -Wnested-externs" 5347 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5349$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5350 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` 5351 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5352 $as_echo_n "(cached) " >&6 5353else 5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355/* end confdefs.h. */ 5356int i; 5357int 5358main () 5359{ 5360 5361 ; 5362 return 0; 5363} 5364_ACEOF 5365if ac_fn_c_try_link "$LINENO"; then : 5366 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5367else 5368 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5369fi 5370rm -f core conftest.err conftest.$ac_objext \ 5371 conftest$ac_exeext conftest.$ac_ext 5372fi 5373 5374 5375 CFLAGS="$xorg_testset_save_CFLAGS" 5376 5377 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5379$as_echo "$supported" >&6; } 5380 if test "$supported" = "yes" ; then 5381 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5382 found="yes" 5383 fi 5384 fi 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398xorg_testset_save_CFLAGS="$CFLAGS" 5399 5400if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5403$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5404if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406else 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409int i; 5410_ACEOF 5411if ac_fn_c_try_compile "$LINENO"; then : 5412 xorg_cv_compiler_flag_unknown_warning_option=yes 5413else 5414 xorg_cv_compiler_flag_unknown_warning_option=no 5415fi 5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5417fi 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5419$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5420 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5421 CFLAGS="$xorg_testset_save_CFLAGS" 5422fi 5423 5424if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5425 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5427 fi 5428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5430$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5431if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5432 $as_echo_n "(cached) " >&6 5433else 5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5435/* end confdefs.h. */ 5436int i; 5437_ACEOF 5438if ac_fn_c_try_compile "$LINENO"; then : 5439 xorg_cv_compiler_flag_unused_command_line_argument=yes 5440else 5441 xorg_cv_compiler_flag_unused_command_line_argument=no 5442fi 5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5444fi 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5446$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5447 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5448 CFLAGS="$xorg_testset_save_CFLAGS" 5449fi 5450 5451found="no" 5452 5453 if test $found = "no" ; then 5454 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5456 fi 5457 5458 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5460 fi 5461 5462 CFLAGS="$CFLAGS -Wbad-function-cast" 5463 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5465$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5466 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` 5467 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5471/* end confdefs.h. */ 5472int i; 5473int 5474main () 5475{ 5476 5477 ; 5478 return 0; 5479} 5480_ACEOF 5481if ac_fn_c_try_link "$LINENO"; then : 5482 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5483else 5484 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5485fi 5486rm -f core conftest.err conftest.$ac_objext \ 5487 conftest$ac_exeext conftest.$ac_ext 5488fi 5489 5490 5491 CFLAGS="$xorg_testset_save_CFLAGS" 5492 5493 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5495$as_echo "$supported" >&6; } 5496 if test "$supported" = "yes" ; then 5497 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5498 found="yes" 5499 fi 5500 fi 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514xorg_testset_save_CFLAGS="$CFLAGS" 5515 5516if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5519$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5520if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5524/* end confdefs.h. */ 5525int i; 5526_ACEOF 5527if ac_fn_c_try_compile "$LINENO"; then : 5528 xorg_cv_compiler_flag_unknown_warning_option=yes 5529else 5530 xorg_cv_compiler_flag_unknown_warning_option=no 5531fi 5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5533fi 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5535$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5536 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5537 CFLAGS="$xorg_testset_save_CFLAGS" 5538fi 5539 5540if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5543 fi 5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5546$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5547if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5551/* end confdefs.h. */ 5552int i; 5553_ACEOF 5554if ac_fn_c_try_compile "$LINENO"; then : 5555 xorg_cv_compiler_flag_unused_command_line_argument=yes 5556else 5557 xorg_cv_compiler_flag_unused_command_line_argument=no 5558fi 5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5560fi 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5562$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5563 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5564 CFLAGS="$xorg_testset_save_CFLAGS" 5565fi 5566 5567found="no" 5568 5569 if test $found = "no" ; then 5570 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5572 fi 5573 5574 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5576 fi 5577 5578 CFLAGS="$CFLAGS -Wold-style-definition" 5579 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5581$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5582 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` 5583 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5587/* end confdefs.h. */ 5588int i; 5589int 5590main () 5591{ 5592 5593 ; 5594 return 0; 5595} 5596_ACEOF 5597if ac_fn_c_try_link "$LINENO"; then : 5598 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5599else 5600 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5601fi 5602rm -f core conftest.err conftest.$ac_objext \ 5603 conftest$ac_exeext conftest.$ac_ext 5604fi 5605 5606 5607 CFLAGS="$xorg_testset_save_CFLAGS" 5608 5609 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5611$as_echo "$supported" >&6; } 5612 if test "$supported" = "yes" ; then 5613 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5614 found="yes" 5615 fi 5616 fi 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630xorg_testset_save_CFLAGS="$CFLAGS" 5631 5632if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5635$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5636if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638else 5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5640/* end confdefs.h. */ 5641int i; 5642_ACEOF 5643if ac_fn_c_try_compile "$LINENO"; then : 5644 xorg_cv_compiler_flag_unknown_warning_option=yes 5645else 5646 xorg_cv_compiler_flag_unknown_warning_option=no 5647fi 5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5649fi 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5651$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5652 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5653 CFLAGS="$xorg_testset_save_CFLAGS" 5654fi 5655 5656if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5657 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5659 fi 5660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5662$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5663if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5664 $as_echo_n "(cached) " >&6 5665else 5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5667/* end confdefs.h. */ 5668int i; 5669_ACEOF 5670if ac_fn_c_try_compile "$LINENO"; then : 5671 xorg_cv_compiler_flag_unused_command_line_argument=yes 5672else 5673 xorg_cv_compiler_flag_unused_command_line_argument=no 5674fi 5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5676fi 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5678$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5679 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5680 CFLAGS="$xorg_testset_save_CFLAGS" 5681fi 5682 5683found="no" 5684 5685 if test $found = "no" ; then 5686 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5688 fi 5689 5690 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5692 fi 5693 5694 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5695 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5697$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5698 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement` 5699 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5700 $as_echo_n "(cached) " >&6 5701else 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5703/* end confdefs.h. */ 5704int i; 5705int 5706main () 5707{ 5708 5709 ; 5710 return 0; 5711} 5712_ACEOF 5713if ac_fn_c_try_link "$LINENO"; then : 5714 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5715else 5716 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5717fi 5718rm -f core conftest.err conftest.$ac_objext \ 5719 conftest$ac_exeext conftest.$ac_ext 5720fi 5721 5722 5723 CFLAGS="$xorg_testset_save_CFLAGS" 5724 5725 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5727$as_echo "$supported" >&6; } 5728 if test "$supported" = "yes" ; then 5729 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5730 found="yes" 5731 fi 5732 fi 5733 5734 5735 5736 5737 5738# This chunk adds additional warnings that could catch undesired effects. 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750xorg_testset_save_CFLAGS="$CFLAGS" 5751 5752if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5755$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5756if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5757 $as_echo_n "(cached) " >&6 5758else 5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760/* end confdefs.h. */ 5761int i; 5762_ACEOF 5763if ac_fn_c_try_compile "$LINENO"; then : 5764 xorg_cv_compiler_flag_unknown_warning_option=yes 5765else 5766 xorg_cv_compiler_flag_unknown_warning_option=no 5767fi 5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5769fi 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5771$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5772 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5773 CFLAGS="$xorg_testset_save_CFLAGS" 5774fi 5775 5776if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5779 fi 5780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5782$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5783if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5784 $as_echo_n "(cached) " >&6 5785else 5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5787/* end confdefs.h. */ 5788int i; 5789_ACEOF 5790if ac_fn_c_try_compile "$LINENO"; then : 5791 xorg_cv_compiler_flag_unused_command_line_argument=yes 5792else 5793 xorg_cv_compiler_flag_unused_command_line_argument=no 5794fi 5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5796fi 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5798$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5799 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5800 CFLAGS="$xorg_testset_save_CFLAGS" 5801fi 5802 5803found="no" 5804 5805 if test $found = "no" ; then 5806 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5808 fi 5809 5810 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5812 fi 5813 5814 CFLAGS="$CFLAGS -Wunused" 5815 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5817$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5818 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` 5819 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5820 $as_echo_n "(cached) " >&6 5821else 5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5823/* end confdefs.h. */ 5824int i; 5825int 5826main () 5827{ 5828 5829 ; 5830 return 0; 5831} 5832_ACEOF 5833if ac_fn_c_try_link "$LINENO"; then : 5834 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5835else 5836 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5837fi 5838rm -f core conftest.err conftest.$ac_objext \ 5839 conftest$ac_exeext conftest.$ac_ext 5840fi 5841 5842 5843 CFLAGS="$xorg_testset_save_CFLAGS" 5844 5845 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5847$as_echo "$supported" >&6; } 5848 if test "$supported" = "yes" ; then 5849 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5850 found="yes" 5851 fi 5852 fi 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866xorg_testset_save_CFLAGS="$CFLAGS" 5867 5868if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5871$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5872if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5873 $as_echo_n "(cached) " >&6 5874else 5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5876/* end confdefs.h. */ 5877int i; 5878_ACEOF 5879if ac_fn_c_try_compile "$LINENO"; then : 5880 xorg_cv_compiler_flag_unknown_warning_option=yes 5881else 5882 xorg_cv_compiler_flag_unknown_warning_option=no 5883fi 5884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5885fi 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5887$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5888 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5889 CFLAGS="$xorg_testset_save_CFLAGS" 5890fi 5891 5892if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5895 fi 5896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5898$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5899if ${xorg_cv_compiler_flag_unused_command_line_argument+:} 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_compiler_flag_unused_command_line_argument=yes 5908else 5909 xorg_cv_compiler_flag_unused_command_line_argument=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_compiler_flag_unused_command_line_argument" >&5 5914$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5915 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5916 CFLAGS="$xorg_testset_save_CFLAGS" 5917fi 5918 5919found="no" 5920 5921 if test $found = "no" ; then 5922 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5924 fi 5925 5926 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5928 fi 5929 5930 CFLAGS="$CFLAGS -Wuninitialized" 5931 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5933$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5934 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` 5935 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5939/* end confdefs.h. */ 5940int i; 5941int 5942main () 5943{ 5944 5945 ; 5946 return 0; 5947} 5948_ACEOF 5949if ac_fn_c_try_link "$LINENO"; then : 5950 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5951else 5952 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5953fi 5954rm -f core conftest.err conftest.$ac_objext \ 5955 conftest$ac_exeext conftest.$ac_ext 5956fi 5957 5958 5959 CFLAGS="$xorg_testset_save_CFLAGS" 5960 5961 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5963$as_echo "$supported" >&6; } 5964 if test "$supported" = "yes" ; then 5965 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5966 found="yes" 5967 fi 5968 fi 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982xorg_testset_save_CFLAGS="$CFLAGS" 5983 5984if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5987$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5988if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5992/* end confdefs.h. */ 5993int i; 5994_ACEOF 5995if ac_fn_c_try_compile "$LINENO"; then : 5996 xorg_cv_compiler_flag_unknown_warning_option=yes 5997else 5998 xorg_cv_compiler_flag_unknown_warning_option=no 5999fi 6000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6001fi 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6003$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6004 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6005 CFLAGS="$xorg_testset_save_CFLAGS" 6006fi 6007 6008if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6011 fi 6012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6014$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6015if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6016 $as_echo_n "(cached) " >&6 6017else 6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6019/* end confdefs.h. */ 6020int i; 6021_ACEOF 6022if ac_fn_c_try_compile "$LINENO"; then : 6023 xorg_cv_compiler_flag_unused_command_line_argument=yes 6024else 6025 xorg_cv_compiler_flag_unused_command_line_argument=no 6026fi 6027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6028fi 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6030$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6031 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6032 CFLAGS="$xorg_testset_save_CFLAGS" 6033fi 6034 6035found="no" 6036 6037 if test $found = "no" ; then 6038 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6040 fi 6041 6042 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6044 fi 6045 6046 CFLAGS="$CFLAGS -Wshadow" 6047 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6049$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6050 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` 6051 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056int i; 6057int 6058main () 6059{ 6060 6061 ; 6062 return 0; 6063} 6064_ACEOF 6065if ac_fn_c_try_link "$LINENO"; then : 6066 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6067else 6068 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6069fi 6070rm -f core conftest.err conftest.$ac_objext \ 6071 conftest$ac_exeext conftest.$ac_ext 6072fi 6073 6074 6075 CFLAGS="$xorg_testset_save_CFLAGS" 6076 6077 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6079$as_echo "$supported" >&6; } 6080 if test "$supported" = "yes" ; then 6081 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6082 found="yes" 6083 fi 6084 fi 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098xorg_testset_save_CFLAGS="$CFLAGS" 6099 6100if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6103$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6104if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106else 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109int i; 6110_ACEOF 6111if ac_fn_c_try_compile "$LINENO"; then : 6112 xorg_cv_compiler_flag_unknown_warning_option=yes 6113else 6114 xorg_cv_compiler_flag_unknown_warning_option=no 6115fi 6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6117fi 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6119$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6120 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6121 CFLAGS="$xorg_testset_save_CFLAGS" 6122fi 6123 6124if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6127 fi 6128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6130$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6131if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6135/* end confdefs.h. */ 6136int i; 6137_ACEOF 6138if ac_fn_c_try_compile "$LINENO"; then : 6139 xorg_cv_compiler_flag_unused_command_line_argument=yes 6140else 6141 xorg_cv_compiler_flag_unused_command_line_argument=no 6142fi 6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6144fi 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6146$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6147 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6148 CFLAGS="$xorg_testset_save_CFLAGS" 6149fi 6150 6151found="no" 6152 6153 if test $found = "no" ; then 6154 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6156 fi 6157 6158 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6160 fi 6161 6162 CFLAGS="$CFLAGS -Wcast-qual" 6163 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6165$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6166 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` 6167 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6168 $as_echo_n "(cached) " >&6 6169else 6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171/* end confdefs.h. */ 6172int i; 6173int 6174main () 6175{ 6176 6177 ; 6178 return 0; 6179} 6180_ACEOF 6181if ac_fn_c_try_link "$LINENO"; then : 6182 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6183else 6184 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6185fi 6186rm -f core conftest.err conftest.$ac_objext \ 6187 conftest$ac_exeext conftest.$ac_ext 6188fi 6189 6190 6191 CFLAGS="$xorg_testset_save_CFLAGS" 6192 6193 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6195$as_echo "$supported" >&6; } 6196 if test "$supported" = "yes" ; then 6197 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6198 found="yes" 6199 fi 6200 fi 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214xorg_testset_save_CFLAGS="$CFLAGS" 6215 6216if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6219$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6220if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6221 $as_echo_n "(cached) " >&6 6222else 6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6224/* end confdefs.h. */ 6225int i; 6226_ACEOF 6227if ac_fn_c_try_compile "$LINENO"; then : 6228 xorg_cv_compiler_flag_unknown_warning_option=yes 6229else 6230 xorg_cv_compiler_flag_unknown_warning_option=no 6231fi 6232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6233fi 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6235$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6236 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6237 CFLAGS="$xorg_testset_save_CFLAGS" 6238fi 6239 6240if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6241 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6243 fi 6244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6246$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6247if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6251/* end confdefs.h. */ 6252int i; 6253_ACEOF 6254if ac_fn_c_try_compile "$LINENO"; then : 6255 xorg_cv_compiler_flag_unused_command_line_argument=yes 6256else 6257 xorg_cv_compiler_flag_unused_command_line_argument=no 6258fi 6259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6260fi 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6262$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6263 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6264 CFLAGS="$xorg_testset_save_CFLAGS" 6265fi 6266 6267found="no" 6268 6269 if test $found = "no" ; then 6270 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6272 fi 6273 6274 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6276 fi 6277 6278 CFLAGS="$CFLAGS -Wmissing-noreturn" 6279 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6281$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6282 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` 6283 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6284 $as_echo_n "(cached) " >&6 6285else 6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6287/* end confdefs.h. */ 6288int i; 6289int 6290main () 6291{ 6292 6293 ; 6294 return 0; 6295} 6296_ACEOF 6297if ac_fn_c_try_link "$LINENO"; then : 6298 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6299else 6300 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6301fi 6302rm -f core conftest.err conftest.$ac_objext \ 6303 conftest$ac_exeext conftest.$ac_ext 6304fi 6305 6306 6307 CFLAGS="$xorg_testset_save_CFLAGS" 6308 6309 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6311$as_echo "$supported" >&6; } 6312 if test "$supported" = "yes" ; then 6313 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6314 found="yes" 6315 fi 6316 fi 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330xorg_testset_save_CFLAGS="$CFLAGS" 6331 6332if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6335$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6336if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340/* end confdefs.h. */ 6341int i; 6342_ACEOF 6343if ac_fn_c_try_compile "$LINENO"; then : 6344 xorg_cv_compiler_flag_unknown_warning_option=yes 6345else 6346 xorg_cv_compiler_flag_unknown_warning_option=no 6347fi 6348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6351$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6352 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6353 CFLAGS="$xorg_testset_save_CFLAGS" 6354fi 6355 6356if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6359 fi 6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6362$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6363if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6367/* end confdefs.h. */ 6368int i; 6369_ACEOF 6370if ac_fn_c_try_compile "$LINENO"; then : 6371 xorg_cv_compiler_flag_unused_command_line_argument=yes 6372else 6373 xorg_cv_compiler_flag_unused_command_line_argument=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6376fi 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6378$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6379 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6380 CFLAGS="$xorg_testset_save_CFLAGS" 6381fi 6382 6383found="no" 6384 6385 if test $found = "no" ; then 6386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6388 fi 6389 6390 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6392 fi 6393 6394 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6395 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6397$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6398 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute` 6399 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6400 $as_echo_n "(cached) " >&6 6401else 6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403/* end confdefs.h. */ 6404int i; 6405int 6406main () 6407{ 6408 6409 ; 6410 return 0; 6411} 6412_ACEOF 6413if ac_fn_c_try_link "$LINENO"; then : 6414 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6415else 6416 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6417fi 6418rm -f core conftest.err conftest.$ac_objext \ 6419 conftest$ac_exeext conftest.$ac_ext 6420fi 6421 6422 6423 CFLAGS="$xorg_testset_save_CFLAGS" 6424 6425 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6427$as_echo "$supported" >&6; } 6428 if test "$supported" = "yes" ; then 6429 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6430 found="yes" 6431 fi 6432 fi 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446xorg_testset_save_CFLAGS="$CFLAGS" 6447 6448if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6451$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6452if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6453 $as_echo_n "(cached) " >&6 6454else 6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6456/* end confdefs.h. */ 6457int i; 6458_ACEOF 6459if ac_fn_c_try_compile "$LINENO"; then : 6460 xorg_cv_compiler_flag_unknown_warning_option=yes 6461else 6462 xorg_cv_compiler_flag_unknown_warning_option=no 6463fi 6464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6465fi 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6467$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6468 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6469 CFLAGS="$xorg_testset_save_CFLAGS" 6470fi 6471 6472if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6473 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6475 fi 6476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6478$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6479if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6480 $as_echo_n "(cached) " >&6 6481else 6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6483/* end confdefs.h. */ 6484int i; 6485_ACEOF 6486if ac_fn_c_try_compile "$LINENO"; then : 6487 xorg_cv_compiler_flag_unused_command_line_argument=yes 6488else 6489 xorg_cv_compiler_flag_unused_command_line_argument=no 6490fi 6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6492fi 6493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6494$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6495 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6496 CFLAGS="$xorg_testset_save_CFLAGS" 6497fi 6498 6499found="no" 6500 6501 if test $found = "no" ; then 6502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6504 fi 6505 6506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6508 fi 6509 6510 CFLAGS="$CFLAGS -Wredundant-decls" 6511 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6513$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6514 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` 6515 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519/* end confdefs.h. */ 6520int i; 6521int 6522main () 6523{ 6524 6525 ; 6526 return 0; 6527} 6528_ACEOF 6529if ac_fn_c_try_link "$LINENO"; then : 6530 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6531else 6532 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6533fi 6534rm -f core conftest.err conftest.$ac_objext \ 6535 conftest$ac_exeext conftest.$ac_ext 6536fi 6537 6538 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540 6541 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6543$as_echo "$supported" >&6; } 6544 if test "$supported" = "yes" ; then 6545 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6546 found="yes" 6547 fi 6548 fi 6549 6550 6551 6552# These are currently disabled because they are noisy. They will be enabled 6553# in the future once the codebase is sufficiently modernized to silence 6554# them. For now, I don't want them to drown out the other warnings. 6555# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6556# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6557# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6558 6559# Turn some warnings into errors, so we don't accidently get successful builds 6560# when there are problems that should be fixed. 6561 6562if test "x$SELECTIVE_WERROR" = "xyes" ; then 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574xorg_testset_save_CFLAGS="$CFLAGS" 6575 6576if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6579$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6580if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585int i; 6586_ACEOF 6587if ac_fn_c_try_compile "$LINENO"; then : 6588 xorg_cv_compiler_flag_unknown_warning_option=yes 6589else 6590 xorg_cv_compiler_flag_unknown_warning_option=no 6591fi 6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6593fi 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6595$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6596 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6597 CFLAGS="$xorg_testset_save_CFLAGS" 6598fi 6599 6600if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6603 fi 6604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6606$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6607if ${xorg_cv_compiler_flag_unused_command_line_argument+:} 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_compiler_flag_unused_command_line_argument=yes 6616else 6617 xorg_cv_compiler_flag_unused_command_line_argument=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_compiler_flag_unused_command_line_argument" >&5 6622$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6623 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6624 CFLAGS="$xorg_testset_save_CFLAGS" 6625fi 6626 6627found="no" 6628 6629 if test $found = "no" ; then 6630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6632 fi 6633 6634 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6636 fi 6637 6638 CFLAGS="$CFLAGS -Werror=implicit" 6639 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6641$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6642 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` 6643 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647/* end confdefs.h. */ 6648int i; 6649int 6650main () 6651{ 6652 6653 ; 6654 return 0; 6655} 6656_ACEOF 6657if ac_fn_c_try_link "$LINENO"; then : 6658 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6659else 6660 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext \ 6663 conftest$ac_exeext conftest.$ac_ext 6664fi 6665 6666 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668 6669 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6671$as_echo "$supported" >&6; } 6672 if test "$supported" = "yes" ; then 6673 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6674 found="yes" 6675 fi 6676 fi 6677 6678 if test $found = "no" ; then 6679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6681 fi 6682 6683 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6685 fi 6686 6687 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6688 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6690$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6691 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` 6692 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6693 $as_echo_n "(cached) " >&6 6694else 6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6696/* end confdefs.h. */ 6697int i; 6698int 6699main () 6700{ 6701 6702 ; 6703 return 0; 6704} 6705_ACEOF 6706if ac_fn_c_try_link "$LINENO"; then : 6707 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6708else 6709 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6710fi 6711rm -f core conftest.err conftest.$ac_objext \ 6712 conftest$ac_exeext conftest.$ac_ext 6713fi 6714 6715 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717 6718 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6720$as_echo "$supported" >&6; } 6721 if test "$supported" = "yes" ; then 6722 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6723 found="yes" 6724 fi 6725 fi 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739xorg_testset_save_CFLAGS="$CFLAGS" 6740 6741if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6744$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6745if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6746 $as_echo_n "(cached) " >&6 6747else 6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6749/* end confdefs.h. */ 6750int i; 6751_ACEOF 6752if ac_fn_c_try_compile "$LINENO"; then : 6753 xorg_cv_compiler_flag_unknown_warning_option=yes 6754else 6755 xorg_cv_compiler_flag_unknown_warning_option=no 6756fi 6757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6758fi 6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6760$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6761 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6762 CFLAGS="$xorg_testset_save_CFLAGS" 6763fi 6764 6765if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6766 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6768 fi 6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6771$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6772if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6773 $as_echo_n "(cached) " >&6 6774else 6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6776/* end confdefs.h. */ 6777int i; 6778_ACEOF 6779if ac_fn_c_try_compile "$LINENO"; then : 6780 xorg_cv_compiler_flag_unused_command_line_argument=yes 6781else 6782 xorg_cv_compiler_flag_unused_command_line_argument=no 6783fi 6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6785fi 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6787$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6788 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6789 CFLAGS="$xorg_testset_save_CFLAGS" 6790fi 6791 6792found="no" 6793 6794 if test $found = "no" ; then 6795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 fi 6798 6799 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6801 fi 6802 6803 CFLAGS="$CFLAGS -Werror=nonnull" 6804 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6806$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6807 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` 6808 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6809 $as_echo_n "(cached) " >&6 6810else 6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6812/* end confdefs.h. */ 6813int i; 6814int 6815main () 6816{ 6817 6818 ; 6819 return 0; 6820} 6821_ACEOF 6822if ac_fn_c_try_link "$LINENO"; then : 6823 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6824else 6825 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6826fi 6827rm -f core conftest.err conftest.$ac_objext \ 6828 conftest$ac_exeext conftest.$ac_ext 6829fi 6830 6831 6832 CFLAGS="$xorg_testset_save_CFLAGS" 6833 6834 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6836$as_echo "$supported" >&6; } 6837 if test "$supported" = "yes" ; then 6838 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6839 found="yes" 6840 fi 6841 fi 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855xorg_testset_save_CFLAGS="$CFLAGS" 6856 6857if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6860$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6861if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863else 6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6865/* end confdefs.h. */ 6866int i; 6867_ACEOF 6868if ac_fn_c_try_compile "$LINENO"; then : 6869 xorg_cv_compiler_flag_unknown_warning_option=yes 6870else 6871 xorg_cv_compiler_flag_unknown_warning_option=no 6872fi 6873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6874fi 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6876$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6877 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6878 CFLAGS="$xorg_testset_save_CFLAGS" 6879fi 6880 6881if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6882 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6884 fi 6885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6887$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6888if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892/* end confdefs.h. */ 6893int i; 6894_ACEOF 6895if ac_fn_c_try_compile "$LINENO"; then : 6896 xorg_cv_compiler_flag_unused_command_line_argument=yes 6897else 6898 xorg_cv_compiler_flag_unused_command_line_argument=no 6899fi 6900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6901fi 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6903$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6904 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906fi 6907 6908found="no" 6909 6910 if test $found = "no" ; then 6911 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6913 fi 6914 6915 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6917 fi 6918 6919 CFLAGS="$CFLAGS -Werror=init-self" 6920 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6922$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6923 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` 6924 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6925 $as_echo_n "(cached) " >&6 6926else 6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6928/* end confdefs.h. */ 6929int i; 6930int 6931main () 6932{ 6933 6934 ; 6935 return 0; 6936} 6937_ACEOF 6938if ac_fn_c_try_link "$LINENO"; then : 6939 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6940else 6941 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6942fi 6943rm -f core conftest.err conftest.$ac_objext \ 6944 conftest$ac_exeext conftest.$ac_ext 6945fi 6946 6947 6948 CFLAGS="$xorg_testset_save_CFLAGS" 6949 6950 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6952$as_echo "$supported" >&6; } 6953 if test "$supported" = "yes" ; then 6954 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6955 found="yes" 6956 fi 6957 fi 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971xorg_testset_save_CFLAGS="$CFLAGS" 6972 6973if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6976$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6977if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6978 $as_echo_n "(cached) " >&6 6979else 6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6981/* end confdefs.h. */ 6982int i; 6983_ACEOF 6984if ac_fn_c_try_compile "$LINENO"; then : 6985 xorg_cv_compiler_flag_unknown_warning_option=yes 6986else 6987 xorg_cv_compiler_flag_unknown_warning_option=no 6988fi 6989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6990fi 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6992$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6993 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6994 CFLAGS="$xorg_testset_save_CFLAGS" 6995fi 6996 6997if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7000 fi 7001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7003$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7004if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7008/* end confdefs.h. */ 7009int i; 7010_ACEOF 7011if ac_fn_c_try_compile "$LINENO"; then : 7012 xorg_cv_compiler_flag_unused_command_line_argument=yes 7013else 7014 xorg_cv_compiler_flag_unused_command_line_argument=no 7015fi 7016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7017fi 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7019$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7020 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7021 CFLAGS="$xorg_testset_save_CFLAGS" 7022fi 7023 7024found="no" 7025 7026 if test $found = "no" ; then 7027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7029 fi 7030 7031 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7033 fi 7034 7035 CFLAGS="$CFLAGS -Werror=main" 7036 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7038$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7039 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` 7040 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7041 $as_echo_n "(cached) " >&6 7042else 7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044/* end confdefs.h. */ 7045int i; 7046int 7047main () 7048{ 7049 7050 ; 7051 return 0; 7052} 7053_ACEOF 7054if ac_fn_c_try_link "$LINENO"; then : 7055 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7056else 7057 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7058fi 7059rm -f core conftest.err conftest.$ac_objext \ 7060 conftest$ac_exeext conftest.$ac_ext 7061fi 7062 7063 7064 CFLAGS="$xorg_testset_save_CFLAGS" 7065 7066 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7068$as_echo "$supported" >&6; } 7069 if test "$supported" = "yes" ; then 7070 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7071 found="yes" 7072 fi 7073 fi 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087xorg_testset_save_CFLAGS="$CFLAGS" 7088 7089if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7092$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7093if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7097/* end confdefs.h. */ 7098int i; 7099_ACEOF 7100if ac_fn_c_try_compile "$LINENO"; then : 7101 xorg_cv_compiler_flag_unknown_warning_option=yes 7102else 7103 xorg_cv_compiler_flag_unknown_warning_option=no 7104fi 7105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7106fi 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7108$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7109 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7110 CFLAGS="$xorg_testset_save_CFLAGS" 7111fi 7112 7113if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7116 fi 7117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7119$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7120if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124/* end confdefs.h. */ 7125int i; 7126_ACEOF 7127if ac_fn_c_try_compile "$LINENO"; then : 7128 xorg_cv_compiler_flag_unused_command_line_argument=yes 7129else 7130 xorg_cv_compiler_flag_unused_command_line_argument=no 7131fi 7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7133fi 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7135$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7136 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7137 CFLAGS="$xorg_testset_save_CFLAGS" 7138fi 7139 7140found="no" 7141 7142 if test $found = "no" ; then 7143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7145 fi 7146 7147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7149 fi 7150 7151 CFLAGS="$CFLAGS -Werror=missing-braces" 7152 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7154$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7155 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` 7156 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7160/* end confdefs.h. */ 7161int i; 7162int 7163main () 7164{ 7165 7166 ; 7167 return 0; 7168} 7169_ACEOF 7170if ac_fn_c_try_link "$LINENO"; then : 7171 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7172else 7173 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7174fi 7175rm -f core conftest.err conftest.$ac_objext \ 7176 conftest$ac_exeext conftest.$ac_ext 7177fi 7178 7179 7180 CFLAGS="$xorg_testset_save_CFLAGS" 7181 7182 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7184$as_echo "$supported" >&6; } 7185 if test "$supported" = "yes" ; then 7186 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7187 found="yes" 7188 fi 7189 fi 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203xorg_testset_save_CFLAGS="$CFLAGS" 7204 7205if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7208$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7209if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7210 $as_echo_n "(cached) " >&6 7211else 7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7213/* end confdefs.h. */ 7214int i; 7215_ACEOF 7216if ac_fn_c_try_compile "$LINENO"; then : 7217 xorg_cv_compiler_flag_unknown_warning_option=yes 7218else 7219 xorg_cv_compiler_flag_unknown_warning_option=no 7220fi 7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7222fi 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7224$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7225 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7226 CFLAGS="$xorg_testset_save_CFLAGS" 7227fi 7228 7229if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7230 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7232 fi 7233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7235$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7236if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7237 $as_echo_n "(cached) " >&6 7238else 7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7240/* end confdefs.h. */ 7241int i; 7242_ACEOF 7243if ac_fn_c_try_compile "$LINENO"; then : 7244 xorg_cv_compiler_flag_unused_command_line_argument=yes 7245else 7246 xorg_cv_compiler_flag_unused_command_line_argument=no 7247fi 7248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7249fi 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7251$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7252 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7253 CFLAGS="$xorg_testset_save_CFLAGS" 7254fi 7255 7256found="no" 7257 7258 if test $found = "no" ; then 7259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7261 fi 7262 7263 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7265 fi 7266 7267 CFLAGS="$CFLAGS -Werror=sequence-point" 7268 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7270$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7271 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` 7272 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7273 $as_echo_n "(cached) " >&6 7274else 7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7276/* end confdefs.h. */ 7277int i; 7278int 7279main () 7280{ 7281 7282 ; 7283 return 0; 7284} 7285_ACEOF 7286if ac_fn_c_try_link "$LINENO"; then : 7287 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7288else 7289 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7290fi 7291rm -f core conftest.err conftest.$ac_objext \ 7292 conftest$ac_exeext conftest.$ac_ext 7293fi 7294 7295 7296 CFLAGS="$xorg_testset_save_CFLAGS" 7297 7298 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7300$as_echo "$supported" >&6; } 7301 if test "$supported" = "yes" ; then 7302 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7303 found="yes" 7304 fi 7305 fi 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319xorg_testset_save_CFLAGS="$CFLAGS" 7320 7321if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7324$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7325if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7326 $as_echo_n "(cached) " >&6 7327else 7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7329/* end confdefs.h. */ 7330int i; 7331_ACEOF 7332if ac_fn_c_try_compile "$LINENO"; then : 7333 xorg_cv_compiler_flag_unknown_warning_option=yes 7334else 7335 xorg_cv_compiler_flag_unknown_warning_option=no 7336fi 7337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7338fi 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7340$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7341 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7342 CFLAGS="$xorg_testset_save_CFLAGS" 7343fi 7344 7345if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7348 fi 7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7351$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7352if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7353 $as_echo_n "(cached) " >&6 7354else 7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7356/* end confdefs.h. */ 7357int i; 7358_ACEOF 7359if ac_fn_c_try_compile "$LINENO"; then : 7360 xorg_cv_compiler_flag_unused_command_line_argument=yes 7361else 7362 xorg_cv_compiler_flag_unused_command_line_argument=no 7363fi 7364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7365fi 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7367$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7368 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7369 CFLAGS="$xorg_testset_save_CFLAGS" 7370fi 7371 7372found="no" 7373 7374 if test $found = "no" ; then 7375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7377 fi 7378 7379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7381 fi 7382 7383 CFLAGS="$CFLAGS -Werror=return-type" 7384 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7386$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7387 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` 7388 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7389 $as_echo_n "(cached) " >&6 7390else 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392/* end confdefs.h. */ 7393int i; 7394int 7395main () 7396{ 7397 7398 ; 7399 return 0; 7400} 7401_ACEOF 7402if ac_fn_c_try_link "$LINENO"; then : 7403 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7404else 7405 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7406fi 7407rm -f core conftest.err conftest.$ac_objext \ 7408 conftest$ac_exeext conftest.$ac_ext 7409fi 7410 7411 7412 CFLAGS="$xorg_testset_save_CFLAGS" 7413 7414 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7416$as_echo "$supported" >&6; } 7417 if test "$supported" = "yes" ; then 7418 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7419 found="yes" 7420 fi 7421 fi 7422 7423 if test $found = "no" ; then 7424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7426 fi 7427 7428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7430 fi 7431 7432 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7433 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7435$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7436 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` 7437 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7441/* end confdefs.h. */ 7442int i; 7443int 7444main () 7445{ 7446 7447 ; 7448 return 0; 7449} 7450_ACEOF 7451if ac_fn_c_try_link "$LINENO"; then : 7452 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7453else 7454 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7455fi 7456rm -f core conftest.err conftest.$ac_objext \ 7457 conftest$ac_exeext conftest.$ac_ext 7458fi 7459 7460 7461 CFLAGS="$xorg_testset_save_CFLAGS" 7462 7463 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7465$as_echo "$supported" >&6; } 7466 if test "$supported" = "yes" ; then 7467 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7468 found="yes" 7469 fi 7470 fi 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484xorg_testset_save_CFLAGS="$CFLAGS" 7485 7486if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7489$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7490if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7494/* end confdefs.h. */ 7495int i; 7496_ACEOF 7497if ac_fn_c_try_compile "$LINENO"; then : 7498 xorg_cv_compiler_flag_unknown_warning_option=yes 7499else 7500 xorg_cv_compiler_flag_unknown_warning_option=no 7501fi 7502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7503fi 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7505$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7506 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7507 CFLAGS="$xorg_testset_save_CFLAGS" 7508fi 7509 7510if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7511 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7513 fi 7514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7516$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7517if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7521/* end confdefs.h. */ 7522int i; 7523_ACEOF 7524if ac_fn_c_try_compile "$LINENO"; then : 7525 xorg_cv_compiler_flag_unused_command_line_argument=yes 7526else 7527 xorg_cv_compiler_flag_unused_command_line_argument=no 7528fi 7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7530fi 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7532$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7533 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7534 CFLAGS="$xorg_testset_save_CFLAGS" 7535fi 7536 7537found="no" 7538 7539 if test $found = "no" ; then 7540 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7542 fi 7543 7544 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7546 fi 7547 7548 CFLAGS="$CFLAGS -Werror=trigraphs" 7549 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7551$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7552 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` 7553 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7554 $as_echo_n "(cached) " >&6 7555else 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557/* end confdefs.h. */ 7558int i; 7559int 7560main () 7561{ 7562 7563 ; 7564 return 0; 7565} 7566_ACEOF 7567if ac_fn_c_try_link "$LINENO"; then : 7568 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7569else 7570 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7571fi 7572rm -f core conftest.err conftest.$ac_objext \ 7573 conftest$ac_exeext conftest.$ac_ext 7574fi 7575 7576 7577 CFLAGS="$xorg_testset_save_CFLAGS" 7578 7579 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7581$as_echo "$supported" >&6; } 7582 if test "$supported" = "yes" ; then 7583 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7584 found="yes" 7585 fi 7586 fi 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600xorg_testset_save_CFLAGS="$CFLAGS" 7601 7602if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7605$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7606if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7607 $as_echo_n "(cached) " >&6 7608else 7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610/* end confdefs.h. */ 7611int i; 7612_ACEOF 7613if ac_fn_c_try_compile "$LINENO"; then : 7614 xorg_cv_compiler_flag_unknown_warning_option=yes 7615else 7616 xorg_cv_compiler_flag_unknown_warning_option=no 7617fi 7618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7619fi 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7621$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7622 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7623 CFLAGS="$xorg_testset_save_CFLAGS" 7624fi 7625 7626if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7627 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7629 fi 7630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7632$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7633if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7637/* end confdefs.h. */ 7638int i; 7639_ACEOF 7640if ac_fn_c_try_compile "$LINENO"; then : 7641 xorg_cv_compiler_flag_unused_command_line_argument=yes 7642else 7643 xorg_cv_compiler_flag_unused_command_line_argument=no 7644fi 7645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7646fi 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7648$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7649 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7650 CFLAGS="$xorg_testset_save_CFLAGS" 7651fi 7652 7653found="no" 7654 7655 if test $found = "no" ; then 7656 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7658 fi 7659 7660 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7662 fi 7663 7664 CFLAGS="$CFLAGS -Werror=array-bounds" 7665 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7667$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7668 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` 7669 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7670 $as_echo_n "(cached) " >&6 7671else 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674int i; 7675int 7676main () 7677{ 7678 7679 ; 7680 return 0; 7681} 7682_ACEOF 7683if ac_fn_c_try_link "$LINENO"; then : 7684 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7685else 7686 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7687fi 7688rm -f core conftest.err conftest.$ac_objext \ 7689 conftest$ac_exeext conftest.$ac_ext 7690fi 7691 7692 7693 CFLAGS="$xorg_testset_save_CFLAGS" 7694 7695 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7697$as_echo "$supported" >&6; } 7698 if test "$supported" = "yes" ; then 7699 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7700 found="yes" 7701 fi 7702 fi 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716xorg_testset_save_CFLAGS="$CFLAGS" 7717 7718if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7721$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7722if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7723 $as_echo_n "(cached) " >&6 7724else 7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7726/* end confdefs.h. */ 7727int i; 7728_ACEOF 7729if ac_fn_c_try_compile "$LINENO"; then : 7730 xorg_cv_compiler_flag_unknown_warning_option=yes 7731else 7732 xorg_cv_compiler_flag_unknown_warning_option=no 7733fi 7734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7735fi 7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7737$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7738 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7739 CFLAGS="$xorg_testset_save_CFLAGS" 7740fi 7741 7742if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7743 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7745 fi 7746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7748$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7749if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7750 $as_echo_n "(cached) " >&6 7751else 7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7753/* end confdefs.h. */ 7754int i; 7755_ACEOF 7756if ac_fn_c_try_compile "$LINENO"; then : 7757 xorg_cv_compiler_flag_unused_command_line_argument=yes 7758else 7759 xorg_cv_compiler_flag_unused_command_line_argument=no 7760fi 7761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7762fi 7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7764$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7765 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7766 CFLAGS="$xorg_testset_save_CFLAGS" 7767fi 7768 7769found="no" 7770 7771 if test $found = "no" ; then 7772 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 fi 7775 7776 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7778 fi 7779 7780 CFLAGS="$CFLAGS -Werror=write-strings" 7781 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7783$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7784 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` 7785 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7786 $as_echo_n "(cached) " >&6 7787else 7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7789/* end confdefs.h. */ 7790int i; 7791int 7792main () 7793{ 7794 7795 ; 7796 return 0; 7797} 7798_ACEOF 7799if ac_fn_c_try_link "$LINENO"; then : 7800 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7801else 7802 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7803fi 7804rm -f core conftest.err conftest.$ac_objext \ 7805 conftest$ac_exeext conftest.$ac_ext 7806fi 7807 7808 7809 CFLAGS="$xorg_testset_save_CFLAGS" 7810 7811 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7813$as_echo "$supported" >&6; } 7814 if test "$supported" = "yes" ; then 7815 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7816 found="yes" 7817 fi 7818 fi 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832xorg_testset_save_CFLAGS="$CFLAGS" 7833 7834if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7837$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7838if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7842/* end confdefs.h. */ 7843int i; 7844_ACEOF 7845if ac_fn_c_try_compile "$LINENO"; then : 7846 xorg_cv_compiler_flag_unknown_warning_option=yes 7847else 7848 xorg_cv_compiler_flag_unknown_warning_option=no 7849fi 7850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7851fi 7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7853$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7854 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7855 CFLAGS="$xorg_testset_save_CFLAGS" 7856fi 7857 7858if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7861 fi 7862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7864$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7865if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7866 $as_echo_n "(cached) " >&6 7867else 7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869/* end confdefs.h. */ 7870int i; 7871_ACEOF 7872if ac_fn_c_try_compile "$LINENO"; then : 7873 xorg_cv_compiler_flag_unused_command_line_argument=yes 7874else 7875 xorg_cv_compiler_flag_unused_command_line_argument=no 7876fi 7877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7878fi 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7880$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7881 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7882 CFLAGS="$xorg_testset_save_CFLAGS" 7883fi 7884 7885found="no" 7886 7887 if test $found = "no" ; then 7888 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7890 fi 7891 7892 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7894 fi 7895 7896 CFLAGS="$CFLAGS -Werror=address" 7897 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7899$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7900 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` 7901 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7905/* end confdefs.h. */ 7906int i; 7907int 7908main () 7909{ 7910 7911 ; 7912 return 0; 7913} 7914_ACEOF 7915if ac_fn_c_try_link "$LINENO"; then : 7916 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7917else 7918 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7919fi 7920rm -f core conftest.err conftest.$ac_objext \ 7921 conftest$ac_exeext conftest.$ac_ext 7922fi 7923 7924 7925 CFLAGS="$xorg_testset_save_CFLAGS" 7926 7927 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7929$as_echo "$supported" >&6; } 7930 if test "$supported" = "yes" ; then 7931 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7932 found="yes" 7933 fi 7934 fi 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948xorg_testset_save_CFLAGS="$CFLAGS" 7949 7950if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7953$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7954if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7955 $as_echo_n "(cached) " >&6 7956else 7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7958/* end confdefs.h. */ 7959int i; 7960_ACEOF 7961if ac_fn_c_try_compile "$LINENO"; then : 7962 xorg_cv_compiler_flag_unknown_warning_option=yes 7963else 7964 xorg_cv_compiler_flag_unknown_warning_option=no 7965fi 7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7967fi 7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7969$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7970 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7971 CFLAGS="$xorg_testset_save_CFLAGS" 7972fi 7973 7974if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7977 fi 7978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7980$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7981if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7982 $as_echo_n "(cached) " >&6 7983else 7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7985/* end confdefs.h. */ 7986int i; 7987_ACEOF 7988if ac_fn_c_try_compile "$LINENO"; then : 7989 xorg_cv_compiler_flag_unused_command_line_argument=yes 7990else 7991 xorg_cv_compiler_flag_unused_command_line_argument=no 7992fi 7993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7994fi 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7996$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7997 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7998 CFLAGS="$xorg_testset_save_CFLAGS" 7999fi 8000 8001found="no" 8002 8003 if test $found = "no" ; then 8004 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8006 fi 8007 8008 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8010 fi 8011 8012 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8013 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8015$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8016 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast` 8017 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8021/* end confdefs.h. */ 8022int i; 8023int 8024main () 8025{ 8026 8027 ; 8028 return 0; 8029} 8030_ACEOF 8031if ac_fn_c_try_link "$LINENO"; then : 8032 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8033else 8034 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8035fi 8036rm -f core conftest.err conftest.$ac_objext \ 8037 conftest$ac_exeext conftest.$ac_ext 8038fi 8039 8040 8041 CFLAGS="$xorg_testset_save_CFLAGS" 8042 8043 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8045$as_echo "$supported" >&6; } 8046 if test "$supported" = "yes" ; then 8047 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8048 found="yes" 8049 fi 8050 fi 8051 8052 if test $found = "no" ; then 8053 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8055 fi 8056 8057 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8059 fi 8060 8061 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8062 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8064$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8065 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` 8066 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072int 8073main () 8074{ 8075 8076 ; 8077 return 0; 8078} 8079_ACEOF 8080if ac_fn_c_try_link "$LINENO"; then : 8081 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8082else 8083 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8084fi 8085rm -f core conftest.err conftest.$ac_objext \ 8086 conftest$ac_exeext conftest.$ac_ext 8087fi 8088 8089 8090 CFLAGS="$xorg_testset_save_CFLAGS" 8091 8092 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8094$as_echo "$supported" >&6; } 8095 if test "$supported" = "yes" ; then 8096 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8097 found="yes" 8098 fi 8099 fi 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113xorg_testset_save_CFLAGS="$CFLAGS" 8114 8115if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8118$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8119if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8120 $as_echo_n "(cached) " >&6 8121else 8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8123/* end confdefs.h. */ 8124int i; 8125_ACEOF 8126if ac_fn_c_try_compile "$LINENO"; then : 8127 xorg_cv_compiler_flag_unknown_warning_option=yes 8128else 8129 xorg_cv_compiler_flag_unknown_warning_option=no 8130fi 8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8132fi 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8134$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8135 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8136 CFLAGS="$xorg_testset_save_CFLAGS" 8137fi 8138 8139if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8142 fi 8143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8145$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8146if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8150/* end confdefs.h. */ 8151int i; 8152_ACEOF 8153if ac_fn_c_try_compile "$LINENO"; then : 8154 xorg_cv_compiler_flag_unused_command_line_argument=yes 8155else 8156 xorg_cv_compiler_flag_unused_command_line_argument=no 8157fi 8158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8159fi 8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8161$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8162 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8163 CFLAGS="$xorg_testset_save_CFLAGS" 8164fi 8165 8166found="no" 8167 8168 if test $found = "no" ; then 8169 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8171 fi 8172 8173 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8175 fi 8176 8177 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8178 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8180$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8181 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast` 8182 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8183 $as_echo_n "(cached) " >&6 8184else 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187int i; 8188int 8189main () 8190{ 8191 8192 ; 8193 return 0; 8194} 8195_ACEOF 8196if ac_fn_c_try_link "$LINENO"; then : 8197 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8198else 8199 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8200fi 8201rm -f core conftest.err conftest.$ac_objext \ 8202 conftest$ac_exeext conftest.$ac_ext 8203fi 8204 8205 8206 CFLAGS="$xorg_testset_save_CFLAGS" 8207 8208 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8210$as_echo "$supported" >&6; } 8211 if test "$supported" = "yes" ; then 8212 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8213 found="yes" 8214 fi 8215 fi 8216 8217 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8218else 8219{ $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 8220$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;} 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232xorg_testset_save_CFLAGS="$CFLAGS" 8233 8234if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8237$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8238if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8239 $as_echo_n "(cached) " >&6 8240else 8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8242/* end confdefs.h. */ 8243int i; 8244_ACEOF 8245if ac_fn_c_try_compile "$LINENO"; then : 8246 xorg_cv_compiler_flag_unknown_warning_option=yes 8247else 8248 xorg_cv_compiler_flag_unknown_warning_option=no 8249fi 8250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8251fi 8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8253$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8254 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8255 CFLAGS="$xorg_testset_save_CFLAGS" 8256fi 8257 8258if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8261 fi 8262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8264$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8265if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8266 $as_echo_n "(cached) " >&6 8267else 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269/* end confdefs.h. */ 8270int i; 8271_ACEOF 8272if ac_fn_c_try_compile "$LINENO"; then : 8273 xorg_cv_compiler_flag_unused_command_line_argument=yes 8274else 8275 xorg_cv_compiler_flag_unused_command_line_argument=no 8276fi 8277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8278fi 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8280$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8281 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8282 CFLAGS="$xorg_testset_save_CFLAGS" 8283fi 8284 8285found="no" 8286 8287 if test $found = "no" ; then 8288 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8290 fi 8291 8292 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8294 fi 8295 8296 CFLAGS="$CFLAGS -Wimplicit" 8297 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8299$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8300 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` 8301 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305/* end confdefs.h. */ 8306int i; 8307int 8308main () 8309{ 8310 8311 ; 8312 return 0; 8313} 8314_ACEOF 8315if ac_fn_c_try_link "$LINENO"; then : 8316 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8317else 8318 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8319fi 8320rm -f core conftest.err conftest.$ac_objext \ 8321 conftest$ac_exeext conftest.$ac_ext 8322fi 8323 8324 8325 CFLAGS="$xorg_testset_save_CFLAGS" 8326 8327 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8329$as_echo "$supported" >&6; } 8330 if test "$supported" = "yes" ; then 8331 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8332 found="yes" 8333 fi 8334 fi 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348xorg_testset_save_CFLAGS="$CFLAGS" 8349 8350if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8353$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8354if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356else 8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8358/* end confdefs.h. */ 8359int i; 8360_ACEOF 8361if ac_fn_c_try_compile "$LINENO"; then : 8362 xorg_cv_compiler_flag_unknown_warning_option=yes 8363else 8364 xorg_cv_compiler_flag_unknown_warning_option=no 8365fi 8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8367fi 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8369$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8370 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8371 CFLAGS="$xorg_testset_save_CFLAGS" 8372fi 8373 8374if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8377 fi 8378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8380$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8381if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8385/* end confdefs.h. */ 8386int i; 8387_ACEOF 8388if ac_fn_c_try_compile "$LINENO"; then : 8389 xorg_cv_compiler_flag_unused_command_line_argument=yes 8390else 8391 xorg_cv_compiler_flag_unused_command_line_argument=no 8392fi 8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8394fi 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8396$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8397 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8398 CFLAGS="$xorg_testset_save_CFLAGS" 8399fi 8400 8401found="no" 8402 8403 if test $found = "no" ; then 8404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 fi 8407 8408 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8410 fi 8411 8412 CFLAGS="$CFLAGS -Wnonnull" 8413 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8415$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8416 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` 8417 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421/* end confdefs.h. */ 8422int i; 8423int 8424main () 8425{ 8426 8427 ; 8428 return 0; 8429} 8430_ACEOF 8431if ac_fn_c_try_link "$LINENO"; then : 8432 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8433else 8434 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8435fi 8436rm -f core conftest.err conftest.$ac_objext \ 8437 conftest$ac_exeext conftest.$ac_ext 8438fi 8439 8440 8441 CFLAGS="$xorg_testset_save_CFLAGS" 8442 8443 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8445$as_echo "$supported" >&6; } 8446 if test "$supported" = "yes" ; then 8447 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8448 found="yes" 8449 fi 8450 fi 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464xorg_testset_save_CFLAGS="$CFLAGS" 8465 8466if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8469$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8470if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8471 $as_echo_n "(cached) " >&6 8472else 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475int i; 8476_ACEOF 8477if ac_fn_c_try_compile "$LINENO"; then : 8478 xorg_cv_compiler_flag_unknown_warning_option=yes 8479else 8480 xorg_cv_compiler_flag_unknown_warning_option=no 8481fi 8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8483fi 8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8485$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8486 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8487 CFLAGS="$xorg_testset_save_CFLAGS" 8488fi 8489 8490if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8493 fi 8494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8496$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8497if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501/* end confdefs.h. */ 8502int i; 8503_ACEOF 8504if ac_fn_c_try_compile "$LINENO"; then : 8505 xorg_cv_compiler_flag_unused_command_line_argument=yes 8506else 8507 xorg_cv_compiler_flag_unused_command_line_argument=no 8508fi 8509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8510fi 8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8512$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8513 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8514 CFLAGS="$xorg_testset_save_CFLAGS" 8515fi 8516 8517found="no" 8518 8519 if test $found = "no" ; then 8520 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8522 fi 8523 8524 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8526 fi 8527 8528 CFLAGS="$CFLAGS -Winit-self" 8529 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8531$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8532 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` 8533 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8534 $as_echo_n "(cached) " >&6 8535else 8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8537/* end confdefs.h. */ 8538int i; 8539int 8540main () 8541{ 8542 8543 ; 8544 return 0; 8545} 8546_ACEOF 8547if ac_fn_c_try_link "$LINENO"; then : 8548 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8549else 8550 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8551fi 8552rm -f core conftest.err conftest.$ac_objext \ 8553 conftest$ac_exeext conftest.$ac_ext 8554fi 8555 8556 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8558 8559 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8561$as_echo "$supported" >&6; } 8562 if test "$supported" = "yes" ; then 8563 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8564 found="yes" 8565 fi 8566 fi 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580xorg_testset_save_CFLAGS="$CFLAGS" 8581 8582if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8585$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8586if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8587 $as_echo_n "(cached) " >&6 8588else 8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8590/* end confdefs.h. */ 8591int i; 8592_ACEOF 8593if ac_fn_c_try_compile "$LINENO"; then : 8594 xorg_cv_compiler_flag_unknown_warning_option=yes 8595else 8596 xorg_cv_compiler_flag_unknown_warning_option=no 8597fi 8598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8599fi 8600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8601$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8602 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8603 CFLAGS="$xorg_testset_save_CFLAGS" 8604fi 8605 8606if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8607 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8609 fi 8610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8612$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8613if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8614 $as_echo_n "(cached) " >&6 8615else 8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8617/* end confdefs.h. */ 8618int i; 8619_ACEOF 8620if ac_fn_c_try_compile "$LINENO"; then : 8621 xorg_cv_compiler_flag_unused_command_line_argument=yes 8622else 8623 xorg_cv_compiler_flag_unused_command_line_argument=no 8624fi 8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8626fi 8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8628$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8629 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8630 CFLAGS="$xorg_testset_save_CFLAGS" 8631fi 8632 8633found="no" 8634 8635 if test $found = "no" ; then 8636 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8638 fi 8639 8640 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8642 fi 8643 8644 CFLAGS="$CFLAGS -Wmain" 8645 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8647$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8648 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` 8649 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8650 $as_echo_n "(cached) " >&6 8651else 8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8653/* end confdefs.h. */ 8654int i; 8655int 8656main () 8657{ 8658 8659 ; 8660 return 0; 8661} 8662_ACEOF 8663if ac_fn_c_try_link "$LINENO"; then : 8664 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8665else 8666 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8667fi 8668rm -f core conftest.err conftest.$ac_objext \ 8669 conftest$ac_exeext conftest.$ac_ext 8670fi 8671 8672 8673 CFLAGS="$xorg_testset_save_CFLAGS" 8674 8675 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8677$as_echo "$supported" >&6; } 8678 if test "$supported" = "yes" ; then 8679 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8680 found="yes" 8681 fi 8682 fi 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696xorg_testset_save_CFLAGS="$CFLAGS" 8697 8698if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8701$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8702if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8703 $as_echo_n "(cached) " >&6 8704else 8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8706/* end confdefs.h. */ 8707int i; 8708_ACEOF 8709if ac_fn_c_try_compile "$LINENO"; then : 8710 xorg_cv_compiler_flag_unknown_warning_option=yes 8711else 8712 xorg_cv_compiler_flag_unknown_warning_option=no 8713fi 8714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8715fi 8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8717$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8718 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8719 CFLAGS="$xorg_testset_save_CFLAGS" 8720fi 8721 8722if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8725 fi 8726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8728$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8729if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8730 $as_echo_n "(cached) " >&6 8731else 8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8733/* end confdefs.h. */ 8734int i; 8735_ACEOF 8736if ac_fn_c_try_compile "$LINENO"; then : 8737 xorg_cv_compiler_flag_unused_command_line_argument=yes 8738else 8739 xorg_cv_compiler_flag_unused_command_line_argument=no 8740fi 8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8742fi 8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8744$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8745 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8746 CFLAGS="$xorg_testset_save_CFLAGS" 8747fi 8748 8749found="no" 8750 8751 if test $found = "no" ; then 8752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8754 fi 8755 8756 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8758 fi 8759 8760 CFLAGS="$CFLAGS -Wmissing-braces" 8761 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8763$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8764 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` 8765 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8766 $as_echo_n "(cached) " >&6 8767else 8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8769/* end confdefs.h. */ 8770int i; 8771int 8772main () 8773{ 8774 8775 ; 8776 return 0; 8777} 8778_ACEOF 8779if ac_fn_c_try_link "$LINENO"; then : 8780 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8781else 8782 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8783fi 8784rm -f core conftest.err conftest.$ac_objext \ 8785 conftest$ac_exeext conftest.$ac_ext 8786fi 8787 8788 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790 8791 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8793$as_echo "$supported" >&6; } 8794 if test "$supported" = "yes" ; then 8795 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8796 found="yes" 8797 fi 8798 fi 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812xorg_testset_save_CFLAGS="$CFLAGS" 8813 8814if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8817$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8818if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8822/* end confdefs.h. */ 8823int i; 8824_ACEOF 8825if ac_fn_c_try_compile "$LINENO"; then : 8826 xorg_cv_compiler_flag_unknown_warning_option=yes 8827else 8828 xorg_cv_compiler_flag_unknown_warning_option=no 8829fi 8830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8831fi 8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8833$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8834 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8835 CFLAGS="$xorg_testset_save_CFLAGS" 8836fi 8837 8838if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8839 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8841 fi 8842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8844$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8845if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8849/* end confdefs.h. */ 8850int i; 8851_ACEOF 8852if ac_fn_c_try_compile "$LINENO"; then : 8853 xorg_cv_compiler_flag_unused_command_line_argument=yes 8854else 8855 xorg_cv_compiler_flag_unused_command_line_argument=no 8856fi 8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8858fi 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8860$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8861 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8862 CFLAGS="$xorg_testset_save_CFLAGS" 8863fi 8864 8865found="no" 8866 8867 if test $found = "no" ; then 8868 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8870 fi 8871 8872 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8874 fi 8875 8876 CFLAGS="$CFLAGS -Wsequence-point" 8877 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8879$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8880 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` 8881 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8882 $as_echo_n "(cached) " >&6 8883else 8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8885/* end confdefs.h. */ 8886int i; 8887int 8888main () 8889{ 8890 8891 ; 8892 return 0; 8893} 8894_ACEOF 8895if ac_fn_c_try_link "$LINENO"; then : 8896 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8897else 8898 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext \ 8901 conftest$ac_exeext conftest.$ac_ext 8902fi 8903 8904 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906 8907 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8909$as_echo "$supported" >&6; } 8910 if test "$supported" = "yes" ; then 8911 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8912 found="yes" 8913 fi 8914 fi 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928xorg_testset_save_CFLAGS="$CFLAGS" 8929 8930if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8933$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8934if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8935 $as_echo_n "(cached) " >&6 8936else 8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8938/* end confdefs.h. */ 8939int i; 8940_ACEOF 8941if ac_fn_c_try_compile "$LINENO"; then : 8942 xorg_cv_compiler_flag_unknown_warning_option=yes 8943else 8944 xorg_cv_compiler_flag_unknown_warning_option=no 8945fi 8946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8947fi 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8949$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8950 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8951 CFLAGS="$xorg_testset_save_CFLAGS" 8952fi 8953 8954if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8955 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8957 fi 8958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8960$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8961if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963else 8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8965/* end confdefs.h. */ 8966int i; 8967_ACEOF 8968if ac_fn_c_try_compile "$LINENO"; then : 8969 xorg_cv_compiler_flag_unused_command_line_argument=yes 8970else 8971 xorg_cv_compiler_flag_unused_command_line_argument=no 8972fi 8973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8974fi 8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8976$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8977 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8978 CFLAGS="$xorg_testset_save_CFLAGS" 8979fi 8980 8981found="no" 8982 8983 if test $found = "no" ; then 8984 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8986 fi 8987 8988 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8990 fi 8991 8992 CFLAGS="$CFLAGS -Wreturn-type" 8993 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 8995$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 8996 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` 8997 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8998 $as_echo_n "(cached) " >&6 8999else 9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9001/* end confdefs.h. */ 9002int i; 9003int 9004main () 9005{ 9006 9007 ; 9008 return 0; 9009} 9010_ACEOF 9011if ac_fn_c_try_link "$LINENO"; then : 9012 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9013else 9014 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9015fi 9016rm -f core conftest.err conftest.$ac_objext \ 9017 conftest$ac_exeext conftest.$ac_ext 9018fi 9019 9020 9021 CFLAGS="$xorg_testset_save_CFLAGS" 9022 9023 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9025$as_echo "$supported" >&6; } 9026 if test "$supported" = "yes" ; then 9027 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9028 found="yes" 9029 fi 9030 fi 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044xorg_testset_save_CFLAGS="$CFLAGS" 9045 9046if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9049$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9050if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9051 $as_echo_n "(cached) " >&6 9052else 9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9054/* end confdefs.h. */ 9055int i; 9056_ACEOF 9057if ac_fn_c_try_compile "$LINENO"; then : 9058 xorg_cv_compiler_flag_unknown_warning_option=yes 9059else 9060 xorg_cv_compiler_flag_unknown_warning_option=no 9061fi 9062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9063fi 9064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9065$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9066 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9067 CFLAGS="$xorg_testset_save_CFLAGS" 9068fi 9069 9070if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9071 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9073 fi 9074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9076$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9077if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9078 $as_echo_n "(cached) " >&6 9079else 9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9081/* end confdefs.h. */ 9082int i; 9083_ACEOF 9084if ac_fn_c_try_compile "$LINENO"; then : 9085 xorg_cv_compiler_flag_unused_command_line_argument=yes 9086else 9087 xorg_cv_compiler_flag_unused_command_line_argument=no 9088fi 9089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9090fi 9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9092$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9093 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9094 CFLAGS="$xorg_testset_save_CFLAGS" 9095fi 9096 9097found="no" 9098 9099 if test $found = "no" ; then 9100 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9102 fi 9103 9104 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9106 fi 9107 9108 CFLAGS="$CFLAGS -Wtrigraphs" 9109 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9111$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9112 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` 9113 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9114 $as_echo_n "(cached) " >&6 9115else 9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9117/* end confdefs.h. */ 9118int i; 9119int 9120main () 9121{ 9122 9123 ; 9124 return 0; 9125} 9126_ACEOF 9127if ac_fn_c_try_link "$LINENO"; then : 9128 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9129else 9130 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9131fi 9132rm -f core conftest.err conftest.$ac_objext \ 9133 conftest$ac_exeext conftest.$ac_ext 9134fi 9135 9136 9137 CFLAGS="$xorg_testset_save_CFLAGS" 9138 9139 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9141$as_echo "$supported" >&6; } 9142 if test "$supported" = "yes" ; then 9143 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9144 found="yes" 9145 fi 9146 fi 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160xorg_testset_save_CFLAGS="$CFLAGS" 9161 9162if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9165$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9166if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9167 $as_echo_n "(cached) " >&6 9168else 9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9170/* end confdefs.h. */ 9171int i; 9172_ACEOF 9173if ac_fn_c_try_compile "$LINENO"; then : 9174 xorg_cv_compiler_flag_unknown_warning_option=yes 9175else 9176 xorg_cv_compiler_flag_unknown_warning_option=no 9177fi 9178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9179fi 9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9181$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9182 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9183 CFLAGS="$xorg_testset_save_CFLAGS" 9184fi 9185 9186if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 fi 9190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9192$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9193if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198int i; 9199_ACEOF 9200if ac_fn_c_try_compile "$LINENO"; then : 9201 xorg_cv_compiler_flag_unused_command_line_argument=yes 9202else 9203 xorg_cv_compiler_flag_unused_command_line_argument=no 9204fi 9205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9206fi 9207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9208$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9209 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9210 CFLAGS="$xorg_testset_save_CFLAGS" 9211fi 9212 9213found="no" 9214 9215 if test $found = "no" ; then 9216 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9218 fi 9219 9220 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9222 fi 9223 9224 CFLAGS="$CFLAGS -Warray-bounds" 9225 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9227$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9228 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` 9229 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9230 $as_echo_n "(cached) " >&6 9231else 9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9233/* end confdefs.h. */ 9234int i; 9235int 9236main () 9237{ 9238 9239 ; 9240 return 0; 9241} 9242_ACEOF 9243if ac_fn_c_try_link "$LINENO"; then : 9244 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9245else 9246 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9247fi 9248rm -f core conftest.err conftest.$ac_objext \ 9249 conftest$ac_exeext conftest.$ac_ext 9250fi 9251 9252 9253 CFLAGS="$xorg_testset_save_CFLAGS" 9254 9255 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9257$as_echo "$supported" >&6; } 9258 if test "$supported" = "yes" ; then 9259 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9260 found="yes" 9261 fi 9262 fi 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276xorg_testset_save_CFLAGS="$CFLAGS" 9277 9278if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9281$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9282if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9283 $as_echo_n "(cached) " >&6 9284else 9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9286/* end confdefs.h. */ 9287int i; 9288_ACEOF 9289if ac_fn_c_try_compile "$LINENO"; then : 9290 xorg_cv_compiler_flag_unknown_warning_option=yes 9291else 9292 xorg_cv_compiler_flag_unknown_warning_option=no 9293fi 9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9295fi 9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9297$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9298 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9299 CFLAGS="$xorg_testset_save_CFLAGS" 9300fi 9301 9302if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9303 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9305 fi 9306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9308$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9309if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9310 $as_echo_n "(cached) " >&6 9311else 9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313/* end confdefs.h. */ 9314int i; 9315_ACEOF 9316if ac_fn_c_try_compile "$LINENO"; then : 9317 xorg_cv_compiler_flag_unused_command_line_argument=yes 9318else 9319 xorg_cv_compiler_flag_unused_command_line_argument=no 9320fi 9321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9322fi 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9324$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9325 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9326 CFLAGS="$xorg_testset_save_CFLAGS" 9327fi 9328 9329found="no" 9330 9331 if test $found = "no" ; then 9332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9334 fi 9335 9336 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9338 fi 9339 9340 CFLAGS="$CFLAGS -Wwrite-strings" 9341 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9343$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9344 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` 9345 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9346 $as_echo_n "(cached) " >&6 9347else 9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349/* end confdefs.h. */ 9350int i; 9351int 9352main () 9353{ 9354 9355 ; 9356 return 0; 9357} 9358_ACEOF 9359if ac_fn_c_try_link "$LINENO"; then : 9360 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9361else 9362 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9363fi 9364rm -f core conftest.err conftest.$ac_objext \ 9365 conftest$ac_exeext conftest.$ac_ext 9366fi 9367 9368 9369 CFLAGS="$xorg_testset_save_CFLAGS" 9370 9371 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9373$as_echo "$supported" >&6; } 9374 if test "$supported" = "yes" ; then 9375 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9376 found="yes" 9377 fi 9378 fi 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392xorg_testset_save_CFLAGS="$CFLAGS" 9393 9394if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9397$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9398if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9399 $as_echo_n "(cached) " >&6 9400else 9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9402/* end confdefs.h. */ 9403int i; 9404_ACEOF 9405if ac_fn_c_try_compile "$LINENO"; then : 9406 xorg_cv_compiler_flag_unknown_warning_option=yes 9407else 9408 xorg_cv_compiler_flag_unknown_warning_option=no 9409fi 9410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9411fi 9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9413$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9414 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9415 CFLAGS="$xorg_testset_save_CFLAGS" 9416fi 9417 9418if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9419 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9421 fi 9422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9424$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9425if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9426 $as_echo_n "(cached) " >&6 9427else 9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9429/* end confdefs.h. */ 9430int i; 9431_ACEOF 9432if ac_fn_c_try_compile "$LINENO"; then : 9433 xorg_cv_compiler_flag_unused_command_line_argument=yes 9434else 9435 xorg_cv_compiler_flag_unused_command_line_argument=no 9436fi 9437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9438fi 9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9440$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9441 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9442 CFLAGS="$xorg_testset_save_CFLAGS" 9443fi 9444 9445found="no" 9446 9447 if test $found = "no" ; then 9448 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 9452 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9454 fi 9455 9456 CFLAGS="$CFLAGS -Waddress" 9457 9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9459$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9460 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` 9461 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9462 $as_echo_n "(cached) " >&6 9463else 9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9465/* end confdefs.h. */ 9466int i; 9467int 9468main () 9469{ 9470 9471 ; 9472 return 0; 9473} 9474_ACEOF 9475if ac_fn_c_try_link "$LINENO"; then : 9476 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9477else 9478 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9479fi 9480rm -f core conftest.err conftest.$ac_objext \ 9481 conftest$ac_exeext conftest.$ac_ext 9482fi 9483 9484 9485 CFLAGS="$xorg_testset_save_CFLAGS" 9486 9487 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9489$as_echo "$supported" >&6; } 9490 if test "$supported" = "yes" ; then 9491 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9492 found="yes" 9493 fi 9494 fi 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508xorg_testset_save_CFLAGS="$CFLAGS" 9509 9510if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9513$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9514if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9515 $as_echo_n "(cached) " >&6 9516else 9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518/* end confdefs.h. */ 9519int i; 9520_ACEOF 9521if ac_fn_c_try_compile "$LINENO"; then : 9522 xorg_cv_compiler_flag_unknown_warning_option=yes 9523else 9524 xorg_cv_compiler_flag_unknown_warning_option=no 9525fi 9526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9527fi 9528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9529$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9530 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9531 CFLAGS="$xorg_testset_save_CFLAGS" 9532fi 9533 9534if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9537 fi 9538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9540$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9541if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9542 $as_echo_n "(cached) " >&6 9543else 9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9545/* end confdefs.h. */ 9546int i; 9547_ACEOF 9548if ac_fn_c_try_compile "$LINENO"; then : 9549 xorg_cv_compiler_flag_unused_command_line_argument=yes 9550else 9551 xorg_cv_compiler_flag_unused_command_line_argument=no 9552fi 9553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9554fi 9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9556$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9557 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9558 CFLAGS="$xorg_testset_save_CFLAGS" 9559fi 9560 9561found="no" 9562 9563 if test $found = "no" ; then 9564 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9566 fi 9567 9568 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9570 fi 9571 9572 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9573 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9575$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9576 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` 9577 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9578 $as_echo_n "(cached) " >&6 9579else 9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9581/* end confdefs.h. */ 9582int i; 9583int 9584main () 9585{ 9586 9587 ; 9588 return 0; 9589} 9590_ACEOF 9591if ac_fn_c_try_link "$LINENO"; then : 9592 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9593else 9594 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9595fi 9596rm -f core conftest.err conftest.$ac_objext \ 9597 conftest$ac_exeext conftest.$ac_ext 9598fi 9599 9600 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602 9603 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9605$as_echo "$supported" >&6; } 9606 if test "$supported" = "yes" ; then 9607 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9608 found="yes" 9609 fi 9610 fi 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624xorg_testset_save_CFLAGS="$CFLAGS" 9625 9626if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9629$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9630if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9631 $as_echo_n "(cached) " >&6 9632else 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635int i; 9636_ACEOF 9637if ac_fn_c_try_compile "$LINENO"; then : 9638 xorg_cv_compiler_flag_unknown_warning_option=yes 9639else 9640 xorg_cv_compiler_flag_unknown_warning_option=no 9641fi 9642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9643fi 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9645$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9646 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9647 CFLAGS="$xorg_testset_save_CFLAGS" 9648fi 9649 9650if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9653 fi 9654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9656$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9657if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9658 $as_echo_n "(cached) " >&6 9659else 9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9661/* end confdefs.h. */ 9662int i; 9663_ACEOF 9664if ac_fn_c_try_compile "$LINENO"; then : 9665 xorg_cv_compiler_flag_unused_command_line_argument=yes 9666else 9667 xorg_cv_compiler_flag_unused_command_line_argument=no 9668fi 9669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9670fi 9671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9672$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9673 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9674 CFLAGS="$xorg_testset_save_CFLAGS" 9675fi 9676 9677found="no" 9678 9679 if test $found = "no" ; then 9680 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9682 fi 9683 9684 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9686 fi 9687 9688 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9689 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9691$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9692 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` 9693 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9694 $as_echo_n "(cached) " >&6 9695else 9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9697/* end confdefs.h. */ 9698int i; 9699int 9700main () 9701{ 9702 9703 ; 9704 return 0; 9705} 9706_ACEOF 9707if ac_fn_c_try_link "$LINENO"; then : 9708 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9709else 9710 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9711fi 9712rm -f core conftest.err conftest.$ac_objext \ 9713 conftest$ac_exeext conftest.$ac_ext 9714fi 9715 9716 9717 CFLAGS="$xorg_testset_save_CFLAGS" 9718 9719 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9721$as_echo "$supported" >&6; } 9722 if test "$supported" = "yes" ; then 9723 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9724 found="yes" 9725 fi 9726 fi 9727 9728 9729fi 9730 9731 9732 9733 9734 9735 9736 9737 CWARNFLAGS="$BASE_CFLAGS" 9738 if test "x$GCC" = xyes ; then 9739 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9740 fi 9741 9742 9743 9744 9745 9746 9747 9748 9749# Check whether --enable-strict-compilation was given. 9750if test "${enable_strict_compilation+set}" = set; then : 9751 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9752else 9753 STRICT_COMPILE=no 9754fi 9755 9756 9757 9758 9759 9760 9761STRICT_CFLAGS="" 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773xorg_testset_save_CFLAGS="$CFLAGS" 9774 9775if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9778$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9779if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9780 $as_echo_n "(cached) " >&6 9781else 9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9783/* end confdefs.h. */ 9784int i; 9785_ACEOF 9786if ac_fn_c_try_compile "$LINENO"; then : 9787 xorg_cv_compiler_flag_unknown_warning_option=yes 9788else 9789 xorg_cv_compiler_flag_unknown_warning_option=no 9790fi 9791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9792fi 9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9794$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9795 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9796 CFLAGS="$xorg_testset_save_CFLAGS" 9797fi 9798 9799if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9800 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9802 fi 9803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9805$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9806if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9807 $as_echo_n "(cached) " >&6 9808else 9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9810/* end confdefs.h. */ 9811int i; 9812_ACEOF 9813if ac_fn_c_try_compile "$LINENO"; then : 9814 xorg_cv_compiler_flag_unused_command_line_argument=yes 9815else 9816 xorg_cv_compiler_flag_unused_command_line_argument=no 9817fi 9818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9819fi 9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9821$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9822 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9823 CFLAGS="$xorg_testset_save_CFLAGS" 9824fi 9825 9826found="no" 9827 9828 if test $found = "no" ; then 9829 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 fi 9832 9833 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9835 fi 9836 9837 CFLAGS="$CFLAGS -pedantic" 9838 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9840$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9841 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` 9842 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9843 $as_echo_n "(cached) " >&6 9844else 9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846/* end confdefs.h. */ 9847int i; 9848int 9849main () 9850{ 9851 9852 ; 9853 return 0; 9854} 9855_ACEOF 9856if ac_fn_c_try_link "$LINENO"; then : 9857 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9858else 9859 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9860fi 9861rm -f core conftest.err conftest.$ac_objext \ 9862 conftest$ac_exeext conftest.$ac_ext 9863fi 9864 9865 9866 CFLAGS="$xorg_testset_save_CFLAGS" 9867 9868 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9870$as_echo "$supported" >&6; } 9871 if test "$supported" = "yes" ; then 9872 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9873 found="yes" 9874 fi 9875 fi 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889xorg_testset_save_CFLAGS="$CFLAGS" 9890 9891if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9894$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9895if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9896 $as_echo_n "(cached) " >&6 9897else 9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9899/* end confdefs.h. */ 9900int i; 9901_ACEOF 9902if ac_fn_c_try_compile "$LINENO"; then : 9903 xorg_cv_compiler_flag_unknown_warning_option=yes 9904else 9905 xorg_cv_compiler_flag_unknown_warning_option=no 9906fi 9907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9908fi 9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9910$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9911 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9912 CFLAGS="$xorg_testset_save_CFLAGS" 9913fi 9914 9915if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9918 fi 9919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9921$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9922if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9923 $as_echo_n "(cached) " >&6 9924else 9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9926/* end confdefs.h. */ 9927int i; 9928_ACEOF 9929if ac_fn_c_try_compile "$LINENO"; then : 9930 xorg_cv_compiler_flag_unused_command_line_argument=yes 9931else 9932 xorg_cv_compiler_flag_unused_command_line_argument=no 9933fi 9934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9935fi 9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9937$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9938 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9939 CFLAGS="$xorg_testset_save_CFLAGS" 9940fi 9941 9942found="no" 9943 9944 if test $found = "no" ; then 9945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9947 fi 9948 9949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9951 fi 9952 9953 CFLAGS="$CFLAGS -Werror" 9954 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9956$as_echo_n "checking if $CC supports -Werror... " >&6; } 9957 cacheid=`$as_echo xorg_cv_cc_flag_-Werror` 9958 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9959 $as_echo_n "(cached) " >&6 9960else 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962/* end confdefs.h. */ 9963int i; 9964int 9965main () 9966{ 9967 9968 ; 9969 return 0; 9970} 9971_ACEOF 9972if ac_fn_c_try_link "$LINENO"; then : 9973 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9974else 9975 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9976fi 9977rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext 9979fi 9980 9981 9982 CFLAGS="$xorg_testset_save_CFLAGS" 9983 9984 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9986$as_echo "$supported" >&6; } 9987 if test "$supported" = "yes" ; then 9988 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 9989 found="yes" 9990 fi 9991 fi 9992 9993 if test $found = "no" ; then 9994 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9996 fi 9997 9998 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10000 fi 10001 10002 CFLAGS="$CFLAGS -errwarn" 10003 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10005$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10006 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` 10007 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 10008 $as_echo_n "(cached) " >&6 10009else 10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10011/* end confdefs.h. */ 10012int i; 10013int 10014main () 10015{ 10016 10017 ; 10018 return 0; 10019} 10020_ACEOF 10021if ac_fn_c_try_link "$LINENO"; then : 10022 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 10023else 10024 eval `$as_echo "$cacheid" | $as_tr_sh`=no 10025fi 10026rm -f core conftest.err conftest.$ac_objext \ 10027 conftest$ac_exeext conftest.$ac_ext 10028fi 10029 10030 10031 CFLAGS="$xorg_testset_save_CFLAGS" 10032 10033 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10035$as_echo "$supported" >&6; } 10036 if test "$supported" = "yes" ; then 10037 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10038 found="yes" 10039 fi 10040 fi 10041 10042 10043 10044# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10045# activate it with -Werror, so we add it here explicitly. 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057xorg_testset_save_CFLAGS="$CFLAGS" 10058 10059if test "x$xorg_testset_unknown_warning_option" = "x" ; then 10060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 10062$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 10063if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 10064 $as_echo_n "(cached) " >&6 10065else 10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10067/* end confdefs.h. */ 10068int i; 10069_ACEOF 10070if ac_fn_c_try_compile "$LINENO"; then : 10071 xorg_cv_compiler_flag_unknown_warning_option=yes 10072else 10073 xorg_cv_compiler_flag_unknown_warning_option=no 10074fi 10075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10076fi 10077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 10078$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 10079 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 10080 CFLAGS="$xorg_testset_save_CFLAGS" 10081fi 10082 10083if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 10084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10086 fi 10087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 10089$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 10090if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 10091 $as_echo_n "(cached) " >&6 10092else 10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094/* end confdefs.h. */ 10095int i; 10096_ACEOF 10097if ac_fn_c_try_compile "$LINENO"; then : 10098 xorg_cv_compiler_flag_unused_command_line_argument=yes 10099else 10100 xorg_cv_compiler_flag_unused_command_line_argument=no 10101fi 10102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10103fi 10104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 10105$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 10106 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 10107 CFLAGS="$xorg_testset_save_CFLAGS" 10108fi 10109 10110found="no" 10111 10112 if test $found = "no" ; then 10113 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10115 fi 10116 10117 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10119 fi 10120 10121 CFLAGS="$CFLAGS -Werror=attributes" 10122 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10124$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10125 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` 10126 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 10127 $as_echo_n "(cached) " >&6 10128else 10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10130/* end confdefs.h. */ 10131int i; 10132int 10133main () 10134{ 10135 10136 ; 10137 return 0; 10138} 10139_ACEOF 10140if ac_fn_c_try_link "$LINENO"; then : 10141 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 10142else 10143 eval `$as_echo "$cacheid" | $as_tr_sh`=no 10144fi 10145rm -f core conftest.err conftest.$ac_objext \ 10146 conftest$ac_exeext conftest.$ac_ext 10147fi 10148 10149 10150 CFLAGS="$xorg_testset_save_CFLAGS" 10151 10152 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10154$as_echo "$supported" >&6; } 10155 if test "$supported" = "yes" ; then 10156 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10157 found="yes" 10158 fi 10159 fi 10160 10161 10162 10163if test "x$STRICT_COMPILE" = "xyes"; then 10164 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10165 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10166fi 10167 10168 10169 10170 10171 10172 10173cat >>confdefs.h <<_ACEOF 10174#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10175_ACEOF 10176 10177 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10178 if test "x$PVM" = "x"; then 10179 PVM="0" 10180 fi 10181 10182cat >>confdefs.h <<_ACEOF 10183#define PACKAGE_VERSION_MINOR $PVM 10184_ACEOF 10185 10186 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10187 if test "x$PVP" = "x"; then 10188 PVP="0" 10189 fi 10190 10191cat >>confdefs.h <<_ACEOF 10192#define PACKAGE_VERSION_PATCHLEVEL $PVP 10193_ACEOF 10194 10195 10196 10197CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10198mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10199|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10200echo 'git directory not found: installing possibly empty changelog.' >&2)" 10201 10202 10203 10204 10205macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10206INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10207mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10208|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10209echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10210 10211 10212 10213 10214 10215 10216if test x$APP_MAN_SUFFIX = x ; then 10217 APP_MAN_SUFFIX=1 10218fi 10219if test x$APP_MAN_DIR = x ; then 10220 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10221fi 10222 10223if test x$LIB_MAN_SUFFIX = x ; then 10224 LIB_MAN_SUFFIX=3 10225fi 10226if test x$LIB_MAN_DIR = x ; then 10227 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10228fi 10229 10230if test x$FILE_MAN_SUFFIX = x ; then 10231 case $host_os in 10232 solaris*) FILE_MAN_SUFFIX=4 ;; 10233 *) FILE_MAN_SUFFIX=5 ;; 10234 esac 10235fi 10236if test x$FILE_MAN_DIR = x ; then 10237 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10238fi 10239 10240if test x$MISC_MAN_SUFFIX = x ; then 10241 case $host_os in 10242 solaris*) MISC_MAN_SUFFIX=5 ;; 10243 *) MISC_MAN_SUFFIX=7 ;; 10244 esac 10245fi 10246if test x$MISC_MAN_DIR = x ; then 10247 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10248fi 10249 10250if test x$DRIVER_MAN_SUFFIX = x ; then 10251 case $host_os in 10252 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10253 *) DRIVER_MAN_SUFFIX=4 ;; 10254 esac 10255fi 10256if test x$DRIVER_MAN_DIR = x ; then 10257 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10258fi 10259 10260if test x$ADMIN_MAN_SUFFIX = x ; then 10261 case $host_os in 10262 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10263 *) ADMIN_MAN_SUFFIX=8 ;; 10264 esac 10265fi 10266if test x$ADMIN_MAN_DIR = x ; then 10267 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10268fi 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284XORG_MAN_PAGE="X Version 11" 10285 10286MAN_SUBSTS="\ 10287 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10288 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10289 -e 's|__xservername__|Xorg|g' \ 10290 -e 's|__xconfigfile__|xorg.conf|g' \ 10291 -e 's|__projectroot__|\$(prefix)|g' \ 10292 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10293 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10294 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10295 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10296 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10297 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10298 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10299 10300 10301 10302# Check whether --enable-silent-rules was given. 10303if test "${enable_silent_rules+set}" = set; then : 10304 enableval=$enable_silent_rules; 10305fi 10306 10307case $enable_silent_rules in 10308yes) AM_DEFAULT_VERBOSITY=0;; 10309no) AM_DEFAULT_VERBOSITY=1;; 10310*) AM_DEFAULT_VERBOSITY=0;; 10311esac 10312AM_BACKSLASH='\' 10313 10314 10315 10316 10317 10318 10319 10320# Check whether --with-lint was given. 10321if test "${with_lint+set}" = set; then : 10322 withval=$with_lint; use_lint=$withval 10323else 10324 use_lint=no 10325fi 10326 10327 10328# Obtain platform specific info like program name and options 10329# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10330case $host_os in 10331 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10332 lint_name=splint 10333 lint_options="-badflag" 10334 ;; 10335 *freebsd* | *netbsd*) 10336 lint_name=lint 10337 lint_options="-u -b" 10338 ;; 10339 *solaris*) 10340 lint_name=lint 10341 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10342 ;; 10343esac 10344 10345# Test for the presence of the program (either guessed by the code or spelled out by the user) 10346if test "x$use_lint" = x"yes" ; then 10347 # Extract the first word of "$lint_name", so it can be a program name with args. 10348set dummy $lint_name; ac_word=$2 10349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10350$as_echo_n "checking for $ac_word... " >&6; } 10351if ${ac_cv_path_LINT+:} false; then : 10352 $as_echo_n "(cached) " >&6 10353else 10354 case $LINT in 10355 [\\/]* | ?:[\\/]*) 10356 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10357 ;; 10358 *) 10359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10360for as_dir in $PATH 10361do 10362 IFS=$as_save_IFS 10363 test -z "$as_dir" && as_dir=. 10364 for ac_exec_ext in '' $ac_executable_extensions; do 10365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10366 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10368 break 2 10369 fi 10370done 10371 done 10372IFS=$as_save_IFS 10373 10374 ;; 10375esac 10376fi 10377LINT=$ac_cv_path_LINT 10378if test -n "$LINT"; then 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10380$as_echo "$LINT" >&6; } 10381else 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10383$as_echo "no" >&6; } 10384fi 10385 10386 10387 if test "x$LINT" = "x"; then 10388 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10389 fi 10390elif test "x$use_lint" = x"no" ; then 10391 if test "x$LINT" != "x"; then 10392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10393$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10394 fi 10395else 10396 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10397fi 10398 10399# User supplied flags override default flags 10400if test "x$LINT_FLAGS" != "x"; then 10401 lint_options=$LINT_FLAGS 10402fi 10403 10404LINT_FLAGS=$lint_options 10405 10406 if test "x$LINT" != x; then 10407 LINT_TRUE= 10408 LINT_FALSE='#' 10409else 10410 LINT_TRUE='#' 10411 LINT_FALSE= 10412fi 10413 10414 10415 10416 10417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 10418$as_echo_n "checking return type of signal handlers... " >&6; } 10419if ${ac_cv_type_signal+:} false; then : 10420 $as_echo_n "(cached) " >&6 10421else 10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10423/* end confdefs.h. */ 10424#include <sys/types.h> 10425#include <signal.h> 10426 10427int 10428main () 10429{ 10430return *(signal (0, 0)) (0) == 1; 10431 ; 10432 return 0; 10433} 10434_ACEOF 10435if ac_fn_c_try_compile "$LINENO"; then : 10436 ac_cv_type_signal=int 10437else 10438 ac_cv_type_signal=void 10439fi 10440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10441fi 10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 10443$as_echo "$ac_cv_type_signal" >&6; } 10444 10445cat >>confdefs.h <<_ACEOF 10446#define RETSIGTYPE $ac_cv_type_signal 10447_ACEOF 10448 10449 10450 10451for ac_func in rename fchmod 10452do : 10453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10454ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10455if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10456 cat >>confdefs.h <<_ACEOF 10457#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10458_ACEOF 10459 10460fi 10461done 10462 10463 10464# Check whether --enable-largefile was given. 10465if test "${enable_largefile+set}" = set; then : 10466 enableval=$enable_largefile; 10467fi 10468 10469if test "$enable_largefile" != no; then 10470 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10472$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10473if ${ac_cv_sys_largefile_CC+:} false; then : 10474 $as_echo_n "(cached) " >&6 10475else 10476 ac_cv_sys_largefile_CC=no 10477 if test "$GCC" != yes; then 10478 ac_save_CC=$CC 10479 while :; do 10480 # IRIX 6.2 and later do not support large files by default, 10481 # so use the C compiler's -n32 option if that helps. 10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10483/* end confdefs.h. */ 10484#include <sys/types.h> 10485 /* Check that off_t can represent 2**63 - 1 correctly. 10486 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10487 since some C++ compilers masquerading as C compilers 10488 incorrectly reject 9223372036854775807. */ 10489#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10491 && LARGE_OFF_T % 2147483647 == 1) 10492 ? 1 : -1]; 10493int 10494main () 10495{ 10496 10497 ; 10498 return 0; 10499} 10500_ACEOF 10501 if ac_fn_c_try_compile "$LINENO"; then : 10502 break 10503fi 10504rm -f core conftest.err conftest.$ac_objext 10505 CC="$CC -n32" 10506 if ac_fn_c_try_compile "$LINENO"; then : 10507 ac_cv_sys_largefile_CC=' -n32'; break 10508fi 10509rm -f core conftest.err conftest.$ac_objext 10510 break 10511 done 10512 CC=$ac_save_CC 10513 rm -f conftest.$ac_ext 10514 fi 10515fi 10516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10517$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10518 if test "$ac_cv_sys_largefile_CC" != no; then 10519 CC=$CC$ac_cv_sys_largefile_CC 10520 fi 10521 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10523$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10524if ${ac_cv_sys_file_offset_bits+:} false; then : 10525 $as_echo_n "(cached) " >&6 10526else 10527 while :; do 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530#include <sys/types.h> 10531 /* Check that off_t can represent 2**63 - 1 correctly. 10532 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10533 since some C++ compilers masquerading as C compilers 10534 incorrectly reject 9223372036854775807. */ 10535#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10537 && LARGE_OFF_T % 2147483647 == 1) 10538 ? 1 : -1]; 10539int 10540main () 10541{ 10542 10543 ; 10544 return 0; 10545} 10546_ACEOF 10547if ac_fn_c_try_compile "$LINENO"; then : 10548 ac_cv_sys_file_offset_bits=no; break 10549fi 10550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10552/* end confdefs.h. */ 10553#define _FILE_OFFSET_BITS 64 10554#include <sys/types.h> 10555 /* Check that off_t can represent 2**63 - 1 correctly. 10556 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10557 since some C++ compilers masquerading as C compilers 10558 incorrectly reject 9223372036854775807. */ 10559#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10561 && LARGE_OFF_T % 2147483647 == 1) 10562 ? 1 : -1]; 10563int 10564main () 10565{ 10566 10567 ; 10568 return 0; 10569} 10570_ACEOF 10571if ac_fn_c_try_compile "$LINENO"; then : 10572 ac_cv_sys_file_offset_bits=64; break 10573fi 10574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10575 ac_cv_sys_file_offset_bits=unknown 10576 break 10577done 10578fi 10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10580$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10581case $ac_cv_sys_file_offset_bits in #( 10582 no | unknown) ;; 10583 *) 10584cat >>confdefs.h <<_ACEOF 10585#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10586_ACEOF 10587;; 10588esac 10589rm -rf conftest* 10590 if test $ac_cv_sys_file_offset_bits = unknown; then 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10592$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10593if ${ac_cv_sys_large_files+:} false; then : 10594 $as_echo_n "(cached) " >&6 10595else 10596 while :; do 10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10598/* end confdefs.h. */ 10599#include <sys/types.h> 10600 /* Check that off_t can represent 2**63 - 1 correctly. 10601 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10602 since some C++ compilers masquerading as C compilers 10603 incorrectly reject 9223372036854775807. */ 10604#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10606 && LARGE_OFF_T % 2147483647 == 1) 10607 ? 1 : -1]; 10608int 10609main () 10610{ 10611 10612 ; 10613 return 0; 10614} 10615_ACEOF 10616if ac_fn_c_try_compile "$LINENO"; then : 10617 ac_cv_sys_large_files=no; break 10618fi 10619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10621/* end confdefs.h. */ 10622#define _LARGE_FILES 1 10623#include <sys/types.h> 10624 /* Check that off_t can represent 2**63 - 1 correctly. 10625 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10626 since some C++ compilers masquerading as C compilers 10627 incorrectly reject 9223372036854775807. */ 10628#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10630 && LARGE_OFF_T % 2147483647 == 1) 10631 ? 1 : -1]; 10632int 10633main () 10634{ 10635 10636 ; 10637 return 0; 10638} 10639_ACEOF 10640if ac_fn_c_try_compile "$LINENO"; then : 10641 ac_cv_sys_large_files=1; break 10642fi 10643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10644 ac_cv_sys_large_files=unknown 10645 break 10646done 10647fi 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10649$as_echo "$ac_cv_sys_large_files" >&6; } 10650case $ac_cv_sys_large_files in #( 10651 no | unknown) ;; 10652 *) 10653cat >>confdefs.h <<_ACEOF 10654#define _LARGE_FILES $ac_cv_sys_large_files 10655_ACEOF 10656;; 10657esac 10658rm -rf conftest* 10659 fi 10660fi 10661 10662 10663 10664pkg_failed=no 10665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 10666$as_echo_n "checking for X... " >&6; } 10667 10668if test -n "$X_CFLAGS"; then 10669 pkg_cv_X_CFLAGS="$X_CFLAGS" 10670 elif test -n "$PKG_CONFIG"; then 10671 if test -n "$PKG_CONFIG" && \ 10672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 10673 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 10674 ac_status=$? 10675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10676 test $ac_status = 0; }; then 10677 pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 10678else 10679 pkg_failed=yes 10680fi 10681 else 10682 pkg_failed=untried 10683fi 10684if test -n "$X_LIBS"; then 10685 pkg_cv_X_LIBS="$X_LIBS" 10686 elif test -n "$PKG_CONFIG"; then 10687 if test -n "$PKG_CONFIG" && \ 10688 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 10689 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 10690 ac_status=$? 10691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10692 test $ac_status = 0; }; then 10693 pkg_cv_X_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 10694else 10695 pkg_failed=yes 10696fi 10697 else 10698 pkg_failed=untried 10699fi 10700 10701 10702 10703if test $pkg_failed = yes; then 10704 10705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10706 _pkg_short_errors_supported=yes 10707else 10708 _pkg_short_errors_supported=no 10709fi 10710 if test $_pkg_short_errors_supported = yes; then 10711 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 10712 else 10713 X_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 10714 fi 10715 # Put the nasty error message in config.log where it belongs 10716 echo "$X_PKG_ERRORS" >&5 10717 10718 as_fn_error $? "Package requirements (xproto) were not met: 10719 10720$X_PKG_ERRORS 10721 10722Consider adjusting the PKG_CONFIG_PATH environment variable if you 10723installed software in a non-standard prefix. 10724 10725Alternatively, you may set the environment variables X_CFLAGS 10726and X_LIBS to avoid the need to call pkg-config. 10727See the pkg-config man page for more details. 10728" "$LINENO" 5 10729elif test $pkg_failed = untried; then 10730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10732as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10733is in your PATH or set the PKG_CONFIG environment variable to the full 10734path to pkg-config. 10735 10736Alternatively, you may set the environment variables X_CFLAGS 10737and X_LIBS to avoid the need to call pkg-config. 10738See the pkg-config man page for more details. 10739 10740To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10741See \`config.log' for more details" "$LINENO" 5; } 10742else 10743 X_CFLAGS=$pkg_cv_X_CFLAGS 10744 X_LIBS=$pkg_cv_X_LIBS 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10746$as_echo "yes" >&6; } 10747 : 10748fi 10749 10750 10751ac_config_files="$ac_config_files Makefile" 10752 10753cat >confcache <<\_ACEOF 10754# This file is a shell script that caches the results of configure 10755# tests run on this system so they can be shared between configure 10756# scripts and configure runs, see configure's option --config-cache. 10757# It is not useful on other systems. If it contains results you don't 10758# want to keep, you may remove or edit it. 10759# 10760# config.status only pays attention to the cache file if you give it 10761# the --recheck option to rerun configure. 10762# 10763# `ac_cv_env_foo' variables (set or unset) will be overridden when 10764# loading this file, other *unset* `ac_cv_foo' will be assigned the 10765# following values. 10766 10767_ACEOF 10768 10769# The following way of writing the cache mishandles newlines in values, 10770# but we know of no workaround that is simple, portable, and efficient. 10771# So, we kill variables containing newlines. 10772# Ultrix sh set writes to stderr and can't be redirected directly, 10773# and sets the high bit in the cache file unless we assign to the vars. 10774( 10775 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10776 eval ac_val=\$$ac_var 10777 case $ac_val in #( 10778 *${as_nl}*) 10779 case $ac_var in #( 10780 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10781$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10782 esac 10783 case $ac_var in #( 10784 _ | IFS | as_nl) ;; #( 10785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10786 *) { eval $ac_var=; unset $ac_var;} ;; 10787 esac ;; 10788 esac 10789 done 10790 10791 (set) 2>&1 | 10792 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10793 *${as_nl}ac_space=\ *) 10794 # `set' does not quote correctly, so add quotes: double-quote 10795 # substitution turns \\\\ into \\, and sed turns \\ into \. 10796 sed -n \ 10797 "s/'/'\\\\''/g; 10798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10799 ;; #( 10800 *) 10801 # `set' quotes correctly as required by POSIX, so do not add quotes. 10802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10803 ;; 10804 esac | 10805 sort 10806) | 10807 sed ' 10808 /^ac_cv_env_/b end 10809 t clear 10810 :clear 10811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10812 t end 10813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10814 :end' >>confcache 10815if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10816 if test -w "$cache_file"; then 10817 if test "x$cache_file" != "x/dev/null"; then 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10819$as_echo "$as_me: updating cache $cache_file" >&6;} 10820 if test ! -f "$cache_file" || test -h "$cache_file"; then 10821 cat confcache >"$cache_file" 10822 else 10823 case $cache_file in #( 10824 */* | ?:*) 10825 mv -f confcache "$cache_file"$$ && 10826 mv -f "$cache_file"$$ "$cache_file" ;; #( 10827 *) 10828 mv -f confcache "$cache_file" ;; 10829 esac 10830 fi 10831 fi 10832 else 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10834$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10835 fi 10836fi 10837rm -f confcache 10838 10839test "x$prefix" = xNONE && prefix=$ac_default_prefix 10840# Let make expand exec_prefix. 10841test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10842 10843DEFS=-DHAVE_CONFIG_H 10844 10845ac_libobjs= 10846ac_ltlibobjs= 10847U= 10848for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10849 # 1. Remove the extension, and $U if already installed. 10850 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10851 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10852 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10853 # will be set to the directory where LIBOBJS objects are built. 10854 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10855 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10856done 10857LIBOBJS=$ac_libobjs 10858 10859LTLIBOBJS=$ac_ltlibobjs 10860 10861 10862 if test -n "$EXEEXT"; then 10863 am__EXEEXT_TRUE= 10864 am__EXEEXT_FALSE='#' 10865else 10866 am__EXEEXT_TRUE='#' 10867 am__EXEEXT_FALSE= 10868fi 10869 10870if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10871 as_fn_error $? "conditional \"AMDEP\" was never defined. 10872Usually this means the macro was only invoked conditionally." "$LINENO" 5 10873fi 10874if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10875 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10876Usually this means the macro was only invoked conditionally." "$LINENO" 5 10877fi 10878if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 10879 as_fn_error $? "conditional \"LINT\" was never defined. 10880Usually this means the macro was only invoked conditionally." "$LINENO" 5 10881fi 10882 10883: "${CONFIG_STATUS=./config.status}" 10884ac_write_fail=0 10885ac_clean_files_save=$ac_clean_files 10886ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10887{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10888$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10889as_write_fail=0 10890cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10891#! $SHELL 10892# Generated by $as_me. 10893# Run this file to recreate the current configuration. 10894# Compiler output produced by configure, useful for debugging 10895# configure, is in config.log if it exists. 10896 10897debug=false 10898ac_cs_recheck=false 10899ac_cs_silent=false 10900 10901SHELL=\${CONFIG_SHELL-$SHELL} 10902export SHELL 10903_ASEOF 10904cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10905## -------------------- ## 10906## M4sh Initialization. ## 10907## -------------------- ## 10908 10909# Be more Bourne compatible 10910DUALCASE=1; export DUALCASE # for MKS sh 10911if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10912 emulate sh 10913 NULLCMD=: 10914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10915 # is contrary to our usage. Disable this feature. 10916 alias -g '${1+"$@"}'='"$@"' 10917 setopt NO_GLOB_SUBST 10918else 10919 case `(set -o) 2>/dev/null` in #( 10920 *posix*) : 10921 set -o posix ;; #( 10922 *) : 10923 ;; 10924esac 10925fi 10926 10927 10928as_nl=' 10929' 10930export as_nl 10931# Printing a long string crashes Solaris 7 /usr/bin/printf. 10932as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10933as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10934as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10935# Prefer a ksh shell builtin over an external printf program on Solaris, 10936# but without wasting forks for bash or zsh. 10937if test -z "$BASH_VERSION$ZSH_VERSION" \ 10938 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10939 as_echo='print -r --' 10940 as_echo_n='print -rn --' 10941elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10942 as_echo='printf %s\n' 10943 as_echo_n='printf %s' 10944else 10945 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10946 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10947 as_echo_n='/usr/ucb/echo -n' 10948 else 10949 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10950 as_echo_n_body='eval 10951 arg=$1; 10952 case $arg in #( 10953 *"$as_nl"*) 10954 expr "X$arg" : "X\\(.*\\)$as_nl"; 10955 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10956 esac; 10957 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10958 ' 10959 export as_echo_n_body 10960 as_echo_n='sh -c $as_echo_n_body as_echo' 10961 fi 10962 export as_echo_body 10963 as_echo='sh -c $as_echo_body as_echo' 10964fi 10965 10966# The user is always right. 10967if test "${PATH_SEPARATOR+set}" != set; then 10968 PATH_SEPARATOR=: 10969 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10970 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10971 PATH_SEPARATOR=';' 10972 } 10973fi 10974 10975 10976# IFS 10977# We need space, tab and new line, in precisely that order. Quoting is 10978# there to prevent editors from complaining about space-tab. 10979# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10980# splitting by setting IFS to empty value.) 10981IFS=" "" $as_nl" 10982 10983# Find who we are. Look in the path if we contain no directory separator. 10984as_myself= 10985case $0 in #(( 10986 *[\\/]* ) as_myself=$0 ;; 10987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10988for as_dir in $PATH 10989do 10990 IFS=$as_save_IFS 10991 test -z "$as_dir" && as_dir=. 10992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10993 done 10994IFS=$as_save_IFS 10995 10996 ;; 10997esac 10998# We did not find ourselves, most probably we were run as `sh COMMAND' 10999# in which case we are not to be found in the path. 11000if test "x$as_myself" = x; then 11001 as_myself=$0 11002fi 11003if test ! -f "$as_myself"; then 11004 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11005 exit 1 11006fi 11007 11008# Unset variables that we do not need and which cause bugs (e.g. in 11009# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11010# suppresses any "Segmentation fault" message there. '((' could 11011# trigger a bug in pdksh 5.2.14. 11012for as_var in BASH_ENV ENV MAIL MAILPATH 11013do eval test x\${$as_var+set} = xset \ 11014 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11015done 11016PS1='$ ' 11017PS2='> ' 11018PS4='+ ' 11019 11020# NLS nuisances. 11021LC_ALL=C 11022export LC_ALL 11023LANGUAGE=C 11024export LANGUAGE 11025 11026# CDPATH. 11027(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11028 11029 11030# as_fn_error STATUS ERROR [LINENO LOG_FD] 11031# ---------------------------------------- 11032# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11033# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11034# script with STATUS, using 1 if that was 0. 11035as_fn_error () 11036{ 11037 as_status=$1; test $as_status -eq 0 && as_status=1 11038 if test "$4"; then 11039 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11040 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11041 fi 11042 $as_echo "$as_me: error: $2" >&2 11043 as_fn_exit $as_status 11044} # as_fn_error 11045 11046 11047# as_fn_set_status STATUS 11048# ----------------------- 11049# Set $? to STATUS, without forking. 11050as_fn_set_status () 11051{ 11052 return $1 11053} # as_fn_set_status 11054 11055# as_fn_exit STATUS 11056# ----------------- 11057# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11058as_fn_exit () 11059{ 11060 set +e 11061 as_fn_set_status $1 11062 exit $1 11063} # as_fn_exit 11064 11065# as_fn_unset VAR 11066# --------------- 11067# Portably unset VAR. 11068as_fn_unset () 11069{ 11070 { eval $1=; unset $1;} 11071} 11072as_unset=as_fn_unset 11073# as_fn_append VAR VALUE 11074# ---------------------- 11075# Append the text in VALUE to the end of the definition contained in VAR. Take 11076# advantage of any shell optimizations that allow amortized linear growth over 11077# repeated appends, instead of the typical quadratic growth present in naive 11078# implementations. 11079if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11080 eval 'as_fn_append () 11081 { 11082 eval $1+=\$2 11083 }' 11084else 11085 as_fn_append () 11086 { 11087 eval $1=\$$1\$2 11088 } 11089fi # as_fn_append 11090 11091# as_fn_arith ARG... 11092# ------------------ 11093# Perform arithmetic evaluation on the ARGs, and store the result in the 11094# global $as_val. Take advantage of shells that can avoid forks. The arguments 11095# must be portable across $(()) and expr. 11096if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11097 eval 'as_fn_arith () 11098 { 11099 as_val=$(( $* )) 11100 }' 11101else 11102 as_fn_arith () 11103 { 11104 as_val=`expr "$@" || test $? -eq 1` 11105 } 11106fi # as_fn_arith 11107 11108 11109if expr a : '\(a\)' >/dev/null 2>&1 && 11110 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11111 as_expr=expr 11112else 11113 as_expr=false 11114fi 11115 11116if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11117 as_basename=basename 11118else 11119 as_basename=false 11120fi 11121 11122if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11123 as_dirname=dirname 11124else 11125 as_dirname=false 11126fi 11127 11128as_me=`$as_basename -- "$0" || 11129$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11130 X"$0" : 'X\(//\)$' \| \ 11131 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11132$as_echo X/"$0" | 11133 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11134 s//\1/ 11135 q 11136 } 11137 /^X\/\(\/\/\)$/{ 11138 s//\1/ 11139 q 11140 } 11141 /^X\/\(\/\).*/{ 11142 s//\1/ 11143 q 11144 } 11145 s/.*/./; q'` 11146 11147# Avoid depending upon Character Ranges. 11148as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11149as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11150as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11151as_cr_digits='0123456789' 11152as_cr_alnum=$as_cr_Letters$as_cr_digits 11153 11154ECHO_C= ECHO_N= ECHO_T= 11155case `echo -n x` in #((((( 11156-n*) 11157 case `echo 'xy\c'` in 11158 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11159 xy) ECHO_C='\c';; 11160 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11161 ECHO_T=' ';; 11162 esac;; 11163*) 11164 ECHO_N='-n';; 11165esac 11166 11167rm -f conf$$ conf$$.exe conf$$.file 11168if test -d conf$$.dir; then 11169 rm -f conf$$.dir/conf$$.file 11170else 11171 rm -f conf$$.dir 11172 mkdir conf$$.dir 2>/dev/null 11173fi 11174if (echo >conf$$.file) 2>/dev/null; then 11175 if ln -s conf$$.file conf$$ 2>/dev/null; then 11176 as_ln_s='ln -s' 11177 # ... but there are two gotchas: 11178 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11179 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11180 # In both cases, we have to default to `cp -p'. 11181 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11182 as_ln_s='cp -p' 11183 elif ln conf$$.file conf$$ 2>/dev/null; then 11184 as_ln_s=ln 11185 else 11186 as_ln_s='cp -p' 11187 fi 11188else 11189 as_ln_s='cp -p' 11190fi 11191rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11192rmdir conf$$.dir 2>/dev/null 11193 11194 11195# as_fn_mkdir_p 11196# ------------- 11197# Create "$as_dir" as a directory, including parents if necessary. 11198as_fn_mkdir_p () 11199{ 11200 11201 case $as_dir in #( 11202 -*) as_dir=./$as_dir;; 11203 esac 11204 test -d "$as_dir" || eval $as_mkdir_p || { 11205 as_dirs= 11206 while :; do 11207 case $as_dir in #( 11208 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11209 *) as_qdir=$as_dir;; 11210 esac 11211 as_dirs="'$as_qdir' $as_dirs" 11212 as_dir=`$as_dirname -- "$as_dir" || 11213$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11214 X"$as_dir" : 'X\(//\)[^/]' \| \ 11215 X"$as_dir" : 'X\(//\)$' \| \ 11216 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11217$as_echo X"$as_dir" | 11218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11219 s//\1/ 11220 q 11221 } 11222 /^X\(\/\/\)[^/].*/{ 11223 s//\1/ 11224 q 11225 } 11226 /^X\(\/\/\)$/{ 11227 s//\1/ 11228 q 11229 } 11230 /^X\(\/\).*/{ 11231 s//\1/ 11232 q 11233 } 11234 s/.*/./; q'` 11235 test -d "$as_dir" && break 11236 done 11237 test -z "$as_dirs" || eval "mkdir $as_dirs" 11238 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11239 11240 11241} # as_fn_mkdir_p 11242if mkdir -p . 2>/dev/null; then 11243 as_mkdir_p='mkdir -p "$as_dir"' 11244else 11245 test -d ./-p && rmdir ./-p 11246 as_mkdir_p=false 11247fi 11248 11249if test -x / >/dev/null 2>&1; then 11250 as_test_x='test -x' 11251else 11252 if ls -dL / >/dev/null 2>&1; then 11253 as_ls_L_option=L 11254 else 11255 as_ls_L_option= 11256 fi 11257 as_test_x=' 11258 eval sh -c '\'' 11259 if test -d "$1"; then 11260 test -d "$1/."; 11261 else 11262 case $1 in #( 11263 -*)set "./$1";; 11264 esac; 11265 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11266 ???[sx]*):;;*)false;;esac;fi 11267 '\'' sh 11268 ' 11269fi 11270as_executable_p=$as_test_x 11271 11272# Sed expression to map a string onto a valid CPP name. 11273as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11274 11275# Sed expression to map a string onto a valid variable name. 11276as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11277 11278 11279exec 6>&1 11280## ----------------------------------- ## 11281## Main body of $CONFIG_STATUS script. ## 11282## ----------------------------------- ## 11283_ASEOF 11284test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11285 11286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11287# Save the log message, to keep $0 and so on meaningful, and to 11288# report actual input values of CONFIG_FILES etc. instead of their 11289# values after options handling. 11290ac_log=" 11291This file was extended by makedepend $as_me 1.0.4, which was 11292generated by GNU Autoconf 2.68. Invocation command line was 11293 11294 CONFIG_FILES = $CONFIG_FILES 11295 CONFIG_HEADERS = $CONFIG_HEADERS 11296 CONFIG_LINKS = $CONFIG_LINKS 11297 CONFIG_COMMANDS = $CONFIG_COMMANDS 11298 $ $0 $@ 11299 11300on `(hostname || uname -n) 2>/dev/null | sed 1q` 11301" 11302 11303_ACEOF 11304 11305case $ac_config_files in *" 11306"*) set x $ac_config_files; shift; ac_config_files=$*;; 11307esac 11308 11309case $ac_config_headers in *" 11310"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11311esac 11312 11313 11314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11315# Files that config.status was made for. 11316config_files="$ac_config_files" 11317config_headers="$ac_config_headers" 11318config_commands="$ac_config_commands" 11319 11320_ACEOF 11321 11322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11323ac_cs_usage="\ 11324\`$as_me' instantiates files and other configuration actions 11325from templates according to the current configuration. Unless the files 11326and actions are specified as TAGs, all are instantiated by default. 11327 11328Usage: $0 [OPTION]... [TAG]... 11329 11330 -h, --help print this help, then exit 11331 -V, --version print version number and configuration settings, then exit 11332 --config print configuration, then exit 11333 -q, --quiet, --silent 11334 do not print progress messages 11335 -d, --debug don't remove temporary files 11336 --recheck update $as_me by reconfiguring in the same conditions 11337 --file=FILE[:TEMPLATE] 11338 instantiate the configuration file FILE 11339 --header=FILE[:TEMPLATE] 11340 instantiate the configuration header FILE 11341 11342Configuration files: 11343$config_files 11344 11345Configuration headers: 11346$config_headers 11347 11348Configuration commands: 11349$config_commands 11350 11351Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11352 11353_ACEOF 11354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11355ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11356ac_cs_version="\\ 11357makedepend config.status 1.0.4 11358configured by $0, generated by GNU Autoconf 2.68, 11359 with options \\"\$ac_cs_config\\" 11360 11361Copyright (C) 2010 Free Software Foundation, Inc. 11362This config.status script is free software; the Free Software Foundation 11363gives unlimited permission to copy, distribute and modify it." 11364 11365ac_pwd='$ac_pwd' 11366srcdir='$srcdir' 11367INSTALL='$INSTALL' 11368MKDIR_P='$MKDIR_P' 11369AWK='$AWK' 11370test -n "\$AWK" || AWK=awk 11371_ACEOF 11372 11373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11374# The default lists apply if the user does not specify any file. 11375ac_need_defaults=: 11376while test $# != 0 11377do 11378 case $1 in 11379 --*=?*) 11380 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11381 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11382 ac_shift=: 11383 ;; 11384 --*=) 11385 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11386 ac_optarg= 11387 ac_shift=: 11388 ;; 11389 *) 11390 ac_option=$1 11391 ac_optarg=$2 11392 ac_shift=shift 11393 ;; 11394 esac 11395 11396 case $ac_option in 11397 # Handling of the options. 11398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11399 ac_cs_recheck=: ;; 11400 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11401 $as_echo "$ac_cs_version"; exit ;; 11402 --config | --confi | --conf | --con | --co | --c ) 11403 $as_echo "$ac_cs_config"; exit ;; 11404 --debug | --debu | --deb | --de | --d | -d ) 11405 debug=: ;; 11406 --file | --fil | --fi | --f ) 11407 $ac_shift 11408 case $ac_optarg in 11409 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11410 '') as_fn_error $? "missing file argument" ;; 11411 esac 11412 as_fn_append CONFIG_FILES " '$ac_optarg'" 11413 ac_need_defaults=false;; 11414 --header | --heade | --head | --hea ) 11415 $ac_shift 11416 case $ac_optarg in 11417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11418 esac 11419 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11420 ac_need_defaults=false;; 11421 --he | --h) 11422 # Conflict between --help and --header 11423 as_fn_error $? "ambiguous option: \`$1' 11424Try \`$0 --help' for more information.";; 11425 --help | --hel | -h ) 11426 $as_echo "$ac_cs_usage"; exit ;; 11427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11428 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11429 ac_cs_silent=: ;; 11430 11431 # This is an error. 11432 -*) as_fn_error $? "unrecognized option: \`$1' 11433Try \`$0 --help' for more information." ;; 11434 11435 *) as_fn_append ac_config_targets " $1" 11436 ac_need_defaults=false ;; 11437 11438 esac 11439 shift 11440done 11441 11442ac_configure_extra_args= 11443 11444if $ac_cs_silent; then 11445 exec 6>/dev/null 11446 ac_configure_extra_args="$ac_configure_extra_args --silent" 11447fi 11448 11449_ACEOF 11450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11451if \$ac_cs_recheck; then 11452 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11453 shift 11454 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11455 CONFIG_SHELL='$SHELL' 11456 export CONFIG_SHELL 11457 exec "\$@" 11458fi 11459 11460_ACEOF 11461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11462exec 5>>config.log 11463{ 11464 echo 11465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11466## Running $as_me. ## 11467_ASBOX 11468 $as_echo "$ac_log" 11469} >&5 11470 11471_ACEOF 11472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11473# 11474# INIT-COMMANDS 11475# 11476AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11477 11478_ACEOF 11479 11480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11481 11482# Handling of arguments. 11483for ac_config_target in $ac_config_targets 11484do 11485 case $ac_config_target in 11486 "makedepend-config.h") CONFIG_HEADERS="$CONFIG_HEADERS makedepend-config.h" ;; 11487 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11488 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11489 11490 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11491 esac 11492done 11493 11494 11495# If the user did not use the arguments to specify the items to instantiate, 11496# then the envvar interface is used. Set only those that are not. 11497# We use the long form for the default assignment because of an extremely 11498# bizarre bug on SunOS 4.1.3. 11499if $ac_need_defaults; then 11500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11503fi 11504 11505# Have a temporary directory for convenience. Make it in the build tree 11506# simply because there is no reason against having it here, and in addition, 11507# creating and moving files from /tmp can sometimes cause problems. 11508# Hook for its removal unless debugging. 11509# Note that there is a small window in which the directory will not be cleaned: 11510# after its creation but before its name has been assigned to `$tmp'. 11511$debug || 11512{ 11513 tmp= ac_tmp= 11514 trap 'exit_status=$? 11515 : "${ac_tmp:=$tmp}" 11516 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11517' 0 11518 trap 'as_fn_exit 1' 1 2 13 15 11519} 11520# Create a (secure) tmp directory for tmp files. 11521 11522{ 11523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11524 test -d "$tmp" 11525} || 11526{ 11527 tmp=./conf$$-$RANDOM 11528 (umask 077 && mkdir "$tmp") 11529} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11530ac_tmp=$tmp 11531 11532# Set up the scripts for CONFIG_FILES section. 11533# No need to generate them if there are no CONFIG_FILES. 11534# This happens for instance with `./config.status config.h'. 11535if test -n "$CONFIG_FILES"; then 11536 11537 11538ac_cr=`echo X | tr X '\015'` 11539# On cygwin, bash can eat \r inside `` if the user requested igncr. 11540# But we know of no other shell where ac_cr would be empty at this 11541# point, so we can use a bashism as a fallback. 11542if test "x$ac_cr" = x; then 11543 eval ac_cr=\$\'\\r\' 11544fi 11545ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11546if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11547 ac_cs_awk_cr='\\r' 11548else 11549 ac_cs_awk_cr=$ac_cr 11550fi 11551 11552echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11553_ACEOF 11554 11555 11556{ 11557 echo "cat >conf$$subs.awk <<_ACEOF" && 11558 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11559 echo "_ACEOF" 11560} >conf$$subs.sh || 11561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11562ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11563ac_delim='%!_!# ' 11564for ac_last_try in false false false false false :; do 11565 . ./conf$$subs.sh || 11566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11567 11568 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11569 if test $ac_delim_n = $ac_delim_num; then 11570 break 11571 elif $ac_last_try; then 11572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11573 else 11574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11575 fi 11576done 11577rm -f conf$$subs.sh 11578 11579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11580cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11581_ACEOF 11582sed -n ' 11583h 11584s/^/S["/; s/!.*/"]=/ 11585p 11586g 11587s/^[^!]*!// 11588:repl 11589t repl 11590s/'"$ac_delim"'$// 11591t delim 11592:nl 11593h 11594s/\(.\{148\}\)..*/\1/ 11595t more1 11596s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11597p 11598n 11599b repl 11600:more1 11601s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11602p 11603g 11604s/.\{148\}// 11605t nl 11606:delim 11607h 11608s/\(.\{148\}\)..*/\1/ 11609t more2 11610s/["\\]/\\&/g; s/^/"/; s/$/"/ 11611p 11612b 11613:more2 11614s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11615p 11616g 11617s/.\{148\}// 11618t delim 11619' <conf$$subs.awk | sed ' 11620/^[^""]/{ 11621 N 11622 s/\n// 11623} 11624' >>$CONFIG_STATUS || ac_write_fail=1 11625rm -f conf$$subs.awk 11626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11627_ACAWK 11628cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11629 for (key in S) S_is_set[key] = 1 11630 FS = "" 11631 11632} 11633{ 11634 line = $ 0 11635 nfields = split(line, field, "@") 11636 substed = 0 11637 len = length(field[1]) 11638 for (i = 2; i < nfields; i++) { 11639 key = field[i] 11640 keylen = length(key) 11641 if (S_is_set[key]) { 11642 value = S[key] 11643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11644 len += length(value) + length(field[++i]) 11645 substed = 1 11646 } else 11647 len += 1 + keylen 11648 } 11649 11650 print line 11651} 11652 11653_ACAWK 11654_ACEOF 11655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11656if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11657 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11658else 11659 cat 11660fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11661 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11662_ACEOF 11663 11664# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11665# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11666# trailing colons and then remove the whole line if VPATH becomes empty 11667# (actually we leave an empty line to preserve line numbers). 11668if test "x$srcdir" = x.; then 11669 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11670h 11671s/// 11672s/^/:/ 11673s/[ ]*$/:/ 11674s/:\$(srcdir):/:/g 11675s/:\${srcdir}:/:/g 11676s/:@srcdir@:/:/g 11677s/^:*// 11678s/:*$// 11679x 11680s/\(=[ ]*\).*/\1/ 11681G 11682s/\n// 11683s/^[^=]*=[ ]*$// 11684}' 11685fi 11686 11687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11688fi # test -n "$CONFIG_FILES" 11689 11690# Set up the scripts for CONFIG_HEADERS section. 11691# No need to generate them if there are no CONFIG_HEADERS. 11692# This happens for instance with `./config.status Makefile'. 11693if test -n "$CONFIG_HEADERS"; then 11694cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11695BEGIN { 11696_ACEOF 11697 11698# Transform confdefs.h into an awk script `defines.awk', embedded as 11699# here-document in config.status, that substitutes the proper values into 11700# config.h.in to produce config.h. 11701 11702# Create a delimiter string that does not exist in confdefs.h, to ease 11703# handling of long lines. 11704ac_delim='%!_!# ' 11705for ac_last_try in false false :; do 11706 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11707 if test -z "$ac_tt"; then 11708 break 11709 elif $ac_last_try; then 11710 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11711 else 11712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11713 fi 11714done 11715 11716# For the awk script, D is an array of macro values keyed by name, 11717# likewise P contains macro parameters if any. Preserve backslash 11718# newline sequences. 11719 11720ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11721sed -n ' 11722s/.\{148\}/&'"$ac_delim"'/g 11723t rset 11724:rset 11725s/^[ ]*#[ ]*define[ ][ ]*/ / 11726t def 11727d 11728:def 11729s/\\$// 11730t bsnl 11731s/["\\]/\\&/g 11732s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11733D["\1"]=" \3"/p 11734s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11735d 11736:bsnl 11737s/["\\]/\\&/g 11738s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11739D["\1"]=" \3\\\\\\n"\\/p 11740t cont 11741s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11742t cont 11743d 11744:cont 11745n 11746s/.\{148\}/&'"$ac_delim"'/g 11747t clear 11748:clear 11749s/\\$// 11750t bsnlc 11751s/["\\]/\\&/g; s/^/"/; s/$/"/p 11752d 11753:bsnlc 11754s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11755b cont 11756' <confdefs.h | sed ' 11757s/'"$ac_delim"'/"\\\ 11758"/g' >>$CONFIG_STATUS || ac_write_fail=1 11759 11760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11761 for (key in D) D_is_set[key] = 1 11762 FS = "" 11763} 11764/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11765 line = \$ 0 11766 split(line, arg, " ") 11767 if (arg[1] == "#") { 11768 defundef = arg[2] 11769 mac1 = arg[3] 11770 } else { 11771 defundef = substr(arg[1], 2) 11772 mac1 = arg[2] 11773 } 11774 split(mac1, mac2, "(") #) 11775 macro = mac2[1] 11776 prefix = substr(line, 1, index(line, defundef) - 1) 11777 if (D_is_set[macro]) { 11778 # Preserve the white space surrounding the "#". 11779 print prefix "define", macro P[macro] D[macro] 11780 next 11781 } else { 11782 # Replace #undef with comments. This is necessary, for example, 11783 # in the case of _POSIX_SOURCE, which is predefined and required 11784 # on some systems where configure will not decide to define it. 11785 if (defundef == "undef") { 11786 print "/*", prefix defundef, macro, "*/" 11787 next 11788 } 11789 } 11790} 11791{ print } 11792_ACAWK 11793_ACEOF 11794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11795 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11796fi # test -n "$CONFIG_HEADERS" 11797 11798 11799eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11800shift 11801for ac_tag 11802do 11803 case $ac_tag in 11804 :[FHLC]) ac_mode=$ac_tag; continue;; 11805 esac 11806 case $ac_mode$ac_tag in 11807 :[FHL]*:*);; 11808 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11809 :[FH]-) ac_tag=-:-;; 11810 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11811 esac 11812 ac_save_IFS=$IFS 11813 IFS=: 11814 set x $ac_tag 11815 IFS=$ac_save_IFS 11816 shift 11817 ac_file=$1 11818 shift 11819 11820 case $ac_mode in 11821 :L) ac_source=$1;; 11822 :[FH]) 11823 ac_file_inputs= 11824 for ac_f 11825 do 11826 case $ac_f in 11827 -) ac_f="$ac_tmp/stdin";; 11828 *) # Look for the file first in the build tree, then in the source tree 11829 # (if the path is not absolute). The absolute path cannot be DOS-style, 11830 # because $ac_f cannot contain `:'. 11831 test -f "$ac_f" || 11832 case $ac_f in 11833 [\\/$]*) false;; 11834 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11835 esac || 11836 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11837 esac 11838 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11839 as_fn_append ac_file_inputs " '$ac_f'" 11840 done 11841 11842 # Let's still pretend it is `configure' which instantiates (i.e., don't 11843 # use $as_me), people would be surprised to read: 11844 # /* config.h. Generated by config.status. */ 11845 configure_input='Generated from '` 11846 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11847 `' by configure.' 11848 if test x"$ac_file" != x-; then 11849 configure_input="$ac_file. $configure_input" 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11851$as_echo "$as_me: creating $ac_file" >&6;} 11852 fi 11853 # Neutralize special characters interpreted by sed in replacement strings. 11854 case $configure_input in #( 11855 *\&* | *\|* | *\\* ) 11856 ac_sed_conf_input=`$as_echo "$configure_input" | 11857 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11858 *) ac_sed_conf_input=$configure_input;; 11859 esac 11860 11861 case $ac_tag in 11862 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11864 esac 11865 ;; 11866 esac 11867 11868 ac_dir=`$as_dirname -- "$ac_file" || 11869$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11870 X"$ac_file" : 'X\(//\)[^/]' \| \ 11871 X"$ac_file" : 'X\(//\)$' \| \ 11872 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11873$as_echo X"$ac_file" | 11874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11875 s//\1/ 11876 q 11877 } 11878 /^X\(\/\/\)[^/].*/{ 11879 s//\1/ 11880 q 11881 } 11882 /^X\(\/\/\)$/{ 11883 s//\1/ 11884 q 11885 } 11886 /^X\(\/\).*/{ 11887 s//\1/ 11888 q 11889 } 11890 s/.*/./; q'` 11891 as_dir="$ac_dir"; as_fn_mkdir_p 11892 ac_builddir=. 11893 11894case "$ac_dir" in 11895.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11896*) 11897 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11898 # A ".." for each directory in $ac_dir_suffix. 11899 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11900 case $ac_top_builddir_sub in 11901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11903 esac ;; 11904esac 11905ac_abs_top_builddir=$ac_pwd 11906ac_abs_builddir=$ac_pwd$ac_dir_suffix 11907# for backward compatibility: 11908ac_top_builddir=$ac_top_build_prefix 11909 11910case $srcdir in 11911 .) # We are building in place. 11912 ac_srcdir=. 11913 ac_top_srcdir=$ac_top_builddir_sub 11914 ac_abs_top_srcdir=$ac_pwd ;; 11915 [\\/]* | ?:[\\/]* ) # Absolute name. 11916 ac_srcdir=$srcdir$ac_dir_suffix; 11917 ac_top_srcdir=$srcdir 11918 ac_abs_top_srcdir=$srcdir ;; 11919 *) # Relative name. 11920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11921 ac_top_srcdir=$ac_top_build_prefix$srcdir 11922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11923esac 11924ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11925 11926 11927 case $ac_mode in 11928 :F) 11929 # 11930 # CONFIG_FILE 11931 # 11932 11933 case $INSTALL in 11934 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11935 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11936 esac 11937 ac_MKDIR_P=$MKDIR_P 11938 case $MKDIR_P in 11939 [\\/$]* | ?:[\\/]* ) ;; 11940 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11941 esac 11942_ACEOF 11943 11944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11945# If the template does not know about datarootdir, expand it. 11946# FIXME: This hack should be removed a few years after 2.60. 11947ac_datarootdir_hack=; ac_datarootdir_seen= 11948ac_sed_dataroot=' 11949/datarootdir/ { 11950 p 11951 q 11952} 11953/@datadir@/p 11954/@docdir@/p 11955/@infodir@/p 11956/@localedir@/p 11957/@mandir@/p' 11958case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11959*datarootdir*) ac_datarootdir_seen=yes;; 11960*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11962$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11963_ACEOF 11964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11965 ac_datarootdir_hack=' 11966 s&@datadir@&$datadir&g 11967 s&@docdir@&$docdir&g 11968 s&@infodir@&$infodir&g 11969 s&@localedir@&$localedir&g 11970 s&@mandir@&$mandir&g 11971 s&\\\${datarootdir}&$datarootdir&g' ;; 11972esac 11973_ACEOF 11974 11975# Neutralize VPATH when `$srcdir' = `.'. 11976# Shell code in configure.ac might set extrasub. 11977# FIXME: do we really want to maintain this feature? 11978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11979ac_sed_extra="$ac_vpsub 11980$extrasub 11981_ACEOF 11982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11983:t 11984/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11985s|@configure_input@|$ac_sed_conf_input|;t t 11986s&@top_builddir@&$ac_top_builddir_sub&;t t 11987s&@top_build_prefix@&$ac_top_build_prefix&;t t 11988s&@srcdir@&$ac_srcdir&;t t 11989s&@abs_srcdir@&$ac_abs_srcdir&;t t 11990s&@top_srcdir@&$ac_top_srcdir&;t t 11991s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11992s&@builddir@&$ac_builddir&;t t 11993s&@abs_builddir@&$ac_abs_builddir&;t t 11994s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11995s&@INSTALL@&$ac_INSTALL&;t t 11996s&@MKDIR_P@&$ac_MKDIR_P&;t t 11997$ac_datarootdir_hack 11998" 11999eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12000 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12001 12002test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12003 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12004 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12005 "$ac_tmp/out"`; test -z "$ac_out"; } && 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12007which seems to be undefined. Please make sure it is defined" >&5 12008$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12009which seems to be undefined. Please make sure it is defined" >&2;} 12010 12011 rm -f "$ac_tmp/stdin" 12012 case $ac_file in 12013 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12014 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12015 esac \ 12016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12017 ;; 12018 :H) 12019 # 12020 # CONFIG_HEADER 12021 # 12022 if test x"$ac_file" != x-; then 12023 { 12024 $as_echo "/* $configure_input */" \ 12025 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12026 } >"$ac_tmp/config.h" \ 12027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12028 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12030$as_echo "$as_me: $ac_file is unchanged" >&6;} 12031 else 12032 rm -f "$ac_file" 12033 mv "$ac_tmp/config.h" "$ac_file" \ 12034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12035 fi 12036 else 12037 $as_echo "/* $configure_input */" \ 12038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12039 || as_fn_error $? "could not create -" "$LINENO" 5 12040 fi 12041# Compute "$ac_file"'s index in $config_headers. 12042_am_arg="$ac_file" 12043_am_stamp_count=1 12044for _am_header in $config_headers :; do 12045 case $_am_header in 12046 $_am_arg | $_am_arg:* ) 12047 break ;; 12048 * ) 12049 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12050 esac 12051done 12052echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12053$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12054 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12055 X"$_am_arg" : 'X\(//\)$' \| \ 12056 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12057$as_echo X"$_am_arg" | 12058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12059 s//\1/ 12060 q 12061 } 12062 /^X\(\/\/\)[^/].*/{ 12063 s//\1/ 12064 q 12065 } 12066 /^X\(\/\/\)$/{ 12067 s//\1/ 12068 q 12069 } 12070 /^X\(\/\).*/{ 12071 s//\1/ 12072 q 12073 } 12074 s/.*/./; q'`/stamp-h$_am_stamp_count 12075 ;; 12076 12077 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12078$as_echo "$as_me: executing $ac_file commands" >&6;} 12079 ;; 12080 esac 12081 12082 12083 case $ac_file$ac_mode in 12084 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12085 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12086 # are listed without --file. Let's play safe and only enable the eval 12087 # if we detect the quoting. 12088 case $CONFIG_FILES in 12089 *\'*) eval set x "$CONFIG_FILES" ;; 12090 *) set x $CONFIG_FILES ;; 12091 esac 12092 shift 12093 for mf 12094 do 12095 # Strip MF so we end up with the name of the file. 12096 mf=`echo "$mf" | sed -e 's/:.*$//'` 12097 # Check whether this is an Automake generated Makefile or not. 12098 # We used to match only the files named `Makefile.in', but 12099 # some people rename them; so instead we look at the file content. 12100 # Grep'ing the first line is not enough: some people post-process 12101 # each Makefile.in and add a new line on top of each file to say so. 12102 # Grep'ing the whole file is not good either: AIX grep has a line 12103 # limit of 2048, but all sed's we know have understand at least 4000. 12104 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12105 dirpart=`$as_dirname -- "$mf" || 12106$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12107 X"$mf" : 'X\(//\)[^/]' \| \ 12108 X"$mf" : 'X\(//\)$' \| \ 12109 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12110$as_echo X"$mf" | 12111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12112 s//\1/ 12113 q 12114 } 12115 /^X\(\/\/\)[^/].*/{ 12116 s//\1/ 12117 q 12118 } 12119 /^X\(\/\/\)$/{ 12120 s//\1/ 12121 q 12122 } 12123 /^X\(\/\).*/{ 12124 s//\1/ 12125 q 12126 } 12127 s/.*/./; q'` 12128 else 12129 continue 12130 fi 12131 # Extract the definition of DEPDIR, am__include, and am__quote 12132 # from the Makefile without running `make'. 12133 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12134 test -z "$DEPDIR" && continue 12135 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12136 test -z "am__include" && continue 12137 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12138 # When using ansi2knr, U may be empty or an underscore; expand it 12139 U=`sed -n 's/^U = //p' < "$mf"` 12140 # Find all dependency output files, they are included files with 12141 # $(DEPDIR) in their names. We invoke sed twice because it is the 12142 # simplest approach to changing $(DEPDIR) to its actual value in the 12143 # expansion. 12144 for file in `sed -n " 12145 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12147 # Make sure the directory exists. 12148 test -f "$dirpart/$file" && continue 12149 fdir=`$as_dirname -- "$file" || 12150$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12151 X"$file" : 'X\(//\)[^/]' \| \ 12152 X"$file" : 'X\(//\)$' \| \ 12153 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12154$as_echo X"$file" | 12155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12156 s//\1/ 12157 q 12158 } 12159 /^X\(\/\/\)[^/].*/{ 12160 s//\1/ 12161 q 12162 } 12163 /^X\(\/\/\)$/{ 12164 s//\1/ 12165 q 12166 } 12167 /^X\(\/\).*/{ 12168 s//\1/ 12169 q 12170 } 12171 s/.*/./; q'` 12172 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12173 # echo "creating $dirpart/$file" 12174 echo '# dummy' > "$dirpart/$file" 12175 done 12176 done 12177} 12178 ;; 12179 12180 esac 12181done # for ac_tag 12182 12183 12184as_fn_exit 0 12185_ACEOF 12186ac_clean_files=$ac_clean_files_save 12187 12188test $ac_write_fail = 0 || 12189 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12190 12191 12192# configure is writing to config.log, and then calls config.status. 12193# config.status does its own redirection, appending to config.log. 12194# Unfortunately, on DOS this fails, as config.log is still kept open 12195# by configure, so config.status won't be able to write to it; its 12196# output is simply discarded. So we exec the FD to /dev/null, 12197# effectively closing config.log, so it can be properly (re)opened and 12198# appended to by config.status. When coming back to configure, we 12199# need to make the FD available again. 12200if test "$no_create" != yes; then 12201 ac_cs_success=: 12202 ac_config_status_args= 12203 test "$silent" = yes && 12204 ac_config_status_args="$ac_config_status_args --quiet" 12205 exec 5>/dev/null 12206 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12207 exec 5>>config.log 12208 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12209 # would make configure fail if this is the last instruction. 12210 $ac_cs_success || as_fn_exit 1 12211fi 12212if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12214$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12215fi 12216 12217