configure revision d1a7ce7b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for bitmap 1.0.8. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='bitmap' 583PACKAGE_TARNAME='bitmap' 584PACKAGE_VERSION='1.0.8' 585PACKAGE_STRING='bitmap 1.0.8' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630appdefaultdir 631APPDEFS_LIBS 632APPDEFS_CFLAGS 633BITMAP_LIBS 634BITMAP_CFLAGS 635ATOBM_LIBS 636ATOBM_CFLAGS 637BMTOA_LIBS 638BMTOA_CFLAGS 639MATH_LIBS 640MAN_SUBSTS 641XORG_MAN_PAGE 642ADMIN_MAN_DIR 643DRIVER_MAN_DIR 644MISC_MAN_DIR 645FILE_MAN_DIR 646LIB_MAN_DIR 647APP_MAN_DIR 648ADMIN_MAN_SUFFIX 649DRIVER_MAN_SUFFIX 650MISC_MAN_SUFFIX 651FILE_MAN_SUFFIX 652LIB_MAN_SUFFIX 653APP_MAN_SUFFIX 654SED 655host_os 656host_vendor 657host_cpu 658host 659build_os 660build_vendor 661build_cpu 662build 663INSTALL_CMD 664PKG_CONFIG 665CHANGELOG_CMD 666STRICT_CFLAGS 667CWARNFLAGS 668BASE_CFLAGS 669EGREP 670GREP 671CPP 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__quote 680am__include 681DEPDIR 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689AM_BACKSLASH 690AM_DEFAULT_VERBOSITY 691AM_DEFAULT_V 692AM_V 693am__untar 694am__tar 695AMTAR 696am__leading_dot 697SET_MAKE 698AWK 699mkdir_p 700MKDIR_P 701INSTALL_STRIP_PROGRAM 702STRIP 703install_sh 704MAKEINFO 705AUTOHEADER 706AUTOMAKE 707AUTOCONF 708ACLOCAL 709VERSION 710PACKAGE 711CYGPATH_W 712am__isrc 713INSTALL_DATA 714INSTALL_SCRIPT 715INSTALL_PROGRAM 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_silent_rules 758enable_dependency_tracking 759enable_selective_werror 760enable_strict_compilation 761with_appdefaultdir 762' 763 ac_precious_vars='build_alias 764host_alias 765target_alias 766CC 767CFLAGS 768LDFLAGS 769LIBS 770CPPFLAGS 771CPP 772PKG_CONFIG 773BMTOA_CFLAGS 774BMTOA_LIBS 775ATOBM_CFLAGS 776ATOBM_LIBS 777BITMAP_CFLAGS 778BITMAP_LIBS 779APPDEFS_CFLAGS 780APPDEFS_LIBS' 781 782 783# Initialize some variables set by options. 784ac_init_help= 785ac_init_version=false 786ac_unrecognized_opts= 787ac_unrecognized_sep= 788# The variables have the same names as the options, with 789# dashes changed to underlines. 790cache_file=/dev/null 791exec_prefix=NONE 792no_create= 793no_recursion= 794prefix=NONE 795program_prefix=NONE 796program_suffix=NONE 797program_transform_name=s,x,x, 798silent= 799site= 800srcdir= 801verbose= 802x_includes=NONE 803x_libraries=NONE 804 805# Installation directory options. 806# These are left unexpanded so users can "make install exec_prefix=/foo" 807# and all the variables that are supposed to be based on exec_prefix 808# by default will actually change. 809# Use braces instead of parens because sh, perl, etc. also accept them. 810# (The list follows the same order as the GNU Coding Standards.) 811bindir='${exec_prefix}/bin' 812sbindir='${exec_prefix}/sbin' 813libexecdir='${exec_prefix}/libexec' 814datarootdir='${prefix}/share' 815datadir='${datarootdir}' 816sysconfdir='${prefix}/etc' 817sharedstatedir='${prefix}/com' 818localstatedir='${prefix}/var' 819includedir='${prefix}/include' 820oldincludedir='/usr/include' 821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 822infodir='${datarootdir}/info' 823htmldir='${docdir}' 824dvidir='${docdir}' 825pdfdir='${docdir}' 826psdir='${docdir}' 827libdir='${exec_prefix}/lib' 828localedir='${datarootdir}/locale' 829mandir='${datarootdir}/man' 830 831ac_prev= 832ac_dashdash= 833for ac_option 834do 835 # If the previous option needs an argument, assign it. 836 if test -n "$ac_prev"; then 837 eval $ac_prev=\$ac_option 838 ac_prev= 839 continue 840 fi 841 842 case $ac_option in 843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 844 *=) ac_optarg= ;; 845 *) ac_optarg=yes ;; 846 esac 847 848 # Accept the important Cygnus configure options, so we can diagnose typos. 849 850 case $ac_dashdash$ac_option in 851 --) 852 ac_dashdash=yes ;; 853 854 -bindir | --bindir | --bindi | --bind | --bin | --bi) 855 ac_prev=bindir ;; 856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 857 bindir=$ac_optarg ;; 858 859 -build | --build | --buil | --bui | --bu) 860 ac_prev=build_alias ;; 861 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 862 build_alias=$ac_optarg ;; 863 864 -cache-file | --cache-file | --cache-fil | --cache-fi \ 865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 866 ac_prev=cache_file ;; 867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 869 cache_file=$ac_optarg ;; 870 871 --config-cache | -C) 872 cache_file=config.cache ;; 873 874 -datadir | --datadir | --datadi | --datad) 875 ac_prev=datadir ;; 876 -datadir=* | --datadir=* | --datadi=* | --datad=*) 877 datadir=$ac_optarg ;; 878 879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 880 | --dataroo | --dataro | --datar) 881 ac_prev=datarootdir ;; 882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 884 datarootdir=$ac_optarg ;; 885 886 -disable-* | --disable-*) 887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 888 # Reject names that are not valid shell variable names. 889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 890 as_fn_error $? "invalid feature name: $ac_useropt" 891 ac_useropt_orig=$ac_useropt 892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 893 case $ac_user_opts in 894 *" 895"enable_$ac_useropt" 896"*) ;; 897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 898 ac_unrecognized_sep=', ';; 899 esac 900 eval enable_$ac_useropt=no ;; 901 902 -docdir | --docdir | --docdi | --doc | --do) 903 ac_prev=docdir ;; 904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 905 docdir=$ac_optarg ;; 906 907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 908 ac_prev=dvidir ;; 909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 910 dvidir=$ac_optarg ;; 911 912 -enable-* | --enable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error $? "invalid feature name: $ac_useropt" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921"enable_$ac_useropt" 922"*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=\$ac_optarg ;; 927 928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 930 | --exec | --exe | --ex) 931 ac_prev=exec_prefix ;; 932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 934 | --exec=* | --exe=* | --ex=*) 935 exec_prefix=$ac_optarg ;; 936 937 -gas | --gas | --ga | --g) 938 # Obsolete; use --with-gas. 939 with_gas=yes ;; 940 941 -help | --help | --hel | --he | -h) 942 ac_init_help=long ;; 943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 944 ac_init_help=recursive ;; 945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 946 ac_init_help=short ;; 947 948 -host | --host | --hos | --ho) 949 ac_prev=host_alias ;; 950 -host=* | --host=* | --hos=* | --ho=*) 951 host_alias=$ac_optarg ;; 952 953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 954 ac_prev=htmldir ;; 955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 956 | --ht=*) 957 htmldir=$ac_optarg ;; 958 959 -includedir | --includedir | --includedi | --included | --include \ 960 | --includ | --inclu | --incl | --inc) 961 ac_prev=includedir ;; 962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 963 | --includ=* | --inclu=* | --incl=* | --inc=*) 964 includedir=$ac_optarg ;; 965 966 -infodir | --infodir | --infodi | --infod | --info | --inf) 967 ac_prev=infodir ;; 968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 969 infodir=$ac_optarg ;; 970 971 -libdir | --libdir | --libdi | --libd) 972 ac_prev=libdir ;; 973 -libdir=* | --libdir=* | --libdi=* | --libd=*) 974 libdir=$ac_optarg ;; 975 976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 977 | --libexe | --libex | --libe) 978 ac_prev=libexecdir ;; 979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 980 | --libexe=* | --libex=* | --libe=*) 981 libexecdir=$ac_optarg ;; 982 983 -localedir | --localedir | --localedi | --localed | --locale) 984 ac_prev=localedir ;; 985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 986 localedir=$ac_optarg ;; 987 988 -localstatedir | --localstatedir | --localstatedi | --localstated \ 989 | --localstate | --localstat | --localsta | --localst | --locals) 990 ac_prev=localstatedir ;; 991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 993 localstatedir=$ac_optarg ;; 994 995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 996 ac_prev=mandir ;; 997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 998 mandir=$ac_optarg ;; 999 1000 -nfp | --nfp | --nf) 1001 # Obsolete; use --without-fp. 1002 with_fp=no ;; 1003 1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1005 | --no-cr | --no-c | -n) 1006 no_create=yes ;; 1007 1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1010 no_recursion=yes ;; 1011 1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1014 | --oldin | --oldi | --old | --ol | --o) 1015 ac_prev=oldincludedir ;; 1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1019 oldincludedir=$ac_optarg ;; 1020 1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1022 ac_prev=prefix ;; 1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1024 prefix=$ac_optarg ;; 1025 1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1027 | --program-pre | --program-pr | --program-p) 1028 ac_prev=program_prefix ;; 1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1031 program_prefix=$ac_optarg ;; 1032 1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1034 | --program-suf | --program-su | --program-s) 1035 ac_prev=program_suffix ;; 1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1038 program_suffix=$ac_optarg ;; 1039 1040 -program-transform-name | --program-transform-name \ 1041 | --program-transform-nam | --program-transform-na \ 1042 | --program-transform-n | --program-transform- \ 1043 | --program-transform | --program-transfor \ 1044 | --program-transfo | --program-transf \ 1045 | --program-trans | --program-tran \ 1046 | --progr-tra | --program-tr | --program-t) 1047 ac_prev=program_transform_name ;; 1048 -program-transform-name=* | --program-transform-name=* \ 1049 | --program-transform-nam=* | --program-transform-na=* \ 1050 | --program-transform-n=* | --program-transform-=* \ 1051 | --program-transform=* | --program-transfor=* \ 1052 | --program-transfo=* | --program-transf=* \ 1053 | --program-trans=* | --program-tran=* \ 1054 | --progr-tra=* | --program-tr=* | --program-t=*) 1055 program_transform_name=$ac_optarg ;; 1056 1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1058 ac_prev=pdfdir ;; 1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1060 pdfdir=$ac_optarg ;; 1061 1062 -psdir | --psdir | --psdi | --psd | --ps) 1063 ac_prev=psdir ;; 1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1065 psdir=$ac_optarg ;; 1066 1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1068 | -silent | --silent | --silen | --sile | --sil) 1069 silent=yes ;; 1070 1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1072 ac_prev=sbindir ;; 1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1074 | --sbi=* | --sb=*) 1075 sbindir=$ac_optarg ;; 1076 1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1079 | --sharedst | --shareds | --shared | --share | --shar \ 1080 | --sha | --sh) 1081 ac_prev=sharedstatedir ;; 1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1085 | --sha=* | --sh=*) 1086 sharedstatedir=$ac_optarg ;; 1087 1088 -site | --site | --sit) 1089 ac_prev=site ;; 1090 -site=* | --site=* | --sit=*) 1091 site=$ac_optarg ;; 1092 1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1094 ac_prev=srcdir ;; 1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1096 srcdir=$ac_optarg ;; 1097 1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1099 | --syscon | --sysco | --sysc | --sys | --sy) 1100 ac_prev=sysconfdir ;; 1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1103 sysconfdir=$ac_optarg ;; 1104 1105 -target | --target | --targe | --targ | --tar | --ta | --t) 1106 ac_prev=target_alias ;; 1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1108 target_alias=$ac_optarg ;; 1109 1110 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1111 verbose=yes ;; 1112 1113 -version | --version | --versio | --versi | --vers | -V) 1114 ac_init_version=: ;; 1115 1116 -with-* | --with-*) 1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1118 # Reject names that are not valid shell variable names. 1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1120 as_fn_error $? "invalid package name: $ac_useropt" 1121 ac_useropt_orig=$ac_useropt 1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1123 case $ac_user_opts in 1124 *" 1125"with_$ac_useropt" 1126"*) ;; 1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1128 ac_unrecognized_sep=', ';; 1129 esac 1130 eval with_$ac_useropt=\$ac_optarg ;; 1131 1132 -without-* | --without-*) 1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136 as_fn_error $? "invalid package name: $ac_useropt" 1137 ac_useropt_orig=$ac_useropt 1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1139 case $ac_user_opts in 1140 *" 1141"with_$ac_useropt" 1142"*) ;; 1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1144 ac_unrecognized_sep=', ';; 1145 esac 1146 eval with_$ac_useropt=no ;; 1147 1148 --x) 1149 # Obsolete; use --with-x. 1150 with_x=yes ;; 1151 1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1153 | --x-incl | --x-inc | --x-in | --x-i) 1154 ac_prev=x_includes ;; 1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1157 x_includes=$ac_optarg ;; 1158 1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1161 ac_prev=x_libraries ;; 1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1164 x_libraries=$ac_optarg ;; 1165 1166 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1167Try \`$0 --help' for more information" 1168 ;; 1169 1170 *=*) 1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1172 # Reject names that are not valid shell variable names. 1173 case $ac_envvar in #( 1174 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1176 esac 1177 eval $ac_envvar=\$ac_optarg 1178 export $ac_envvar ;; 1179 1180 *) 1181 # FIXME: should be removed in autoconf 3.0. 1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1186 ;; 1187 1188 esac 1189done 1190 1191if test -n "$ac_prev"; then 1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1193 as_fn_error $? "missing argument to $ac_option" 1194fi 1195 1196if test -n "$ac_unrecognized_opts"; then 1197 case $enable_option_checking in 1198 no) ;; 1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1201 esac 1202fi 1203 1204# Check all directory arguments for consistency. 1205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1206 datadir sysconfdir sharedstatedir localstatedir includedir \ 1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1208 libdir localedir mandir 1209do 1210 eval ac_val=\$$ac_var 1211 # Remove trailing slashes. 1212 case $ac_val in 1213 */ ) 1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1215 eval $ac_var=\$ac_val;; 1216 esac 1217 # Be sure to have absolute directory names. 1218 case $ac_val in 1219 [\\/$]* | ?:[\\/]* ) continue;; 1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1221 esac 1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1223done 1224 1225# There might be people who depend on the old broken behavior: `$host' 1226# used to hold the argument of --host etc. 1227# FIXME: To remove some day. 1228build=$build_alias 1229host=$host_alias 1230target=$target_alias 1231 1232# FIXME: To remove some day. 1233if test "x$host_alias" != x; then 1234 if test "x$build_alias" = x; then 1235 cross_compiling=maybe 1236 elif test "x$build_alias" != "x$host_alias"; then 1237 cross_compiling=yes 1238 fi 1239fi 1240 1241ac_tool_prefix= 1242test -n "$host_alias" && ac_tool_prefix=$host_alias- 1243 1244test "$silent" = yes && exec 6>/dev/null 1245 1246 1247ac_pwd=`pwd` && test -n "$ac_pwd" && 1248ac_ls_di=`ls -di .` && 1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1250 as_fn_error $? "working directory cannot be determined" 1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1252 as_fn_error $? "pwd does not report name of working directory" 1253 1254 1255# Find the source files, if location was not specified. 1256if test -z "$srcdir"; then 1257 ac_srcdir_defaulted=yes 1258 # Try the directory containing this script, then the parent directory. 1259 ac_confdir=`$as_dirname -- "$as_myself" || 1260$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1261 X"$as_myself" : 'X\(//\)[^/]' \| \ 1262 X"$as_myself" : 'X\(//\)$' \| \ 1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1264$as_echo X"$as_myself" | 1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1266 s//\1/ 1267 q 1268 } 1269 /^X\(\/\/\)[^/].*/{ 1270 s//\1/ 1271 q 1272 } 1273 /^X\(\/\/\)$/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\).*/{ 1278 s//\1/ 1279 q 1280 } 1281 s/.*/./; q'` 1282 srcdir=$ac_confdir 1283 if test ! -r "$srcdir/$ac_unique_file"; then 1284 srcdir=.. 1285 fi 1286else 1287 ac_srcdir_defaulted=no 1288fi 1289if test ! -r "$srcdir/$ac_unique_file"; then 1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1292fi 1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1294ac_abs_confdir=`( 1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1296 pwd)` 1297# When building in place, set srcdir=. 1298if test "$ac_abs_confdir" = "$ac_pwd"; then 1299 srcdir=. 1300fi 1301# Remove unnecessary trailing slashes from srcdir. 1302# Double slashes in file names in object file debugging info 1303# mess up M-x gdb in Emacs. 1304case $srcdir in 1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1306esac 1307for ac_var in $ac_precious_vars; do 1308 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1309 eval ac_env_${ac_var}_value=\$${ac_var} 1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1311 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1312done 1313 1314# 1315# Report the --help message. 1316# 1317if test "$ac_init_help" = "long"; then 1318 # Omit some internal or obsolete options to make the list less imposing. 1319 # This message is too long to be a string in the A/UX 3.1 sh. 1320 cat <<_ACEOF 1321\`configure' configures bitmap 1.0.8 to adapt to many kinds of systems. 1322 1323Usage: $0 [OPTION]... [VAR=VALUE]... 1324 1325To assign environment variables (e.g., CC, CFLAGS...), specify them as 1326VAR=VALUE. See below for descriptions of some of the useful variables. 1327 1328Defaults for the options are specified in brackets. 1329 1330Configuration: 1331 -h, --help display this help and exit 1332 --help=short display options specific to this package 1333 --help=recursive display the short help of all the included packages 1334 -V, --version display version information and exit 1335 -q, --quiet, --silent do not print \`checking ...' messages 1336 --cache-file=FILE cache test results in FILE [disabled] 1337 -C, --config-cache alias for \`--cache-file=config.cache' 1338 -n, --no-create do not create output files 1339 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1340 1341Installation directories: 1342 --prefix=PREFIX install architecture-independent files in PREFIX 1343 [$ac_default_prefix] 1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1345 [PREFIX] 1346 1347By default, \`make install' will install all the files in 1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1349an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1350for instance \`--prefix=\$HOME'. 1351 1352For better control, use the options below. 1353 1354Fine tuning of the installation directories: 1355 --bindir=DIR user executables [EPREFIX/bin] 1356 --sbindir=DIR system admin executables [EPREFIX/sbin] 1357 --libexecdir=DIR program executables [EPREFIX/libexec] 1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1361 --libdir=DIR object code libraries [EPREFIX/lib] 1362 --includedir=DIR C header files [PREFIX/include] 1363 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1366 --infodir=DIR info documentation [DATAROOTDIR/info] 1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1368 --mandir=DIR man documentation [DATAROOTDIR/man] 1369 --docdir=DIR documentation root [DATAROOTDIR/doc/bitmap] 1370 --htmldir=DIR html documentation [DOCDIR] 1371 --dvidir=DIR dvi documentation [DOCDIR] 1372 --pdfdir=DIR pdf documentation [DOCDIR] 1373 --psdir=DIR ps documentation [DOCDIR] 1374_ACEOF 1375 1376 cat <<\_ACEOF 1377 1378Program names: 1379 --program-prefix=PREFIX prepend PREFIX to installed program names 1380 --program-suffix=SUFFIX append SUFFIX to installed program names 1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1382 1383System types: 1384 --build=BUILD configure for building on BUILD [guessed] 1385 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1386_ACEOF 1387fi 1388 1389if test -n "$ac_init_help"; then 1390 case $ac_init_help in 1391 short | recursive ) echo "Configuration of bitmap 1.0.8:";; 1392 esac 1393 cat <<\_ACEOF 1394 1395Optional Features: 1396 --disable-option-checking ignore unrecognized --enable/--with options 1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1399 --enable-silent-rules less verbose build output (undo: "make V=1") 1400 --disable-silent-rules verbose build output (undo: "make V=0") 1401 --enable-dependency-tracking 1402 do not reject slow dependency extractors 1403 --disable-dependency-tracking 1404 speeds up one-time build 1405 --disable-selective-werror 1406 Turn off selective compiler errors. (default: 1407 enabled) 1408 --enable-strict-compilation 1409 Enable all warnings from compiler and make them 1410 errors (default: disabled) 1411 1412Optional Packages: 1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1415 --with-appdefaultdir=<pathname> 1416 specify directory for app-defaults files (default is 1417 autodetected) 1418 1419Some influential environment variables: 1420 CC C compiler command 1421 CFLAGS C compiler flags 1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1423 nonstandard directory <lib dir> 1424 LIBS libraries to pass to the linker, e.g. -l<library> 1425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1426 you have headers in a nonstandard directory <include dir> 1427 CPP C preprocessor 1428 PKG_CONFIG path to pkg-config utility 1429 BMTOA_CFLAGS 1430 C compiler flags for BMTOA, overriding pkg-config 1431 BMTOA_LIBS linker flags for BMTOA, overriding pkg-config 1432 ATOBM_CFLAGS 1433 C compiler flags for ATOBM, overriding pkg-config 1434 ATOBM_LIBS linker flags for ATOBM, overriding pkg-config 1435 BITMAP_CFLAGS 1436 C compiler flags for BITMAP, overriding pkg-config 1437 BITMAP_LIBS linker flags for BITMAP, overriding pkg-config 1438 APPDEFS_CFLAGS 1439 C compiler flags for APPDEFS, overriding pkg-config 1440 APPDEFS_LIBS 1441 linker flags for APPDEFS, overriding pkg-config 1442 1443Use these variables to override the choices made by `configure' or to help 1444it to find libraries and programs with nonstandard names/locations. 1445 1446Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1447_ACEOF 1448ac_status=$? 1449fi 1450 1451if test "$ac_init_help" = "recursive"; then 1452 # If there are subdirs, report their specific --help. 1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1454 test -d "$ac_dir" || 1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1456 continue 1457 ac_builddir=. 1458 1459case "$ac_dir" in 1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1461*) 1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1463 # A ".." for each directory in $ac_dir_suffix. 1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1465 case $ac_top_builddir_sub in 1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1468 esac ;; 1469esac 1470ac_abs_top_builddir=$ac_pwd 1471ac_abs_builddir=$ac_pwd$ac_dir_suffix 1472# for backward compatibility: 1473ac_top_builddir=$ac_top_build_prefix 1474 1475case $srcdir in 1476 .) # We are building in place. 1477 ac_srcdir=. 1478 ac_top_srcdir=$ac_top_builddir_sub 1479 ac_abs_top_srcdir=$ac_pwd ;; 1480 [\\/]* | ?:[\\/]* ) # Absolute name. 1481 ac_srcdir=$srcdir$ac_dir_suffix; 1482 ac_top_srcdir=$srcdir 1483 ac_abs_top_srcdir=$srcdir ;; 1484 *) # Relative name. 1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1486 ac_top_srcdir=$ac_top_build_prefix$srcdir 1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1488esac 1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1490 1491 cd "$ac_dir" || { ac_status=$?; continue; } 1492 # Check for guested configure. 1493 if test -f "$ac_srcdir/configure.gnu"; then 1494 echo && 1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1496 elif test -f "$ac_srcdir/configure"; then 1497 echo && 1498 $SHELL "$ac_srcdir/configure" --help=recursive 1499 else 1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1501 fi || ac_status=$? 1502 cd "$ac_pwd" || { ac_status=$?; break; } 1503 done 1504fi 1505 1506test -n "$ac_init_help" && exit $ac_status 1507if $ac_init_version; then 1508 cat <<\_ACEOF 1509bitmap configure 1.0.8 1510generated by GNU Autoconf 2.69 1511 1512Copyright (C) 2012 Free Software Foundation, Inc. 1513This configure script is free software; the Free Software Foundation 1514gives unlimited permission to copy, distribute and modify it. 1515_ACEOF 1516 exit 1517fi 1518 1519## ------------------------ ## 1520## Autoconf initialization. ## 1521## ------------------------ ## 1522 1523# ac_fn_c_try_compile LINENO 1524# -------------------------- 1525# Try to compile conftest.$ac_ext, and return whether this succeeded. 1526ac_fn_c_try_compile () 1527{ 1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1529 rm -f conftest.$ac_objext 1530 if { { ac_try="$ac_compile" 1531case "(($ac_try" in 1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1533 *) ac_try_echo=$ac_try;; 1534esac 1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1536$as_echo "$ac_try_echo"; } >&5 1537 (eval "$ac_compile") 2>conftest.err 1538 ac_status=$? 1539 if test -s conftest.err; then 1540 grep -v '^ *+' conftest.err >conftest.er1 1541 cat conftest.er1 >&5 1542 mv -f conftest.er1 conftest.err 1543 fi 1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1545 test $ac_status = 0; } && { 1546 test -z "$ac_c_werror_flag" || 1547 test ! -s conftest.err 1548 } && test -s conftest.$ac_objext; then : 1549 ac_retval=0 1550else 1551 $as_echo "$as_me: failed program was:" >&5 1552sed 's/^/| /' conftest.$ac_ext >&5 1553 1554 ac_retval=1 1555fi 1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1557 as_fn_set_status $ac_retval 1558 1559} # ac_fn_c_try_compile 1560 1561# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1562# --------------------------------------------- 1563# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1564# accordingly. 1565ac_fn_c_check_decl () 1566{ 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1568 as_decl_name=`echo $2|sed 's/ *(.*//'` 1569 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1571$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1572if eval \${$3+:} false; then : 1573 $as_echo_n "(cached) " >&6 1574else 1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1576/* end confdefs.h. */ 1577$4 1578int 1579main () 1580{ 1581#ifndef $as_decl_name 1582#ifdef __cplusplus 1583 (void) $as_decl_use; 1584#else 1585 (void) $as_decl_name; 1586#endif 1587#endif 1588 1589 ; 1590 return 0; 1591} 1592_ACEOF 1593if ac_fn_c_try_compile "$LINENO"; then : 1594 eval "$3=yes" 1595else 1596 eval "$3=no" 1597fi 1598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1599fi 1600eval ac_res=\$$3 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1602$as_echo "$ac_res" >&6; } 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 1605} # ac_fn_c_check_decl 1606 1607# ac_fn_c_try_cpp LINENO 1608# ---------------------- 1609# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1610ac_fn_c_try_cpp () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 if { { ac_try="$ac_cpp conftest.$ac_ext" 1614case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619$as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1621 ac_status=$? 1622 if test -s conftest.err; then 1623 grep -v '^ *+' conftest.err >conftest.er1 1624 cat conftest.er1 >&5 1625 mv -f conftest.er1 conftest.err 1626 fi 1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1628 test $ac_status = 0; } > conftest.i && { 1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1630 test ! -s conftest.err 1631 }; then : 1632 ac_retval=0 1633else 1634 $as_echo "$as_me: failed program was:" >&5 1635sed 's/^/| /' conftest.$ac_ext >&5 1636 1637 ac_retval=1 1638fi 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 as_fn_set_status $ac_retval 1641 1642} # ac_fn_c_try_cpp 1643 1644# ac_fn_c_try_run LINENO 1645# ---------------------- 1646# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1647# that executables *can* be run. 1648ac_fn_c_try_run () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 if { { ac_try="$ac_link" 1652case "(($ac_try" in 1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1654 *) ac_try_echo=$ac_try;; 1655esac 1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1657$as_echo "$ac_try_echo"; } >&5 1658 (eval "$ac_link") 2>&5 1659 ac_status=$? 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1662 { { case "(($ac_try" in 1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1664 *) ac_try_echo=$ac_try;; 1665esac 1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1667$as_echo "$ac_try_echo"; } >&5 1668 (eval "$ac_try") 2>&5 1669 ac_status=$? 1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1671 test $ac_status = 0; }; }; then : 1672 ac_retval=0 1673else 1674 $as_echo "$as_me: program exited with status $ac_status" >&5 1675 $as_echo "$as_me: failed program was:" >&5 1676sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=$ac_status 1679fi 1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684} # ac_fn_c_try_run 1685 1686# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1687# ------------------------------------------------------- 1688# Tests whether HEADER exists and can be compiled using the include files in 1689# INCLUDES, setting the cache variable VAR accordingly. 1690ac_fn_c_check_header_compile () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1694$as_echo_n "checking for $2... " >&6; } 1695if eval \${$3+:} false; then : 1696 $as_echo_n "(cached) " >&6 1697else 1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1699/* end confdefs.h. */ 1700$4 1701#include <$2> 1702_ACEOF 1703if ac_fn_c_try_compile "$LINENO"; then : 1704 eval "$3=yes" 1705else 1706 eval "$3=no" 1707fi 1708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1709fi 1710eval ac_res=\$$3 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1712$as_echo "$ac_res" >&6; } 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 1715} # ac_fn_c_check_header_compile 1716 1717# ac_fn_c_try_link LINENO 1718# ----------------------- 1719# Try to link conftest.$ac_ext, and return whether this succeeded. 1720ac_fn_c_try_link () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 rm -f conftest.$ac_objext conftest$ac_exeext 1724 if { { ac_try="$ac_link" 1725case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730$as_echo "$ac_try_echo"; } >&5 1731 (eval "$ac_link") 2>conftest.err 1732 ac_status=$? 1733 if test -s conftest.err; then 1734 grep -v '^ *+' conftest.err >conftest.er1 1735 cat conftest.er1 >&5 1736 mv -f conftest.er1 conftest.err 1737 fi 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } && { 1740 test -z "$ac_c_werror_flag" || 1741 test ! -s conftest.err 1742 } && test -s conftest$ac_exeext && { 1743 test "$cross_compiling" = yes || 1744 test -x conftest$ac_exeext 1745 }; then : 1746 ac_retval=0 1747else 1748 $as_echo "$as_me: failed program was:" >&5 1749sed 's/^/| /' conftest.$ac_ext >&5 1750 1751 ac_retval=1 1752fi 1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1755 # interfere with the next link command; also delete a directory that is 1756 # left behind by Apple's compiler. We do this before executing the actions. 1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 as_fn_set_status $ac_retval 1760 1761} # ac_fn_c_try_link 1762 1763# ac_fn_c_check_func LINENO FUNC VAR 1764# ---------------------------------- 1765# Tests whether FUNC exists, setting the cache variable VAR accordingly 1766ac_fn_c_check_func () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1770$as_echo_n "checking for $2... " >&6; } 1771if eval \${$3+:} false; then : 1772 $as_echo_n "(cached) " >&6 1773else 1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1775/* end confdefs.h. */ 1776/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1778#define $2 innocuous_$2 1779 1780/* System header to define __stub macros and hopefully few prototypes, 1781 which can conflict with char $2 (); below. 1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1783 <limits.h> exists even on freestanding compilers. */ 1784 1785#ifdef __STDC__ 1786# include <limits.h> 1787#else 1788# include <assert.h> 1789#endif 1790 1791#undef $2 1792 1793/* Override any GCC internal prototype to avoid an error. 1794 Use char because int might match the return type of a GCC 1795 builtin and then its argument prototype would still apply. */ 1796#ifdef __cplusplus 1797extern "C" 1798#endif 1799char $2 (); 1800/* The GNU C library defines this for functions which it implements 1801 to always fail with ENOSYS. Some functions are actually named 1802 something starting with __ and the normal name is an alias. */ 1803#if defined __stub_$2 || defined __stub___$2 1804choke me 1805#endif 1806 1807int 1808main () 1809{ 1810return $2 (); 1811 ; 1812 return 0; 1813} 1814_ACEOF 1815if ac_fn_c_try_link "$LINENO"; then : 1816 eval "$3=yes" 1817else 1818 eval "$3=no" 1819fi 1820rm -f core conftest.err conftest.$ac_objext \ 1821 conftest$ac_exeext conftest.$ac_ext 1822fi 1823eval ac_res=\$$3 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825$as_echo "$ac_res" >&6; } 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 1828} # ac_fn_c_check_func 1829cat >config.log <<_ACEOF 1830This file contains any messages produced by compilers while 1831running configure, to aid debugging if configure makes a mistake. 1832 1833It was created by bitmap $as_me 1.0.8, which was 1834generated by GNU Autoconf 2.69. Invocation command line was 1835 1836 $ $0 $@ 1837 1838_ACEOF 1839exec 5>>config.log 1840{ 1841cat <<_ASUNAME 1842## --------- ## 1843## Platform. ## 1844## --------- ## 1845 1846hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1847uname -m = `(uname -m) 2>/dev/null || echo unknown` 1848uname -r = `(uname -r) 2>/dev/null || echo unknown` 1849uname -s = `(uname -s) 2>/dev/null || echo unknown` 1850uname -v = `(uname -v) 2>/dev/null || echo unknown` 1851 1852/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1853/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1854 1855/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1856/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1857/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1858/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1859/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1860/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1861/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1862 1863_ASUNAME 1864 1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1866for as_dir in $PATH 1867do 1868 IFS=$as_save_IFS 1869 test -z "$as_dir" && as_dir=. 1870 $as_echo "PATH: $as_dir" 1871 done 1872IFS=$as_save_IFS 1873 1874} >&5 1875 1876cat >&5 <<_ACEOF 1877 1878 1879## ----------- ## 1880## Core tests. ## 1881## ----------- ## 1882 1883_ACEOF 1884 1885 1886# Keep a trace of the command line. 1887# Strip out --no-create and --no-recursion so they do not pile up. 1888# Strip out --silent because we don't want to record it for future runs. 1889# Also quote any args containing shell meta-characters. 1890# Make two passes to allow for proper duplicate-argument suppression. 1891ac_configure_args= 1892ac_configure_args0= 1893ac_configure_args1= 1894ac_must_keep_next=false 1895for ac_pass in 1 2 1896do 1897 for ac_arg 1898 do 1899 case $ac_arg in 1900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1902 | -silent | --silent | --silen | --sile | --sil) 1903 continue ;; 1904 *\'*) 1905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1906 esac 1907 case $ac_pass in 1908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1909 2) 1910 as_fn_append ac_configure_args1 " '$ac_arg'" 1911 if test $ac_must_keep_next = true; then 1912 ac_must_keep_next=false # Got value, back to normal. 1913 else 1914 case $ac_arg in 1915 *=* | --config-cache | -C | -disable-* | --disable-* \ 1916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1918 | -with-* | --with-* | -without-* | --without-* | --x) 1919 case "$ac_configure_args0 " in 1920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1921 esac 1922 ;; 1923 -* ) ac_must_keep_next=true ;; 1924 esac 1925 fi 1926 as_fn_append ac_configure_args " '$ac_arg'" 1927 ;; 1928 esac 1929 done 1930done 1931{ ac_configure_args0=; unset ac_configure_args0;} 1932{ ac_configure_args1=; unset ac_configure_args1;} 1933 1934# When interrupted or exit'd, cleanup temporary files, and complete 1935# config.log. We remove comments because anyway the quotes in there 1936# would cause problems or look ugly. 1937# WARNING: Use '\'' to represent an apostrophe within the trap. 1938# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1939trap 'exit_status=$? 1940 # Save into config.log some information that might help in debugging. 1941 { 1942 echo 1943 1944 $as_echo "## ---------------- ## 1945## Cache variables. ## 1946## ---------------- ##" 1947 echo 1948 # The following way of writing the cache mishandles newlines in values, 1949( 1950 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1951 eval ac_val=\$$ac_var 1952 case $ac_val in #( 1953 *${as_nl}*) 1954 case $ac_var in #( 1955 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1956$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1957 esac 1958 case $ac_var in #( 1959 _ | IFS | as_nl) ;; #( 1960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1961 *) { eval $ac_var=; unset $ac_var;} ;; 1962 esac ;; 1963 esac 1964 done 1965 (set) 2>&1 | 1966 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1967 *${as_nl}ac_space=\ *) 1968 sed -n \ 1969 "s/'\''/'\''\\\\'\'''\''/g; 1970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1971 ;; #( 1972 *) 1973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1974 ;; 1975 esac | 1976 sort 1977) 1978 echo 1979 1980 $as_echo "## ----------------- ## 1981## Output variables. ## 1982## ----------------- ##" 1983 echo 1984 for ac_var in $ac_subst_vars 1985 do 1986 eval ac_val=\$$ac_var 1987 case $ac_val in 1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1989 esac 1990 $as_echo "$ac_var='\''$ac_val'\''" 1991 done | sort 1992 echo 1993 1994 if test -n "$ac_subst_files"; then 1995 $as_echo "## ------------------- ## 1996## File substitutions. ## 1997## ------------------- ##" 1998 echo 1999 for ac_var in $ac_subst_files 2000 do 2001 eval ac_val=\$$ac_var 2002 case $ac_val in 2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2004 esac 2005 $as_echo "$ac_var='\''$ac_val'\''" 2006 done | sort 2007 echo 2008 fi 2009 2010 if test -s confdefs.h; then 2011 $as_echo "## ----------- ## 2012## confdefs.h. ## 2013## ----------- ##" 2014 echo 2015 cat confdefs.h 2016 echo 2017 fi 2018 test "$ac_signal" != 0 && 2019 $as_echo "$as_me: caught signal $ac_signal" 2020 $as_echo "$as_me: exit $exit_status" 2021 } >&5 2022 rm -f core *.core core.conftest.* && 2023 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2024 exit $exit_status 2025' 0 2026for ac_signal in 1 2 13 15; do 2027 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2028done 2029ac_signal=0 2030 2031# confdefs.h avoids OS command line length limits that DEFS can exceed. 2032rm -f -r conftest* confdefs.h 2033 2034$as_echo "/* confdefs.h */" > confdefs.h 2035 2036# Predefined preprocessor variables. 2037 2038cat >>confdefs.h <<_ACEOF 2039#define PACKAGE_NAME "$PACKAGE_NAME" 2040_ACEOF 2041 2042cat >>confdefs.h <<_ACEOF 2043#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2044_ACEOF 2045 2046cat >>confdefs.h <<_ACEOF 2047#define PACKAGE_VERSION "$PACKAGE_VERSION" 2048_ACEOF 2049 2050cat >>confdefs.h <<_ACEOF 2051#define PACKAGE_STRING "$PACKAGE_STRING" 2052_ACEOF 2053 2054cat >>confdefs.h <<_ACEOF 2055#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2056_ACEOF 2057 2058cat >>confdefs.h <<_ACEOF 2059#define PACKAGE_URL "$PACKAGE_URL" 2060_ACEOF 2061 2062 2063# Let the site file select an alternate cache file if it wants to. 2064# Prefer an explicitly selected file to automatically selected ones. 2065ac_site_file1=NONE 2066ac_site_file2=NONE 2067if test -n "$CONFIG_SITE"; then 2068 # We do not want a PATH search for config.site. 2069 case $CONFIG_SITE in #(( 2070 -*) ac_site_file1=./$CONFIG_SITE;; 2071 */*) ac_site_file1=$CONFIG_SITE;; 2072 *) ac_site_file1=./$CONFIG_SITE;; 2073 esac 2074elif test "x$prefix" != xNONE; then 2075 ac_site_file1=$prefix/share/config.site 2076 ac_site_file2=$prefix/etc/config.site 2077else 2078 ac_site_file1=$ac_default_prefix/share/config.site 2079 ac_site_file2=$ac_default_prefix/etc/config.site 2080fi 2081for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2082do 2083 test "x$ac_site_file" = xNONE && continue 2084 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2086$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2087 sed 's/^/| /' "$ac_site_file" >&5 2088 . "$ac_site_file" \ 2089 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2091as_fn_error $? "failed to load site script $ac_site_file 2092See \`config.log' for more details" "$LINENO" 5; } 2093 fi 2094done 2095 2096if test -r "$cache_file"; then 2097 # Some versions of bash will fail to source /dev/null (special files 2098 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2099 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2101$as_echo "$as_me: loading cache $cache_file" >&6;} 2102 case $cache_file in 2103 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2104 *) . "./$cache_file";; 2105 esac 2106 fi 2107else 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2109$as_echo "$as_me: creating cache $cache_file" >&6;} 2110 >$cache_file 2111fi 2112 2113# Check that the precious variables saved in the cache have kept the same 2114# value. 2115ac_cache_corrupted=false 2116for ac_var in $ac_precious_vars; do 2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2118 eval ac_new_set=\$ac_env_${ac_var}_set 2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2120 eval ac_new_val=\$ac_env_${ac_var}_value 2121 case $ac_old_set,$ac_new_set in 2122 set,) 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2124$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2125 ac_cache_corrupted=: ;; 2126 ,set) 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2128$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2129 ac_cache_corrupted=: ;; 2130 ,);; 2131 *) 2132 if test "x$ac_old_val" != "x$ac_new_val"; then 2133 # differences in whitespace do not lead to failure. 2134 ac_old_val_w=`echo x $ac_old_val` 2135 ac_new_val_w=`echo x $ac_new_val` 2136 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2138$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2139 ac_cache_corrupted=: 2140 else 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2142$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2143 eval $ac_var=\$ac_old_val 2144 fi 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2146$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2148$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2149 fi;; 2150 esac 2151 # Pass precious variables to config.status. 2152 if test "$ac_new_set" = set; then 2153 case $ac_new_val in 2154 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2155 *) ac_arg=$ac_var=$ac_new_val ;; 2156 esac 2157 case " $ac_configure_args " in 2158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2159 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2160 esac 2161 fi 2162done 2163if $ac_cache_corrupted; then 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2167$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2168 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2169fi 2170## -------------------- ## 2171## Main body of script. ## 2172## -------------------- ## 2173 2174ac_ext=c 2175ac_cpp='$CPP $CPPFLAGS' 2176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2178ac_compiler_gnu=$ac_cv_c_compiler_gnu 2179 2180 2181 2182ac_config_headers="$ac_config_headers config.h" 2183 2184 2185# Initialize Automake 2186am__api_version='1.15' 2187 2188ac_aux_dir= 2189for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2190 if test -f "$ac_dir/install-sh"; then 2191 ac_aux_dir=$ac_dir 2192 ac_install_sh="$ac_aux_dir/install-sh -c" 2193 break 2194 elif test -f "$ac_dir/install.sh"; then 2195 ac_aux_dir=$ac_dir 2196 ac_install_sh="$ac_aux_dir/install.sh -c" 2197 break 2198 elif test -f "$ac_dir/shtool"; then 2199 ac_aux_dir=$ac_dir 2200 ac_install_sh="$ac_aux_dir/shtool install -c" 2201 break 2202 fi 2203done 2204if test -z "$ac_aux_dir"; then 2205 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2206fi 2207 2208# These three variables are undocumented and unsupported, 2209# and are intended to be withdrawn in a future Autoconf release. 2210# They can cause serious problems if a builder's source tree is in a directory 2211# whose full name contains unusual characters. 2212ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2213ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2214ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2215 2216 2217# Find a good install program. We prefer a C program (faster), 2218# so one script is as good as another. But avoid the broken or 2219# incompatible versions: 2220# SysV /etc/install, /usr/sbin/install 2221# SunOS /usr/etc/install 2222# IRIX /sbin/install 2223# AIX /bin/install 2224# AmigaOS /C/install, which installs bootblocks on floppy discs 2225# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2226# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2227# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2228# OS/2's system install, which has a completely different semantic 2229# ./install, which can be erroneously created by make from ./install.sh. 2230# Reject install programs that cannot install multiple files. 2231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2232$as_echo_n "checking for a BSD-compatible install... " >&6; } 2233if test -z "$INSTALL"; then 2234if ${ac_cv_path_install+:} false; then : 2235 $as_echo_n "(cached) " >&6 2236else 2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2238for as_dir in $PATH 2239do 2240 IFS=$as_save_IFS 2241 test -z "$as_dir" && as_dir=. 2242 # Account for people who put trailing slashes in PATH elements. 2243case $as_dir/ in #(( 2244 ./ | .// | /[cC]/* | \ 2245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2246 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2247 /usr/ucb/* ) ;; 2248 *) 2249 # OSF1 and SCO ODT 3.0 have their own names for install. 2250 # Don't use installbsd from OSF since it installs stuff as root 2251 # by default. 2252 for ac_prog in ginstall scoinst install; do 2253 for ac_exec_ext in '' $ac_executable_extensions; do 2254 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2255 if test $ac_prog = install && 2256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2257 # AIX install. It has an incompatible calling convention. 2258 : 2259 elif test $ac_prog = install && 2260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2261 # program-specific install script used by HP pwplus--don't use. 2262 : 2263 else 2264 rm -rf conftest.one conftest.two conftest.dir 2265 echo one > conftest.one 2266 echo two > conftest.two 2267 mkdir conftest.dir 2268 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2269 test -s conftest.one && test -s conftest.two && 2270 test -s conftest.dir/conftest.one && 2271 test -s conftest.dir/conftest.two 2272 then 2273 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2274 break 3 2275 fi 2276 fi 2277 fi 2278 done 2279 done 2280 ;; 2281esac 2282 2283 done 2284IFS=$as_save_IFS 2285 2286rm -rf conftest.one conftest.two conftest.dir 2287 2288fi 2289 if test "${ac_cv_path_install+set}" = set; then 2290 INSTALL=$ac_cv_path_install 2291 else 2292 # As a last resort, use the slow shell script. Don't cache a 2293 # value for INSTALL within a source directory, because that will 2294 # break other packages using the cache if that directory is 2295 # removed, or if the value is a relative name. 2296 INSTALL=$ac_install_sh 2297 fi 2298fi 2299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2300$as_echo "$INSTALL" >&6; } 2301 2302# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2303# It thinks the first close brace ends the variable substitution. 2304test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2305 2306test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2307 2308test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2309 2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2311$as_echo_n "checking whether build environment is sane... " >&6; } 2312# Reject unsafe characters in $srcdir or the absolute working directory 2313# name. Accept space and tab only in the latter. 2314am_lf=' 2315' 2316case `pwd` in 2317 *[\\\"\#\$\&\'\`$am_lf]*) 2318 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2319esac 2320case $srcdir in 2321 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2322 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2323esac 2324 2325# Do 'set' in a subshell so we don't clobber the current shell's 2326# arguments. Must try -L first in case configure is actually a 2327# symlink; some systems play weird games with the mod time of symlinks 2328# (eg FreeBSD returns the mod time of the symlink's containing 2329# directory). 2330if ( 2331 am_has_slept=no 2332 for am_try in 1 2; do 2333 echo "timestamp, slept: $am_has_slept" > conftest.file 2334 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2335 if test "$*" = "X"; then 2336 # -L didn't work. 2337 set X `ls -t "$srcdir/configure" conftest.file` 2338 fi 2339 if test "$*" != "X $srcdir/configure conftest.file" \ 2340 && test "$*" != "X conftest.file $srcdir/configure"; then 2341 2342 # If neither matched, then we have a broken ls. This can happen 2343 # if, for instance, CONFIG_SHELL is bash and it inherits a 2344 # broken ls alias from the environment. This has actually 2345 # happened. Such a system could not be considered "sane". 2346 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2347 alias in your environment" "$LINENO" 5 2348 fi 2349 if test "$2" = conftest.file || test $am_try -eq 2; then 2350 break 2351 fi 2352 # Just in case. 2353 sleep 1 2354 am_has_slept=yes 2355 done 2356 test "$2" = conftest.file 2357 ) 2358then 2359 # Ok. 2360 : 2361else 2362 as_fn_error $? "newly created file is older than distributed files! 2363Check your system clock" "$LINENO" 5 2364fi 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2366$as_echo "yes" >&6; } 2367# If we didn't sleep, we still need to ensure time stamps of config.status and 2368# generated files are strictly newer. 2369am_sleep_pid= 2370if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2371 ( sleep 1 ) & 2372 am_sleep_pid=$! 2373fi 2374 2375rm -f conftest.file 2376 2377test "$program_prefix" != NONE && 2378 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2379# Use a double $ so make ignores it. 2380test "$program_suffix" != NONE && 2381 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2382# Double any \ or $. 2383# By default was `s,x,x', remove it if useless. 2384ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2385program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2386 2387# Expand $ac_aux_dir to an absolute path. 2388am_aux_dir=`cd "$ac_aux_dir" && pwd` 2389 2390if test x"${MISSING+set}" != xset; then 2391 case $am_aux_dir in 2392 *\ * | *\ *) 2393 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2394 *) 2395 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2396 esac 2397fi 2398# Use eval to expand $SHELL 2399if eval "$MISSING --is-lightweight"; then 2400 am_missing_run="$MISSING " 2401else 2402 am_missing_run= 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2404$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2405fi 2406 2407if test x"${install_sh+set}" != xset; then 2408 case $am_aux_dir in 2409 *\ * | *\ *) 2410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2411 *) 2412 install_sh="\${SHELL} $am_aux_dir/install-sh" 2413 esac 2414fi 2415 2416# Installed binaries are usually stripped using 'strip' when the user 2417# run "make install-strip". However 'strip' might not be the right 2418# tool to use in cross-compilation environments, therefore Automake 2419# will honor the 'STRIP' environment variable to overrule this program. 2420if test "$cross_compiling" != no; then 2421 if test -n "$ac_tool_prefix"; then 2422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2423set dummy ${ac_tool_prefix}strip; ac_word=$2 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2425$as_echo_n "checking for $ac_word... " >&6; } 2426if ${ac_cv_prog_STRIP+:} false; then : 2427 $as_echo_n "(cached) " >&6 2428else 2429 if test -n "$STRIP"; then 2430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2431else 2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433for as_dir in $PATH 2434do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2439 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2441 break 2 2442 fi 2443done 2444 done 2445IFS=$as_save_IFS 2446 2447fi 2448fi 2449STRIP=$ac_cv_prog_STRIP 2450if test -n "$STRIP"; then 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2452$as_echo "$STRIP" >&6; } 2453else 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2455$as_echo "no" >&6; } 2456fi 2457 2458 2459fi 2460if test -z "$ac_cv_prog_STRIP"; then 2461 ac_ct_STRIP=$STRIP 2462 # Extract the first word of "strip", so it can be a program name with args. 2463set dummy strip; ac_word=$2 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2465$as_echo_n "checking for $ac_word... " >&6; } 2466if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 if test -n "$ac_ct_STRIP"; then 2470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2479 ac_cv_prog_ac_ct_STRIP="strip" 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484 done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2490if test -n "$ac_ct_STRIP"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2492$as_echo "$ac_ct_STRIP" >&6; } 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2495$as_echo "no" >&6; } 2496fi 2497 2498 if test "x$ac_ct_STRIP" = x; then 2499 STRIP=":" 2500 else 2501 case $cross_compiling:$ac_tool_warned in 2502yes:) 2503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2505ac_tool_warned=yes ;; 2506esac 2507 STRIP=$ac_ct_STRIP 2508 fi 2509else 2510 STRIP="$ac_cv_prog_STRIP" 2511fi 2512 2513fi 2514INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2515 2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2517$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2518if test -z "$MKDIR_P"; then 2519 if ${ac_cv_path_mkdir+:} false; then : 2520 $as_echo_n "(cached) " >&6 2521else 2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2523for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2524do 2525 IFS=$as_save_IFS 2526 test -z "$as_dir" && as_dir=. 2527 for ac_prog in mkdir gmkdir; do 2528 for ac_exec_ext in '' $ac_executable_extensions; do 2529 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2531 'mkdir (GNU coreutils) '* | \ 2532 'mkdir (coreutils) '* | \ 2533 'mkdir (fileutils) '4.1*) 2534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2535 break 3;; 2536 esac 2537 done 2538 done 2539 done 2540IFS=$as_save_IFS 2541 2542fi 2543 2544 test -d ./--version && rmdir ./--version 2545 if test "${ac_cv_path_mkdir+set}" = set; then 2546 MKDIR_P="$ac_cv_path_mkdir -p" 2547 else 2548 # As a last resort, use the slow shell script. Don't cache a 2549 # value for MKDIR_P within a source directory, because that will 2550 # break other packages using the cache if that directory is 2551 # removed, or if the value is a relative name. 2552 MKDIR_P="$ac_install_sh -d" 2553 fi 2554fi 2555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2556$as_echo "$MKDIR_P" >&6; } 2557 2558for ac_prog in gawk mawk nawk awk 2559do 2560 # Extract the first word of "$ac_prog", so it can be a program name with args. 2561set dummy $ac_prog; ac_word=$2 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2563$as_echo_n "checking for $ac_word... " >&6; } 2564if ${ac_cv_prog_AWK+:} false; then : 2565 $as_echo_n "(cached) " >&6 2566else 2567 if test -n "$AWK"; then 2568 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2569else 2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2577 ac_cv_prog_AWK="$ac_prog" 2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2579 break 2 2580 fi 2581done 2582 done 2583IFS=$as_save_IFS 2584 2585fi 2586fi 2587AWK=$ac_cv_prog_AWK 2588if test -n "$AWK"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2590$as_echo "$AWK" >&6; } 2591else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2593$as_echo "no" >&6; } 2594fi 2595 2596 2597 test -n "$AWK" && break 2598done 2599 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2601$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2602set x ${MAKE-make} 2603ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2604if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2605 $as_echo_n "(cached) " >&6 2606else 2607 cat >conftest.make <<\_ACEOF 2608SHELL = /bin/sh 2609all: 2610 @echo '@@@%%%=$(MAKE)=@@@%%%' 2611_ACEOF 2612# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2613case `${MAKE-make} -f conftest.make 2>/dev/null` in 2614 *@@@%%%=?*=@@@%%%*) 2615 eval ac_cv_prog_make_${ac_make}_set=yes;; 2616 *) 2617 eval ac_cv_prog_make_${ac_make}_set=no;; 2618esac 2619rm -f conftest.make 2620fi 2621if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2623$as_echo "yes" >&6; } 2624 SET_MAKE= 2625else 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2627$as_echo "no" >&6; } 2628 SET_MAKE="MAKE=${MAKE-make}" 2629fi 2630 2631rm -rf .tst 2>/dev/null 2632mkdir .tst 2>/dev/null 2633if test -d .tst; then 2634 am__leading_dot=. 2635else 2636 am__leading_dot=_ 2637fi 2638rmdir .tst 2>/dev/null 2639 2640# Check whether --enable-silent-rules was given. 2641if test "${enable_silent_rules+set}" = set; then : 2642 enableval=$enable_silent_rules; 2643fi 2644 2645case $enable_silent_rules in # ((( 2646 yes) AM_DEFAULT_VERBOSITY=0;; 2647 no) AM_DEFAULT_VERBOSITY=1;; 2648 *) AM_DEFAULT_VERBOSITY=1;; 2649esac 2650am_make=${MAKE-make} 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2652$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2653if ${am_cv_make_support_nested_variables+:} false; then : 2654 $as_echo_n "(cached) " >&6 2655else 2656 if $as_echo 'TRUE=$(BAR$(V)) 2657BAR0=false 2658BAR1=true 2659V=1 2660am__doit: 2661 @$(TRUE) 2662.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2663 am_cv_make_support_nested_variables=yes 2664else 2665 am_cv_make_support_nested_variables=no 2666fi 2667fi 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2669$as_echo "$am_cv_make_support_nested_variables" >&6; } 2670if test $am_cv_make_support_nested_variables = yes; then 2671 AM_V='$(V)' 2672 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2673else 2674 AM_V=$AM_DEFAULT_VERBOSITY 2675 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2676fi 2677AM_BACKSLASH='\' 2678 2679if test "`cd $srcdir && pwd`" != "`pwd`"; then 2680 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2681 # is not polluted with repeated "-I." 2682 am__isrc=' -I$(srcdir)' 2683 # test to see if srcdir already configured 2684 if test -f $srcdir/config.status; then 2685 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2686 fi 2687fi 2688 2689# test whether we have cygpath 2690if test -z "$CYGPATH_W"; then 2691 if (cygpath --version) >/dev/null 2>/dev/null; then 2692 CYGPATH_W='cygpath -w' 2693 else 2694 CYGPATH_W=echo 2695 fi 2696fi 2697 2698 2699# Define the identity of the package. 2700 PACKAGE='bitmap' 2701 VERSION='1.0.8' 2702 2703 2704cat >>confdefs.h <<_ACEOF 2705#define PACKAGE "$PACKAGE" 2706_ACEOF 2707 2708 2709cat >>confdefs.h <<_ACEOF 2710#define VERSION "$VERSION" 2711_ACEOF 2712 2713# Some tools Automake needs. 2714 2715ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2716 2717 2718AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2719 2720 2721AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2722 2723 2724AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2725 2726 2727MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2728 2729# For better backward compatibility. To be removed once Automake 1.9.x 2730# dies out for good. For more background, see: 2731# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2732# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2733mkdir_p='$(MKDIR_P)' 2734 2735# We need awk for the "check" target (and possibly the TAP driver). The 2736# system "awk" is bad on some platforms. 2737# Always define AMTAR for backward compatibility. Yes, it's still used 2738# in the wild :-( We should find a proper way to deprecate it ... 2739AMTAR='$${TAR-tar}' 2740 2741 2742# We'll loop over all known methods to create a tar archive until one works. 2743_am_tools='gnutar pax cpio none' 2744 2745am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2746 2747 2748 2749 2750 2751 2752# POSIX will say in a future version that running "rm -f" with no argument 2753# is OK; and we want to be able to make that assumption in our Makefile 2754# recipes. So use an aggressive probe to check that the usage we want is 2755# actually supported "in the wild" to an acceptable degree. 2756# See automake bug#10828. 2757# To make any issue more visible, cause the running configure to be aborted 2758# by default if the 'rm' program in use doesn't match our expectations; the 2759# user can still override this though. 2760if rm -f && rm -fr && rm -rf; then : OK; else 2761 cat >&2 <<'END' 2762Oops! 2763 2764Your 'rm' program seems unable to run without file operands specified 2765on the command line, even when the '-f' option is present. This is contrary 2766to the behaviour of most rm programs out there, and not conforming with 2767the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2768 2769Please tell bug-automake@gnu.org about your system, including the value 2770of your $PATH and any error possibly output before this message. This 2771can help us improve future automake versions. 2772 2773END 2774 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2775 echo 'Configuration will proceed anyway, since you have set the' >&2 2776 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2777 echo >&2 2778 else 2779 cat >&2 <<'END' 2780Aborting the configuration process, to ensure you take notice of the issue. 2781 2782You can download and install GNU coreutils to get an 'rm' implementation 2783that behaves properly: <http://www.gnu.org/software/coreutils/>. 2784 2785If you want to complete the configuration process using your problematic 2786'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2787to "yes", and re-run configure. 2788 2789END 2790 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2791 fi 2792fi 2793 2794 2795# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807DEPDIR="${am__leading_dot}deps" 2808 2809ac_config_commands="$ac_config_commands depfiles" 2810 2811 2812am_make=${MAKE-make} 2813cat > confinc << 'END' 2814am__doit: 2815 @echo this is the am__doit target 2816.PHONY: am__doit 2817END 2818# If we don't find an include directive, just comment out the code. 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2820$as_echo_n "checking for style of include used by $am_make... " >&6; } 2821am__include="#" 2822am__quote= 2823_am_result=none 2824# First try GNU make style include. 2825echo "include confinc" > confmf 2826# Ignore all kinds of additional output from 'make'. 2827case `$am_make -s -f confmf 2> /dev/null` in #( 2828*the\ am__doit\ target*) 2829 am__include=include 2830 am__quote= 2831 _am_result=GNU 2832 ;; 2833esac 2834# Now try BSD make style include. 2835if test "$am__include" = "#"; then 2836 echo '.include "confinc"' > confmf 2837 case `$am_make -s -f confmf 2> /dev/null` in #( 2838 *the\ am__doit\ target*) 2839 am__include=.include 2840 am__quote="\"" 2841 _am_result=BSD 2842 ;; 2843 esac 2844fi 2845 2846 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2848$as_echo "$_am_result" >&6; } 2849rm -f confinc confmf 2850 2851# Check whether --enable-dependency-tracking was given. 2852if test "${enable_dependency_tracking+set}" = set; then : 2853 enableval=$enable_dependency_tracking; 2854fi 2855 2856if test "x$enable_dependency_tracking" != xno; then 2857 am_depcomp="$ac_aux_dir/depcomp" 2858 AMDEPBACKSLASH='\' 2859 am__nodep='_no' 2860fi 2861 if test "x$enable_dependency_tracking" != xno; then 2862 AMDEP_TRUE= 2863 AMDEP_FALSE='#' 2864else 2865 AMDEP_TRUE='#' 2866 AMDEP_FALSE= 2867fi 2868 2869 2870ac_ext=c 2871ac_cpp='$CPP $CPPFLAGS' 2872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2874ac_compiler_gnu=$ac_cv_c_compiler_gnu 2875if test -n "$ac_tool_prefix"; then 2876 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2877set dummy ${ac_tool_prefix}gcc; ac_word=$2 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2879$as_echo_n "checking for $ac_word... " >&6; } 2880if ${ac_cv_prog_CC+:} false; then : 2881 $as_echo_n "(cached) " >&6 2882else 2883 if test -n "$CC"; then 2884 ac_cv_prog_CC="$CC" # Let the user override the test. 2885else 2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887for as_dir in $PATH 2888do 2889 IFS=$as_save_IFS 2890 test -z "$as_dir" && as_dir=. 2891 for ac_exec_ext in '' $ac_executable_extensions; do 2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2893 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2895 break 2 2896 fi 2897done 2898 done 2899IFS=$as_save_IFS 2900 2901fi 2902fi 2903CC=$ac_cv_prog_CC 2904if test -n "$CC"; then 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2906$as_echo "$CC" >&6; } 2907else 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2909$as_echo "no" >&6; } 2910fi 2911 2912 2913fi 2914if test -z "$ac_cv_prog_CC"; then 2915 ac_ct_CC=$CC 2916 # Extract the first word of "gcc", so it can be a program name with args. 2917set dummy gcc; ac_word=$2 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2919$as_echo_n "checking for $ac_word... " >&6; } 2920if ${ac_cv_prog_ac_ct_CC+:} false; then : 2921 $as_echo_n "(cached) " >&6 2922else 2923 if test -n "$ac_ct_CC"; then 2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2925else 2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH 2928do 2929 IFS=$as_save_IFS 2930 test -z "$as_dir" && as_dir=. 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2933 ac_cv_prog_ac_ct_CC="gcc" 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938 done 2939IFS=$as_save_IFS 2940 2941fi 2942fi 2943ac_ct_CC=$ac_cv_prog_ac_ct_CC 2944if test -n "$ac_ct_CC"; then 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2946$as_echo "$ac_ct_CC" >&6; } 2947else 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949$as_echo "no" >&6; } 2950fi 2951 2952 if test "x$ac_ct_CC" = x; then 2953 CC="" 2954 else 2955 case $cross_compiling:$ac_tool_warned in 2956yes:) 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2959ac_tool_warned=yes ;; 2960esac 2961 CC=$ac_ct_CC 2962 fi 2963else 2964 CC="$ac_cv_prog_CC" 2965fi 2966 2967if test -z "$CC"; then 2968 if test -n "$ac_tool_prefix"; then 2969 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2970set dummy ${ac_tool_prefix}cc; ac_word=$2 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2972$as_echo_n "checking for $ac_word... " >&6; } 2973if ${ac_cv_prog_CC+:} false; then : 2974 $as_echo_n "(cached) " >&6 2975else 2976 if test -n "$CC"; then 2977 ac_cv_prog_CC="$CC" # Let the user override the test. 2978else 2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980for as_dir in $PATH 2981do 2982 IFS=$as_save_IFS 2983 test -z "$as_dir" && as_dir=. 2984 for ac_exec_ext in '' $ac_executable_extensions; do 2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2986 ac_cv_prog_CC="${ac_tool_prefix}cc" 2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2988 break 2 2989 fi 2990done 2991 done 2992IFS=$as_save_IFS 2993 2994fi 2995fi 2996CC=$ac_cv_prog_CC 2997if test -n "$CC"; then 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2999$as_echo "$CC" >&6; } 3000else 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3002$as_echo "no" >&6; } 3003fi 3004 3005 3006 fi 3007fi 3008if test -z "$CC"; then 3009 # Extract the first word of "cc", so it can be a program name with args. 3010set dummy cc; ac_word=$2 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012$as_echo_n "checking for $ac_word... " >&6; } 3013if ${ac_cv_prog_CC+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 if test -n "$CC"; then 3017 ac_cv_prog_CC="$CC" # Let the user override the test. 3018else 3019 ac_prog_rejected=no 3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3021for as_dir in $PATH 3022do 3023 IFS=$as_save_IFS 3024 test -z "$as_dir" && as_dir=. 3025 for ac_exec_ext in '' $ac_executable_extensions; do 3026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3027 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3028 ac_prog_rejected=yes 3029 continue 3030 fi 3031 ac_cv_prog_CC="cc" 3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035done 3036 done 3037IFS=$as_save_IFS 3038 3039if test $ac_prog_rejected = yes; then 3040 # We found a bogon in the path, so make sure we never use it. 3041 set dummy $ac_cv_prog_CC 3042 shift 3043 if test $# != 0; then 3044 # We chose a different compiler from the bogus one. 3045 # However, it has the same basename, so the bogon will be chosen 3046 # first if we set CC to just the basename; use the full file name. 3047 shift 3048 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3049 fi 3050fi 3051fi 3052fi 3053CC=$ac_cv_prog_CC 3054if test -n "$CC"; then 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3056$as_echo "$CC" >&6; } 3057else 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3059$as_echo "no" >&6; } 3060fi 3061 3062 3063fi 3064if test -z "$CC"; then 3065 if test -n "$ac_tool_prefix"; then 3066 for ac_prog in cl.exe 3067 do 3068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3069set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_CC+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$CC"; then 3076 ac_cv_prog_CC="$CC" # Let the user override the test. 3077else 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090 done 3091IFS=$as_save_IFS 3092 3093fi 3094fi 3095CC=$ac_cv_prog_CC 3096if test -n "$CC"; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3098$as_echo "$CC" >&6; } 3099else 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101$as_echo "no" >&6; } 3102fi 3103 3104 3105 test -n "$CC" && break 3106 done 3107fi 3108if test -z "$CC"; then 3109 ac_ct_CC=$CC 3110 for ac_prog in cl.exe 3111do 3112 # Extract the first word of "$ac_prog", so it can be a program name with args. 3113set dummy $ac_prog; ac_word=$2 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3115$as_echo_n "checking for $ac_word... " >&6; } 3116if ${ac_cv_prog_ac_ct_CC+:} false; then : 3117 $as_echo_n "(cached) " >&6 3118else 3119 if test -n "$ac_ct_CC"; then 3120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3121else 3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3123for as_dir in $PATH 3124do 3125 IFS=$as_save_IFS 3126 test -z "$as_dir" && as_dir=. 3127 for ac_exec_ext in '' $ac_executable_extensions; do 3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3129 ac_cv_prog_ac_ct_CC="$ac_prog" 3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3131 break 2 3132 fi 3133done 3134 done 3135IFS=$as_save_IFS 3136 3137fi 3138fi 3139ac_ct_CC=$ac_cv_prog_ac_ct_CC 3140if test -n "$ac_ct_CC"; then 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3142$as_echo "$ac_ct_CC" >&6; } 3143else 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3145$as_echo "no" >&6; } 3146fi 3147 3148 3149 test -n "$ac_ct_CC" && break 3150done 3151 3152 if test "x$ac_ct_CC" = x; then 3153 CC="" 3154 else 3155 case $cross_compiling:$ac_tool_warned in 3156yes:) 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3159ac_tool_warned=yes ;; 3160esac 3161 CC=$ac_ct_CC 3162 fi 3163fi 3164 3165fi 3166 3167 3168test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3170as_fn_error $? "no acceptable C compiler found in \$PATH 3171See \`config.log' for more details" "$LINENO" 5; } 3172 3173# Provide some information about the compiler. 3174$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3175set X $ac_compile 3176ac_compiler=$2 3177for ac_option in --version -v -V -qversion; do 3178 { { ac_try="$ac_compiler $ac_option >&5" 3179case "(($ac_try" in 3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3181 *) ac_try_echo=$ac_try;; 3182esac 3183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3184$as_echo "$ac_try_echo"; } >&5 3185 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3186 ac_status=$? 3187 if test -s conftest.err; then 3188 sed '10a\ 3189... rest of stderr output deleted ... 3190 10q' conftest.err >conftest.er1 3191 cat conftest.er1 >&5 3192 fi 3193 rm -f conftest.er1 conftest.err 3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3195 test $ac_status = 0; } 3196done 3197 3198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3199/* end confdefs.h. */ 3200 3201int 3202main () 3203{ 3204 3205 ; 3206 return 0; 3207} 3208_ACEOF 3209ac_clean_files_save=$ac_clean_files 3210ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3211# Try to create an executable without -o first, disregard a.out. 3212# It will help us diagnose broken compilers, and finding out an intuition 3213# of exeext. 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3215$as_echo_n "checking whether the C compiler works... " >&6; } 3216ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3217 3218# The possible output files: 3219ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3220 3221ac_rmfiles= 3222for ac_file in $ac_files 3223do 3224 case $ac_file in 3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3226 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3227 esac 3228done 3229rm -f $ac_rmfiles 3230 3231if { { ac_try="$ac_link_default" 3232case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235esac 3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3237$as_echo "$ac_try_echo"; } >&5 3238 (eval "$ac_link_default") 2>&5 3239 ac_status=$? 3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3241 test $ac_status = 0; }; then : 3242 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3243# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3244# in a Makefile. We should not override ac_cv_exeext if it was cached, 3245# so that the user can short-circuit this test for compilers unknown to 3246# Autoconf. 3247for ac_file in $ac_files '' 3248do 3249 test -f "$ac_file" || continue 3250 case $ac_file in 3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3252 ;; 3253 [ab].out ) 3254 # We found the default executable, but exeext='' is most 3255 # certainly right. 3256 break;; 3257 *.* ) 3258 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3259 then :; else 3260 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3261 fi 3262 # We set ac_cv_exeext here because the later test for it is not 3263 # safe: cross compilers may not add the suffix if given an `-o' 3264 # argument, so we may need to know it at that point already. 3265 # Even if this section looks crufty: it has the advantage of 3266 # actually working. 3267 break;; 3268 * ) 3269 break;; 3270 esac 3271done 3272test "$ac_cv_exeext" = no && ac_cv_exeext= 3273 3274else 3275 ac_file='' 3276fi 3277if test -z "$ac_file"; then : 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279$as_echo "no" >&6; } 3280$as_echo "$as_me: failed program was:" >&5 3281sed 's/^/| /' conftest.$ac_ext >&5 3282 3283{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3285as_fn_error 77 "C compiler cannot create executables 3286See \`config.log' for more details" "$LINENO" 5; } 3287else 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3289$as_echo "yes" >&6; } 3290fi 3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3292$as_echo_n "checking for C compiler default output file name... " >&6; } 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3294$as_echo "$ac_file" >&6; } 3295ac_exeext=$ac_cv_exeext 3296 3297rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3298ac_clean_files=$ac_clean_files_save 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3300$as_echo_n "checking for suffix of executables... " >&6; } 3301if { { ac_try="$ac_link" 3302case "(($ac_try" in 3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3304 *) ac_try_echo=$ac_try;; 3305esac 3306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3307$as_echo "$ac_try_echo"; } >&5 3308 (eval "$ac_link") 2>&5 3309 ac_status=$? 3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3311 test $ac_status = 0; }; then : 3312 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3313# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3314# work properly (i.e., refer to `conftest.exe'), while it won't with 3315# `rm'. 3316for ac_file in conftest.exe conftest conftest.*; do 3317 test -f "$ac_file" || continue 3318 case $ac_file in 3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3321 break;; 3322 * ) break;; 3323 esac 3324done 3325else 3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3328as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3329See \`config.log' for more details" "$LINENO" 5; } 3330fi 3331rm -f conftest conftest$ac_cv_exeext 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3333$as_echo "$ac_cv_exeext" >&6; } 3334 3335rm -f conftest.$ac_ext 3336EXEEXT=$ac_cv_exeext 3337ac_exeext=$EXEEXT 3338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340#include <stdio.h> 3341int 3342main () 3343{ 3344FILE *f = fopen ("conftest.out", "w"); 3345 return ferror (f) || fclose (f) != 0; 3346 3347 ; 3348 return 0; 3349} 3350_ACEOF 3351ac_clean_files="$ac_clean_files conftest.out" 3352# Check that the compiler produces executables we can run. If not, either 3353# the compiler is broken, or we cross compile. 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3355$as_echo_n "checking whether we are cross compiling... " >&6; } 3356if test "$cross_compiling" != yes; then 3357 { { ac_try="$ac_link" 3358case "(($ac_try" in 3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3360 *) ac_try_echo=$ac_try;; 3361esac 3362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3363$as_echo "$ac_try_echo"; } >&5 3364 (eval "$ac_link") 2>&5 3365 ac_status=$? 3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3367 test $ac_status = 0; } 3368 if { ac_try='./conftest$ac_cv_exeext' 3369 { { case "(($ac_try" in 3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3371 *) ac_try_echo=$ac_try;; 3372esac 3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3374$as_echo "$ac_try_echo"; } >&5 3375 (eval "$ac_try") 2>&5 3376 ac_status=$? 3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3378 test $ac_status = 0; }; }; then 3379 cross_compiling=no 3380 else 3381 if test "$cross_compiling" = maybe; then 3382 cross_compiling=yes 3383 else 3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3386as_fn_error $? "cannot run C compiled programs. 3387If you meant to cross compile, use \`--host'. 3388See \`config.log' for more details" "$LINENO" 5; } 3389 fi 3390 fi 3391fi 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3393$as_echo "$cross_compiling" >&6; } 3394 3395rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3396ac_clean_files=$ac_clean_files_save 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3398$as_echo_n "checking for suffix of object files... " >&6; } 3399if ${ac_cv_objext+:} false; then : 3400 $as_echo_n "(cached) " >&6 3401else 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403/* end confdefs.h. */ 3404 3405int 3406main () 3407{ 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413rm -f conftest.o conftest.obj 3414if { { ac_try="$ac_compile" 3415case "(($ac_try" in 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3417 *) ac_try_echo=$ac_try;; 3418esac 3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3420$as_echo "$ac_try_echo"; } >&5 3421 (eval "$ac_compile") 2>&5 3422 ac_status=$? 3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3424 test $ac_status = 0; }; then : 3425 for ac_file in conftest.o conftest.obj conftest.*; do 3426 test -f "$ac_file" || continue; 3427 case $ac_file in 3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3429 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3430 break;; 3431 esac 3432done 3433else 3434 $as_echo "$as_me: failed program was:" >&5 3435sed 's/^/| /' conftest.$ac_ext >&5 3436 3437{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3439as_fn_error $? "cannot compute suffix of object files: cannot compile 3440See \`config.log' for more details" "$LINENO" 5; } 3441fi 3442rm -f conftest.$ac_cv_objext conftest.$ac_ext 3443fi 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3445$as_echo "$ac_cv_objext" >&6; } 3446OBJEXT=$ac_cv_objext 3447ac_objext=$OBJEXT 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3449$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3450if ${ac_cv_c_compiler_gnu+:} false; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455 3456int 3457main () 3458{ 3459#ifndef __GNUC__ 3460 choke me 3461#endif 3462 3463 ; 3464 return 0; 3465} 3466_ACEOF 3467if ac_fn_c_try_compile "$LINENO"; then : 3468 ac_compiler_gnu=yes 3469else 3470 ac_compiler_gnu=no 3471fi 3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3473ac_cv_c_compiler_gnu=$ac_compiler_gnu 3474 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3477$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3478if test $ac_compiler_gnu = yes; then 3479 GCC=yes 3480else 3481 GCC= 3482fi 3483ac_test_CFLAGS=${CFLAGS+set} 3484ac_save_CFLAGS=$CFLAGS 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3486$as_echo_n "checking whether $CC accepts -g... " >&6; } 3487if ${ac_cv_prog_cc_g+:} false; then : 3488 $as_echo_n "(cached) " >&6 3489else 3490 ac_save_c_werror_flag=$ac_c_werror_flag 3491 ac_c_werror_flag=yes 3492 ac_cv_prog_cc_g=no 3493 CFLAGS="-g" 3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495/* end confdefs.h. */ 3496 3497int 3498main () 3499{ 3500 3501 ; 3502 return 0; 3503} 3504_ACEOF 3505if ac_fn_c_try_compile "$LINENO"; then : 3506 ac_cv_prog_cc_g=yes 3507else 3508 CFLAGS="" 3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511 3512int 3513main () 3514{ 3515 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520if ac_fn_c_try_compile "$LINENO"; then : 3521 3522else 3523 ac_c_werror_flag=$ac_save_c_werror_flag 3524 CFLAGS="-g" 3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3526/* end confdefs.h. */ 3527 3528int 3529main () 3530{ 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536if ac_fn_c_try_compile "$LINENO"; then : 3537 ac_cv_prog_cc_g=yes 3538fi 3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542fi 3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3544 ac_c_werror_flag=$ac_save_c_werror_flag 3545fi 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3547$as_echo "$ac_cv_prog_cc_g" >&6; } 3548if test "$ac_test_CFLAGS" = set; then 3549 CFLAGS=$ac_save_CFLAGS 3550elif test $ac_cv_prog_cc_g = yes; then 3551 if test "$GCC" = yes; then 3552 CFLAGS="-g -O2" 3553 else 3554 CFLAGS="-g" 3555 fi 3556else 3557 if test "$GCC" = yes; then 3558 CFLAGS="-O2" 3559 else 3560 CFLAGS= 3561 fi 3562fi 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3564$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3565if ${ac_cv_prog_cc_c89+:} false; then : 3566 $as_echo_n "(cached) " >&6 3567else 3568 ac_cv_prog_cc_c89=no 3569ac_save_CC=$CC 3570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3571/* end confdefs.h. */ 3572#include <stdarg.h> 3573#include <stdio.h> 3574struct stat; 3575/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3576struct buf { int x; }; 3577FILE * (*rcsopen) (struct buf *, struct stat *, int); 3578static char *e (p, i) 3579 char **p; 3580 int i; 3581{ 3582 return p[i]; 3583} 3584static char *f (char * (*g) (char **, int), char **p, ...) 3585{ 3586 char *s; 3587 va_list v; 3588 va_start (v,p); 3589 s = g (p, va_arg (v,int)); 3590 va_end (v); 3591 return s; 3592} 3593 3594/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3595 function prototypes and stuff, but not '\xHH' hex character constants. 3596 These don't provoke an error unfortunately, instead are silently treated 3597 as 'x'. The following induces an error, until -std is added to get 3598 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3599 array size at least. It's necessary to write '\x00'==0 to get something 3600 that's true only with -std. */ 3601int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3602 3603/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3604 inside strings and character constants. */ 3605#define FOO(x) 'x' 3606int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3607 3608int test (int i, double x); 3609struct s1 {int (*f) (int a);}; 3610struct s2 {int (*f) (double a);}; 3611int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3612int argc; 3613char **argv; 3614int 3615main () 3616{ 3617return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3618 ; 3619 return 0; 3620} 3621_ACEOF 3622for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3623 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3624do 3625 CC="$ac_save_CC $ac_arg" 3626 if ac_fn_c_try_compile "$LINENO"; then : 3627 ac_cv_prog_cc_c89=$ac_arg 3628fi 3629rm -f core conftest.err conftest.$ac_objext 3630 test "x$ac_cv_prog_cc_c89" != "xno" && break 3631done 3632rm -f conftest.$ac_ext 3633CC=$ac_save_CC 3634 3635fi 3636# AC_CACHE_VAL 3637case "x$ac_cv_prog_cc_c89" in 3638 x) 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3640$as_echo "none needed" >&6; } ;; 3641 xno) 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3643$as_echo "unsupported" >&6; } ;; 3644 *) 3645 CC="$CC $ac_cv_prog_cc_c89" 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3647$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3648esac 3649if test "x$ac_cv_prog_cc_c89" != xno; then : 3650 3651fi 3652 3653ac_ext=c 3654ac_cpp='$CPP $CPPFLAGS' 3655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3657ac_compiler_gnu=$ac_cv_c_compiler_gnu 3658 3659ac_ext=c 3660ac_cpp='$CPP $CPPFLAGS' 3661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3663ac_compiler_gnu=$ac_cv_c_compiler_gnu 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3665$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3666if ${am_cv_prog_cc_c_o+:} false; then : 3667 $as_echo_n "(cached) " >&6 3668else 3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3670/* end confdefs.h. */ 3671 3672int 3673main () 3674{ 3675 3676 ; 3677 return 0; 3678} 3679_ACEOF 3680 # Make sure it works both with $CC and with simple cc. 3681 # Following AC_PROG_CC_C_O, we do the test twice because some 3682 # compilers refuse to overwrite an existing .o file with -o, 3683 # though they will create one. 3684 am_cv_prog_cc_c_o=yes 3685 for am_i in 1 2; do 3686 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3687 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3688 ac_status=$? 3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3690 (exit $ac_status); } \ 3691 && test -f conftest2.$ac_objext; then 3692 : OK 3693 else 3694 am_cv_prog_cc_c_o=no 3695 break 3696 fi 3697 done 3698 rm -f core conftest* 3699 unset am_i 3700fi 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3702$as_echo "$am_cv_prog_cc_c_o" >&6; } 3703if test "$am_cv_prog_cc_c_o" != yes; then 3704 # Losing compiler, so override with the script. 3705 # FIXME: It is wrong to rewrite CC. 3706 # But if we don't then we get into trouble of one sort or another. 3707 # A longer-term fix would be to have automake use am__CC in this case, 3708 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3709 CC="$am_aux_dir/compile $CC" 3710fi 3711ac_ext=c 3712ac_cpp='$CPP $CPPFLAGS' 3713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3715ac_compiler_gnu=$ac_cv_c_compiler_gnu 3716 3717 3718depcc="$CC" am_compiler_list= 3719 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3721$as_echo_n "checking dependency style of $depcc... " >&6; } 3722if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3726 # We make a subdir and do the tests there. Otherwise we can end up 3727 # making bogus files that we don't know about and never remove. For 3728 # instance it was reported that on HP-UX the gcc test will end up 3729 # making a dummy file named 'D' -- because '-MD' means "put the output 3730 # in D". 3731 rm -rf conftest.dir 3732 mkdir conftest.dir 3733 # Copy depcomp to subdir because otherwise we won't find it if we're 3734 # using a relative directory. 3735 cp "$am_depcomp" conftest.dir 3736 cd conftest.dir 3737 # We will build objects and dependencies in a subdirectory because 3738 # it helps to detect inapplicable dependency modes. For instance 3739 # both Tru64's cc and ICC support -MD to output dependencies as a 3740 # side effect of compilation, but ICC will put the dependencies in 3741 # the current directory while Tru64 will put them in the object 3742 # directory. 3743 mkdir sub 3744 3745 am_cv_CC_dependencies_compiler_type=none 3746 if test "$am_compiler_list" = ""; then 3747 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3748 fi 3749 am__universal=false 3750 case " $depcc " in #( 3751 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3752 esac 3753 3754 for depmode in $am_compiler_list; do 3755 # Setup a source with many dependencies, because some compilers 3756 # like to wrap large dependency lists on column 80 (with \), and 3757 # we should not choose a depcomp mode which is confused by this. 3758 # 3759 # We need to recreate these files for each test, as the compiler may 3760 # overwrite some of them when testing with obscure command lines. 3761 # This happens at least with the AIX C compiler. 3762 : > sub/conftest.c 3763 for i in 1 2 3 4 5 6; do 3764 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3765 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3766 # Solaris 10 /bin/sh. 3767 echo '/* dummy */' > sub/conftst$i.h 3768 done 3769 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3770 3771 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3772 # mode. It turns out that the SunPro C++ compiler does not properly 3773 # handle '-M -o', and we need to detect this. Also, some Intel 3774 # versions had trouble with output in subdirs. 3775 am__obj=sub/conftest.${OBJEXT-o} 3776 am__minus_obj="-o $am__obj" 3777 case $depmode in 3778 gcc) 3779 # This depmode causes a compiler race in universal mode. 3780 test "$am__universal" = false || continue 3781 ;; 3782 nosideeffect) 3783 # After this tag, mechanisms are not by side-effect, so they'll 3784 # only be used when explicitly requested. 3785 if test "x$enable_dependency_tracking" = xyes; then 3786 continue 3787 else 3788 break 3789 fi 3790 ;; 3791 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3792 # This compiler won't grok '-c -o', but also, the minuso test has 3793 # not run yet. These depmodes are late enough in the game, and 3794 # so weak that their functioning should not be impacted. 3795 am__obj=conftest.${OBJEXT-o} 3796 am__minus_obj= 3797 ;; 3798 none) break ;; 3799 esac 3800 if depmode=$depmode \ 3801 source=sub/conftest.c object=$am__obj \ 3802 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3803 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3804 >/dev/null 2>conftest.err && 3805 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3806 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3807 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3808 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3809 # icc doesn't choke on unknown options, it will just issue warnings 3810 # or remarks (even with -Werror). So we grep stderr for any message 3811 # that says an option was ignored or not supported. 3812 # When given -MP, icc 7.0 and 7.1 complain thusly: 3813 # icc: Command line warning: ignoring option '-M'; no argument required 3814 # The diagnosis changed in icc 8.0: 3815 # icc: Command line remark: option '-MP' not supported 3816 if (grep 'ignoring option' conftest.err || 3817 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3818 am_cv_CC_dependencies_compiler_type=$depmode 3819 break 3820 fi 3821 fi 3822 done 3823 3824 cd .. 3825 rm -rf conftest.dir 3826else 3827 am_cv_CC_dependencies_compiler_type=none 3828fi 3829 3830fi 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3832$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3833CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3834 3835 if 3836 test "x$enable_dependency_tracking" != xno \ 3837 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3838 am__fastdepCC_TRUE= 3839 am__fastdepCC_FALSE='#' 3840else 3841 am__fastdepCC_TRUE='#' 3842 am__fastdepCC_FALSE= 3843fi 3844 3845 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3847$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3848if ${ac_cv_prog_cc_c99+:} false; then : 3849 $as_echo_n "(cached) " >&6 3850else 3851 ac_cv_prog_cc_c99=no 3852ac_save_CC=$CC 3853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854/* end confdefs.h. */ 3855#include <stdarg.h> 3856#include <stdbool.h> 3857#include <stdlib.h> 3858#include <wchar.h> 3859#include <stdio.h> 3860 3861// Check varargs macros. These examples are taken from C99 6.10.3.5. 3862#define debug(...) fprintf (stderr, __VA_ARGS__) 3863#define showlist(...) puts (#__VA_ARGS__) 3864#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3865static void 3866test_varargs_macros (void) 3867{ 3868 int x = 1234; 3869 int y = 5678; 3870 debug ("Flag"); 3871 debug ("X = %d\n", x); 3872 showlist (The first, second, and third items.); 3873 report (x>y, "x is %d but y is %d", x, y); 3874} 3875 3876// Check long long types. 3877#define BIG64 18446744073709551615ull 3878#define BIG32 4294967295ul 3879#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3880#if !BIG_OK 3881 your preprocessor is broken; 3882#endif 3883#if BIG_OK 3884#else 3885 your preprocessor is broken; 3886#endif 3887static long long int bignum = -9223372036854775807LL; 3888static unsigned long long int ubignum = BIG64; 3889 3890struct incomplete_array 3891{ 3892 int datasize; 3893 double data[]; 3894}; 3895 3896struct named_init { 3897 int number; 3898 const wchar_t *name; 3899 double average; 3900}; 3901 3902typedef const char *ccp; 3903 3904static inline int 3905test_restrict (ccp restrict text) 3906{ 3907 // See if C++-style comments work. 3908 // Iterate through items via the restricted pointer. 3909 // Also check for declarations in for loops. 3910 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3911 continue; 3912 return 0; 3913} 3914 3915// Check varargs and va_copy. 3916static void 3917test_varargs (const char *format, ...) 3918{ 3919 va_list args; 3920 va_start (args, format); 3921 va_list args_copy; 3922 va_copy (args_copy, args); 3923 3924 const char *str; 3925 int number; 3926 float fnumber; 3927 3928 while (*format) 3929 { 3930 switch (*format++) 3931 { 3932 case 's': // string 3933 str = va_arg (args_copy, const char *); 3934 break; 3935 case 'd': // int 3936 number = va_arg (args_copy, int); 3937 break; 3938 case 'f': // float 3939 fnumber = va_arg (args_copy, double); 3940 break; 3941 default: 3942 break; 3943 } 3944 } 3945 va_end (args_copy); 3946 va_end (args); 3947} 3948 3949int 3950main () 3951{ 3952 3953 // Check bool. 3954 _Bool success = false; 3955 3956 // Check restrict. 3957 if (test_restrict ("String literal") == 0) 3958 success = true; 3959 char *restrict newvar = "Another string"; 3960 3961 // Check varargs. 3962 test_varargs ("s, d' f .", "string", 65, 34.234); 3963 test_varargs_macros (); 3964 3965 // Check flexible array members. 3966 struct incomplete_array *ia = 3967 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3968 ia->datasize = 10; 3969 for (int i = 0; i < ia->datasize; ++i) 3970 ia->data[i] = i * 1.234; 3971 3972 // Check named initializers. 3973 struct named_init ni = { 3974 .number = 34, 3975 .name = L"Test wide string", 3976 .average = 543.34343, 3977 }; 3978 3979 ni.number = 58; 3980 3981 int dynamic_array[ni.number]; 3982 dynamic_array[ni.number - 1] = 543; 3983 3984 // work around unused variable warnings 3985 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3986 || dynamic_array[ni.number - 1] != 543); 3987 3988 ; 3989 return 0; 3990} 3991_ACEOF 3992for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3993do 3994 CC="$ac_save_CC $ac_arg" 3995 if ac_fn_c_try_compile "$LINENO"; then : 3996 ac_cv_prog_cc_c99=$ac_arg 3997fi 3998rm -f core conftest.err conftest.$ac_objext 3999 test "x$ac_cv_prog_cc_c99" != "xno" && break 4000done 4001rm -f conftest.$ac_ext 4002CC=$ac_save_CC 4003 4004fi 4005# AC_CACHE_VAL 4006case "x$ac_cv_prog_cc_c99" in 4007 x) 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4009$as_echo "none needed" >&6; } ;; 4010 xno) 4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4012$as_echo "unsupported" >&6; } ;; 4013 *) 4014 CC="$CC $ac_cv_prog_cc_c99" 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4016$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4017esac 4018if test "x$ac_cv_prog_cc_c99" != xno; then : 4019 4020fi 4021 4022 4023 4024ac_ext=c 4025ac_cpp='$CPP $CPPFLAGS' 4026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4028ac_compiler_gnu=$ac_cv_c_compiler_gnu 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4030$as_echo_n "checking how to run the C preprocessor... " >&6; } 4031# On Suns, sometimes $CPP names a directory. 4032if test -n "$CPP" && test -d "$CPP"; then 4033 CPP= 4034fi 4035if test -z "$CPP"; then 4036 if ${ac_cv_prog_CPP+:} false; then : 4037 $as_echo_n "(cached) " >&6 4038else 4039 # Double quotes because CPP needs to be expanded 4040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4041 do 4042 ac_preproc_ok=false 4043for ac_c_preproc_warn_flag in '' yes 4044do 4045 # Use a header file that comes with gcc, so configuring glibc 4046 # with a fresh cross-compiler works. 4047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4048 # <limits.h> exists even on freestanding compilers. 4049 # On the NeXT, cc -E runs the code through the compiler's parser, 4050 # not just through cpp. "Syntax error" is here to catch this case. 4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4052/* end confdefs.h. */ 4053#ifdef __STDC__ 4054# include <limits.h> 4055#else 4056# include <assert.h> 4057#endif 4058 Syntax error 4059_ACEOF 4060if ac_fn_c_try_cpp "$LINENO"; then : 4061 4062else 4063 # Broken: fails on valid input. 4064continue 4065fi 4066rm -f conftest.err conftest.i conftest.$ac_ext 4067 4068 # OK, works on sane cases. Now check whether nonexistent headers 4069 # can be detected and how. 4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4071/* end confdefs.h. */ 4072#include <ac_nonexistent.h> 4073_ACEOF 4074if ac_fn_c_try_cpp "$LINENO"; then : 4075 # Broken: success on invalid input. 4076continue 4077else 4078 # Passes both tests. 4079ac_preproc_ok=: 4080break 4081fi 4082rm -f conftest.err conftest.i conftest.$ac_ext 4083 4084done 4085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4086rm -f conftest.i conftest.err conftest.$ac_ext 4087if $ac_preproc_ok; then : 4088 break 4089fi 4090 4091 done 4092 ac_cv_prog_CPP=$CPP 4093 4094fi 4095 CPP=$ac_cv_prog_CPP 4096else 4097 ac_cv_prog_CPP=$CPP 4098fi 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4100$as_echo "$CPP" >&6; } 4101ac_preproc_ok=false 4102for ac_c_preproc_warn_flag in '' yes 4103do 4104 # Use a header file that comes with gcc, so configuring glibc 4105 # with a fresh cross-compiler works. 4106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4107 # <limits.h> exists even on freestanding compilers. 4108 # On the NeXT, cc -E runs the code through the compiler's parser, 4109 # not just through cpp. "Syntax error" is here to catch this case. 4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4111/* end confdefs.h. */ 4112#ifdef __STDC__ 4113# include <limits.h> 4114#else 4115# include <assert.h> 4116#endif 4117 Syntax error 4118_ACEOF 4119if ac_fn_c_try_cpp "$LINENO"; then : 4120 4121else 4122 # Broken: fails on valid input. 4123continue 4124fi 4125rm -f conftest.err conftest.i conftest.$ac_ext 4126 4127 # OK, works on sane cases. Now check whether nonexistent headers 4128 # can be detected and how. 4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4130/* end confdefs.h. */ 4131#include <ac_nonexistent.h> 4132_ACEOF 4133if ac_fn_c_try_cpp "$LINENO"; then : 4134 # Broken: success on invalid input. 4135continue 4136else 4137 # Passes both tests. 4138ac_preproc_ok=: 4139break 4140fi 4141rm -f conftest.err conftest.i conftest.$ac_ext 4142 4143done 4144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4145rm -f conftest.i conftest.err conftest.$ac_ext 4146if $ac_preproc_ok; then : 4147 4148else 4149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4151as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4152See \`config.log' for more details" "$LINENO" 5; } 4153fi 4154 4155ac_ext=c 4156ac_cpp='$CPP $CPPFLAGS' 4157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4159ac_compiler_gnu=$ac_cv_c_compiler_gnu 4160 4161 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4163$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4164if ${ac_cv_path_GREP+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 if test -z "$GREP"; then 4168 ac_path_GREP_found=false 4169 # Loop through the user's path and test for each of PROGNAME-LIST 4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4172do 4173 IFS=$as_save_IFS 4174 test -z "$as_dir" && as_dir=. 4175 for ac_prog in grep ggrep; do 4176 for ac_exec_ext in '' $ac_executable_extensions; do 4177 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4178 as_fn_executable_p "$ac_path_GREP" || continue 4179# Check for GNU ac_path_GREP and select it if it is found. 4180 # Check for GNU $ac_path_GREP 4181case `"$ac_path_GREP" --version 2>&1` in 4182*GNU*) 4183 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4184*) 4185 ac_count=0 4186 $as_echo_n 0123456789 >"conftest.in" 4187 while : 4188 do 4189 cat "conftest.in" "conftest.in" >"conftest.tmp" 4190 mv "conftest.tmp" "conftest.in" 4191 cp "conftest.in" "conftest.nl" 4192 $as_echo 'GREP' >> "conftest.nl" 4193 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4195 as_fn_arith $ac_count + 1 && ac_count=$as_val 4196 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4197 # Best one so far, save it but keep looking for a better one 4198 ac_cv_path_GREP="$ac_path_GREP" 4199 ac_path_GREP_max=$ac_count 4200 fi 4201 # 10*(2^10) chars as input seems more than enough 4202 test $ac_count -gt 10 && break 4203 done 4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4205esac 4206 4207 $ac_path_GREP_found && break 3 4208 done 4209 done 4210 done 4211IFS=$as_save_IFS 4212 if test -z "$ac_cv_path_GREP"; then 4213 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4214 fi 4215else 4216 ac_cv_path_GREP=$GREP 4217fi 4218 4219fi 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4221$as_echo "$ac_cv_path_GREP" >&6; } 4222 GREP="$ac_cv_path_GREP" 4223 4224 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4226$as_echo_n "checking for egrep... " >&6; } 4227if ${ac_cv_path_EGREP+:} false; then : 4228 $as_echo_n "(cached) " >&6 4229else 4230 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4231 then ac_cv_path_EGREP="$GREP -E" 4232 else 4233 if test -z "$EGREP"; then 4234 ac_path_EGREP_found=false 4235 # Loop through the user's path and test for each of PROGNAME-LIST 4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4237for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4238do 4239 IFS=$as_save_IFS 4240 test -z "$as_dir" && as_dir=. 4241 for ac_prog in egrep; do 4242 for ac_exec_ext in '' $ac_executable_extensions; do 4243 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4244 as_fn_executable_p "$ac_path_EGREP" || continue 4245# Check for GNU ac_path_EGREP and select it if it is found. 4246 # Check for GNU $ac_path_EGREP 4247case `"$ac_path_EGREP" --version 2>&1` in 4248*GNU*) 4249 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4250*) 4251 ac_count=0 4252 $as_echo_n 0123456789 >"conftest.in" 4253 while : 4254 do 4255 cat "conftest.in" "conftest.in" >"conftest.tmp" 4256 mv "conftest.tmp" "conftest.in" 4257 cp "conftest.in" "conftest.nl" 4258 $as_echo 'EGREP' >> "conftest.nl" 4259 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4261 as_fn_arith $ac_count + 1 && ac_count=$as_val 4262 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4263 # Best one so far, save it but keep looking for a better one 4264 ac_cv_path_EGREP="$ac_path_EGREP" 4265 ac_path_EGREP_max=$ac_count 4266 fi 4267 # 10*(2^10) chars as input seems more than enough 4268 test $ac_count -gt 10 && break 4269 done 4270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4271esac 4272 4273 $ac_path_EGREP_found && break 3 4274 done 4275 done 4276 done 4277IFS=$as_save_IFS 4278 if test -z "$ac_cv_path_EGREP"; then 4279 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4280 fi 4281else 4282 ac_cv_path_EGREP=$EGREP 4283fi 4284 4285 fi 4286fi 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4288$as_echo "$ac_cv_path_EGREP" >&6; } 4289 EGREP="$ac_cv_path_EGREP" 4290 4291 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4293$as_echo_n "checking for ANSI C header files... " >&6; } 4294if ${ac_cv_header_stdc+:} false; then : 4295 $as_echo_n "(cached) " >&6 4296else 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4298/* end confdefs.h. */ 4299#include <stdlib.h> 4300#include <stdarg.h> 4301#include <string.h> 4302#include <float.h> 4303 4304int 4305main () 4306{ 4307 4308 ; 4309 return 0; 4310} 4311_ACEOF 4312if ac_fn_c_try_compile "$LINENO"; then : 4313 ac_cv_header_stdc=yes 4314else 4315 ac_cv_header_stdc=no 4316fi 4317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4318 4319if test $ac_cv_header_stdc = yes; then 4320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4322/* end confdefs.h. */ 4323#include <string.h> 4324 4325_ACEOF 4326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4327 $EGREP "memchr" >/dev/null 2>&1; then : 4328 4329else 4330 ac_cv_header_stdc=no 4331fi 4332rm -f conftest* 4333 4334fi 4335 4336if test $ac_cv_header_stdc = yes; then 4337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339/* end confdefs.h. */ 4340#include <stdlib.h> 4341 4342_ACEOF 4343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4344 $EGREP "free" >/dev/null 2>&1; then : 4345 4346else 4347 ac_cv_header_stdc=no 4348fi 4349rm -f conftest* 4350 4351fi 4352 4353if test $ac_cv_header_stdc = yes; then 4354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4355 if test "$cross_compiling" = yes; then : 4356 : 4357else 4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4359/* end confdefs.h. */ 4360#include <ctype.h> 4361#include <stdlib.h> 4362#if ((' ' & 0x0FF) == 0x020) 4363# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4364# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4365#else 4366# define ISLOWER(c) \ 4367 (('a' <= (c) && (c) <= 'i') \ 4368 || ('j' <= (c) && (c) <= 'r') \ 4369 || ('s' <= (c) && (c) <= 'z')) 4370# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4371#endif 4372 4373#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4374int 4375main () 4376{ 4377 int i; 4378 for (i = 0; i < 256; i++) 4379 if (XOR (islower (i), ISLOWER (i)) 4380 || toupper (i) != TOUPPER (i)) 4381 return 2; 4382 return 0; 4383} 4384_ACEOF 4385if ac_fn_c_try_run "$LINENO"; then : 4386 4387else 4388 ac_cv_header_stdc=no 4389fi 4390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4391 conftest.$ac_objext conftest.beam conftest.$ac_ext 4392fi 4393 4394fi 4395fi 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4397$as_echo "$ac_cv_header_stdc" >&6; } 4398if test $ac_cv_header_stdc = yes; then 4399 4400$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4401 4402fi 4403 4404# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4406 inttypes.h stdint.h unistd.h 4407do : 4408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4409ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4410" 4411if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4412 cat >>confdefs.h <<_ACEOF 4413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4414_ACEOF 4415 4416fi 4417 4418done 4419 4420 4421 4422 4423 4424 4425ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4426if test "x$ac_cv_have_decl___clang__" = xyes; then : 4427 CLANGCC="yes" 4428else 4429 CLANGCC="no" 4430fi 4431 4432ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4433if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4434 INTELCC="yes" 4435else 4436 INTELCC="no" 4437fi 4438 4439ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4440if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4441 SUNCC="yes" 4442else 4443 SUNCC="no" 4444fi 4445 4446 4447 4448 4449if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4450 if test -n "$ac_tool_prefix"; then 4451 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4452set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4454$as_echo_n "checking for $ac_word... " >&6; } 4455if ${ac_cv_path_PKG_CONFIG+:} false; then : 4456 $as_echo_n "(cached) " >&6 4457else 4458 case $PKG_CONFIG in 4459 [\\/]* | ?:[\\/]*) 4460 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4461 ;; 4462 *) 4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4464for as_dir in $PATH 4465do 4466 IFS=$as_save_IFS 4467 test -z "$as_dir" && as_dir=. 4468 for ac_exec_ext in '' $ac_executable_extensions; do 4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4470 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4472 break 2 4473 fi 4474done 4475 done 4476IFS=$as_save_IFS 4477 4478 ;; 4479esac 4480fi 4481PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4482if test -n "$PKG_CONFIG"; then 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4484$as_echo "$PKG_CONFIG" >&6; } 4485else 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4487$as_echo "no" >&6; } 4488fi 4489 4490 4491fi 4492if test -z "$ac_cv_path_PKG_CONFIG"; then 4493 ac_pt_PKG_CONFIG=$PKG_CONFIG 4494 # Extract the first word of "pkg-config", so it can be a program name with args. 4495set dummy pkg-config; ac_word=$2 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4497$as_echo_n "checking for $ac_word... " >&6; } 4498if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 case $ac_pt_PKG_CONFIG in 4502 [\\/]* | ?:[\\/]*) 4503 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4504 ;; 4505 *) 4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4507for as_dir in $PATH 4508do 4509 IFS=$as_save_IFS 4510 test -z "$as_dir" && as_dir=. 4511 for ac_exec_ext in '' $ac_executable_extensions; do 4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4513 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4515 break 2 4516 fi 4517done 4518 done 4519IFS=$as_save_IFS 4520 4521 ;; 4522esac 4523fi 4524ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4525if test -n "$ac_pt_PKG_CONFIG"; then 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4527$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4528else 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4530$as_echo "no" >&6; } 4531fi 4532 4533 if test "x$ac_pt_PKG_CONFIG" = x; then 4534 PKG_CONFIG="" 4535 else 4536 case $cross_compiling:$ac_tool_warned in 4537yes:) 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4540ac_tool_warned=yes ;; 4541esac 4542 PKG_CONFIG=$ac_pt_PKG_CONFIG 4543 fi 4544else 4545 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4546fi 4547 4548fi 4549if test -n "$PKG_CONFIG"; then 4550 _pkg_min_version=0.9.0 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4552$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4553 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4555$as_echo "yes" >&6; } 4556 else 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4558$as_echo "no" >&6; } 4559 PKG_CONFIG="" 4560 fi 4561 4562fi 4563# Make sure we can run config.sub. 4564$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4565 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4566 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4568$as_echo_n "checking build system type... " >&6; } 4569if ${ac_cv_build+:} false; then : 4570 $as_echo_n "(cached) " >&6 4571else 4572 ac_build_alias=$build_alias 4573test "x$ac_build_alias" = x && 4574 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4575test "x$ac_build_alias" = x && 4576 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4577ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4579 4580fi 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4582$as_echo "$ac_cv_build" >&6; } 4583case $ac_cv_build in 4584*-*-*) ;; 4585*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4586esac 4587build=$ac_cv_build 4588ac_save_IFS=$IFS; IFS='-' 4589set x $ac_cv_build 4590shift 4591build_cpu=$1 4592build_vendor=$2 4593shift; shift 4594# Remember, the first character of IFS is used to create $*, 4595# except with old shells: 4596build_os=$* 4597IFS=$ac_save_IFS 4598case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4599 4600 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4602$as_echo_n "checking host system type... " >&6; } 4603if ${ac_cv_host+:} false; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 if test "x$host_alias" = x; then 4607 ac_cv_host=$ac_cv_build 4608else 4609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4610 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4611fi 4612 4613fi 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4615$as_echo "$ac_cv_host" >&6; } 4616case $ac_cv_host in 4617*-*-*) ;; 4618*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4619esac 4620host=$ac_cv_host 4621ac_save_IFS=$IFS; IFS='-' 4622set x $ac_cv_host 4623shift 4624host_cpu=$1 4625host_vendor=$2 4626shift; shift 4627# Remember, the first character of IFS is used to create $*, 4628# except with old shells: 4629host_os=$* 4630IFS=$ac_save_IFS 4631case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4632 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4635$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4636if ${ac_cv_path_SED+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4640 for ac_i in 1 2 3 4 5 6 7; do 4641 ac_script="$ac_script$as_nl$ac_script" 4642 done 4643 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4644 { ac_script=; unset ac_script;} 4645 if test -z "$SED"; then 4646 ac_path_SED_found=false 4647 # Loop through the user's path and test for each of PROGNAME-LIST 4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4649for as_dir in $PATH 4650do 4651 IFS=$as_save_IFS 4652 test -z "$as_dir" && as_dir=. 4653 for ac_prog in sed gsed; do 4654 for ac_exec_ext in '' $ac_executable_extensions; do 4655 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4656 as_fn_executable_p "$ac_path_SED" || continue 4657# Check for GNU ac_path_SED and select it if it is found. 4658 # Check for GNU $ac_path_SED 4659case `"$ac_path_SED" --version 2>&1` in 4660*GNU*) 4661 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4662*) 4663 ac_count=0 4664 $as_echo_n 0123456789 >"conftest.in" 4665 while : 4666 do 4667 cat "conftest.in" "conftest.in" >"conftest.tmp" 4668 mv "conftest.tmp" "conftest.in" 4669 cp "conftest.in" "conftest.nl" 4670 $as_echo '' >> "conftest.nl" 4671 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4673 as_fn_arith $ac_count + 1 && ac_count=$as_val 4674 if test $ac_count -gt ${ac_path_SED_max-0}; then 4675 # Best one so far, save it but keep looking for a better one 4676 ac_cv_path_SED="$ac_path_SED" 4677 ac_path_SED_max=$ac_count 4678 fi 4679 # 10*(2^10) chars as input seems more than enough 4680 test $ac_count -gt 10 && break 4681 done 4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4683esac 4684 4685 $ac_path_SED_found && break 3 4686 done 4687 done 4688 done 4689IFS=$as_save_IFS 4690 if test -z "$ac_cv_path_SED"; then 4691 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4692 fi 4693else 4694 ac_cv_path_SED=$SED 4695fi 4696 4697fi 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4699$as_echo "$ac_cv_path_SED" >&6; } 4700 SED="$ac_cv_path_SED" 4701 rm -f conftest.sed 4702 4703 4704 4705 4706 4707 4708# Check whether --enable-selective-werror was given. 4709if test "${enable_selective_werror+set}" = set; then : 4710 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4711else 4712 SELECTIVE_WERROR=yes 4713fi 4714 4715 4716 4717 4718 4719# -v is too short to test reliably with XORG_TESTSET_CFLAG 4720if test "x$SUNCC" = "xyes"; then 4721 BASE_CFLAGS="-v" 4722else 4723 BASE_CFLAGS="" 4724fi 4725 4726# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740xorg_testset_save_CFLAGS="$CFLAGS" 4741 4742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4747 $as_echo_n "(cached) " >&6 4748else 4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4750/* end confdefs.h. */ 4751int i; 4752_ACEOF 4753if ac_fn_c_try_compile "$LINENO"; then : 4754 xorg_cv_cc_flag_unknown_warning_option=yes 4755else 4756 xorg_cv_cc_flag_unknown_warning_option=no 4757fi 4758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4759fi 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4763 CFLAGS="$xorg_testset_save_CFLAGS" 4764fi 4765 4766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4769 fi 4770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4773if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_cc_flag_unused_command_line_argument=yes 4782else 4783 xorg_cv_cc_flag_unused_command_line_argument=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_cc_flag_unused_command_line_argument" >&5 4788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4790 CFLAGS="$xorg_testset_save_CFLAGS" 4791fi 4792 4793found="no" 4794 4795 if test $found = "no" ; then 4796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4798 fi 4799 4800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4802 fi 4803 4804 CFLAGS="$CFLAGS -Wall" 4805 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4807$as_echo_n "checking if $CC supports -Wall... " >&6; } 4808 cacheid=xorg_cv_cc_flag__Wall 4809 if eval \${$cacheid+:} false; then : 4810 $as_echo_n "(cached) " >&6 4811else 4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4813/* end confdefs.h. */ 4814int i; 4815int 4816main () 4817{ 4818 4819 ; 4820 return 0; 4821} 4822_ACEOF 4823if ac_fn_c_try_link "$LINENO"; then : 4824 eval $cacheid=yes 4825else 4826 eval $cacheid=no 4827fi 4828rm -f core conftest.err conftest.$ac_objext \ 4829 conftest$ac_exeext conftest.$ac_ext 4830fi 4831 4832 4833 CFLAGS="$xorg_testset_save_CFLAGS" 4834 4835 eval supported=\$$cacheid 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4837$as_echo "$supported" >&6; } 4838 if test "$supported" = "yes" ; then 4839 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4840 found="yes" 4841 fi 4842 fi 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858xorg_testset_save_CFLAGS="$CFLAGS" 4859 4860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4865 $as_echo_n "(cached) " >&6 4866else 4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4868/* end confdefs.h. */ 4869int i; 4870_ACEOF 4871if ac_fn_c_try_compile "$LINENO"; then : 4872 xorg_cv_cc_flag_unknown_warning_option=yes 4873else 4874 xorg_cv_cc_flag_unknown_warning_option=no 4875fi 4876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4877fi 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4881 CFLAGS="$xorg_testset_save_CFLAGS" 4882fi 4883 4884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4887 fi 4888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4895/* end confdefs.h. */ 4896int i; 4897_ACEOF 4898if ac_fn_c_try_compile "$LINENO"; then : 4899 xorg_cv_cc_flag_unused_command_line_argument=yes 4900else 4901 xorg_cv_cc_flag_unused_command_line_argument=no 4902fi 4903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4904fi 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4908 CFLAGS="$xorg_testset_save_CFLAGS" 4909fi 4910 4911found="no" 4912 4913 if test $found = "no" ; then 4914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4916 fi 4917 4918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4920 fi 4921 4922 CFLAGS="$CFLAGS -Wpointer-arith" 4923 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4925$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4926 cacheid=xorg_cv_cc_flag__Wpointer_arith 4927 if eval \${$cacheid+:} false; then : 4928 $as_echo_n "(cached) " >&6 4929else 4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4931/* end confdefs.h. */ 4932int i; 4933int 4934main () 4935{ 4936 4937 ; 4938 return 0; 4939} 4940_ACEOF 4941if ac_fn_c_try_link "$LINENO"; then : 4942 eval $cacheid=yes 4943else 4944 eval $cacheid=no 4945fi 4946rm -f core conftest.err conftest.$ac_objext \ 4947 conftest$ac_exeext conftest.$ac_ext 4948fi 4949 4950 4951 CFLAGS="$xorg_testset_save_CFLAGS" 4952 4953 eval supported=\$$cacheid 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4955$as_echo "$supported" >&6; } 4956 if test "$supported" = "yes" ; then 4957 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4958 found="yes" 4959 fi 4960 fi 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976xorg_testset_save_CFLAGS="$CFLAGS" 4977 4978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4983 $as_echo_n "(cached) " >&6 4984else 4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4986/* end confdefs.h. */ 4987int i; 4988_ACEOF 4989if ac_fn_c_try_compile "$LINENO"; then : 4990 xorg_cv_cc_flag_unknown_warning_option=yes 4991else 4992 xorg_cv_cc_flag_unknown_warning_option=no 4993fi 4994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4995fi 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4999 CFLAGS="$xorg_testset_save_CFLAGS" 5000fi 5001 5002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5005 fi 5006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013/* end confdefs.h. */ 5014int i; 5015_ACEOF 5016if ac_fn_c_try_compile "$LINENO"; then : 5017 xorg_cv_cc_flag_unused_command_line_argument=yes 5018else 5019 xorg_cv_cc_flag_unused_command_line_argument=no 5020fi 5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5022fi 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5026 CFLAGS="$xorg_testset_save_CFLAGS" 5027fi 5028 5029found="no" 5030 5031 if test $found = "no" ; then 5032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5034 fi 5035 5036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5038 fi 5039 5040 CFLAGS="$CFLAGS -Wmissing-declarations" 5041 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5043$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5044 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5045 if eval \${$cacheid+:} false; then : 5046 $as_echo_n "(cached) " >&6 5047else 5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5049/* end confdefs.h. */ 5050int i; 5051int 5052main () 5053{ 5054 5055 ; 5056 return 0; 5057} 5058_ACEOF 5059if ac_fn_c_try_link "$LINENO"; then : 5060 eval $cacheid=yes 5061else 5062 eval $cacheid=no 5063fi 5064rm -f core conftest.err conftest.$ac_objext \ 5065 conftest$ac_exeext conftest.$ac_ext 5066fi 5067 5068 5069 CFLAGS="$xorg_testset_save_CFLAGS" 5070 5071 eval supported=\$$cacheid 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5073$as_echo "$supported" >&6; } 5074 if test "$supported" = "yes" ; then 5075 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5076 found="yes" 5077 fi 5078 fi 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094xorg_testset_save_CFLAGS="$CFLAGS" 5095 5096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5104/* end confdefs.h. */ 5105int i; 5106_ACEOF 5107if ac_fn_c_try_compile "$LINENO"; then : 5108 xorg_cv_cc_flag_unknown_warning_option=yes 5109else 5110 xorg_cv_cc_flag_unknown_warning_option=no 5111fi 5112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5113fi 5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5117 CFLAGS="$xorg_testset_save_CFLAGS" 5118fi 5119 5120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5123 fi 5124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132int i; 5133_ACEOF 5134if ac_fn_c_try_compile "$LINENO"; then : 5135 xorg_cv_cc_flag_unused_command_line_argument=yes 5136else 5137 xorg_cv_cc_flag_unused_command_line_argument=no 5138fi 5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5140fi 5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5144 CFLAGS="$xorg_testset_save_CFLAGS" 5145fi 5146 5147found="no" 5148 5149 if test $found = "no" ; then 5150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5152 fi 5153 5154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5156 fi 5157 5158 CFLAGS="$CFLAGS -Wformat=2" 5159 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5161$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5162 cacheid=xorg_cv_cc_flag__Wformat_2 5163 if eval \${$cacheid+:} false; then : 5164 $as_echo_n "(cached) " >&6 5165else 5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5167/* end confdefs.h. */ 5168int i; 5169int 5170main () 5171{ 5172 5173 ; 5174 return 0; 5175} 5176_ACEOF 5177if ac_fn_c_try_link "$LINENO"; then : 5178 eval $cacheid=yes 5179else 5180 eval $cacheid=no 5181fi 5182rm -f core conftest.err conftest.$ac_objext \ 5183 conftest$ac_exeext conftest.$ac_ext 5184fi 5185 5186 5187 CFLAGS="$xorg_testset_save_CFLAGS" 5188 5189 eval supported=\$$cacheid 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5191$as_echo "$supported" >&6; } 5192 if test "$supported" = "yes" ; then 5193 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5194 found="yes" 5195 fi 5196 fi 5197 5198 if test $found = "no" ; then 5199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5201 fi 5202 5203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5205 fi 5206 5207 CFLAGS="$CFLAGS -Wformat" 5208 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5210$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5211 cacheid=xorg_cv_cc_flag__Wformat 5212 if eval \${$cacheid+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5216/* end confdefs.h. */ 5217int i; 5218int 5219main () 5220{ 5221 5222 ; 5223 return 0; 5224} 5225_ACEOF 5226if ac_fn_c_try_link "$LINENO"; then : 5227 eval $cacheid=yes 5228else 5229 eval $cacheid=no 5230fi 5231rm -f core conftest.err conftest.$ac_objext \ 5232 conftest$ac_exeext conftest.$ac_ext 5233fi 5234 5235 5236 CFLAGS="$xorg_testset_save_CFLAGS" 5237 5238 eval supported=\$$cacheid 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5240$as_echo "$supported" >&6; } 5241 if test "$supported" = "yes" ; then 5242 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5243 found="yes" 5244 fi 5245 fi 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263xorg_testset_save_CFLAGS="$CFLAGS" 5264 5265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5270 $as_echo_n "(cached) " >&6 5271else 5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273/* end confdefs.h. */ 5274int i; 5275_ACEOF 5276if ac_fn_c_try_compile "$LINENO"; then : 5277 xorg_cv_cc_flag_unknown_warning_option=yes 5278else 5279 xorg_cv_cc_flag_unknown_warning_option=no 5280fi 5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5282fi 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5286 CFLAGS="$xorg_testset_save_CFLAGS" 5287fi 5288 5289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5292 fi 5293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5297 $as_echo_n "(cached) " >&6 5298else 5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5300/* end confdefs.h. */ 5301int i; 5302_ACEOF 5303if ac_fn_c_try_compile "$LINENO"; then : 5304 xorg_cv_cc_flag_unused_command_line_argument=yes 5305else 5306 xorg_cv_cc_flag_unused_command_line_argument=no 5307fi 5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5309fi 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5313 CFLAGS="$xorg_testset_save_CFLAGS" 5314fi 5315 5316found="no" 5317 5318 if test $found = "no" ; then 5319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5321 fi 5322 5323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5325 fi 5326 5327 CFLAGS="$CFLAGS -Wstrict-prototypes" 5328 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5330$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5331 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5332 if eval \${$cacheid+:} false; then : 5333 $as_echo_n "(cached) " >&6 5334else 5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5336/* end confdefs.h. */ 5337int i; 5338int 5339main () 5340{ 5341 5342 ; 5343 return 0; 5344} 5345_ACEOF 5346if ac_fn_c_try_link "$LINENO"; then : 5347 eval $cacheid=yes 5348else 5349 eval $cacheid=no 5350fi 5351rm -f core conftest.err conftest.$ac_objext \ 5352 conftest$ac_exeext conftest.$ac_ext 5353fi 5354 5355 5356 CFLAGS="$xorg_testset_save_CFLAGS" 5357 5358 eval supported=\$$cacheid 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5360$as_echo "$supported" >&6; } 5361 if test "$supported" = "yes" ; then 5362 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5363 found="yes" 5364 fi 5365 fi 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381xorg_testset_save_CFLAGS="$CFLAGS" 5382 5383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5386$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5387if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5388 $as_echo_n "(cached) " >&6 5389else 5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391/* end confdefs.h. */ 5392int i; 5393_ACEOF 5394if ac_fn_c_try_compile "$LINENO"; then : 5395 xorg_cv_cc_flag_unknown_warning_option=yes 5396else 5397 xorg_cv_cc_flag_unknown_warning_option=no 5398fi 5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5400fi 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5402$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5404 CFLAGS="$xorg_testset_save_CFLAGS" 5405fi 5406 5407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5410 fi 5411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5413$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5414if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416else 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419int i; 5420_ACEOF 5421if ac_fn_c_try_compile "$LINENO"; then : 5422 xorg_cv_cc_flag_unused_command_line_argument=yes 5423else 5424 xorg_cv_cc_flag_unused_command_line_argument=no 5425fi 5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5427fi 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5429$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5431 CFLAGS="$xorg_testset_save_CFLAGS" 5432fi 5433 5434found="no" 5435 5436 if test $found = "no" ; then 5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5439 fi 5440 5441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5443 fi 5444 5445 CFLAGS="$CFLAGS -Wmissing-prototypes" 5446 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5448$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5449 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5450 if eval \${$cacheid+:} false; then : 5451 $as_echo_n "(cached) " >&6 5452else 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455int i; 5456int 5457main () 5458{ 5459 5460 ; 5461 return 0; 5462} 5463_ACEOF 5464if ac_fn_c_try_link "$LINENO"; then : 5465 eval $cacheid=yes 5466else 5467 eval $cacheid=no 5468fi 5469rm -f core conftest.err conftest.$ac_objext \ 5470 conftest$ac_exeext conftest.$ac_ext 5471fi 5472 5473 5474 CFLAGS="$xorg_testset_save_CFLAGS" 5475 5476 eval supported=\$$cacheid 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5478$as_echo "$supported" >&6; } 5479 if test "$supported" = "yes" ; then 5480 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5481 found="yes" 5482 fi 5483 fi 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499xorg_testset_save_CFLAGS="$CFLAGS" 5500 5501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5506 $as_echo_n "(cached) " >&6 5507else 5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5509/* end confdefs.h. */ 5510int i; 5511_ACEOF 5512if ac_fn_c_try_compile "$LINENO"; then : 5513 xorg_cv_cc_flag_unknown_warning_option=yes 5514else 5515 xorg_cv_cc_flag_unknown_warning_option=no 5516fi 5517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5518fi 5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5522 CFLAGS="$xorg_testset_save_CFLAGS" 5523fi 5524 5525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5528 fi 5529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5533 $as_echo_n "(cached) " >&6 5534else 5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536/* end confdefs.h. */ 5537int i; 5538_ACEOF 5539if ac_fn_c_try_compile "$LINENO"; then : 5540 xorg_cv_cc_flag_unused_command_line_argument=yes 5541else 5542 xorg_cv_cc_flag_unused_command_line_argument=no 5543fi 5544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5545fi 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5549 CFLAGS="$xorg_testset_save_CFLAGS" 5550fi 5551 5552found="no" 5553 5554 if test $found = "no" ; then 5555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5557 fi 5558 5559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5561 fi 5562 5563 CFLAGS="$CFLAGS -Wnested-externs" 5564 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5566$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5567 cacheid=xorg_cv_cc_flag__Wnested_externs 5568 if eval \${$cacheid+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570else 5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5572/* end confdefs.h. */ 5573int i; 5574int 5575main () 5576{ 5577 5578 ; 5579 return 0; 5580} 5581_ACEOF 5582if ac_fn_c_try_link "$LINENO"; then : 5583 eval $cacheid=yes 5584else 5585 eval $cacheid=no 5586fi 5587rm -f core conftest.err conftest.$ac_objext \ 5588 conftest$ac_exeext conftest.$ac_ext 5589fi 5590 5591 5592 CFLAGS="$xorg_testset_save_CFLAGS" 5593 5594 eval supported=\$$cacheid 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5596$as_echo "$supported" >&6; } 5597 if test "$supported" = "yes" ; then 5598 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5599 found="yes" 5600 fi 5601 fi 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617xorg_testset_save_CFLAGS="$CFLAGS" 5618 5619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5627/* end confdefs.h. */ 5628int i; 5629_ACEOF 5630if ac_fn_c_try_compile "$LINENO"; then : 5631 xorg_cv_cc_flag_unknown_warning_option=yes 5632else 5633 xorg_cv_cc_flag_unknown_warning_option=no 5634fi 5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5636fi 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5640 CFLAGS="$xorg_testset_save_CFLAGS" 5641fi 5642 5643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5646 fi 5647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5651 $as_echo_n "(cached) " >&6 5652else 5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5654/* end confdefs.h. */ 5655int i; 5656_ACEOF 5657if ac_fn_c_try_compile "$LINENO"; then : 5658 xorg_cv_cc_flag_unused_command_line_argument=yes 5659else 5660 xorg_cv_cc_flag_unused_command_line_argument=no 5661fi 5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5663fi 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5667 CFLAGS="$xorg_testset_save_CFLAGS" 5668fi 5669 5670found="no" 5671 5672 if test $found = "no" ; then 5673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5675 fi 5676 5677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5679 fi 5680 5681 CFLAGS="$CFLAGS -Wbad-function-cast" 5682 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5684$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5685 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5686 if eval \${$cacheid+:} false; then : 5687 $as_echo_n "(cached) " >&6 5688else 5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690/* end confdefs.h. */ 5691int i; 5692int 5693main () 5694{ 5695 5696 ; 5697 return 0; 5698} 5699_ACEOF 5700if ac_fn_c_try_link "$LINENO"; then : 5701 eval $cacheid=yes 5702else 5703 eval $cacheid=no 5704fi 5705rm -f core conftest.err conftest.$ac_objext \ 5706 conftest$ac_exeext conftest.$ac_ext 5707fi 5708 5709 5710 CFLAGS="$xorg_testset_save_CFLAGS" 5711 5712 eval supported=\$$cacheid 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5714$as_echo "$supported" >&6; } 5715 if test "$supported" = "yes" ; then 5716 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5717 found="yes" 5718 fi 5719 fi 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735xorg_testset_save_CFLAGS="$CFLAGS" 5736 5737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5745/* end confdefs.h. */ 5746int i; 5747_ACEOF 5748if ac_fn_c_try_compile "$LINENO"; then : 5749 xorg_cv_cc_flag_unknown_warning_option=yes 5750else 5751 xorg_cv_cc_flag_unknown_warning_option=no 5752fi 5753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5754fi 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5758 CFLAGS="$xorg_testset_save_CFLAGS" 5759fi 5760 5761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5764 fi 5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5769 $as_echo_n "(cached) " >&6 5770else 5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772/* end confdefs.h. */ 5773int i; 5774_ACEOF 5775if ac_fn_c_try_compile "$LINENO"; then : 5776 xorg_cv_cc_flag_unused_command_line_argument=yes 5777else 5778 xorg_cv_cc_flag_unused_command_line_argument=no 5779fi 5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5781fi 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5786fi 5787 5788found="no" 5789 5790 if test $found = "no" ; then 5791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5793 fi 5794 5795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5797 fi 5798 5799 CFLAGS="$CFLAGS -Wold-style-definition" 5800 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5802$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5803 cacheid=xorg_cv_cc_flag__Wold_style_definition 5804 if eval \${$cacheid+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806else 5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5808/* end confdefs.h. */ 5809int i; 5810int 5811main () 5812{ 5813 5814 ; 5815 return 0; 5816} 5817_ACEOF 5818if ac_fn_c_try_link "$LINENO"; then : 5819 eval $cacheid=yes 5820else 5821 eval $cacheid=no 5822fi 5823rm -f core conftest.err conftest.$ac_objext \ 5824 conftest$ac_exeext conftest.$ac_ext 5825fi 5826 5827 5828 CFLAGS="$xorg_testset_save_CFLAGS" 5829 5830 eval supported=\$$cacheid 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5832$as_echo "$supported" >&6; } 5833 if test "$supported" = "yes" ; then 5834 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5835 found="yes" 5836 fi 5837 fi 5838 5839 if test $found = "no" ; then 5840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5842 fi 5843 5844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5846 fi 5847 5848 CFLAGS="$CFLAGS -fd" 5849 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5851$as_echo_n "checking if $CC supports -fd... " >&6; } 5852 cacheid=xorg_cv_cc_flag__fd 5853 if eval \${$cacheid+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5857/* end confdefs.h. */ 5858int i; 5859int 5860main () 5861{ 5862 5863 ; 5864 return 0; 5865} 5866_ACEOF 5867if ac_fn_c_try_link "$LINENO"; then : 5868 eval $cacheid=yes 5869else 5870 eval $cacheid=no 5871fi 5872rm -f core conftest.err conftest.$ac_objext \ 5873 conftest$ac_exeext conftest.$ac_ext 5874fi 5875 5876 5877 CFLAGS="$xorg_testset_save_CFLAGS" 5878 5879 eval supported=\$$cacheid 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5881$as_echo "$supported" >&6; } 5882 if test "$supported" = "yes" ; then 5883 BASE_CFLAGS="$BASE_CFLAGS -fd" 5884 found="yes" 5885 fi 5886 fi 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902xorg_testset_save_CFLAGS="$CFLAGS" 5903 5904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5909 $as_echo_n "(cached) " >&6 5910else 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912/* end confdefs.h. */ 5913int i; 5914_ACEOF 5915if ac_fn_c_try_compile "$LINENO"; then : 5916 xorg_cv_cc_flag_unknown_warning_option=yes 5917else 5918 xorg_cv_cc_flag_unknown_warning_option=no 5919fi 5920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5921fi 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5925 CFLAGS="$xorg_testset_save_CFLAGS" 5926fi 5927 5928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5931 fi 5932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5939/* end confdefs.h. */ 5940int i; 5941_ACEOF 5942if ac_fn_c_try_compile "$LINENO"; then : 5943 xorg_cv_cc_flag_unused_command_line_argument=yes 5944else 5945 xorg_cv_cc_flag_unused_command_line_argument=no 5946fi 5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5948fi 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5952 CFLAGS="$xorg_testset_save_CFLAGS" 5953fi 5954 5955found="no" 5956 5957 if test $found = "no" ; then 5958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5960 fi 5961 5962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5964 fi 5965 5966 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5967 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5969$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5970 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5971 if eval \${$cacheid+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973else 5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5975/* end confdefs.h. */ 5976int i; 5977int 5978main () 5979{ 5980 5981 ; 5982 return 0; 5983} 5984_ACEOF 5985if ac_fn_c_try_link "$LINENO"; then : 5986 eval $cacheid=yes 5987else 5988 eval $cacheid=no 5989fi 5990rm -f core conftest.err conftest.$ac_objext \ 5991 conftest$ac_exeext conftest.$ac_ext 5992fi 5993 5994 5995 CFLAGS="$xorg_testset_save_CFLAGS" 5996 5997 eval supported=\$$cacheid 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5999$as_echo "$supported" >&6; } 6000 if test "$supported" = "yes" ; then 6001 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6002 found="yes" 6003 fi 6004 fi 6005 6006 6007 6008 6009 6010# This chunk adds additional warnings that could catch undesired effects. 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024xorg_testset_save_CFLAGS="$CFLAGS" 6025 6026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6031 $as_echo_n "(cached) " >&6 6032else 6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6034/* end confdefs.h. */ 6035int i; 6036_ACEOF 6037if ac_fn_c_try_compile "$LINENO"; then : 6038 xorg_cv_cc_flag_unknown_warning_option=yes 6039else 6040 xorg_cv_cc_flag_unknown_warning_option=no 6041fi 6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6043fi 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6047 CFLAGS="$xorg_testset_save_CFLAGS" 6048fi 6049 6050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6053 fi 6054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6061/* end confdefs.h. */ 6062int i; 6063_ACEOF 6064if ac_fn_c_try_compile "$LINENO"; then : 6065 xorg_cv_cc_flag_unused_command_line_argument=yes 6066else 6067 xorg_cv_cc_flag_unused_command_line_argument=no 6068fi 6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6070fi 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6074 CFLAGS="$xorg_testset_save_CFLAGS" 6075fi 6076 6077found="no" 6078 6079 if test $found = "no" ; then 6080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6082 fi 6083 6084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6086 fi 6087 6088 CFLAGS="$CFLAGS -Wunused" 6089 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6091$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6092 cacheid=xorg_cv_cc_flag__Wunused 6093 if eval \${$cacheid+:} false; then : 6094 $as_echo_n "(cached) " >&6 6095else 6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097/* end confdefs.h. */ 6098int i; 6099int 6100main () 6101{ 6102 6103 ; 6104 return 0; 6105} 6106_ACEOF 6107if ac_fn_c_try_link "$LINENO"; then : 6108 eval $cacheid=yes 6109else 6110 eval $cacheid=no 6111fi 6112rm -f core conftest.err conftest.$ac_objext \ 6113 conftest$ac_exeext conftest.$ac_ext 6114fi 6115 6116 6117 CFLAGS="$xorg_testset_save_CFLAGS" 6118 6119 eval supported=\$$cacheid 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6121$as_echo "$supported" >&6; } 6122 if test "$supported" = "yes" ; then 6123 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6124 found="yes" 6125 fi 6126 fi 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142xorg_testset_save_CFLAGS="$CFLAGS" 6143 6144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6149 $as_echo_n "(cached) " >&6 6150else 6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153int i; 6154_ACEOF 6155if ac_fn_c_try_compile "$LINENO"; then : 6156 xorg_cv_cc_flag_unknown_warning_option=yes 6157else 6158 xorg_cv_cc_flag_unknown_warning_option=no 6159fi 6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6161fi 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6165 CFLAGS="$xorg_testset_save_CFLAGS" 6166fi 6167 6168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6171 fi 6172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6179/* end confdefs.h. */ 6180int i; 6181_ACEOF 6182if ac_fn_c_try_compile "$LINENO"; then : 6183 xorg_cv_cc_flag_unused_command_line_argument=yes 6184else 6185 xorg_cv_cc_flag_unused_command_line_argument=no 6186fi 6187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6188fi 6189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6192 CFLAGS="$xorg_testset_save_CFLAGS" 6193fi 6194 6195found="no" 6196 6197 if test $found = "no" ; then 6198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6200 fi 6201 6202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6204 fi 6205 6206 CFLAGS="$CFLAGS -Wuninitialized" 6207 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6209$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6210 cacheid=xorg_cv_cc_flag__Wuninitialized 6211 if eval \${$cacheid+:} false; then : 6212 $as_echo_n "(cached) " >&6 6213else 6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216int i; 6217int 6218main () 6219{ 6220 6221 ; 6222 return 0; 6223} 6224_ACEOF 6225if ac_fn_c_try_link "$LINENO"; then : 6226 eval $cacheid=yes 6227else 6228 eval $cacheid=no 6229fi 6230rm -f core conftest.err conftest.$ac_objext \ 6231 conftest$ac_exeext conftest.$ac_ext 6232fi 6233 6234 6235 CFLAGS="$xorg_testset_save_CFLAGS" 6236 6237 eval supported=\$$cacheid 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6239$as_echo "$supported" >&6; } 6240 if test "$supported" = "yes" ; then 6241 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6242 found="yes" 6243 fi 6244 fi 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260xorg_testset_save_CFLAGS="$CFLAGS" 6261 6262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6267 $as_echo_n "(cached) " >&6 6268else 6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270/* end confdefs.h. */ 6271int i; 6272_ACEOF 6273if ac_fn_c_try_compile "$LINENO"; then : 6274 xorg_cv_cc_flag_unknown_warning_option=yes 6275else 6276 xorg_cv_cc_flag_unknown_warning_option=no 6277fi 6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6279fi 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6283 CFLAGS="$xorg_testset_save_CFLAGS" 6284fi 6285 6286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6289 fi 6290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6294 $as_echo_n "(cached) " >&6 6295else 6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297/* end confdefs.h. */ 6298int i; 6299_ACEOF 6300if ac_fn_c_try_compile "$LINENO"; then : 6301 xorg_cv_cc_flag_unused_command_line_argument=yes 6302else 6303 xorg_cv_cc_flag_unused_command_line_argument=no 6304fi 6305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6306fi 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6310 CFLAGS="$xorg_testset_save_CFLAGS" 6311fi 6312 6313found="no" 6314 6315 if test $found = "no" ; then 6316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6318 fi 6319 6320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6322 fi 6323 6324 CFLAGS="$CFLAGS -Wshadow" 6325 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6327$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6328 cacheid=xorg_cv_cc_flag__Wshadow 6329 if eval \${$cacheid+:} false; then : 6330 $as_echo_n "(cached) " >&6 6331else 6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6333/* end confdefs.h. */ 6334int i; 6335int 6336main () 6337{ 6338 6339 ; 6340 return 0; 6341} 6342_ACEOF 6343if ac_fn_c_try_link "$LINENO"; then : 6344 eval $cacheid=yes 6345else 6346 eval $cacheid=no 6347fi 6348rm -f core conftest.err conftest.$ac_objext \ 6349 conftest$ac_exeext conftest.$ac_ext 6350fi 6351 6352 6353 CFLAGS="$xorg_testset_save_CFLAGS" 6354 6355 eval supported=\$$cacheid 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6357$as_echo "$supported" >&6; } 6358 if test "$supported" = "yes" ; then 6359 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6360 found="yes" 6361 fi 6362 fi 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378xorg_testset_save_CFLAGS="$CFLAGS" 6379 6380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6385 $as_echo_n "(cached) " >&6 6386else 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388/* end confdefs.h. */ 6389int i; 6390_ACEOF 6391if ac_fn_c_try_compile "$LINENO"; then : 6392 xorg_cv_cc_flag_unknown_warning_option=yes 6393else 6394 xorg_cv_cc_flag_unknown_warning_option=no 6395fi 6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6397fi 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6401 CFLAGS="$xorg_testset_save_CFLAGS" 6402fi 6403 6404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6407 fi 6408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6415/* end confdefs.h. */ 6416int i; 6417_ACEOF 6418if ac_fn_c_try_compile "$LINENO"; then : 6419 xorg_cv_cc_flag_unused_command_line_argument=yes 6420else 6421 xorg_cv_cc_flag_unused_command_line_argument=no 6422fi 6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6424fi 6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6428 CFLAGS="$xorg_testset_save_CFLAGS" 6429fi 6430 6431found="no" 6432 6433 if test $found = "no" ; then 6434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6436 fi 6437 6438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6440 fi 6441 6442 CFLAGS="$CFLAGS -Wmissing-noreturn" 6443 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6445$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6446 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6447 if eval \${$cacheid+:} false; then : 6448 $as_echo_n "(cached) " >&6 6449else 6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6451/* end confdefs.h. */ 6452int i; 6453int 6454main () 6455{ 6456 6457 ; 6458 return 0; 6459} 6460_ACEOF 6461if ac_fn_c_try_link "$LINENO"; then : 6462 eval $cacheid=yes 6463else 6464 eval $cacheid=no 6465fi 6466rm -f core conftest.err conftest.$ac_objext \ 6467 conftest$ac_exeext conftest.$ac_ext 6468fi 6469 6470 6471 CFLAGS="$xorg_testset_save_CFLAGS" 6472 6473 eval supported=\$$cacheid 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6475$as_echo "$supported" >&6; } 6476 if test "$supported" = "yes" ; then 6477 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6478 found="yes" 6479 fi 6480 fi 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496xorg_testset_save_CFLAGS="$CFLAGS" 6497 6498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6503 $as_echo_n "(cached) " >&6 6504else 6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6506/* end confdefs.h. */ 6507int i; 6508_ACEOF 6509if ac_fn_c_try_compile "$LINENO"; then : 6510 xorg_cv_cc_flag_unknown_warning_option=yes 6511else 6512 xorg_cv_cc_flag_unknown_warning_option=no 6513fi 6514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6515fi 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6519 CFLAGS="$xorg_testset_save_CFLAGS" 6520fi 6521 6522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6525 fi 6526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531else 6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6533/* end confdefs.h. */ 6534int i; 6535_ACEOF 6536if ac_fn_c_try_compile "$LINENO"; then : 6537 xorg_cv_cc_flag_unused_command_line_argument=yes 6538else 6539 xorg_cv_cc_flag_unused_command_line_argument=no 6540fi 6541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6542fi 6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6546 CFLAGS="$xorg_testset_save_CFLAGS" 6547fi 6548 6549found="no" 6550 6551 if test $found = "no" ; then 6552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6554 fi 6555 6556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6558 fi 6559 6560 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6561 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6563$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6564 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6565 if eval \${$cacheid+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6569/* end confdefs.h. */ 6570int i; 6571int 6572main () 6573{ 6574 6575 ; 6576 return 0; 6577} 6578_ACEOF 6579if ac_fn_c_try_link "$LINENO"; then : 6580 eval $cacheid=yes 6581else 6582 eval $cacheid=no 6583fi 6584rm -f core conftest.err conftest.$ac_objext \ 6585 conftest$ac_exeext conftest.$ac_ext 6586fi 6587 6588 6589 CFLAGS="$xorg_testset_save_CFLAGS" 6590 6591 eval supported=\$$cacheid 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6593$as_echo "$supported" >&6; } 6594 if test "$supported" = "yes" ; then 6595 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6596 found="yes" 6597 fi 6598 fi 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614xorg_testset_save_CFLAGS="$CFLAGS" 6615 6616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6621 $as_echo_n "(cached) " >&6 6622else 6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6624/* end confdefs.h. */ 6625int i; 6626_ACEOF 6627if ac_fn_c_try_compile "$LINENO"; then : 6628 xorg_cv_cc_flag_unknown_warning_option=yes 6629else 6630 xorg_cv_cc_flag_unknown_warning_option=no 6631fi 6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6633fi 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6637 CFLAGS="$xorg_testset_save_CFLAGS" 6638fi 6639 6640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6643 fi 6644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6648 $as_echo_n "(cached) " >&6 6649else 6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6651/* end confdefs.h. */ 6652int i; 6653_ACEOF 6654if ac_fn_c_try_compile "$LINENO"; then : 6655 xorg_cv_cc_flag_unused_command_line_argument=yes 6656else 6657 xorg_cv_cc_flag_unused_command_line_argument=no 6658fi 6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6660fi 6661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6664 CFLAGS="$xorg_testset_save_CFLAGS" 6665fi 6666 6667found="no" 6668 6669 if test $found = "no" ; then 6670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6672 fi 6673 6674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6676 fi 6677 6678 CFLAGS="$CFLAGS -Wredundant-decls" 6679 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6681$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6682 cacheid=xorg_cv_cc_flag__Wredundant_decls 6683 if eval \${$cacheid+:} false; then : 6684 $as_echo_n "(cached) " >&6 6685else 6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6687/* end confdefs.h. */ 6688int i; 6689int 6690main () 6691{ 6692 6693 ; 6694 return 0; 6695} 6696_ACEOF 6697if ac_fn_c_try_link "$LINENO"; then : 6698 eval $cacheid=yes 6699else 6700 eval $cacheid=no 6701fi 6702rm -f core conftest.err conftest.$ac_objext \ 6703 conftest$ac_exeext conftest.$ac_ext 6704fi 6705 6706 6707 CFLAGS="$xorg_testset_save_CFLAGS" 6708 6709 eval supported=\$$cacheid 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6711$as_echo "$supported" >&6; } 6712 if test "$supported" = "yes" ; then 6713 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6714 found="yes" 6715 fi 6716 fi 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732xorg_testset_save_CFLAGS="$CFLAGS" 6733 6734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6739 $as_echo_n "(cached) " >&6 6740else 6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6742/* end confdefs.h. */ 6743int i; 6744_ACEOF 6745if ac_fn_c_try_compile "$LINENO"; then : 6746 xorg_cv_cc_flag_unknown_warning_option=yes 6747else 6748 xorg_cv_cc_flag_unknown_warning_option=no 6749fi 6750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6751fi 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6755 CFLAGS="$xorg_testset_save_CFLAGS" 6756fi 6757 6758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6761 fi 6762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769/* end confdefs.h. */ 6770int i; 6771_ACEOF 6772if ac_fn_c_try_compile "$LINENO"; then : 6773 xorg_cv_cc_flag_unused_command_line_argument=yes 6774else 6775 xorg_cv_cc_flag_unused_command_line_argument=no 6776fi 6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6778fi 6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783fi 6784 6785found="no" 6786 6787 if test $found = "no" ; then 6788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6790 fi 6791 6792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6794 fi 6795 6796 CFLAGS="$CFLAGS -Wlogical-op" 6797 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6799$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6800 cacheid=xorg_cv_cc_flag__Wlogical_op 6801 if eval \${$cacheid+:} false; then : 6802 $as_echo_n "(cached) " >&6 6803else 6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6805/* end confdefs.h. */ 6806int i; 6807int 6808main () 6809{ 6810 6811 ; 6812 return 0; 6813} 6814_ACEOF 6815if ac_fn_c_try_link "$LINENO"; then : 6816 eval $cacheid=yes 6817else 6818 eval $cacheid=no 6819fi 6820rm -f core conftest.err conftest.$ac_objext \ 6821 conftest$ac_exeext conftest.$ac_ext 6822fi 6823 6824 6825 CFLAGS="$xorg_testset_save_CFLAGS" 6826 6827 eval supported=\$$cacheid 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6829$as_echo "$supported" >&6; } 6830 if test "$supported" = "yes" ; then 6831 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6832 found="yes" 6833 fi 6834 fi 6835 6836 6837 6838# These are currently disabled because they are noisy. They will be enabled 6839# in the future once the codebase is sufficiently modernized to silence 6840# them. For now, I don't want them to drown out the other warnings. 6841# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6842# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6843# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6844 6845# Turn some warnings into errors, so we don't accidently get successful builds 6846# when there are problems that should be fixed. 6847 6848if test "x$SELECTIVE_WERROR" = "xyes" ; then 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862xorg_testset_save_CFLAGS="$CFLAGS" 6863 6864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6867$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6868if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6869 $as_echo_n "(cached) " >&6 6870else 6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873int i; 6874_ACEOF 6875if ac_fn_c_try_compile "$LINENO"; then : 6876 xorg_cv_cc_flag_unknown_warning_option=yes 6877else 6878 xorg_cv_cc_flag_unknown_warning_option=no 6879fi 6880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6881fi 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6883$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6885 CFLAGS="$xorg_testset_save_CFLAGS" 6886fi 6887 6888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6891 fi 6892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6894$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6895if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6896 $as_echo_n "(cached) " >&6 6897else 6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6899/* end confdefs.h. */ 6900int i; 6901_ACEOF 6902if ac_fn_c_try_compile "$LINENO"; then : 6903 xorg_cv_cc_flag_unused_command_line_argument=yes 6904else 6905 xorg_cv_cc_flag_unused_command_line_argument=no 6906fi 6907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6908fi 6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6910$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6912 CFLAGS="$xorg_testset_save_CFLAGS" 6913fi 6914 6915found="no" 6916 6917 if test $found = "no" ; then 6918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6920 fi 6921 6922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6924 fi 6925 6926 CFLAGS="$CFLAGS -Werror=implicit" 6927 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6929$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6930 cacheid=xorg_cv_cc_flag__Werror_implicit 6931 if eval \${$cacheid+:} false; then : 6932 $as_echo_n "(cached) " >&6 6933else 6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6935/* end confdefs.h. */ 6936int i; 6937int 6938main () 6939{ 6940 6941 ; 6942 return 0; 6943} 6944_ACEOF 6945if ac_fn_c_try_link "$LINENO"; then : 6946 eval $cacheid=yes 6947else 6948 eval $cacheid=no 6949fi 6950rm -f core conftest.err conftest.$ac_objext \ 6951 conftest$ac_exeext conftest.$ac_ext 6952fi 6953 6954 6955 CFLAGS="$xorg_testset_save_CFLAGS" 6956 6957 eval supported=\$$cacheid 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6959$as_echo "$supported" >&6; } 6960 if test "$supported" = "yes" ; then 6961 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6962 found="yes" 6963 fi 6964 fi 6965 6966 if test $found = "no" ; then 6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6969 fi 6970 6971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6973 fi 6974 6975 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6976 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6978$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6979 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6980 if eval \${$cacheid+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984/* end confdefs.h. */ 6985int i; 6986int 6987main () 6988{ 6989 6990 ; 6991 return 0; 6992} 6993_ACEOF 6994if ac_fn_c_try_link "$LINENO"; then : 6995 eval $cacheid=yes 6996else 6997 eval $cacheid=no 6998fi 6999rm -f core conftest.err conftest.$ac_objext \ 7000 conftest$ac_exeext conftest.$ac_ext 7001fi 7002 7003 7004 CFLAGS="$xorg_testset_save_CFLAGS" 7005 7006 eval supported=\$$cacheid 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7008$as_echo "$supported" >&6; } 7009 if test "$supported" = "yes" ; then 7010 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7011 found="yes" 7012 fi 7013 fi 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029xorg_testset_save_CFLAGS="$CFLAGS" 7030 7031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040int i; 7041_ACEOF 7042if ac_fn_c_try_compile "$LINENO"; then : 7043 xorg_cv_cc_flag_unknown_warning_option=yes 7044else 7045 xorg_cv_cc_flag_unknown_warning_option=no 7046fi 7047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7048fi 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7052 CFLAGS="$xorg_testset_save_CFLAGS" 7053fi 7054 7055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7058 fi 7059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7063 $as_echo_n "(cached) " >&6 7064else 7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066/* end confdefs.h. */ 7067int i; 7068_ACEOF 7069if ac_fn_c_try_compile "$LINENO"; then : 7070 xorg_cv_cc_flag_unused_command_line_argument=yes 7071else 7072 xorg_cv_cc_flag_unused_command_line_argument=no 7073fi 7074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7075fi 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7079 CFLAGS="$xorg_testset_save_CFLAGS" 7080fi 7081 7082found="no" 7083 7084 if test $found = "no" ; then 7085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7087 fi 7088 7089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7091 fi 7092 7093 CFLAGS="$CFLAGS -Werror=nonnull" 7094 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7096$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7097 cacheid=xorg_cv_cc_flag__Werror_nonnull 7098 if eval \${$cacheid+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7102/* end confdefs.h. */ 7103int i; 7104int 7105main () 7106{ 7107 7108 ; 7109 return 0; 7110} 7111_ACEOF 7112if ac_fn_c_try_link "$LINENO"; then : 7113 eval $cacheid=yes 7114else 7115 eval $cacheid=no 7116fi 7117rm -f core conftest.err conftest.$ac_objext \ 7118 conftest$ac_exeext conftest.$ac_ext 7119fi 7120 7121 7122 CFLAGS="$xorg_testset_save_CFLAGS" 7123 7124 eval supported=\$$cacheid 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7126$as_echo "$supported" >&6; } 7127 if test "$supported" = "yes" ; then 7128 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7129 found="yes" 7130 fi 7131 fi 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147xorg_testset_save_CFLAGS="$CFLAGS" 7148 7149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155else 7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7157/* end confdefs.h. */ 7158int i; 7159_ACEOF 7160if ac_fn_c_try_compile "$LINENO"; then : 7161 xorg_cv_cc_flag_unknown_warning_option=yes 7162else 7163 xorg_cv_cc_flag_unknown_warning_option=no 7164fi 7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7166fi 7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7170 CFLAGS="$xorg_testset_save_CFLAGS" 7171fi 7172 7173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7176 fi 7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7184/* end confdefs.h. */ 7185int i; 7186_ACEOF 7187if ac_fn_c_try_compile "$LINENO"; then : 7188 xorg_cv_cc_flag_unused_command_line_argument=yes 7189else 7190 xorg_cv_cc_flag_unused_command_line_argument=no 7191fi 7192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7193fi 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7197 CFLAGS="$xorg_testset_save_CFLAGS" 7198fi 7199 7200found="no" 7201 7202 if test $found = "no" ; then 7203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7205 fi 7206 7207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7209 fi 7210 7211 CFLAGS="$CFLAGS -Werror=init-self" 7212 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7214$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7215 cacheid=xorg_cv_cc_flag__Werror_init_self 7216 if eval \${$cacheid+:} false; then : 7217 $as_echo_n "(cached) " >&6 7218else 7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220/* end confdefs.h. */ 7221int i; 7222int 7223main () 7224{ 7225 7226 ; 7227 return 0; 7228} 7229_ACEOF 7230if ac_fn_c_try_link "$LINENO"; then : 7231 eval $cacheid=yes 7232else 7233 eval $cacheid=no 7234fi 7235rm -f core conftest.err conftest.$ac_objext \ 7236 conftest$ac_exeext conftest.$ac_ext 7237fi 7238 7239 7240 CFLAGS="$xorg_testset_save_CFLAGS" 7241 7242 eval supported=\$$cacheid 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7244$as_echo "$supported" >&6; } 7245 if test "$supported" = "yes" ; then 7246 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7247 found="yes" 7248 fi 7249 fi 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265xorg_testset_save_CFLAGS="$CFLAGS" 7266 7267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276int i; 7277_ACEOF 7278if ac_fn_c_try_compile "$LINENO"; then : 7279 xorg_cv_cc_flag_unknown_warning_option=yes 7280else 7281 xorg_cv_cc_flag_unknown_warning_option=no 7282fi 7283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7284fi 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7288 CFLAGS="$xorg_testset_save_CFLAGS" 7289fi 7290 7291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 fi 7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300else 7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7302/* end confdefs.h. */ 7303int i; 7304_ACEOF 7305if ac_fn_c_try_compile "$LINENO"; then : 7306 xorg_cv_cc_flag_unused_command_line_argument=yes 7307else 7308 xorg_cv_cc_flag_unused_command_line_argument=no 7309fi 7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7311fi 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7315 CFLAGS="$xorg_testset_save_CFLAGS" 7316fi 7317 7318found="no" 7319 7320 if test $found = "no" ; then 7321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7323 fi 7324 7325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7327 fi 7328 7329 CFLAGS="$CFLAGS -Werror=main" 7330 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7332$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7333 cacheid=xorg_cv_cc_flag__Werror_main 7334 if eval \${$cacheid+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338/* end confdefs.h. */ 7339int i; 7340int 7341main () 7342{ 7343 7344 ; 7345 return 0; 7346} 7347_ACEOF 7348if ac_fn_c_try_link "$LINENO"; then : 7349 eval $cacheid=yes 7350else 7351 eval $cacheid=no 7352fi 7353rm -f core conftest.err conftest.$ac_objext \ 7354 conftest$ac_exeext conftest.$ac_ext 7355fi 7356 7357 7358 CFLAGS="$xorg_testset_save_CFLAGS" 7359 7360 eval supported=\$$cacheid 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7362$as_echo "$supported" >&6; } 7363 if test "$supported" = "yes" ; then 7364 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7365 found="yes" 7366 fi 7367 fi 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383xorg_testset_save_CFLAGS="$CFLAGS" 7384 7385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393/* end confdefs.h. */ 7394int i; 7395_ACEOF 7396if ac_fn_c_try_compile "$LINENO"; then : 7397 xorg_cv_cc_flag_unknown_warning_option=yes 7398else 7399 xorg_cv_cc_flag_unknown_warning_option=no 7400fi 7401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7402fi 7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7406 CFLAGS="$xorg_testset_save_CFLAGS" 7407fi 7408 7409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7412 fi 7413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7417 $as_echo_n "(cached) " >&6 7418else 7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7420/* end confdefs.h. */ 7421int i; 7422_ACEOF 7423if ac_fn_c_try_compile "$LINENO"; then : 7424 xorg_cv_cc_flag_unused_command_line_argument=yes 7425else 7426 xorg_cv_cc_flag_unused_command_line_argument=no 7427fi 7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7429fi 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7433 CFLAGS="$xorg_testset_save_CFLAGS" 7434fi 7435 7436found="no" 7437 7438 if test $found = "no" ; then 7439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7441 fi 7442 7443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7445 fi 7446 7447 CFLAGS="$CFLAGS -Werror=missing-braces" 7448 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7450$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7451 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7452 if eval \${$cacheid+:} false; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7456/* end confdefs.h. */ 7457int i; 7458int 7459main () 7460{ 7461 7462 ; 7463 return 0; 7464} 7465_ACEOF 7466if ac_fn_c_try_link "$LINENO"; then : 7467 eval $cacheid=yes 7468else 7469 eval $cacheid=no 7470fi 7471rm -f core conftest.err conftest.$ac_objext \ 7472 conftest$ac_exeext conftest.$ac_ext 7473fi 7474 7475 7476 CFLAGS="$xorg_testset_save_CFLAGS" 7477 7478 eval supported=\$$cacheid 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7480$as_echo "$supported" >&6; } 7481 if test "$supported" = "yes" ; then 7482 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7483 found="yes" 7484 fi 7485 fi 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501xorg_testset_save_CFLAGS="$CFLAGS" 7502 7503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509else 7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7511/* end confdefs.h. */ 7512int i; 7513_ACEOF 7514if ac_fn_c_try_compile "$LINENO"; then : 7515 xorg_cv_cc_flag_unknown_warning_option=yes 7516else 7517 xorg_cv_cc_flag_unknown_warning_option=no 7518fi 7519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7520fi 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7524 CFLAGS="$xorg_testset_save_CFLAGS" 7525fi 7526 7527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7530 fi 7531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7535 $as_echo_n "(cached) " >&6 7536else 7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538/* end confdefs.h. */ 7539int i; 7540_ACEOF 7541if ac_fn_c_try_compile "$LINENO"; then : 7542 xorg_cv_cc_flag_unused_command_line_argument=yes 7543else 7544 xorg_cv_cc_flag_unused_command_line_argument=no 7545fi 7546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7547fi 7548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7551 CFLAGS="$xorg_testset_save_CFLAGS" 7552fi 7553 7554found="no" 7555 7556 if test $found = "no" ; then 7557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7559 fi 7560 7561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7563 fi 7564 7565 CFLAGS="$CFLAGS -Werror=sequence-point" 7566 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7568$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7569 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7570 if eval \${$cacheid+:} false; then : 7571 $as_echo_n "(cached) " >&6 7572else 7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7574/* end confdefs.h. */ 7575int i; 7576int 7577main () 7578{ 7579 7580 ; 7581 return 0; 7582} 7583_ACEOF 7584if ac_fn_c_try_link "$LINENO"; then : 7585 eval $cacheid=yes 7586else 7587 eval $cacheid=no 7588fi 7589rm -f core conftest.err conftest.$ac_objext \ 7590 conftest$ac_exeext conftest.$ac_ext 7591fi 7592 7593 7594 CFLAGS="$xorg_testset_save_CFLAGS" 7595 7596 eval supported=\$$cacheid 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7598$as_echo "$supported" >&6; } 7599 if test "$supported" = "yes" ; then 7600 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7601 found="yes" 7602 fi 7603 fi 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619xorg_testset_save_CFLAGS="$CFLAGS" 7620 7621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7626 $as_echo_n "(cached) " >&6 7627else 7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7629/* end confdefs.h. */ 7630int i; 7631_ACEOF 7632if ac_fn_c_try_compile "$LINENO"; then : 7633 xorg_cv_cc_flag_unknown_warning_option=yes 7634else 7635 xorg_cv_cc_flag_unknown_warning_option=no 7636fi 7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7638fi 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7642 CFLAGS="$xorg_testset_save_CFLAGS" 7643fi 7644 7645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7648 fi 7649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7653 $as_echo_n "(cached) " >&6 7654else 7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7656/* end confdefs.h. */ 7657int i; 7658_ACEOF 7659if ac_fn_c_try_compile "$LINENO"; then : 7660 xorg_cv_cc_flag_unused_command_line_argument=yes 7661else 7662 xorg_cv_cc_flag_unused_command_line_argument=no 7663fi 7664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7665fi 7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7669 CFLAGS="$xorg_testset_save_CFLAGS" 7670fi 7671 7672found="no" 7673 7674 if test $found = "no" ; then 7675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7677 fi 7678 7679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7681 fi 7682 7683 CFLAGS="$CFLAGS -Werror=return-type" 7684 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7686$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7687 cacheid=xorg_cv_cc_flag__Werror_return_type 7688 if eval \${$cacheid+:} false; then : 7689 $as_echo_n "(cached) " >&6 7690else 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692/* end confdefs.h. */ 7693int i; 7694int 7695main () 7696{ 7697 7698 ; 7699 return 0; 7700} 7701_ACEOF 7702if ac_fn_c_try_link "$LINENO"; then : 7703 eval $cacheid=yes 7704else 7705 eval $cacheid=no 7706fi 7707rm -f core conftest.err conftest.$ac_objext \ 7708 conftest$ac_exeext conftest.$ac_ext 7709fi 7710 7711 7712 CFLAGS="$xorg_testset_save_CFLAGS" 7713 7714 eval supported=\$$cacheid 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7716$as_echo "$supported" >&6; } 7717 if test "$supported" = "yes" ; then 7718 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7719 found="yes" 7720 fi 7721 fi 7722 7723 if test $found = "no" ; then 7724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7726 fi 7727 7728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7730 fi 7731 7732 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7733 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7735$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7736 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7737 if eval \${$cacheid+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7741/* end confdefs.h. */ 7742int i; 7743int 7744main () 7745{ 7746 7747 ; 7748 return 0; 7749} 7750_ACEOF 7751if ac_fn_c_try_link "$LINENO"; then : 7752 eval $cacheid=yes 7753else 7754 eval $cacheid=no 7755fi 7756rm -f core conftest.err conftest.$ac_objext \ 7757 conftest$ac_exeext conftest.$ac_ext 7758fi 7759 7760 7761 CFLAGS="$xorg_testset_save_CFLAGS" 7762 7763 eval supported=\$$cacheid 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7765$as_echo "$supported" >&6; } 7766 if test "$supported" = "yes" ; then 7767 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7768 found="yes" 7769 fi 7770 fi 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786xorg_testset_save_CFLAGS="$CFLAGS" 7787 7788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7793 $as_echo_n "(cached) " >&6 7794else 7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7796/* end confdefs.h. */ 7797int i; 7798_ACEOF 7799if ac_fn_c_try_compile "$LINENO"; then : 7800 xorg_cv_cc_flag_unknown_warning_option=yes 7801else 7802 xorg_cv_cc_flag_unknown_warning_option=no 7803fi 7804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7805fi 7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7809 CFLAGS="$xorg_testset_save_CFLAGS" 7810fi 7811 7812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7815 fi 7816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7820 $as_echo_n "(cached) " >&6 7821else 7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7823/* end confdefs.h. */ 7824int i; 7825_ACEOF 7826if ac_fn_c_try_compile "$LINENO"; then : 7827 xorg_cv_cc_flag_unused_command_line_argument=yes 7828else 7829 xorg_cv_cc_flag_unused_command_line_argument=no 7830fi 7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7832fi 7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7836 CFLAGS="$xorg_testset_save_CFLAGS" 7837fi 7838 7839found="no" 7840 7841 if test $found = "no" ; then 7842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7844 fi 7845 7846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7848 fi 7849 7850 CFLAGS="$CFLAGS -Werror=trigraphs" 7851 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7853$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7854 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7855 if eval \${$cacheid+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7859/* end confdefs.h. */ 7860int i; 7861int 7862main () 7863{ 7864 7865 ; 7866 return 0; 7867} 7868_ACEOF 7869if ac_fn_c_try_link "$LINENO"; then : 7870 eval $cacheid=yes 7871else 7872 eval $cacheid=no 7873fi 7874rm -f core conftest.err conftest.$ac_objext \ 7875 conftest$ac_exeext conftest.$ac_ext 7876fi 7877 7878 7879 CFLAGS="$xorg_testset_save_CFLAGS" 7880 7881 eval supported=\$$cacheid 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7883$as_echo "$supported" >&6; } 7884 if test "$supported" = "yes" ; then 7885 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7886 found="yes" 7887 fi 7888 fi 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904xorg_testset_save_CFLAGS="$CFLAGS" 7905 7906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7911 $as_echo_n "(cached) " >&6 7912else 7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7914/* end confdefs.h. */ 7915int i; 7916_ACEOF 7917if ac_fn_c_try_compile "$LINENO"; then : 7918 xorg_cv_cc_flag_unknown_warning_option=yes 7919else 7920 xorg_cv_cc_flag_unknown_warning_option=no 7921fi 7922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7923fi 7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7927 CFLAGS="$xorg_testset_save_CFLAGS" 7928fi 7929 7930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7933 fi 7934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7938 $as_echo_n "(cached) " >&6 7939else 7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942int i; 7943_ACEOF 7944if ac_fn_c_try_compile "$LINENO"; then : 7945 xorg_cv_cc_flag_unused_command_line_argument=yes 7946else 7947 xorg_cv_cc_flag_unused_command_line_argument=no 7948fi 7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7950fi 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7954 CFLAGS="$xorg_testset_save_CFLAGS" 7955fi 7956 7957found="no" 7958 7959 if test $found = "no" ; then 7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 fi 7963 7964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 fi 7967 7968 CFLAGS="$CFLAGS -Werror=array-bounds" 7969 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7971$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7972 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7973 if eval \${$cacheid+:} false; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977/* end confdefs.h. */ 7978int i; 7979int 7980main () 7981{ 7982 7983 ; 7984 return 0; 7985} 7986_ACEOF 7987if ac_fn_c_try_link "$LINENO"; then : 7988 eval $cacheid=yes 7989else 7990 eval $cacheid=no 7991fi 7992rm -f core conftest.err conftest.$ac_objext \ 7993 conftest$ac_exeext conftest.$ac_ext 7994fi 7995 7996 7997 CFLAGS="$xorg_testset_save_CFLAGS" 7998 7999 eval supported=\$$cacheid 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8001$as_echo "$supported" >&6; } 8002 if test "$supported" = "yes" ; then 8003 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8004 found="yes" 8005 fi 8006 fi 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022xorg_testset_save_CFLAGS="$CFLAGS" 8023 8024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8029 $as_echo_n "(cached) " >&6 8030else 8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8032/* end confdefs.h. */ 8033int i; 8034_ACEOF 8035if ac_fn_c_try_compile "$LINENO"; then : 8036 xorg_cv_cc_flag_unknown_warning_option=yes 8037else 8038 xorg_cv_cc_flag_unknown_warning_option=no 8039fi 8040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8041fi 8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8045 CFLAGS="$xorg_testset_save_CFLAGS" 8046fi 8047 8048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8051 fi 8052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057else 8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8059/* end confdefs.h. */ 8060int i; 8061_ACEOF 8062if ac_fn_c_try_compile "$LINENO"; then : 8063 xorg_cv_cc_flag_unused_command_line_argument=yes 8064else 8065 xorg_cv_cc_flag_unused_command_line_argument=no 8066fi 8067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8068fi 8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8072 CFLAGS="$xorg_testset_save_CFLAGS" 8073fi 8074 8075found="no" 8076 8077 if test $found = "no" ; then 8078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8080 fi 8081 8082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8084 fi 8085 8086 CFLAGS="$CFLAGS -Werror=write-strings" 8087 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8089$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8090 cacheid=xorg_cv_cc_flag__Werror_write_strings 8091 if eval \${$cacheid+:} false; then : 8092 $as_echo_n "(cached) " >&6 8093else 8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8095/* end confdefs.h. */ 8096int i; 8097int 8098main () 8099{ 8100 8101 ; 8102 return 0; 8103} 8104_ACEOF 8105if ac_fn_c_try_link "$LINENO"; then : 8106 eval $cacheid=yes 8107else 8108 eval $cacheid=no 8109fi 8110rm -f core conftest.err conftest.$ac_objext \ 8111 conftest$ac_exeext conftest.$ac_ext 8112fi 8113 8114 8115 CFLAGS="$xorg_testset_save_CFLAGS" 8116 8117 eval supported=\$$cacheid 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8119$as_echo "$supported" >&6; } 8120 if test "$supported" = "yes" ; then 8121 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8122 found="yes" 8123 fi 8124 fi 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140xorg_testset_save_CFLAGS="$CFLAGS" 8141 8142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8146if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_cc_flag_unknown_warning_option=yes 8155else 8156 xorg_cv_cc_flag_unknown_warning_option=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_cc_flag_unknown_warning_option" >&5 8161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8163 CFLAGS="$xorg_testset_save_CFLAGS" 8164fi 8165 8166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8169 fi 8170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8174 $as_echo_n "(cached) " >&6 8175else 8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8177/* end confdefs.h. */ 8178int i; 8179_ACEOF 8180if ac_fn_c_try_compile "$LINENO"; then : 8181 xorg_cv_cc_flag_unused_command_line_argument=yes 8182else 8183 xorg_cv_cc_flag_unused_command_line_argument=no 8184fi 8185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8186fi 8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8190 CFLAGS="$xorg_testset_save_CFLAGS" 8191fi 8192 8193found="no" 8194 8195 if test $found = "no" ; then 8196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8198 fi 8199 8200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8202 fi 8203 8204 CFLAGS="$CFLAGS -Werror=address" 8205 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8207$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8208 cacheid=xorg_cv_cc_flag__Werror_address 8209 if eval \${$cacheid+:} false; then : 8210 $as_echo_n "(cached) " >&6 8211else 8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8213/* end confdefs.h. */ 8214int i; 8215int 8216main () 8217{ 8218 8219 ; 8220 return 0; 8221} 8222_ACEOF 8223if ac_fn_c_try_link "$LINENO"; then : 8224 eval $cacheid=yes 8225else 8226 eval $cacheid=no 8227fi 8228rm -f core conftest.err conftest.$ac_objext \ 8229 conftest$ac_exeext conftest.$ac_ext 8230fi 8231 8232 8233 CFLAGS="$xorg_testset_save_CFLAGS" 8234 8235 eval supported=\$$cacheid 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8237$as_echo "$supported" >&6; } 8238 if test "$supported" = "yes" ; then 8239 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8240 found="yes" 8241 fi 8242 fi 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258xorg_testset_save_CFLAGS="$CFLAGS" 8259 8260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8265 $as_echo_n "(cached) " >&6 8266else 8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8268/* end confdefs.h. */ 8269int i; 8270_ACEOF 8271if ac_fn_c_try_compile "$LINENO"; then : 8272 xorg_cv_cc_flag_unknown_warning_option=yes 8273else 8274 xorg_cv_cc_flag_unknown_warning_option=no 8275fi 8276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8277fi 8278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8281 CFLAGS="$xorg_testset_save_CFLAGS" 8282fi 8283 8284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8287 fi 8288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8292 $as_echo_n "(cached) " >&6 8293else 8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8295/* end confdefs.h. */ 8296int i; 8297_ACEOF 8298if ac_fn_c_try_compile "$LINENO"; then : 8299 xorg_cv_cc_flag_unused_command_line_argument=yes 8300else 8301 xorg_cv_cc_flag_unused_command_line_argument=no 8302fi 8303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8304fi 8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8308 CFLAGS="$xorg_testset_save_CFLAGS" 8309fi 8310 8311found="no" 8312 8313 if test $found = "no" ; then 8314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8316 fi 8317 8318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8320 fi 8321 8322 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8323 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8325$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8326 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8327 if eval \${$cacheid+:} false; then : 8328 $as_echo_n "(cached) " >&6 8329else 8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8331/* end confdefs.h. */ 8332int i; 8333int 8334main () 8335{ 8336 8337 ; 8338 return 0; 8339} 8340_ACEOF 8341if ac_fn_c_try_link "$LINENO"; then : 8342 eval $cacheid=yes 8343else 8344 eval $cacheid=no 8345fi 8346rm -f core conftest.err conftest.$ac_objext \ 8347 conftest$ac_exeext conftest.$ac_ext 8348fi 8349 8350 8351 CFLAGS="$xorg_testset_save_CFLAGS" 8352 8353 eval supported=\$$cacheid 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8355$as_echo "$supported" >&6; } 8356 if test "$supported" = "yes" ; then 8357 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8358 found="yes" 8359 fi 8360 fi 8361 8362 if test $found = "no" ; then 8363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8365 fi 8366 8367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8369 fi 8370 8371 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8372 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8374$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8375 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8376 if eval \${$cacheid+:} false; then : 8377 $as_echo_n "(cached) " >&6 8378else 8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8380/* end confdefs.h. */ 8381int i; 8382int 8383main () 8384{ 8385 8386 ; 8387 return 0; 8388} 8389_ACEOF 8390if ac_fn_c_try_link "$LINENO"; then : 8391 eval $cacheid=yes 8392else 8393 eval $cacheid=no 8394fi 8395rm -f core conftest.err conftest.$ac_objext \ 8396 conftest$ac_exeext conftest.$ac_ext 8397fi 8398 8399 8400 CFLAGS="$xorg_testset_save_CFLAGS" 8401 8402 eval supported=\$$cacheid 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8404$as_echo "$supported" >&6; } 8405 if test "$supported" = "yes" ; then 8406 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8407 found="yes" 8408 fi 8409 fi 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425xorg_testset_save_CFLAGS="$CFLAGS" 8426 8427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8432 $as_echo_n "(cached) " >&6 8433else 8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8435/* end confdefs.h. */ 8436int i; 8437_ACEOF 8438if ac_fn_c_try_compile "$LINENO"; then : 8439 xorg_cv_cc_flag_unknown_warning_option=yes 8440else 8441 xorg_cv_cc_flag_unknown_warning_option=no 8442fi 8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8444fi 8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8448 CFLAGS="$xorg_testset_save_CFLAGS" 8449fi 8450 8451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8454 fi 8455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8459 $as_echo_n "(cached) " >&6 8460else 8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462/* end confdefs.h. */ 8463int i; 8464_ACEOF 8465if ac_fn_c_try_compile "$LINENO"; then : 8466 xorg_cv_cc_flag_unused_command_line_argument=yes 8467else 8468 xorg_cv_cc_flag_unused_command_line_argument=no 8469fi 8470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8471fi 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8475 CFLAGS="$xorg_testset_save_CFLAGS" 8476fi 8477 8478found="no" 8479 8480 if test $found = "no" ; then 8481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8483 fi 8484 8485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8487 fi 8488 8489 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8490 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8492$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8493 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8494 if eval \${$cacheid+:} false; then : 8495 $as_echo_n "(cached) " >&6 8496else 8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8498/* end confdefs.h. */ 8499int i; 8500int 8501main () 8502{ 8503 8504 ; 8505 return 0; 8506} 8507_ACEOF 8508if ac_fn_c_try_link "$LINENO"; then : 8509 eval $cacheid=yes 8510else 8511 eval $cacheid=no 8512fi 8513rm -f core conftest.err conftest.$ac_objext \ 8514 conftest$ac_exeext conftest.$ac_ext 8515fi 8516 8517 8518 CFLAGS="$xorg_testset_save_CFLAGS" 8519 8520 eval supported=\$$cacheid 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8522$as_echo "$supported" >&6; } 8523 if test "$supported" = "yes" ; then 8524 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8525 found="yes" 8526 fi 8527 fi 8528 8529 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8530else 8531{ $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 8532$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;} 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546xorg_testset_save_CFLAGS="$CFLAGS" 8547 8548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554else 8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8556/* end confdefs.h. */ 8557int i; 8558_ACEOF 8559if ac_fn_c_try_compile "$LINENO"; then : 8560 xorg_cv_cc_flag_unknown_warning_option=yes 8561else 8562 xorg_cv_cc_flag_unknown_warning_option=no 8563fi 8564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8565fi 8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8569 CFLAGS="$xorg_testset_save_CFLAGS" 8570fi 8571 8572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8575 fi 8576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8580 $as_echo_n "(cached) " >&6 8581else 8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8583/* end confdefs.h. */ 8584int i; 8585_ACEOF 8586if ac_fn_c_try_compile "$LINENO"; then : 8587 xorg_cv_cc_flag_unused_command_line_argument=yes 8588else 8589 xorg_cv_cc_flag_unused_command_line_argument=no 8590fi 8591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8592fi 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8596 CFLAGS="$xorg_testset_save_CFLAGS" 8597fi 8598 8599found="no" 8600 8601 if test $found = "no" ; then 8602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8604 fi 8605 8606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8608 fi 8609 8610 CFLAGS="$CFLAGS -Wimplicit" 8611 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8613$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8614 cacheid=xorg_cv_cc_flag__Wimplicit 8615 if eval \${$cacheid+:} false; then : 8616 $as_echo_n "(cached) " >&6 8617else 8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8619/* end confdefs.h. */ 8620int i; 8621int 8622main () 8623{ 8624 8625 ; 8626 return 0; 8627} 8628_ACEOF 8629if ac_fn_c_try_link "$LINENO"; then : 8630 eval $cacheid=yes 8631else 8632 eval $cacheid=no 8633fi 8634rm -f core conftest.err conftest.$ac_objext \ 8635 conftest$ac_exeext conftest.$ac_ext 8636fi 8637 8638 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8640 8641 eval supported=\$$cacheid 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8643$as_echo "$supported" >&6; } 8644 if test "$supported" = "yes" ; then 8645 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8646 found="yes" 8647 fi 8648 fi 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664xorg_testset_save_CFLAGS="$CFLAGS" 8665 8666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675int i; 8676_ACEOF 8677if ac_fn_c_try_compile "$LINENO"; then : 8678 xorg_cv_cc_flag_unknown_warning_option=yes 8679else 8680 xorg_cv_cc_flag_unknown_warning_option=no 8681fi 8682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8683fi 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8687 CFLAGS="$xorg_testset_save_CFLAGS" 8688fi 8689 8690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8693 fi 8694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699else 8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8701/* end confdefs.h. */ 8702int i; 8703_ACEOF 8704if ac_fn_c_try_compile "$LINENO"; then : 8705 xorg_cv_cc_flag_unused_command_line_argument=yes 8706else 8707 xorg_cv_cc_flag_unused_command_line_argument=no 8708fi 8709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8710fi 8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8714 CFLAGS="$xorg_testset_save_CFLAGS" 8715fi 8716 8717found="no" 8718 8719 if test $found = "no" ; then 8720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8722 fi 8723 8724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8726 fi 8727 8728 CFLAGS="$CFLAGS -Wnonnull" 8729 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8731$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8732 cacheid=xorg_cv_cc_flag__Wnonnull 8733 if eval \${$cacheid+:} false; then : 8734 $as_echo_n "(cached) " >&6 8735else 8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737/* end confdefs.h. */ 8738int i; 8739int 8740main () 8741{ 8742 8743 ; 8744 return 0; 8745} 8746_ACEOF 8747if ac_fn_c_try_link "$LINENO"; then : 8748 eval $cacheid=yes 8749else 8750 eval $cacheid=no 8751fi 8752rm -f core conftest.err conftest.$ac_objext \ 8753 conftest$ac_exeext conftest.$ac_ext 8754fi 8755 8756 8757 CFLAGS="$xorg_testset_save_CFLAGS" 8758 8759 eval supported=\$$cacheid 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8761$as_echo "$supported" >&6; } 8762 if test "$supported" = "yes" ; then 8763 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8764 found="yes" 8765 fi 8766 fi 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782xorg_testset_save_CFLAGS="$CFLAGS" 8783 8784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8789 $as_echo_n "(cached) " >&6 8790else 8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8792/* end confdefs.h. */ 8793int i; 8794_ACEOF 8795if ac_fn_c_try_compile "$LINENO"; then : 8796 xorg_cv_cc_flag_unknown_warning_option=yes 8797else 8798 xorg_cv_cc_flag_unknown_warning_option=no 8799fi 8800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8801fi 8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8805 CFLAGS="$xorg_testset_save_CFLAGS" 8806fi 8807 8808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8811 fi 8812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8819/* end confdefs.h. */ 8820int i; 8821_ACEOF 8822if ac_fn_c_try_compile "$LINENO"; then : 8823 xorg_cv_cc_flag_unused_command_line_argument=yes 8824else 8825 xorg_cv_cc_flag_unused_command_line_argument=no 8826fi 8827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8828fi 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8832 CFLAGS="$xorg_testset_save_CFLAGS" 8833fi 8834 8835found="no" 8836 8837 if test $found = "no" ; then 8838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8840 fi 8841 8842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8844 fi 8845 8846 CFLAGS="$CFLAGS -Winit-self" 8847 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8849$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8850 cacheid=xorg_cv_cc_flag__Winit_self 8851 if eval \${$cacheid+:} false; then : 8852 $as_echo_n "(cached) " >&6 8853else 8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8855/* end confdefs.h. */ 8856int i; 8857int 8858main () 8859{ 8860 8861 ; 8862 return 0; 8863} 8864_ACEOF 8865if ac_fn_c_try_link "$LINENO"; then : 8866 eval $cacheid=yes 8867else 8868 eval $cacheid=no 8869fi 8870rm -f core conftest.err conftest.$ac_objext \ 8871 conftest$ac_exeext conftest.$ac_ext 8872fi 8873 8874 8875 CFLAGS="$xorg_testset_save_CFLAGS" 8876 8877 eval supported=\$$cacheid 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8879$as_echo "$supported" >&6; } 8880 if test "$supported" = "yes" ; then 8881 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8882 found="yes" 8883 fi 8884 fi 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900xorg_testset_save_CFLAGS="$CFLAGS" 8901 8902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8907 $as_echo_n "(cached) " >&6 8908else 8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8910/* end confdefs.h. */ 8911int i; 8912_ACEOF 8913if ac_fn_c_try_compile "$LINENO"; then : 8914 xorg_cv_cc_flag_unknown_warning_option=yes 8915else 8916 xorg_cv_cc_flag_unknown_warning_option=no 8917fi 8918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8919fi 8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8923 CFLAGS="$xorg_testset_save_CFLAGS" 8924fi 8925 8926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8929 fi 8930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8934 $as_echo_n "(cached) " >&6 8935else 8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8937/* end confdefs.h. */ 8938int i; 8939_ACEOF 8940if ac_fn_c_try_compile "$LINENO"; then : 8941 xorg_cv_cc_flag_unused_command_line_argument=yes 8942else 8943 xorg_cv_cc_flag_unused_command_line_argument=no 8944fi 8945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8946fi 8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8950 CFLAGS="$xorg_testset_save_CFLAGS" 8951fi 8952 8953found="no" 8954 8955 if test $found = "no" ; then 8956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8958 fi 8959 8960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8962 fi 8963 8964 CFLAGS="$CFLAGS -Wmain" 8965 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8967$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8968 cacheid=xorg_cv_cc_flag__Wmain 8969 if eval \${$cacheid+:} false; then : 8970 $as_echo_n "(cached) " >&6 8971else 8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8973/* end confdefs.h. */ 8974int i; 8975int 8976main () 8977{ 8978 8979 ; 8980 return 0; 8981} 8982_ACEOF 8983if ac_fn_c_try_link "$LINENO"; then : 8984 eval $cacheid=yes 8985else 8986 eval $cacheid=no 8987fi 8988rm -f core conftest.err conftest.$ac_objext \ 8989 conftest$ac_exeext conftest.$ac_ext 8990fi 8991 8992 8993 CFLAGS="$xorg_testset_save_CFLAGS" 8994 8995 eval supported=\$$cacheid 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8997$as_echo "$supported" >&6; } 8998 if test "$supported" = "yes" ; then 8999 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9000 found="yes" 9001 fi 9002 fi 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018xorg_testset_save_CFLAGS="$CFLAGS" 9019 9020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9025 $as_echo_n "(cached) " >&6 9026else 9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9028/* end confdefs.h. */ 9029int i; 9030_ACEOF 9031if ac_fn_c_try_compile "$LINENO"; then : 9032 xorg_cv_cc_flag_unknown_warning_option=yes 9033else 9034 xorg_cv_cc_flag_unknown_warning_option=no 9035fi 9036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9037fi 9038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9041 CFLAGS="$xorg_testset_save_CFLAGS" 9042fi 9043 9044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9047 fi 9048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9052 $as_echo_n "(cached) " >&6 9053else 9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055/* end confdefs.h. */ 9056int i; 9057_ACEOF 9058if ac_fn_c_try_compile "$LINENO"; then : 9059 xorg_cv_cc_flag_unused_command_line_argument=yes 9060else 9061 xorg_cv_cc_flag_unused_command_line_argument=no 9062fi 9063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9064fi 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9068 CFLAGS="$xorg_testset_save_CFLAGS" 9069fi 9070 9071found="no" 9072 9073 if test $found = "no" ; then 9074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9076 fi 9077 9078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9080 fi 9081 9082 CFLAGS="$CFLAGS -Wmissing-braces" 9083 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9085$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9086 cacheid=xorg_cv_cc_flag__Wmissing_braces 9087 if eval \${$cacheid+:} false; then : 9088 $as_echo_n "(cached) " >&6 9089else 9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9091/* end confdefs.h. */ 9092int i; 9093int 9094main () 9095{ 9096 9097 ; 9098 return 0; 9099} 9100_ACEOF 9101if ac_fn_c_try_link "$LINENO"; then : 9102 eval $cacheid=yes 9103else 9104 eval $cacheid=no 9105fi 9106rm -f core conftest.err conftest.$ac_objext \ 9107 conftest$ac_exeext conftest.$ac_ext 9108fi 9109 9110 9111 CFLAGS="$xorg_testset_save_CFLAGS" 9112 9113 eval supported=\$$cacheid 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9115$as_echo "$supported" >&6; } 9116 if test "$supported" = "yes" ; then 9117 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9118 found="yes" 9119 fi 9120 fi 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136xorg_testset_save_CFLAGS="$CFLAGS" 9137 9138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9143 $as_echo_n "(cached) " >&6 9144else 9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9146/* end confdefs.h. */ 9147int i; 9148_ACEOF 9149if ac_fn_c_try_compile "$LINENO"; then : 9150 xorg_cv_cc_flag_unknown_warning_option=yes 9151else 9152 xorg_cv_cc_flag_unknown_warning_option=no 9153fi 9154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9155fi 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9159 CFLAGS="$xorg_testset_save_CFLAGS" 9160fi 9161 9162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9165 fi 9166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9170 $as_echo_n "(cached) " >&6 9171else 9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9173/* end confdefs.h. */ 9174int i; 9175_ACEOF 9176if ac_fn_c_try_compile "$LINENO"; then : 9177 xorg_cv_cc_flag_unused_command_line_argument=yes 9178else 9179 xorg_cv_cc_flag_unused_command_line_argument=no 9180fi 9181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9182fi 9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9186 CFLAGS="$xorg_testset_save_CFLAGS" 9187fi 9188 9189found="no" 9190 9191 if test $found = "no" ; then 9192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9194 fi 9195 9196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9198 fi 9199 9200 CFLAGS="$CFLAGS -Wsequence-point" 9201 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9203$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9204 cacheid=xorg_cv_cc_flag__Wsequence_point 9205 if eval \${$cacheid+:} false; then : 9206 $as_echo_n "(cached) " >&6 9207else 9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9209/* end confdefs.h. */ 9210int i; 9211int 9212main () 9213{ 9214 9215 ; 9216 return 0; 9217} 9218_ACEOF 9219if ac_fn_c_try_link "$LINENO"; then : 9220 eval $cacheid=yes 9221else 9222 eval $cacheid=no 9223fi 9224rm -f core conftest.err conftest.$ac_objext \ 9225 conftest$ac_exeext conftest.$ac_ext 9226fi 9227 9228 9229 CFLAGS="$xorg_testset_save_CFLAGS" 9230 9231 eval supported=\$$cacheid 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9233$as_echo "$supported" >&6; } 9234 if test "$supported" = "yes" ; then 9235 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9236 found="yes" 9237 fi 9238 fi 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254xorg_testset_save_CFLAGS="$CFLAGS" 9255 9256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9261 $as_echo_n "(cached) " >&6 9262else 9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9264/* end confdefs.h. */ 9265int i; 9266_ACEOF 9267if ac_fn_c_try_compile "$LINENO"; then : 9268 xorg_cv_cc_flag_unknown_warning_option=yes 9269else 9270 xorg_cv_cc_flag_unknown_warning_option=no 9271fi 9272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9273fi 9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9277 CFLAGS="$xorg_testset_save_CFLAGS" 9278fi 9279 9280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9283 fi 9284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9288 $as_echo_n "(cached) " >&6 9289else 9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9291/* end confdefs.h. */ 9292int i; 9293_ACEOF 9294if ac_fn_c_try_compile "$LINENO"; then : 9295 xorg_cv_cc_flag_unused_command_line_argument=yes 9296else 9297 xorg_cv_cc_flag_unused_command_line_argument=no 9298fi 9299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9300fi 9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9304 CFLAGS="$xorg_testset_save_CFLAGS" 9305fi 9306 9307found="no" 9308 9309 if test $found = "no" ; then 9310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9312 fi 9313 9314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9316 fi 9317 9318 CFLAGS="$CFLAGS -Wreturn-type" 9319 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9321$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9322 cacheid=xorg_cv_cc_flag__Wreturn_type 9323 if eval \${$cacheid+:} false; then : 9324 $as_echo_n "(cached) " >&6 9325else 9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9327/* end confdefs.h. */ 9328int i; 9329int 9330main () 9331{ 9332 9333 ; 9334 return 0; 9335} 9336_ACEOF 9337if ac_fn_c_try_link "$LINENO"; then : 9338 eval $cacheid=yes 9339else 9340 eval $cacheid=no 9341fi 9342rm -f core conftest.err conftest.$ac_objext \ 9343 conftest$ac_exeext conftest.$ac_ext 9344fi 9345 9346 9347 CFLAGS="$xorg_testset_save_CFLAGS" 9348 9349 eval supported=\$$cacheid 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9351$as_echo "$supported" >&6; } 9352 if test "$supported" = "yes" ; then 9353 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9354 found="yes" 9355 fi 9356 fi 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372xorg_testset_save_CFLAGS="$CFLAGS" 9373 9374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9379 $as_echo_n "(cached) " >&6 9380else 9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9382/* end confdefs.h. */ 9383int i; 9384_ACEOF 9385if ac_fn_c_try_compile "$LINENO"; then : 9386 xorg_cv_cc_flag_unknown_warning_option=yes 9387else 9388 xorg_cv_cc_flag_unknown_warning_option=no 9389fi 9390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9391fi 9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9395 CFLAGS="$xorg_testset_save_CFLAGS" 9396fi 9397 9398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9401 fi 9402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9406 $as_echo_n "(cached) " >&6 9407else 9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409/* end confdefs.h. */ 9410int i; 9411_ACEOF 9412if ac_fn_c_try_compile "$LINENO"; then : 9413 xorg_cv_cc_flag_unused_command_line_argument=yes 9414else 9415 xorg_cv_cc_flag_unused_command_line_argument=no 9416fi 9417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9418fi 9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9422 CFLAGS="$xorg_testset_save_CFLAGS" 9423fi 9424 9425found="no" 9426 9427 if test $found = "no" ; then 9428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9430 fi 9431 9432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9434 fi 9435 9436 CFLAGS="$CFLAGS -Wtrigraphs" 9437 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9439$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9440 cacheid=xorg_cv_cc_flag__Wtrigraphs 9441 if eval \${$cacheid+:} false; then : 9442 $as_echo_n "(cached) " >&6 9443else 9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9445/* end confdefs.h. */ 9446int i; 9447int 9448main () 9449{ 9450 9451 ; 9452 return 0; 9453} 9454_ACEOF 9455if ac_fn_c_try_link "$LINENO"; then : 9456 eval $cacheid=yes 9457else 9458 eval $cacheid=no 9459fi 9460rm -f core conftest.err conftest.$ac_objext \ 9461 conftest$ac_exeext conftest.$ac_ext 9462fi 9463 9464 9465 CFLAGS="$xorg_testset_save_CFLAGS" 9466 9467 eval supported=\$$cacheid 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9469$as_echo "$supported" >&6; } 9470 if test "$supported" = "yes" ; then 9471 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9472 found="yes" 9473 fi 9474 fi 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490xorg_testset_save_CFLAGS="$CFLAGS" 9491 9492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9497 $as_echo_n "(cached) " >&6 9498else 9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9500/* end confdefs.h. */ 9501int i; 9502_ACEOF 9503if ac_fn_c_try_compile "$LINENO"; then : 9504 xorg_cv_cc_flag_unknown_warning_option=yes 9505else 9506 xorg_cv_cc_flag_unknown_warning_option=no 9507fi 9508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9509fi 9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9513 CFLAGS="$xorg_testset_save_CFLAGS" 9514fi 9515 9516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9519 fi 9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9524 $as_echo_n "(cached) " >&6 9525else 9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9527/* end confdefs.h. */ 9528int i; 9529_ACEOF 9530if ac_fn_c_try_compile "$LINENO"; then : 9531 xorg_cv_cc_flag_unused_command_line_argument=yes 9532else 9533 xorg_cv_cc_flag_unused_command_line_argument=no 9534fi 9535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9536fi 9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9540 CFLAGS="$xorg_testset_save_CFLAGS" 9541fi 9542 9543found="no" 9544 9545 if test $found = "no" ; then 9546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9548 fi 9549 9550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9552 fi 9553 9554 CFLAGS="$CFLAGS -Warray-bounds" 9555 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9557$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9558 cacheid=xorg_cv_cc_flag__Warray_bounds 9559 if eval \${$cacheid+:} false; then : 9560 $as_echo_n "(cached) " >&6 9561else 9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9563/* end confdefs.h. */ 9564int i; 9565int 9566main () 9567{ 9568 9569 ; 9570 return 0; 9571} 9572_ACEOF 9573if ac_fn_c_try_link "$LINENO"; then : 9574 eval $cacheid=yes 9575else 9576 eval $cacheid=no 9577fi 9578rm -f core conftest.err conftest.$ac_objext \ 9579 conftest$ac_exeext conftest.$ac_ext 9580fi 9581 9582 9583 CFLAGS="$xorg_testset_save_CFLAGS" 9584 9585 eval supported=\$$cacheid 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9587$as_echo "$supported" >&6; } 9588 if test "$supported" = "yes" ; then 9589 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9590 found="yes" 9591 fi 9592 fi 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608xorg_testset_save_CFLAGS="$CFLAGS" 9609 9610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9615 $as_echo_n "(cached) " >&6 9616else 9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9618/* end confdefs.h. */ 9619int i; 9620_ACEOF 9621if ac_fn_c_try_compile "$LINENO"; then : 9622 xorg_cv_cc_flag_unknown_warning_option=yes 9623else 9624 xorg_cv_cc_flag_unknown_warning_option=no 9625fi 9626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9627fi 9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9631 CFLAGS="$xorg_testset_save_CFLAGS" 9632fi 9633 9634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9637 fi 9638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9642 $as_echo_n "(cached) " >&6 9643else 9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9645/* end confdefs.h. */ 9646int i; 9647_ACEOF 9648if ac_fn_c_try_compile "$LINENO"; then : 9649 xorg_cv_cc_flag_unused_command_line_argument=yes 9650else 9651 xorg_cv_cc_flag_unused_command_line_argument=no 9652fi 9653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9654fi 9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9658 CFLAGS="$xorg_testset_save_CFLAGS" 9659fi 9660 9661found="no" 9662 9663 if test $found = "no" ; then 9664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9666 fi 9667 9668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9670 fi 9671 9672 CFLAGS="$CFLAGS -Wwrite-strings" 9673 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9675$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9676 cacheid=xorg_cv_cc_flag__Wwrite_strings 9677 if eval \${$cacheid+:} false; then : 9678 $as_echo_n "(cached) " >&6 9679else 9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9681/* end confdefs.h. */ 9682int i; 9683int 9684main () 9685{ 9686 9687 ; 9688 return 0; 9689} 9690_ACEOF 9691if ac_fn_c_try_link "$LINENO"; then : 9692 eval $cacheid=yes 9693else 9694 eval $cacheid=no 9695fi 9696rm -f core conftest.err conftest.$ac_objext \ 9697 conftest$ac_exeext conftest.$ac_ext 9698fi 9699 9700 9701 CFLAGS="$xorg_testset_save_CFLAGS" 9702 9703 eval supported=\$$cacheid 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9705$as_echo "$supported" >&6; } 9706 if test "$supported" = "yes" ; then 9707 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9708 found="yes" 9709 fi 9710 fi 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726xorg_testset_save_CFLAGS="$CFLAGS" 9727 9728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9733 $as_echo_n "(cached) " >&6 9734else 9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9736/* end confdefs.h. */ 9737int i; 9738_ACEOF 9739if ac_fn_c_try_compile "$LINENO"; then : 9740 xorg_cv_cc_flag_unknown_warning_option=yes 9741else 9742 xorg_cv_cc_flag_unknown_warning_option=no 9743fi 9744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9745fi 9746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9749 CFLAGS="$xorg_testset_save_CFLAGS" 9750fi 9751 9752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9755 fi 9756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761else 9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9763/* end confdefs.h. */ 9764int i; 9765_ACEOF 9766if ac_fn_c_try_compile "$LINENO"; then : 9767 xorg_cv_cc_flag_unused_command_line_argument=yes 9768else 9769 xorg_cv_cc_flag_unused_command_line_argument=no 9770fi 9771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9772fi 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9776 CFLAGS="$xorg_testset_save_CFLAGS" 9777fi 9778 9779found="no" 9780 9781 if test $found = "no" ; then 9782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9784 fi 9785 9786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9788 fi 9789 9790 CFLAGS="$CFLAGS -Waddress" 9791 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9793$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9794 cacheid=xorg_cv_cc_flag__Waddress 9795 if eval \${$cacheid+:} false; then : 9796 $as_echo_n "(cached) " >&6 9797else 9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9799/* end confdefs.h. */ 9800int i; 9801int 9802main () 9803{ 9804 9805 ; 9806 return 0; 9807} 9808_ACEOF 9809if ac_fn_c_try_link "$LINENO"; then : 9810 eval $cacheid=yes 9811else 9812 eval $cacheid=no 9813fi 9814rm -f core conftest.err conftest.$ac_objext \ 9815 conftest$ac_exeext conftest.$ac_ext 9816fi 9817 9818 9819 CFLAGS="$xorg_testset_save_CFLAGS" 9820 9821 eval supported=\$$cacheid 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9823$as_echo "$supported" >&6; } 9824 if test "$supported" = "yes" ; then 9825 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9826 found="yes" 9827 fi 9828 fi 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844xorg_testset_save_CFLAGS="$CFLAGS" 9845 9846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9851 $as_echo_n "(cached) " >&6 9852else 9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9854/* end confdefs.h. */ 9855int i; 9856_ACEOF 9857if ac_fn_c_try_compile "$LINENO"; then : 9858 xorg_cv_cc_flag_unknown_warning_option=yes 9859else 9860 xorg_cv_cc_flag_unknown_warning_option=no 9861fi 9862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9863fi 9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9867 CFLAGS="$xorg_testset_save_CFLAGS" 9868fi 9869 9870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9873 fi 9874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9878 $as_echo_n "(cached) " >&6 9879else 9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9881/* end confdefs.h. */ 9882int i; 9883_ACEOF 9884if ac_fn_c_try_compile "$LINENO"; then : 9885 xorg_cv_cc_flag_unused_command_line_argument=yes 9886else 9887 xorg_cv_cc_flag_unused_command_line_argument=no 9888fi 9889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9890fi 9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9894 CFLAGS="$xorg_testset_save_CFLAGS" 9895fi 9896 9897found="no" 9898 9899 if test $found = "no" ; then 9900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9902 fi 9903 9904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9906 fi 9907 9908 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9909 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9911$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9912 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9913 if eval \${$cacheid+:} false; then : 9914 $as_echo_n "(cached) " >&6 9915else 9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9917/* end confdefs.h. */ 9918int i; 9919int 9920main () 9921{ 9922 9923 ; 9924 return 0; 9925} 9926_ACEOF 9927if ac_fn_c_try_link "$LINENO"; then : 9928 eval $cacheid=yes 9929else 9930 eval $cacheid=no 9931fi 9932rm -f core conftest.err conftest.$ac_objext \ 9933 conftest$ac_exeext conftest.$ac_ext 9934fi 9935 9936 9937 CFLAGS="$xorg_testset_save_CFLAGS" 9938 9939 eval supported=\$$cacheid 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9941$as_echo "$supported" >&6; } 9942 if test "$supported" = "yes" ; then 9943 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9944 found="yes" 9945 fi 9946 fi 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962xorg_testset_save_CFLAGS="$CFLAGS" 9963 9964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9969 $as_echo_n "(cached) " >&6 9970else 9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9972/* end confdefs.h. */ 9973int i; 9974_ACEOF 9975if ac_fn_c_try_compile "$LINENO"; then : 9976 xorg_cv_cc_flag_unknown_warning_option=yes 9977else 9978 xorg_cv_cc_flag_unknown_warning_option=no 9979fi 9980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9981fi 9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9985 CFLAGS="$xorg_testset_save_CFLAGS" 9986fi 9987 9988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9991 fi 9992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9996 $as_echo_n "(cached) " >&6 9997else 9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000int i; 10001_ACEOF 10002if ac_fn_c_try_compile "$LINENO"; then : 10003 xorg_cv_cc_flag_unused_command_line_argument=yes 10004else 10005 xorg_cv_cc_flag_unused_command_line_argument=no 10006fi 10007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10008fi 10009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10012 CFLAGS="$xorg_testset_save_CFLAGS" 10013fi 10014 10015found="no" 10016 10017 if test $found = "no" ; then 10018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10020 fi 10021 10022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10024 fi 10025 10026 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10027 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10029$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10030 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10031 if eval \${$cacheid+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033else 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036int i; 10037int 10038main () 10039{ 10040 10041 ; 10042 return 0; 10043} 10044_ACEOF 10045if ac_fn_c_try_link "$LINENO"; then : 10046 eval $cacheid=yes 10047else 10048 eval $cacheid=no 10049fi 10050rm -f core conftest.err conftest.$ac_objext \ 10051 conftest$ac_exeext conftest.$ac_ext 10052fi 10053 10054 10055 CFLAGS="$xorg_testset_save_CFLAGS" 10056 10057 eval supported=\$$cacheid 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10059$as_echo "$supported" >&6; } 10060 if test "$supported" = "yes" ; then 10061 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10062 found="yes" 10063 fi 10064 fi 10065 10066 10067fi 10068 10069 10070 10071 10072 10073 10074 10075 CWARNFLAGS="$BASE_CFLAGS" 10076 if test "x$GCC" = xyes ; then 10077 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10078 fi 10079 10080 10081 10082 10083 10084 10085 10086 10087# Check whether --enable-strict-compilation was given. 10088if test "${enable_strict_compilation+set}" = set; then : 10089 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10090else 10091 STRICT_COMPILE=no 10092fi 10093 10094 10095 10096 10097 10098 10099STRICT_CFLAGS="" 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113xorg_testset_save_CFLAGS="$CFLAGS" 10114 10115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10120 $as_echo_n "(cached) " >&6 10121else 10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10123/* end confdefs.h. */ 10124int i; 10125_ACEOF 10126if ac_fn_c_try_compile "$LINENO"; then : 10127 xorg_cv_cc_flag_unknown_warning_option=yes 10128else 10129 xorg_cv_cc_flag_unknown_warning_option=no 10130fi 10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10132fi 10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10136 CFLAGS="$xorg_testset_save_CFLAGS" 10137fi 10138 10139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10142 fi 10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148else 10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10150/* end confdefs.h. */ 10151int i; 10152_ACEOF 10153if ac_fn_c_try_compile "$LINENO"; then : 10154 xorg_cv_cc_flag_unused_command_line_argument=yes 10155else 10156 xorg_cv_cc_flag_unused_command_line_argument=no 10157fi 10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10159fi 10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10163 CFLAGS="$xorg_testset_save_CFLAGS" 10164fi 10165 10166found="no" 10167 10168 if test $found = "no" ; then 10169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10171 fi 10172 10173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10175 fi 10176 10177 CFLAGS="$CFLAGS -pedantic" 10178 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10180$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10181 cacheid=xorg_cv_cc_flag__pedantic 10182 if eval \${$cacheid+:} false; then : 10183 $as_echo_n "(cached) " >&6 10184else 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187int i; 10188int 10189main () 10190{ 10191 10192 ; 10193 return 0; 10194} 10195_ACEOF 10196if ac_fn_c_try_link "$LINENO"; then : 10197 eval $cacheid=yes 10198else 10199 eval $cacheid=no 10200fi 10201rm -f core conftest.err conftest.$ac_objext \ 10202 conftest$ac_exeext conftest.$ac_ext 10203fi 10204 10205 10206 CFLAGS="$xorg_testset_save_CFLAGS" 10207 10208 eval supported=\$$cacheid 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10210$as_echo "$supported" >&6; } 10211 if test "$supported" = "yes" ; then 10212 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10213 found="yes" 10214 fi 10215 fi 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231xorg_testset_save_CFLAGS="$CFLAGS" 10232 10233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10238 $as_echo_n "(cached) " >&6 10239else 10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10241/* end confdefs.h. */ 10242int i; 10243_ACEOF 10244if ac_fn_c_try_compile "$LINENO"; then : 10245 xorg_cv_cc_flag_unknown_warning_option=yes 10246else 10247 xorg_cv_cc_flag_unknown_warning_option=no 10248fi 10249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10250fi 10251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10254 CFLAGS="$xorg_testset_save_CFLAGS" 10255fi 10256 10257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10260 fi 10261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266else 10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10268/* end confdefs.h. */ 10269int i; 10270_ACEOF 10271if ac_fn_c_try_compile "$LINENO"; then : 10272 xorg_cv_cc_flag_unused_command_line_argument=yes 10273else 10274 xorg_cv_cc_flag_unused_command_line_argument=no 10275fi 10276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10277fi 10278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10281 CFLAGS="$xorg_testset_save_CFLAGS" 10282fi 10283 10284found="no" 10285 10286 if test $found = "no" ; then 10287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10289 fi 10290 10291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10293 fi 10294 10295 CFLAGS="$CFLAGS -Werror" 10296 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10298$as_echo_n "checking if $CC supports -Werror... " >&6; } 10299 cacheid=xorg_cv_cc_flag__Werror 10300 if eval \${$cacheid+:} false; then : 10301 $as_echo_n "(cached) " >&6 10302else 10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10304/* end confdefs.h. */ 10305int i; 10306int 10307main () 10308{ 10309 10310 ; 10311 return 0; 10312} 10313_ACEOF 10314if ac_fn_c_try_link "$LINENO"; then : 10315 eval $cacheid=yes 10316else 10317 eval $cacheid=no 10318fi 10319rm -f core conftest.err conftest.$ac_objext \ 10320 conftest$ac_exeext conftest.$ac_ext 10321fi 10322 10323 10324 CFLAGS="$xorg_testset_save_CFLAGS" 10325 10326 eval supported=\$$cacheid 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10328$as_echo "$supported" >&6; } 10329 if test "$supported" = "yes" ; then 10330 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10331 found="yes" 10332 fi 10333 fi 10334 10335 if test $found = "no" ; then 10336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10338 fi 10339 10340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10342 fi 10343 10344 CFLAGS="$CFLAGS -errwarn" 10345 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10347$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10348 cacheid=xorg_cv_cc_flag__errwarn 10349 if eval \${$cacheid+:} false; then : 10350 $as_echo_n "(cached) " >&6 10351else 10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353/* end confdefs.h. */ 10354int i; 10355int 10356main () 10357{ 10358 10359 ; 10360 return 0; 10361} 10362_ACEOF 10363if ac_fn_c_try_link "$LINENO"; then : 10364 eval $cacheid=yes 10365else 10366 eval $cacheid=no 10367fi 10368rm -f core conftest.err conftest.$ac_objext \ 10369 conftest$ac_exeext conftest.$ac_ext 10370fi 10371 10372 10373 CFLAGS="$xorg_testset_save_CFLAGS" 10374 10375 eval supported=\$$cacheid 10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10377$as_echo "$supported" >&6; } 10378 if test "$supported" = "yes" ; then 10379 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10380 found="yes" 10381 fi 10382 fi 10383 10384 10385 10386# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10387# activate it with -Werror, so we add it here explicitly. 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401xorg_testset_save_CFLAGS="$CFLAGS" 10402 10403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10408 $as_echo_n "(cached) " >&6 10409else 10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10411/* end confdefs.h. */ 10412int i; 10413_ACEOF 10414if ac_fn_c_try_compile "$LINENO"; then : 10415 xorg_cv_cc_flag_unknown_warning_option=yes 10416else 10417 xorg_cv_cc_flag_unknown_warning_option=no 10418fi 10419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10420fi 10421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10424 CFLAGS="$xorg_testset_save_CFLAGS" 10425fi 10426 10427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10430 fi 10431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10435 $as_echo_n "(cached) " >&6 10436else 10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10438/* end confdefs.h. */ 10439int i; 10440_ACEOF 10441if ac_fn_c_try_compile "$LINENO"; then : 10442 xorg_cv_cc_flag_unused_command_line_argument=yes 10443else 10444 xorg_cv_cc_flag_unused_command_line_argument=no 10445fi 10446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10447fi 10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10451 CFLAGS="$xorg_testset_save_CFLAGS" 10452fi 10453 10454found="no" 10455 10456 if test $found = "no" ; then 10457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10459 fi 10460 10461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10463 fi 10464 10465 CFLAGS="$CFLAGS -Werror=attributes" 10466 10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10468$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10469 cacheid=xorg_cv_cc_flag__Werror_attributes 10470 if eval \${$cacheid+:} false; then : 10471 $as_echo_n "(cached) " >&6 10472else 10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10474/* end confdefs.h. */ 10475int i; 10476int 10477main () 10478{ 10479 10480 ; 10481 return 0; 10482} 10483_ACEOF 10484if ac_fn_c_try_link "$LINENO"; then : 10485 eval $cacheid=yes 10486else 10487 eval $cacheid=no 10488fi 10489rm -f core conftest.err conftest.$ac_objext \ 10490 conftest$ac_exeext conftest.$ac_ext 10491fi 10492 10493 10494 CFLAGS="$xorg_testset_save_CFLAGS" 10495 10496 eval supported=\$$cacheid 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10498$as_echo "$supported" >&6; } 10499 if test "$supported" = "yes" ; then 10500 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10501 found="yes" 10502 fi 10503 fi 10504 10505 10506 10507if test "x$STRICT_COMPILE" = "xyes"; then 10508 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10509 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10510fi 10511 10512 10513 10514 10515 10516 10517cat >>confdefs.h <<_ACEOF 10518#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10519_ACEOF 10520 10521 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10522 if test "x$PVM" = "x"; then 10523 PVM="0" 10524 fi 10525 10526cat >>confdefs.h <<_ACEOF 10527#define PACKAGE_VERSION_MINOR $PVM 10528_ACEOF 10529 10530 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10531 if test "x$PVP" = "x"; then 10532 PVP="0" 10533 fi 10534 10535cat >>confdefs.h <<_ACEOF 10536#define PACKAGE_VERSION_PATCHLEVEL $PVP 10537_ACEOF 10538 10539 10540 10541CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10542mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10543|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10544echo 'git directory not found: installing possibly empty changelog.' >&2)" 10545 10546 10547 10548 10549macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10550INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10551mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10552|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10553echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10554 10555 10556 10557 10558 10559 10560if test x$APP_MAN_SUFFIX = x ; then 10561 APP_MAN_SUFFIX=1 10562fi 10563if test x$APP_MAN_DIR = x ; then 10564 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10565fi 10566 10567if test x$LIB_MAN_SUFFIX = x ; then 10568 LIB_MAN_SUFFIX=3 10569fi 10570if test x$LIB_MAN_DIR = x ; then 10571 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10572fi 10573 10574if test x$FILE_MAN_SUFFIX = x ; then 10575 case $host_os in 10576 solaris*) FILE_MAN_SUFFIX=4 ;; 10577 *) FILE_MAN_SUFFIX=5 ;; 10578 esac 10579fi 10580if test x$FILE_MAN_DIR = x ; then 10581 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10582fi 10583 10584if test x$MISC_MAN_SUFFIX = x ; then 10585 case $host_os in 10586 solaris*) MISC_MAN_SUFFIX=5 ;; 10587 *) MISC_MAN_SUFFIX=7 ;; 10588 esac 10589fi 10590if test x$MISC_MAN_DIR = x ; then 10591 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10592fi 10593 10594if test x$DRIVER_MAN_SUFFIX = x ; then 10595 case $host_os in 10596 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10597 *) DRIVER_MAN_SUFFIX=4 ;; 10598 esac 10599fi 10600if test x$DRIVER_MAN_DIR = x ; then 10601 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10602fi 10603 10604if test x$ADMIN_MAN_SUFFIX = x ; then 10605 case $host_os in 10606 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10607 *) ADMIN_MAN_SUFFIX=8 ;; 10608 esac 10609fi 10610if test x$ADMIN_MAN_DIR = x ; then 10611 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10612fi 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628XORG_MAN_PAGE="X Version 11" 10629 10630MAN_SUBSTS="\ 10631 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10632 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10633 -e 's|__xservername__|Xorg|g' \ 10634 -e 's|__xconfigfile__|xorg.conf|g' \ 10635 -e 's|__projectroot__|\$(prefix)|g' \ 10636 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10637 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10638 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10639 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10640 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10641 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10642 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10643 10644 10645 10646# Check whether --enable-silent-rules was given. 10647if test "${enable_silent_rules+set}" = set; then : 10648 enableval=$enable_silent_rules; 10649fi 10650 10651case $enable_silent_rules in # ((( 10652 yes) AM_DEFAULT_VERBOSITY=0;; 10653 no) AM_DEFAULT_VERBOSITY=1;; 10654 *) AM_DEFAULT_VERBOSITY=0;; 10655esac 10656am_make=${MAKE-make} 10657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10658$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10659if ${am_cv_make_support_nested_variables+:} false; then : 10660 $as_echo_n "(cached) " >&6 10661else 10662 if $as_echo 'TRUE=$(BAR$(V)) 10663BAR0=false 10664BAR1=true 10665V=1 10666am__doit: 10667 @$(TRUE) 10668.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10669 am_cv_make_support_nested_variables=yes 10670else 10671 am_cv_make_support_nested_variables=no 10672fi 10673fi 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10675$as_echo "$am_cv_make_support_nested_variables" >&6; } 10676if test $am_cv_make_support_nested_variables = yes; then 10677 AM_V='$(V)' 10678 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10679else 10680 AM_V=$AM_DEFAULT_VERBOSITY 10681 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10682fi 10683AM_BACKSLASH='\' 10684 10685 10686 10687 10688 10689for ac_func in mkstemp 10690do : 10691 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 10692if test "x$ac_cv_func_mkstemp" = xyes; then : 10693 cat >>confdefs.h <<_ACEOF 10694#define HAVE_MKSTEMP 1 10695_ACEOF 10696 10697fi 10698done 10699 10700 10701# Math libraries & functions 10702# - some compilers use builtin inlines for floor when optimizing 10703# - lrint() is a C99 addition not found on some older systems 10704# - must do the libm check first so that the lrint check will have it in $LIBS 10705save_LIBS="$LIBS" 10706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 10707$as_echo_n "checking for library containing floor... " >&6; } 10708if ${ac_cv_search_floor+:} false; then : 10709 $as_echo_n "(cached) " >&6 10710else 10711 ac_func_search_save_LIBS=$LIBS 10712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10713/* end confdefs.h. */ 10714 10715/* Override any GCC internal prototype to avoid an error. 10716 Use char because int might match the return type of a GCC 10717 builtin and then its argument prototype would still apply. */ 10718#ifdef __cplusplus 10719extern "C" 10720#endif 10721char floor (); 10722int 10723main () 10724{ 10725return floor (); 10726 ; 10727 return 0; 10728} 10729_ACEOF 10730for ac_lib in '' m; do 10731 if test -z "$ac_lib"; then 10732 ac_res="none required" 10733 else 10734 ac_res=-l$ac_lib 10735 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10736 fi 10737 if ac_fn_c_try_link "$LINENO"; then : 10738 ac_cv_search_floor=$ac_res 10739fi 10740rm -f core conftest.err conftest.$ac_objext \ 10741 conftest$ac_exeext 10742 if ${ac_cv_search_floor+:} false; then : 10743 break 10744fi 10745done 10746if ${ac_cv_search_floor+:} false; then : 10747 10748else 10749 ac_cv_search_floor=no 10750fi 10751rm conftest.$ac_ext 10752LIBS=$ac_func_search_save_LIBS 10753fi 10754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 10755$as_echo "$ac_cv_search_floor" >&6; } 10756ac_res=$ac_cv_search_floor 10757if test "$ac_res" != no; then : 10758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10759 10760fi 10761 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5 10763$as_echo_n "checking for library containing lrint... " >&6; } 10764if ${ac_cv_search_lrint+:} false; then : 10765 $as_echo_n "(cached) " >&6 10766else 10767 ac_func_search_save_LIBS=$LIBS 10768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10769/* end confdefs.h. */ 10770 10771/* Override any GCC internal prototype to avoid an error. 10772 Use char because int might match the return type of a GCC 10773 builtin and then its argument prototype would still apply. */ 10774#ifdef __cplusplus 10775extern "C" 10776#endif 10777char lrint (); 10778int 10779main () 10780{ 10781return lrint (); 10782 ; 10783 return 0; 10784} 10785_ACEOF 10786for ac_lib in '' m; do 10787 if test -z "$ac_lib"; then 10788 ac_res="none required" 10789 else 10790 ac_res=-l$ac_lib 10791 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10792 fi 10793 if ac_fn_c_try_link "$LINENO"; then : 10794 ac_cv_search_lrint=$ac_res 10795fi 10796rm -f core conftest.err conftest.$ac_objext \ 10797 conftest$ac_exeext 10798 if ${ac_cv_search_lrint+:} false; then : 10799 break 10800fi 10801done 10802if ${ac_cv_search_lrint+:} false; then : 10803 10804else 10805 ac_cv_search_lrint=no 10806fi 10807rm conftest.$ac_ext 10808LIBS=$ac_func_search_save_LIBS 10809fi 10810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5 10811$as_echo "$ac_cv_search_lrint" >&6; } 10812ac_res=$ac_cv_search_lrint 10813if test "$ac_res" != no; then : 10814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10815 10816fi 10817 10818for ac_func in lrint 10819do : 10820 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 10821if test "x$ac_cv_func_lrint" = xyes; then : 10822 cat >>confdefs.h <<_ACEOF 10823#define HAVE_LRINT 1 10824_ACEOF 10825 10826fi 10827done 10828 10829MATH_LIBS="$LIBS" 10830LIBS="$save_LIBS" 10831 10832 10833# Obtain compiler/linker options from dependencies 10834 10835pkg_failed=no 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BMTOA" >&5 10837$as_echo_n "checking for BMTOA... " >&6; } 10838 10839if test -n "$BMTOA_CFLAGS"; then 10840 pkg_cv_BMTOA_CFLAGS="$BMTOA_CFLAGS" 10841 elif test -n "$PKG_CONFIG"; then 10842 if test -n "$PKG_CONFIG" && \ 10843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5 10844 ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5 10845 ac_status=$? 10846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10847 test $ac_status = 0; }; then 10848 pkg_cv_BMTOA_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xproto >= 7.0.17" 2>/dev/null` 10849else 10850 pkg_failed=yes 10851fi 10852 else 10853 pkg_failed=untried 10854fi 10855if test -n "$BMTOA_LIBS"; then 10856 pkg_cv_BMTOA_LIBS="$BMTOA_LIBS" 10857 elif test -n "$PKG_CONFIG"; then 10858 if test -n "$PKG_CONFIG" && \ 10859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5 10860 ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5 10861 ac_status=$? 10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10863 test $ac_status = 0; }; then 10864 pkg_cv_BMTOA_LIBS=`$PKG_CONFIG --libs "x11 xmu xproto >= 7.0.17" 2>/dev/null` 10865else 10866 pkg_failed=yes 10867fi 10868 else 10869 pkg_failed=untried 10870fi 10871 10872 10873 10874if test $pkg_failed = yes; then 10875 10876if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10877 _pkg_short_errors_supported=yes 10878else 10879 _pkg_short_errors_supported=no 10880fi 10881 if test $_pkg_short_errors_supported = yes; then 10882 BMTOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmu xproto >= 7.0.17" 2>&1` 10883 else 10884 BMTOA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmu xproto >= 7.0.17" 2>&1` 10885 fi 10886 # Put the nasty error message in config.log where it belongs 10887 echo "$BMTOA_PKG_ERRORS" >&5 10888 10889 as_fn_error $? "Package requirements (x11 xmu xproto >= 7.0.17) were not met: 10890 10891$BMTOA_PKG_ERRORS 10892 10893Consider adjusting the PKG_CONFIG_PATH environment variable if you 10894installed software in a non-standard prefix. 10895 10896Alternatively, you may set the environment variables BMTOA_CFLAGS 10897and BMTOA_LIBS to avoid the need to call pkg-config. 10898See the pkg-config man page for more details. 10899" "$LINENO" 5 10900elif test $pkg_failed = untried; then 10901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10903as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10904is in your PATH or set the PKG_CONFIG environment variable to the full 10905path to pkg-config. 10906 10907Alternatively, you may set the environment variables BMTOA_CFLAGS 10908and BMTOA_LIBS to avoid the need to call pkg-config. 10909See the pkg-config man page for more details. 10910 10911To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10912See \`config.log' for more details" "$LINENO" 5; } 10913else 10914 BMTOA_CFLAGS=$pkg_cv_BMTOA_CFLAGS 10915 BMTOA_LIBS=$pkg_cv_BMTOA_LIBS 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10917$as_echo "yes" >&6; } 10918 : 10919fi 10920 10921pkg_failed=no 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATOBM" >&5 10923$as_echo_n "checking for ATOBM... " >&6; } 10924 10925if test -n "$ATOBM_CFLAGS"; then 10926 pkg_cv_ATOBM_CFLAGS="$ATOBM_CFLAGS" 10927 elif test -n "$PKG_CONFIG"; then 10928 if test -n "$PKG_CONFIG" && \ 10929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 10930 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 10931 ac_status=$? 10932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10933 test $ac_status = 0; }; then 10934 pkg_cv_ATOBM_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null` 10935else 10936 pkg_failed=yes 10937fi 10938 else 10939 pkg_failed=untried 10940fi 10941if test -n "$ATOBM_LIBS"; then 10942 pkg_cv_ATOBM_LIBS="$ATOBM_LIBS" 10943 elif test -n "$PKG_CONFIG"; then 10944 if test -n "$PKG_CONFIG" && \ 10945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 10946 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 10947 ac_status=$? 10948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10949 test $ac_status = 0; }; then 10950 pkg_cv_ATOBM_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null` 10951else 10952 pkg_failed=yes 10953fi 10954 else 10955 pkg_failed=untried 10956fi 10957 10958 10959 10960if test $pkg_failed = yes; then 10961 10962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10963 _pkg_short_errors_supported=yes 10964else 10965 _pkg_short_errors_supported=no 10966fi 10967 if test $_pkg_short_errors_supported = yes; then 10968 ATOBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.25" 2>&1` 10969 else 10970 ATOBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.25" 2>&1` 10971 fi 10972 # Put the nasty error message in config.log where it belongs 10973 echo "$ATOBM_PKG_ERRORS" >&5 10974 10975 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met: 10976 10977$ATOBM_PKG_ERRORS 10978 10979Consider adjusting the PKG_CONFIG_PATH environment variable if you 10980installed software in a non-standard prefix. 10981 10982Alternatively, you may set the environment variables ATOBM_CFLAGS 10983and ATOBM_LIBS to avoid the need to call pkg-config. 10984See the pkg-config man page for more details. 10985" "$LINENO" 5 10986elif test $pkg_failed = untried; then 10987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10989as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10990is in your PATH or set the PKG_CONFIG environment variable to the full 10991path to pkg-config. 10992 10993Alternatively, you may set the environment variables ATOBM_CFLAGS 10994and ATOBM_LIBS to avoid the need to call pkg-config. 10995See the pkg-config man page for more details. 10996 10997To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10998See \`config.log' for more details" "$LINENO" 5; } 10999else 11000 ATOBM_CFLAGS=$pkg_cv_ATOBM_CFLAGS 11001 ATOBM_LIBS=$pkg_cv_ATOBM_LIBS 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11003$as_echo "yes" >&6; } 11004 : 11005fi 11006 11007pkg_failed=no 11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BITMAP" >&5 11009$as_echo_n "checking for BITMAP... " >&6; } 11010 11011if test -n "$BITMAP_CFLAGS"; then 11012 pkg_cv_BITMAP_CFLAGS="$BITMAP_CFLAGS" 11013 elif test -n "$PKG_CONFIG"; then 11014 if test -n "$PKG_CONFIG" && \ 11015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5 11016 ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5 11017 ac_status=$? 11018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11019 test $ac_status = 0; }; then 11020 pkg_cv_BITMAP_CFLAGS=`$PKG_CONFIG --cflags "xbitmaps xaw7 xmu" 2>/dev/null` 11021else 11022 pkg_failed=yes 11023fi 11024 else 11025 pkg_failed=untried 11026fi 11027if test -n "$BITMAP_LIBS"; then 11028 pkg_cv_BITMAP_LIBS="$BITMAP_LIBS" 11029 elif test -n "$PKG_CONFIG"; then 11030 if test -n "$PKG_CONFIG" && \ 11031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5 11032 ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5 11033 ac_status=$? 11034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11035 test $ac_status = 0; }; then 11036 pkg_cv_BITMAP_LIBS=`$PKG_CONFIG --libs "xbitmaps xaw7 xmu" 2>/dev/null` 11037else 11038 pkg_failed=yes 11039fi 11040 else 11041 pkg_failed=untried 11042fi 11043 11044 11045 11046if test $pkg_failed = yes; then 11047 11048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11049 _pkg_short_errors_supported=yes 11050else 11051 _pkg_short_errors_supported=no 11052fi 11053 if test $_pkg_short_errors_supported = yes; then 11054 BITMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xbitmaps xaw7 xmu" 2>&1` 11055 else 11056 BITMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xbitmaps xaw7 xmu" 2>&1` 11057 fi 11058 # Put the nasty error message in config.log where it belongs 11059 echo "$BITMAP_PKG_ERRORS" >&5 11060 11061 as_fn_error $? "Package requirements (xbitmaps xaw7 xmu) were not met: 11062 11063$BITMAP_PKG_ERRORS 11064 11065Consider adjusting the PKG_CONFIG_PATH environment variable if you 11066installed software in a non-standard prefix. 11067 11068Alternatively, you may set the environment variables BITMAP_CFLAGS 11069and BITMAP_LIBS to avoid the need to call pkg-config. 11070See the pkg-config man page for more details. 11071" "$LINENO" 5 11072elif test $pkg_failed = untried; then 11073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11075as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11076is in your PATH or set the PKG_CONFIG environment variable to the full 11077path to pkg-config. 11078 11079Alternatively, you may set the environment variables BITMAP_CFLAGS 11080and BITMAP_LIBS to avoid the need to call pkg-config. 11081See the pkg-config man page for more details. 11082 11083To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11084See \`config.log' for more details" "$LINENO" 5; } 11085else 11086 BITMAP_CFLAGS=$pkg_cv_BITMAP_CFLAGS 11087 BITMAP_LIBS=$pkg_cv_BITMAP_LIBS 11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11089$as_echo "yes" >&6; } 11090 : 11091fi 11092 11093 11094pkg_failed=no 11095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11096$as_echo_n "checking for APPDEFS... " >&6; } 11097 11098if test -n "$APPDEFS_CFLAGS"; then 11099 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11100 elif test -n "$PKG_CONFIG"; then 11101 if test -n "$PKG_CONFIG" && \ 11102 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11103 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11104 ac_status=$? 11105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11106 test $ac_status = 0; }; then 11107 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11108else 11109 pkg_failed=yes 11110fi 11111 else 11112 pkg_failed=untried 11113fi 11114if test -n "$APPDEFS_LIBS"; then 11115 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11116 elif test -n "$PKG_CONFIG"; then 11117 if test -n "$PKG_CONFIG" && \ 11118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11119 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11120 ac_status=$? 11121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11122 test $ac_status = 0; }; then 11123 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11124else 11125 pkg_failed=yes 11126fi 11127 else 11128 pkg_failed=untried 11129fi 11130 11131 11132 11133if test $pkg_failed = yes; then 11134 11135if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11136 _pkg_short_errors_supported=yes 11137else 11138 _pkg_short_errors_supported=no 11139fi 11140 if test $_pkg_short_errors_supported = yes; then 11141 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 11142 else 11143 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 11144 fi 11145 # Put the nasty error message in config.log where it belongs 11146 echo "$APPDEFS_PKG_ERRORS" >&5 11147 11148 as_fn_error $? "Package requirements (xt) were not met: 11149 11150$APPDEFS_PKG_ERRORS 11151 11152Consider adjusting the PKG_CONFIG_PATH environment variable if you 11153installed software in a non-standard prefix. 11154 11155Alternatively, you may set the environment variables APPDEFS_CFLAGS 11156and APPDEFS_LIBS to avoid the need to call pkg-config. 11157See the pkg-config man page for more details. 11158" "$LINENO" 5 11159elif test $pkg_failed = untried; then 11160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11162as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11163is in your PATH or set the PKG_CONFIG environment variable to the full 11164path to pkg-config. 11165 11166Alternatively, you may set the environment variables APPDEFS_CFLAGS 11167and APPDEFS_LIBS to avoid the need to call pkg-config. 11168See the pkg-config man page for more details. 11169 11170To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11171See \`config.log' for more details" "$LINENO" 5; } 11172else 11173 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11174 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11176$as_echo "yes" >&6; } 11177 : 11178fi 11179xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11180 11181# Check whether --with-appdefaultdir was given. 11182if test "${with_appdefaultdir+set}" = set; then : 11183 withval=$with_appdefaultdir; appdefaultdir="$withval" 11184else 11185 appdefaultdir="${xt_appdefaultdir}" 11186fi 11187 11188 11189 11190ac_config_files="$ac_config_files Makefile man/Makefile" 11191 11192cat >confcache <<\_ACEOF 11193# This file is a shell script that caches the results of configure 11194# tests run on this system so they can be shared between configure 11195# scripts and configure runs, see configure's option --config-cache. 11196# It is not useful on other systems. If it contains results you don't 11197# want to keep, you may remove or edit it. 11198# 11199# config.status only pays attention to the cache file if you give it 11200# the --recheck option to rerun configure. 11201# 11202# `ac_cv_env_foo' variables (set or unset) will be overridden when 11203# loading this file, other *unset* `ac_cv_foo' will be assigned the 11204# following values. 11205 11206_ACEOF 11207 11208# The following way of writing the cache mishandles newlines in values, 11209# but we know of no workaround that is simple, portable, and efficient. 11210# So, we kill variables containing newlines. 11211# Ultrix sh set writes to stderr and can't be redirected directly, 11212# and sets the high bit in the cache file unless we assign to the vars. 11213( 11214 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11215 eval ac_val=\$$ac_var 11216 case $ac_val in #( 11217 *${as_nl}*) 11218 case $ac_var in #( 11219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11220$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11221 esac 11222 case $ac_var in #( 11223 _ | IFS | as_nl) ;; #( 11224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11225 *) { eval $ac_var=; unset $ac_var;} ;; 11226 esac ;; 11227 esac 11228 done 11229 11230 (set) 2>&1 | 11231 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11232 *${as_nl}ac_space=\ *) 11233 # `set' does not quote correctly, so add quotes: double-quote 11234 # substitution turns \\\\ into \\, and sed turns \\ into \. 11235 sed -n \ 11236 "s/'/'\\\\''/g; 11237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11238 ;; #( 11239 *) 11240 # `set' quotes correctly as required by POSIX, so do not add quotes. 11241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11242 ;; 11243 esac | 11244 sort 11245) | 11246 sed ' 11247 /^ac_cv_env_/b end 11248 t clear 11249 :clear 11250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11251 t end 11252 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11253 :end' >>confcache 11254if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11255 if test -w "$cache_file"; then 11256 if test "x$cache_file" != "x/dev/null"; then 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11258$as_echo "$as_me: updating cache $cache_file" >&6;} 11259 if test ! -f "$cache_file" || test -h "$cache_file"; then 11260 cat confcache >"$cache_file" 11261 else 11262 case $cache_file in #( 11263 */* | ?:*) 11264 mv -f confcache "$cache_file"$$ && 11265 mv -f "$cache_file"$$ "$cache_file" ;; #( 11266 *) 11267 mv -f confcache "$cache_file" ;; 11268 esac 11269 fi 11270 fi 11271 else 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11273$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11274 fi 11275fi 11276rm -f confcache 11277 11278test "x$prefix" = xNONE && prefix=$ac_default_prefix 11279# Let make expand exec_prefix. 11280test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11281 11282DEFS=-DHAVE_CONFIG_H 11283 11284ac_libobjs= 11285ac_ltlibobjs= 11286U= 11287for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11288 # 1. Remove the extension, and $U if already installed. 11289 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11290 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11291 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11292 # will be set to the directory where LIBOBJS objects are built. 11293 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11294 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11295done 11296LIBOBJS=$ac_libobjs 11297 11298LTLIBOBJS=$ac_ltlibobjs 11299 11300 11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11302$as_echo_n "checking that generated files are newer than configure... " >&6; } 11303 if test -n "$am_sleep_pid"; then 11304 # Hide warnings about reused PIDs. 11305 wait $am_sleep_pid 2>/dev/null 11306 fi 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11308$as_echo "done" >&6; } 11309 if test -n "$EXEEXT"; then 11310 am__EXEEXT_TRUE= 11311 am__EXEEXT_FALSE='#' 11312else 11313 am__EXEEXT_TRUE='#' 11314 am__EXEEXT_FALSE= 11315fi 11316 11317if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11318 as_fn_error $? "conditional \"AMDEP\" was never defined. 11319Usually this means the macro was only invoked conditionally." "$LINENO" 5 11320fi 11321if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11322 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11323Usually this means the macro was only invoked conditionally." "$LINENO" 5 11324fi 11325 11326: "${CONFIG_STATUS=./config.status}" 11327ac_write_fail=0 11328ac_clean_files_save=$ac_clean_files 11329ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11330{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11331$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11332as_write_fail=0 11333cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11334#! $SHELL 11335# Generated by $as_me. 11336# Run this file to recreate the current configuration. 11337# Compiler output produced by configure, useful for debugging 11338# configure, is in config.log if it exists. 11339 11340debug=false 11341ac_cs_recheck=false 11342ac_cs_silent=false 11343 11344SHELL=\${CONFIG_SHELL-$SHELL} 11345export SHELL 11346_ASEOF 11347cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11348## -------------------- ## 11349## M4sh Initialization. ## 11350## -------------------- ## 11351 11352# Be more Bourne compatible 11353DUALCASE=1; export DUALCASE # for MKS sh 11354if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11355 emulate sh 11356 NULLCMD=: 11357 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11358 # is contrary to our usage. Disable this feature. 11359 alias -g '${1+"$@"}'='"$@"' 11360 setopt NO_GLOB_SUBST 11361else 11362 case `(set -o) 2>/dev/null` in #( 11363 *posix*) : 11364 set -o posix ;; #( 11365 *) : 11366 ;; 11367esac 11368fi 11369 11370 11371as_nl=' 11372' 11373export as_nl 11374# Printing a long string crashes Solaris 7 /usr/bin/printf. 11375as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11376as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11378# Prefer a ksh shell builtin over an external printf program on Solaris, 11379# but without wasting forks for bash or zsh. 11380if test -z "$BASH_VERSION$ZSH_VERSION" \ 11381 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11382 as_echo='print -r --' 11383 as_echo_n='print -rn --' 11384elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11385 as_echo='printf %s\n' 11386 as_echo_n='printf %s' 11387else 11388 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11389 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11390 as_echo_n='/usr/ucb/echo -n' 11391 else 11392 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11393 as_echo_n_body='eval 11394 arg=$1; 11395 case $arg in #( 11396 *"$as_nl"*) 11397 expr "X$arg" : "X\\(.*\\)$as_nl"; 11398 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11399 esac; 11400 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11401 ' 11402 export as_echo_n_body 11403 as_echo_n='sh -c $as_echo_n_body as_echo' 11404 fi 11405 export as_echo_body 11406 as_echo='sh -c $as_echo_body as_echo' 11407fi 11408 11409# The user is always right. 11410if test "${PATH_SEPARATOR+set}" != set; then 11411 PATH_SEPARATOR=: 11412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11413 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11414 PATH_SEPARATOR=';' 11415 } 11416fi 11417 11418 11419# IFS 11420# We need space, tab and new line, in precisely that order. Quoting is 11421# there to prevent editors from complaining about space-tab. 11422# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11423# splitting by setting IFS to empty value.) 11424IFS=" "" $as_nl" 11425 11426# Find who we are. Look in the path if we contain no directory separator. 11427as_myself= 11428case $0 in #(( 11429 *[\\/]* ) as_myself=$0 ;; 11430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11431for as_dir in $PATH 11432do 11433 IFS=$as_save_IFS 11434 test -z "$as_dir" && as_dir=. 11435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11436 done 11437IFS=$as_save_IFS 11438 11439 ;; 11440esac 11441# We did not find ourselves, most probably we were run as `sh COMMAND' 11442# in which case we are not to be found in the path. 11443if test "x$as_myself" = x; then 11444 as_myself=$0 11445fi 11446if test ! -f "$as_myself"; then 11447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11448 exit 1 11449fi 11450 11451# Unset variables that we do not need and which cause bugs (e.g. in 11452# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11453# suppresses any "Segmentation fault" message there. '((' could 11454# trigger a bug in pdksh 5.2.14. 11455for as_var in BASH_ENV ENV MAIL MAILPATH 11456do eval test x\${$as_var+set} = xset \ 11457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11458done 11459PS1='$ ' 11460PS2='> ' 11461PS4='+ ' 11462 11463# NLS nuisances. 11464LC_ALL=C 11465export LC_ALL 11466LANGUAGE=C 11467export LANGUAGE 11468 11469# CDPATH. 11470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11471 11472 11473# as_fn_error STATUS ERROR [LINENO LOG_FD] 11474# ---------------------------------------- 11475# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11476# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11477# script with STATUS, using 1 if that was 0. 11478as_fn_error () 11479{ 11480 as_status=$1; test $as_status -eq 0 && as_status=1 11481 if test "$4"; then 11482 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11484 fi 11485 $as_echo "$as_me: error: $2" >&2 11486 as_fn_exit $as_status 11487} # as_fn_error 11488 11489 11490# as_fn_set_status STATUS 11491# ----------------------- 11492# Set $? to STATUS, without forking. 11493as_fn_set_status () 11494{ 11495 return $1 11496} # as_fn_set_status 11497 11498# as_fn_exit STATUS 11499# ----------------- 11500# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11501as_fn_exit () 11502{ 11503 set +e 11504 as_fn_set_status $1 11505 exit $1 11506} # as_fn_exit 11507 11508# as_fn_unset VAR 11509# --------------- 11510# Portably unset VAR. 11511as_fn_unset () 11512{ 11513 { eval $1=; unset $1;} 11514} 11515as_unset=as_fn_unset 11516# as_fn_append VAR VALUE 11517# ---------------------- 11518# Append the text in VALUE to the end of the definition contained in VAR. Take 11519# advantage of any shell optimizations that allow amortized linear growth over 11520# repeated appends, instead of the typical quadratic growth present in naive 11521# implementations. 11522if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11523 eval 'as_fn_append () 11524 { 11525 eval $1+=\$2 11526 }' 11527else 11528 as_fn_append () 11529 { 11530 eval $1=\$$1\$2 11531 } 11532fi # as_fn_append 11533 11534# as_fn_arith ARG... 11535# ------------------ 11536# Perform arithmetic evaluation on the ARGs, and store the result in the 11537# global $as_val. Take advantage of shells that can avoid forks. The arguments 11538# must be portable across $(()) and expr. 11539if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11540 eval 'as_fn_arith () 11541 { 11542 as_val=$(( $* )) 11543 }' 11544else 11545 as_fn_arith () 11546 { 11547 as_val=`expr "$@" || test $? -eq 1` 11548 } 11549fi # as_fn_arith 11550 11551 11552if expr a : '\(a\)' >/dev/null 2>&1 && 11553 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11554 as_expr=expr 11555else 11556 as_expr=false 11557fi 11558 11559if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11560 as_basename=basename 11561else 11562 as_basename=false 11563fi 11564 11565if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11566 as_dirname=dirname 11567else 11568 as_dirname=false 11569fi 11570 11571as_me=`$as_basename -- "$0" || 11572$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11573 X"$0" : 'X\(//\)$' \| \ 11574 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11575$as_echo X/"$0" | 11576 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11577 s//\1/ 11578 q 11579 } 11580 /^X\/\(\/\/\)$/{ 11581 s//\1/ 11582 q 11583 } 11584 /^X\/\(\/\).*/{ 11585 s//\1/ 11586 q 11587 } 11588 s/.*/./; q'` 11589 11590# Avoid depending upon Character Ranges. 11591as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11593as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11594as_cr_digits='0123456789' 11595as_cr_alnum=$as_cr_Letters$as_cr_digits 11596 11597ECHO_C= ECHO_N= ECHO_T= 11598case `echo -n x` in #((((( 11599-n*) 11600 case `echo 'xy\c'` in 11601 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11602 xy) ECHO_C='\c';; 11603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11604 ECHO_T=' ';; 11605 esac;; 11606*) 11607 ECHO_N='-n';; 11608esac 11609 11610rm -f conf$$ conf$$.exe conf$$.file 11611if test -d conf$$.dir; then 11612 rm -f conf$$.dir/conf$$.file 11613else 11614 rm -f conf$$.dir 11615 mkdir conf$$.dir 2>/dev/null 11616fi 11617if (echo >conf$$.file) 2>/dev/null; then 11618 if ln -s conf$$.file conf$$ 2>/dev/null; then 11619 as_ln_s='ln -s' 11620 # ... but there are two gotchas: 11621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11623 # In both cases, we have to default to `cp -pR'. 11624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11625 as_ln_s='cp -pR' 11626 elif ln conf$$.file conf$$ 2>/dev/null; then 11627 as_ln_s=ln 11628 else 11629 as_ln_s='cp -pR' 11630 fi 11631else 11632 as_ln_s='cp -pR' 11633fi 11634rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11635rmdir conf$$.dir 2>/dev/null 11636 11637 11638# as_fn_mkdir_p 11639# ------------- 11640# Create "$as_dir" as a directory, including parents if necessary. 11641as_fn_mkdir_p () 11642{ 11643 11644 case $as_dir in #( 11645 -*) as_dir=./$as_dir;; 11646 esac 11647 test -d "$as_dir" || eval $as_mkdir_p || { 11648 as_dirs= 11649 while :; do 11650 case $as_dir in #( 11651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11652 *) as_qdir=$as_dir;; 11653 esac 11654 as_dirs="'$as_qdir' $as_dirs" 11655 as_dir=`$as_dirname -- "$as_dir" || 11656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11657 X"$as_dir" : 'X\(//\)[^/]' \| \ 11658 X"$as_dir" : 'X\(//\)$' \| \ 11659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11660$as_echo X"$as_dir" | 11661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11662 s//\1/ 11663 q 11664 } 11665 /^X\(\/\/\)[^/].*/{ 11666 s//\1/ 11667 q 11668 } 11669 /^X\(\/\/\)$/{ 11670 s//\1/ 11671 q 11672 } 11673 /^X\(\/\).*/{ 11674 s//\1/ 11675 q 11676 } 11677 s/.*/./; q'` 11678 test -d "$as_dir" && break 11679 done 11680 test -z "$as_dirs" || eval "mkdir $as_dirs" 11681 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11682 11683 11684} # as_fn_mkdir_p 11685if mkdir -p . 2>/dev/null; then 11686 as_mkdir_p='mkdir -p "$as_dir"' 11687else 11688 test -d ./-p && rmdir ./-p 11689 as_mkdir_p=false 11690fi 11691 11692 11693# as_fn_executable_p FILE 11694# ----------------------- 11695# Test if FILE is an executable regular file. 11696as_fn_executable_p () 11697{ 11698 test -f "$1" && test -x "$1" 11699} # as_fn_executable_p 11700as_test_x='test -x' 11701as_executable_p=as_fn_executable_p 11702 11703# Sed expression to map a string onto a valid CPP name. 11704as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11705 11706# Sed expression to map a string onto a valid variable name. 11707as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11708 11709 11710exec 6>&1 11711## ----------------------------------- ## 11712## Main body of $CONFIG_STATUS script. ## 11713## ----------------------------------- ## 11714_ASEOF 11715test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11716 11717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11718# Save the log message, to keep $0 and so on meaningful, and to 11719# report actual input values of CONFIG_FILES etc. instead of their 11720# values after options handling. 11721ac_log=" 11722This file was extended by bitmap $as_me 1.0.8, which was 11723generated by GNU Autoconf 2.69. Invocation command line was 11724 11725 CONFIG_FILES = $CONFIG_FILES 11726 CONFIG_HEADERS = $CONFIG_HEADERS 11727 CONFIG_LINKS = $CONFIG_LINKS 11728 CONFIG_COMMANDS = $CONFIG_COMMANDS 11729 $ $0 $@ 11730 11731on `(hostname || uname -n) 2>/dev/null | sed 1q` 11732" 11733 11734_ACEOF 11735 11736case $ac_config_files in *" 11737"*) set x $ac_config_files; shift; ac_config_files=$*;; 11738esac 11739 11740case $ac_config_headers in *" 11741"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11742esac 11743 11744 11745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11746# Files that config.status was made for. 11747config_files="$ac_config_files" 11748config_headers="$ac_config_headers" 11749config_commands="$ac_config_commands" 11750 11751_ACEOF 11752 11753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11754ac_cs_usage="\ 11755\`$as_me' instantiates files and other configuration actions 11756from templates according to the current configuration. Unless the files 11757and actions are specified as TAGs, all are instantiated by default. 11758 11759Usage: $0 [OPTION]... [TAG]... 11760 11761 -h, --help print this help, then exit 11762 -V, --version print version number and configuration settings, then exit 11763 --config print configuration, then exit 11764 -q, --quiet, --silent 11765 do not print progress messages 11766 -d, --debug don't remove temporary files 11767 --recheck update $as_me by reconfiguring in the same conditions 11768 --file=FILE[:TEMPLATE] 11769 instantiate the configuration file FILE 11770 --header=FILE[:TEMPLATE] 11771 instantiate the configuration header FILE 11772 11773Configuration files: 11774$config_files 11775 11776Configuration headers: 11777$config_headers 11778 11779Configuration commands: 11780$config_commands 11781 11782Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11783 11784_ACEOF 11785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11786ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11787ac_cs_version="\\ 11788bitmap config.status 1.0.8 11789configured by $0, generated by GNU Autoconf 2.69, 11790 with options \\"\$ac_cs_config\\" 11791 11792Copyright (C) 2012 Free Software Foundation, Inc. 11793This config.status script is free software; the Free Software Foundation 11794gives unlimited permission to copy, distribute and modify it." 11795 11796ac_pwd='$ac_pwd' 11797srcdir='$srcdir' 11798INSTALL='$INSTALL' 11799MKDIR_P='$MKDIR_P' 11800AWK='$AWK' 11801test -n "\$AWK" || AWK=awk 11802_ACEOF 11803 11804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11805# The default lists apply if the user does not specify any file. 11806ac_need_defaults=: 11807while test $# != 0 11808do 11809 case $1 in 11810 --*=?*) 11811 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11813 ac_shift=: 11814 ;; 11815 --*=) 11816 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11817 ac_optarg= 11818 ac_shift=: 11819 ;; 11820 *) 11821 ac_option=$1 11822 ac_optarg=$2 11823 ac_shift=shift 11824 ;; 11825 esac 11826 11827 case $ac_option in 11828 # Handling of the options. 11829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11830 ac_cs_recheck=: ;; 11831 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11832 $as_echo "$ac_cs_version"; exit ;; 11833 --config | --confi | --conf | --con | --co | --c ) 11834 $as_echo "$ac_cs_config"; exit ;; 11835 --debug | --debu | --deb | --de | --d | -d ) 11836 debug=: ;; 11837 --file | --fil | --fi | --f ) 11838 $ac_shift 11839 case $ac_optarg in 11840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11841 '') as_fn_error $? "missing file argument" ;; 11842 esac 11843 as_fn_append CONFIG_FILES " '$ac_optarg'" 11844 ac_need_defaults=false;; 11845 --header | --heade | --head | --hea ) 11846 $ac_shift 11847 case $ac_optarg in 11848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11849 esac 11850 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11851 ac_need_defaults=false;; 11852 --he | --h) 11853 # Conflict between --help and --header 11854 as_fn_error $? "ambiguous option: \`$1' 11855Try \`$0 --help' for more information.";; 11856 --help | --hel | -h ) 11857 $as_echo "$ac_cs_usage"; exit ;; 11858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11859 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11860 ac_cs_silent=: ;; 11861 11862 # This is an error. 11863 -*) as_fn_error $? "unrecognized option: \`$1' 11864Try \`$0 --help' for more information." ;; 11865 11866 *) as_fn_append ac_config_targets " $1" 11867 ac_need_defaults=false ;; 11868 11869 esac 11870 shift 11871done 11872 11873ac_configure_extra_args= 11874 11875if $ac_cs_silent; then 11876 exec 6>/dev/null 11877 ac_configure_extra_args="$ac_configure_extra_args --silent" 11878fi 11879 11880_ACEOF 11881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11882if \$ac_cs_recheck; then 11883 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11884 shift 11885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11886 CONFIG_SHELL='$SHELL' 11887 export CONFIG_SHELL 11888 exec "\$@" 11889fi 11890 11891_ACEOF 11892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11893exec 5>>config.log 11894{ 11895 echo 11896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11897## Running $as_me. ## 11898_ASBOX 11899 $as_echo "$ac_log" 11900} >&5 11901 11902_ACEOF 11903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11904# 11905# INIT-COMMANDS 11906# 11907AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11908 11909_ACEOF 11910 11911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11912 11913# Handling of arguments. 11914for ac_config_target in $ac_config_targets 11915do 11916 case $ac_config_target in 11917 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11918 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11919 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11920 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11921 11922 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11923 esac 11924done 11925 11926 11927# If the user did not use the arguments to specify the items to instantiate, 11928# then the envvar interface is used. Set only those that are not. 11929# We use the long form for the default assignment because of an extremely 11930# bizarre bug on SunOS 4.1.3. 11931if $ac_need_defaults; then 11932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11935fi 11936 11937# Have a temporary directory for convenience. Make it in the build tree 11938# simply because there is no reason against having it here, and in addition, 11939# creating and moving files from /tmp can sometimes cause problems. 11940# Hook for its removal unless debugging. 11941# Note that there is a small window in which the directory will not be cleaned: 11942# after its creation but before its name has been assigned to `$tmp'. 11943$debug || 11944{ 11945 tmp= ac_tmp= 11946 trap 'exit_status=$? 11947 : "${ac_tmp:=$tmp}" 11948 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11949' 0 11950 trap 'as_fn_exit 1' 1 2 13 15 11951} 11952# Create a (secure) tmp directory for tmp files. 11953 11954{ 11955 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11956 test -d "$tmp" 11957} || 11958{ 11959 tmp=./conf$$-$RANDOM 11960 (umask 077 && mkdir "$tmp") 11961} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11962ac_tmp=$tmp 11963 11964# Set up the scripts for CONFIG_FILES section. 11965# No need to generate them if there are no CONFIG_FILES. 11966# This happens for instance with `./config.status config.h'. 11967if test -n "$CONFIG_FILES"; then 11968 11969 11970ac_cr=`echo X | tr X '\015'` 11971# On cygwin, bash can eat \r inside `` if the user requested igncr. 11972# But we know of no other shell where ac_cr would be empty at this 11973# point, so we can use a bashism as a fallback. 11974if test "x$ac_cr" = x; then 11975 eval ac_cr=\$\'\\r\' 11976fi 11977ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11978if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11979 ac_cs_awk_cr='\\r' 11980else 11981 ac_cs_awk_cr=$ac_cr 11982fi 11983 11984echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11985_ACEOF 11986 11987 11988{ 11989 echo "cat >conf$$subs.awk <<_ACEOF" && 11990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11991 echo "_ACEOF" 11992} >conf$$subs.sh || 11993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11994ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11995ac_delim='%!_!# ' 11996for ac_last_try in false false false false false :; do 11997 . ./conf$$subs.sh || 11998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11999 12000 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12001 if test $ac_delim_n = $ac_delim_num; then 12002 break 12003 elif $ac_last_try; then 12004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12005 else 12006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12007 fi 12008done 12009rm -f conf$$subs.sh 12010 12011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12012cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12013_ACEOF 12014sed -n ' 12015h 12016s/^/S["/; s/!.*/"]=/ 12017p 12018g 12019s/^[^!]*!// 12020:repl 12021t repl 12022s/'"$ac_delim"'$// 12023t delim 12024:nl 12025h 12026s/\(.\{148\}\)..*/\1/ 12027t more1 12028s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12029p 12030n 12031b repl 12032:more1 12033s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12034p 12035g 12036s/.\{148\}// 12037t nl 12038:delim 12039h 12040s/\(.\{148\}\)..*/\1/ 12041t more2 12042s/["\\]/\\&/g; s/^/"/; s/$/"/ 12043p 12044b 12045:more2 12046s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12047p 12048g 12049s/.\{148\}// 12050t delim 12051' <conf$$subs.awk | sed ' 12052/^[^""]/{ 12053 N 12054 s/\n// 12055} 12056' >>$CONFIG_STATUS || ac_write_fail=1 12057rm -f conf$$subs.awk 12058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12059_ACAWK 12060cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12061 for (key in S) S_is_set[key] = 1 12062 FS = "" 12063 12064} 12065{ 12066 line = $ 0 12067 nfields = split(line, field, "@") 12068 substed = 0 12069 len = length(field[1]) 12070 for (i = 2; i < nfields; i++) { 12071 key = field[i] 12072 keylen = length(key) 12073 if (S_is_set[key]) { 12074 value = S[key] 12075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12076 len += length(value) + length(field[++i]) 12077 substed = 1 12078 } else 12079 len += 1 + keylen 12080 } 12081 12082 print line 12083} 12084 12085_ACAWK 12086_ACEOF 12087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12088if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12089 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12090else 12091 cat 12092fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12093 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12094_ACEOF 12095 12096# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12097# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12098# trailing colons and then remove the whole line if VPATH becomes empty 12099# (actually we leave an empty line to preserve line numbers). 12100if test "x$srcdir" = x.; then 12101 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12102h 12103s/// 12104s/^/:/ 12105s/[ ]*$/:/ 12106s/:\$(srcdir):/:/g 12107s/:\${srcdir}:/:/g 12108s/:@srcdir@:/:/g 12109s/^:*// 12110s/:*$// 12111x 12112s/\(=[ ]*\).*/\1/ 12113G 12114s/\n// 12115s/^[^=]*=[ ]*$// 12116}' 12117fi 12118 12119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12120fi # test -n "$CONFIG_FILES" 12121 12122# Set up the scripts for CONFIG_HEADERS section. 12123# No need to generate them if there are no CONFIG_HEADERS. 12124# This happens for instance with `./config.status Makefile'. 12125if test -n "$CONFIG_HEADERS"; then 12126cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12127BEGIN { 12128_ACEOF 12129 12130# Transform confdefs.h into an awk script `defines.awk', embedded as 12131# here-document in config.status, that substitutes the proper values into 12132# config.h.in to produce config.h. 12133 12134# Create a delimiter string that does not exist in confdefs.h, to ease 12135# handling of long lines. 12136ac_delim='%!_!# ' 12137for ac_last_try in false false :; do 12138 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12139 if test -z "$ac_tt"; then 12140 break 12141 elif $ac_last_try; then 12142 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12143 else 12144 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12145 fi 12146done 12147 12148# For the awk script, D is an array of macro values keyed by name, 12149# likewise P contains macro parameters if any. Preserve backslash 12150# newline sequences. 12151 12152ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12153sed -n ' 12154s/.\{148\}/&'"$ac_delim"'/g 12155t rset 12156:rset 12157s/^[ ]*#[ ]*define[ ][ ]*/ / 12158t def 12159d 12160:def 12161s/\\$// 12162t bsnl 12163s/["\\]/\\&/g 12164s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12165D["\1"]=" \3"/p 12166s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12167d 12168:bsnl 12169s/["\\]/\\&/g 12170s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12171D["\1"]=" \3\\\\\\n"\\/p 12172t cont 12173s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12174t cont 12175d 12176:cont 12177n 12178s/.\{148\}/&'"$ac_delim"'/g 12179t clear 12180:clear 12181s/\\$// 12182t bsnlc 12183s/["\\]/\\&/g; s/^/"/; s/$/"/p 12184d 12185:bsnlc 12186s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12187b cont 12188' <confdefs.h | sed ' 12189s/'"$ac_delim"'/"\\\ 12190"/g' >>$CONFIG_STATUS || ac_write_fail=1 12191 12192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12193 for (key in D) D_is_set[key] = 1 12194 FS = "" 12195} 12196/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12197 line = \$ 0 12198 split(line, arg, " ") 12199 if (arg[1] == "#") { 12200 defundef = arg[2] 12201 mac1 = arg[3] 12202 } else { 12203 defundef = substr(arg[1], 2) 12204 mac1 = arg[2] 12205 } 12206 split(mac1, mac2, "(") #) 12207 macro = mac2[1] 12208 prefix = substr(line, 1, index(line, defundef) - 1) 12209 if (D_is_set[macro]) { 12210 # Preserve the white space surrounding the "#". 12211 print prefix "define", macro P[macro] D[macro] 12212 next 12213 } else { 12214 # Replace #undef with comments. This is necessary, for example, 12215 # in the case of _POSIX_SOURCE, which is predefined and required 12216 # on some systems where configure will not decide to define it. 12217 if (defundef == "undef") { 12218 print "/*", prefix defundef, macro, "*/" 12219 next 12220 } 12221 } 12222} 12223{ print } 12224_ACAWK 12225_ACEOF 12226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12227 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12228fi # test -n "$CONFIG_HEADERS" 12229 12230 12231eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12232shift 12233for ac_tag 12234do 12235 case $ac_tag in 12236 :[FHLC]) ac_mode=$ac_tag; continue;; 12237 esac 12238 case $ac_mode$ac_tag in 12239 :[FHL]*:*);; 12240 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12241 :[FH]-) ac_tag=-:-;; 12242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12243 esac 12244 ac_save_IFS=$IFS 12245 IFS=: 12246 set x $ac_tag 12247 IFS=$ac_save_IFS 12248 shift 12249 ac_file=$1 12250 shift 12251 12252 case $ac_mode in 12253 :L) ac_source=$1;; 12254 :[FH]) 12255 ac_file_inputs= 12256 for ac_f 12257 do 12258 case $ac_f in 12259 -) ac_f="$ac_tmp/stdin";; 12260 *) # Look for the file first in the build tree, then in the source tree 12261 # (if the path is not absolute). The absolute path cannot be DOS-style, 12262 # because $ac_f cannot contain `:'. 12263 test -f "$ac_f" || 12264 case $ac_f in 12265 [\\/$]*) false;; 12266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12267 esac || 12268 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12269 esac 12270 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12271 as_fn_append ac_file_inputs " '$ac_f'" 12272 done 12273 12274 # Let's still pretend it is `configure' which instantiates (i.e., don't 12275 # use $as_me), people would be surprised to read: 12276 # /* config.h. Generated by config.status. */ 12277 configure_input='Generated from '` 12278 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12279 `' by configure.' 12280 if test x"$ac_file" != x-; then 12281 configure_input="$ac_file. $configure_input" 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12283$as_echo "$as_me: creating $ac_file" >&6;} 12284 fi 12285 # Neutralize special characters interpreted by sed in replacement strings. 12286 case $configure_input in #( 12287 *\&* | *\|* | *\\* ) 12288 ac_sed_conf_input=`$as_echo "$configure_input" | 12289 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12290 *) ac_sed_conf_input=$configure_input;; 12291 esac 12292 12293 case $ac_tag in 12294 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12296 esac 12297 ;; 12298 esac 12299 12300 ac_dir=`$as_dirname -- "$ac_file" || 12301$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12302 X"$ac_file" : 'X\(//\)[^/]' \| \ 12303 X"$ac_file" : 'X\(//\)$' \| \ 12304 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12305$as_echo X"$ac_file" | 12306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12307 s//\1/ 12308 q 12309 } 12310 /^X\(\/\/\)[^/].*/{ 12311 s//\1/ 12312 q 12313 } 12314 /^X\(\/\/\)$/{ 12315 s//\1/ 12316 q 12317 } 12318 /^X\(\/\).*/{ 12319 s//\1/ 12320 q 12321 } 12322 s/.*/./; q'` 12323 as_dir="$ac_dir"; as_fn_mkdir_p 12324 ac_builddir=. 12325 12326case "$ac_dir" in 12327.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12328*) 12329 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12330 # A ".." for each directory in $ac_dir_suffix. 12331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12332 case $ac_top_builddir_sub in 12333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12335 esac ;; 12336esac 12337ac_abs_top_builddir=$ac_pwd 12338ac_abs_builddir=$ac_pwd$ac_dir_suffix 12339# for backward compatibility: 12340ac_top_builddir=$ac_top_build_prefix 12341 12342case $srcdir in 12343 .) # We are building in place. 12344 ac_srcdir=. 12345 ac_top_srcdir=$ac_top_builddir_sub 12346 ac_abs_top_srcdir=$ac_pwd ;; 12347 [\\/]* | ?:[\\/]* ) # Absolute name. 12348 ac_srcdir=$srcdir$ac_dir_suffix; 12349 ac_top_srcdir=$srcdir 12350 ac_abs_top_srcdir=$srcdir ;; 12351 *) # Relative name. 12352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12353 ac_top_srcdir=$ac_top_build_prefix$srcdir 12354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12355esac 12356ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12357 12358 12359 case $ac_mode in 12360 :F) 12361 # 12362 # CONFIG_FILE 12363 # 12364 12365 case $INSTALL in 12366 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12367 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12368 esac 12369 ac_MKDIR_P=$MKDIR_P 12370 case $MKDIR_P in 12371 [\\/$]* | ?:[\\/]* ) ;; 12372 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12373 esac 12374_ACEOF 12375 12376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12377# If the template does not know about datarootdir, expand it. 12378# FIXME: This hack should be removed a few years after 2.60. 12379ac_datarootdir_hack=; ac_datarootdir_seen= 12380ac_sed_dataroot=' 12381/datarootdir/ { 12382 p 12383 q 12384} 12385/@datadir@/p 12386/@docdir@/p 12387/@infodir@/p 12388/@localedir@/p 12389/@mandir@/p' 12390case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12391*datarootdir*) ac_datarootdir_seen=yes;; 12392*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12394$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12395_ACEOF 12396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12397 ac_datarootdir_hack=' 12398 s&@datadir@&$datadir&g 12399 s&@docdir@&$docdir&g 12400 s&@infodir@&$infodir&g 12401 s&@localedir@&$localedir&g 12402 s&@mandir@&$mandir&g 12403 s&\\\${datarootdir}&$datarootdir&g' ;; 12404esac 12405_ACEOF 12406 12407# Neutralize VPATH when `$srcdir' = `.'. 12408# Shell code in configure.ac might set extrasub. 12409# FIXME: do we really want to maintain this feature? 12410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12411ac_sed_extra="$ac_vpsub 12412$extrasub 12413_ACEOF 12414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12415:t 12416/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12417s|@configure_input@|$ac_sed_conf_input|;t t 12418s&@top_builddir@&$ac_top_builddir_sub&;t t 12419s&@top_build_prefix@&$ac_top_build_prefix&;t t 12420s&@srcdir@&$ac_srcdir&;t t 12421s&@abs_srcdir@&$ac_abs_srcdir&;t t 12422s&@top_srcdir@&$ac_top_srcdir&;t t 12423s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12424s&@builddir@&$ac_builddir&;t t 12425s&@abs_builddir@&$ac_abs_builddir&;t t 12426s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12427s&@INSTALL@&$ac_INSTALL&;t t 12428s&@MKDIR_P@&$ac_MKDIR_P&;t t 12429$ac_datarootdir_hack 12430" 12431eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12432 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12433 12434test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12435 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12436 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12437 "$ac_tmp/out"`; test -z "$ac_out"; } && 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12439which seems to be undefined. Please make sure it is defined" >&5 12440$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12441which seems to be undefined. Please make sure it is defined" >&2;} 12442 12443 rm -f "$ac_tmp/stdin" 12444 case $ac_file in 12445 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12446 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12447 esac \ 12448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12449 ;; 12450 :H) 12451 # 12452 # CONFIG_HEADER 12453 # 12454 if test x"$ac_file" != x-; then 12455 { 12456 $as_echo "/* $configure_input */" \ 12457 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12458 } >"$ac_tmp/config.h" \ 12459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12460 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12462$as_echo "$as_me: $ac_file is unchanged" >&6;} 12463 else 12464 rm -f "$ac_file" 12465 mv "$ac_tmp/config.h" "$ac_file" \ 12466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12467 fi 12468 else 12469 $as_echo "/* $configure_input */" \ 12470 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12471 || as_fn_error $? "could not create -" "$LINENO" 5 12472 fi 12473# Compute "$ac_file"'s index in $config_headers. 12474_am_arg="$ac_file" 12475_am_stamp_count=1 12476for _am_header in $config_headers :; do 12477 case $_am_header in 12478 $_am_arg | $_am_arg:* ) 12479 break ;; 12480 * ) 12481 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12482 esac 12483done 12484echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12485$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12486 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12487 X"$_am_arg" : 'X\(//\)$' \| \ 12488 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12489$as_echo X"$_am_arg" | 12490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12491 s//\1/ 12492 q 12493 } 12494 /^X\(\/\/\)[^/].*/{ 12495 s//\1/ 12496 q 12497 } 12498 /^X\(\/\/\)$/{ 12499 s//\1/ 12500 q 12501 } 12502 /^X\(\/\).*/{ 12503 s//\1/ 12504 q 12505 } 12506 s/.*/./; q'`/stamp-h$_am_stamp_count 12507 ;; 12508 12509 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12510$as_echo "$as_me: executing $ac_file commands" >&6;} 12511 ;; 12512 esac 12513 12514 12515 case $ac_file$ac_mode in 12516 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12517 # Older Autoconf quotes --file arguments for eval, but not when files 12518 # are listed without --file. Let's play safe and only enable the eval 12519 # if we detect the quoting. 12520 case $CONFIG_FILES in 12521 *\'*) eval set x "$CONFIG_FILES" ;; 12522 *) set x $CONFIG_FILES ;; 12523 esac 12524 shift 12525 for mf 12526 do 12527 # Strip MF so we end up with the name of the file. 12528 mf=`echo "$mf" | sed -e 's/:.*$//'` 12529 # Check whether this is an Automake generated Makefile or not. 12530 # We used to match only the files named 'Makefile.in', but 12531 # some people rename them; so instead we look at the file content. 12532 # Grep'ing the first line is not enough: some people post-process 12533 # each Makefile.in and add a new line on top of each file to say so. 12534 # Grep'ing the whole file is not good either: AIX grep has a line 12535 # limit of 2048, but all sed's we know have understand at least 4000. 12536 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12537 dirpart=`$as_dirname -- "$mf" || 12538$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12539 X"$mf" : 'X\(//\)[^/]' \| \ 12540 X"$mf" : 'X\(//\)$' \| \ 12541 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12542$as_echo X"$mf" | 12543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12544 s//\1/ 12545 q 12546 } 12547 /^X\(\/\/\)[^/].*/{ 12548 s//\1/ 12549 q 12550 } 12551 /^X\(\/\/\)$/{ 12552 s//\1/ 12553 q 12554 } 12555 /^X\(\/\).*/{ 12556 s//\1/ 12557 q 12558 } 12559 s/.*/./; q'` 12560 else 12561 continue 12562 fi 12563 # Extract the definition of DEPDIR, am__include, and am__quote 12564 # from the Makefile without running 'make'. 12565 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12566 test -z "$DEPDIR" && continue 12567 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12568 test -z "$am__include" && continue 12569 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12570 # Find all dependency output files, they are included files with 12571 # $(DEPDIR) in their names. We invoke sed twice because it is the 12572 # simplest approach to changing $(DEPDIR) to its actual value in the 12573 # expansion. 12574 for file in `sed -n " 12575 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12576 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12577 # Make sure the directory exists. 12578 test -f "$dirpart/$file" && continue 12579 fdir=`$as_dirname -- "$file" || 12580$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12581 X"$file" : 'X\(//\)[^/]' \| \ 12582 X"$file" : 'X\(//\)$' \| \ 12583 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12584$as_echo X"$file" | 12585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12586 s//\1/ 12587 q 12588 } 12589 /^X\(\/\/\)[^/].*/{ 12590 s//\1/ 12591 q 12592 } 12593 /^X\(\/\/\)$/{ 12594 s//\1/ 12595 q 12596 } 12597 /^X\(\/\).*/{ 12598 s//\1/ 12599 q 12600 } 12601 s/.*/./; q'` 12602 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12603 # echo "creating $dirpart/$file" 12604 echo '# dummy' > "$dirpart/$file" 12605 done 12606 done 12607} 12608 ;; 12609 12610 esac 12611done # for ac_tag 12612 12613 12614as_fn_exit 0 12615_ACEOF 12616ac_clean_files=$ac_clean_files_save 12617 12618test $ac_write_fail = 0 || 12619 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12620 12621 12622# configure is writing to config.log, and then calls config.status. 12623# config.status does its own redirection, appending to config.log. 12624# Unfortunately, on DOS this fails, as config.log is still kept open 12625# by configure, so config.status won't be able to write to it; its 12626# output is simply discarded. So we exec the FD to /dev/null, 12627# effectively closing config.log, so it can be properly (re)opened and 12628# appended to by config.status. When coming back to configure, we 12629# need to make the FD available again. 12630if test "$no_create" != yes; then 12631 ac_cs_success=: 12632 ac_config_status_args= 12633 test "$silent" = yes && 12634 ac_config_status_args="$ac_config_status_args --quiet" 12635 exec 5>/dev/null 12636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12637 exec 5>>config.log 12638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12639 # would make configure fail if this is the last instruction. 12640 $ac_cs_success || as_fn_exit 1 12641fi 12642if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12644$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12645fi 12646 12647