configure revision 3e999d35
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xlogo 1.0.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/issues>. 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://gitlab.freedesktop.org/xorg/app/xlogo/issues 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='xlogo' 583PACKAGE_TARNAME='xlogo' 584PACKAGE_VERSION='1.0.5' 585PACKAGE_STRING='xlogo 1.0.5' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlogo/issues' 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 633XLOGO_LIBS 634XLOGO_CFLAGS 635USE_RENDER_FALSE 636USE_RENDER_TRUE 637MAN_SUBSTS 638XORG_MAN_PAGE 639ADMIN_MAN_DIR 640DRIVER_MAN_DIR 641MISC_MAN_DIR 642FILE_MAN_DIR 643LIB_MAN_DIR 644APP_MAN_DIR 645ADMIN_MAN_SUFFIX 646DRIVER_MAN_SUFFIX 647MISC_MAN_SUFFIX 648FILE_MAN_SUFFIX 649LIB_MAN_SUFFIX 650APP_MAN_SUFFIX 651SED 652host_os 653host_vendor 654host_cpu 655host 656build_os 657build_vendor 658build_cpu 659build 660INSTALL_CMD 661PKG_CONFIG_LIBDIR 662PKG_CONFIG_PATH 663PKG_CONFIG 664CHANGELOG_CMD 665STRICT_CFLAGS 666CWARNFLAGS 667BASE_CFLAGS 668EGREP 669GREP 670CPP 671am__fastdepCC_FALSE 672am__fastdepCC_TRUE 673CCDEPMODE 674am__nodep 675AMDEPBACKSLASH 676AMDEP_FALSE 677AMDEP_TRUE 678am__quote 679am__include 680DEPDIR 681OBJEXT 682EXEEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688AM_BACKSLASH 689AM_DEFAULT_VERBOSITY 690AM_DEFAULT_V 691AM_V 692am__untar 693am__tar 694AMTAR 695am__leading_dot 696SET_MAKE 697AWK 698mkdir_p 699MKDIR_P 700INSTALL_STRIP_PROGRAM 701STRIP 702install_sh 703MAKEINFO 704AUTOHEADER 705AUTOMAKE 706AUTOCONF 707ACLOCAL 708VERSION 709PACKAGE 710CYGPATH_W 711am__isrc 712INSTALL_DATA 713INSTALL_SCRIPT 714INSTALL_PROGRAM 715target_alias 716host_alias 717build_alias 718LIBS 719ECHO_T 720ECHO_N 721ECHO_C 722DEFS 723mandir 724localedir 725libdir 726psdir 727pdfdir 728dvidir 729htmldir 730infodir 731docdir 732oldincludedir 733includedir 734localstatedir 735sharedstatedir 736sysconfdir 737datadir 738datarootdir 739libexecdir 740sbindir 741bindir 742program_transform_name 743prefix 744exec_prefix 745PACKAGE_URL 746PACKAGE_BUGREPORT 747PACKAGE_STRING 748PACKAGE_VERSION 749PACKAGE_TARNAME 750PACKAGE_NAME 751PATH_SEPARATOR 752SHELL' 753ac_subst_files='' 754ac_user_opts=' 755enable_option_checking 756enable_silent_rules 757enable_dependency_tracking 758enable_selective_werror 759enable_strict_compilation 760with_render 761with_appdefaultdir 762' 763 ac_precious_vars='build_alias 764host_alias 765target_alias 766CC 767CFLAGS 768LDFLAGS 769LIBS 770CPPFLAGS 771CPP 772PKG_CONFIG 773PKG_CONFIG_PATH 774PKG_CONFIG_LIBDIR 775XLOGO_CFLAGS 776XLOGO_LIBS 777APPDEFS_CFLAGS 778APPDEFS_LIBS' 779 780 781# Initialize some variables set by options. 782ac_init_help= 783ac_init_version=false 784ac_unrecognized_opts= 785ac_unrecognized_sep= 786# The variables have the same names as the options, with 787# dashes changed to underlines. 788cache_file=/dev/null 789exec_prefix=NONE 790no_create= 791no_recursion= 792prefix=NONE 793program_prefix=NONE 794program_suffix=NONE 795program_transform_name=s,x,x, 796silent= 797site= 798srcdir= 799verbose= 800x_includes=NONE 801x_libraries=NONE 802 803# Installation directory options. 804# These are left unexpanded so users can "make install exec_prefix=/foo" 805# and all the variables that are supposed to be based on exec_prefix 806# by default will actually change. 807# Use braces instead of parens because sh, perl, etc. also accept them. 808# (The list follows the same order as the GNU Coding Standards.) 809bindir='${exec_prefix}/bin' 810sbindir='${exec_prefix}/sbin' 811libexecdir='${exec_prefix}/libexec' 812datarootdir='${prefix}/share' 813datadir='${datarootdir}' 814sysconfdir='${prefix}/etc' 815sharedstatedir='${prefix}/com' 816localstatedir='${prefix}/var' 817includedir='${prefix}/include' 818oldincludedir='/usr/include' 819docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 820infodir='${datarootdir}/info' 821htmldir='${docdir}' 822dvidir='${docdir}' 823pdfdir='${docdir}' 824psdir='${docdir}' 825libdir='${exec_prefix}/lib' 826localedir='${datarootdir}/locale' 827mandir='${datarootdir}/man' 828 829ac_prev= 830ac_dashdash= 831for ac_option 832do 833 # If the previous option needs an argument, assign it. 834 if test -n "$ac_prev"; then 835 eval $ac_prev=\$ac_option 836 ac_prev= 837 continue 838 fi 839 840 case $ac_option in 841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 842 *=) ac_optarg= ;; 843 *) ac_optarg=yes ;; 844 esac 845 846 # Accept the important Cygnus configure options, so we can diagnose typos. 847 848 case $ac_dashdash$ac_option in 849 --) 850 ac_dashdash=yes ;; 851 852 -bindir | --bindir | --bindi | --bind | --bin | --bi) 853 ac_prev=bindir ;; 854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 855 bindir=$ac_optarg ;; 856 857 -build | --build | --buil | --bui | --bu) 858 ac_prev=build_alias ;; 859 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 860 build_alias=$ac_optarg ;; 861 862 -cache-file | --cache-file | --cache-fil | --cache-fi \ 863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 864 ac_prev=cache_file ;; 865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 867 cache_file=$ac_optarg ;; 868 869 --config-cache | -C) 870 cache_file=config.cache ;; 871 872 -datadir | --datadir | --datadi | --datad) 873 ac_prev=datadir ;; 874 -datadir=* | --datadir=* | --datadi=* | --datad=*) 875 datadir=$ac_optarg ;; 876 877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 878 | --dataroo | --dataro | --datar) 879 ac_prev=datarootdir ;; 880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 882 datarootdir=$ac_optarg ;; 883 884 -disable-* | --disable-*) 885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 886 # Reject names that are not valid shell variable names. 887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 888 as_fn_error $? "invalid feature name: $ac_useropt" 889 ac_useropt_orig=$ac_useropt 890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 891 case $ac_user_opts in 892 *" 893"enable_$ac_useropt" 894"*) ;; 895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 896 ac_unrecognized_sep=', ';; 897 esac 898 eval enable_$ac_useropt=no ;; 899 900 -docdir | --docdir | --docdi | --doc | --do) 901 ac_prev=docdir ;; 902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 903 docdir=$ac_optarg ;; 904 905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 906 ac_prev=dvidir ;; 907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 908 dvidir=$ac_optarg ;; 909 910 -enable-* | --enable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: $ac_useropt" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919"enable_$ac_useropt" 920"*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=\$ac_optarg ;; 925 926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 928 | --exec | --exe | --ex) 929 ac_prev=exec_prefix ;; 930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 932 | --exec=* | --exe=* | --ex=*) 933 exec_prefix=$ac_optarg ;; 934 935 -gas | --gas | --ga | --g) 936 # Obsolete; use --with-gas. 937 with_gas=yes ;; 938 939 -help | --help | --hel | --he | -h) 940 ac_init_help=long ;; 941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 942 ac_init_help=recursive ;; 943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 944 ac_init_help=short ;; 945 946 -host | --host | --hos | --ho) 947 ac_prev=host_alias ;; 948 -host=* | --host=* | --hos=* | --ho=*) 949 host_alias=$ac_optarg ;; 950 951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 952 ac_prev=htmldir ;; 953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 954 | --ht=*) 955 htmldir=$ac_optarg ;; 956 957 -includedir | --includedir | --includedi | --included | --include \ 958 | --includ | --inclu | --incl | --inc) 959 ac_prev=includedir ;; 960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 961 | --includ=* | --inclu=* | --incl=* | --inc=*) 962 includedir=$ac_optarg ;; 963 964 -infodir | --infodir | --infodi | --infod | --info | --inf) 965 ac_prev=infodir ;; 966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 967 infodir=$ac_optarg ;; 968 969 -libdir | --libdir | --libdi | --libd) 970 ac_prev=libdir ;; 971 -libdir=* | --libdir=* | --libdi=* | --libd=*) 972 libdir=$ac_optarg ;; 973 974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 975 | --libexe | --libex | --libe) 976 ac_prev=libexecdir ;; 977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 978 | --libexe=* | --libex=* | --libe=*) 979 libexecdir=$ac_optarg ;; 980 981 -localedir | --localedir | --localedi | --localed | --locale) 982 ac_prev=localedir ;; 983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 984 localedir=$ac_optarg ;; 985 986 -localstatedir | --localstatedir | --localstatedi | --localstated \ 987 | --localstate | --localstat | --localsta | --localst | --locals) 988 ac_prev=localstatedir ;; 989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 991 localstatedir=$ac_optarg ;; 992 993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 994 ac_prev=mandir ;; 995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 996 mandir=$ac_optarg ;; 997 998 -nfp | --nfp | --nf) 999 # Obsolete; use --without-fp. 1000 with_fp=no ;; 1001 1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1003 | --no-cr | --no-c | -n) 1004 no_create=yes ;; 1005 1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1008 no_recursion=yes ;; 1009 1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1012 | --oldin | --oldi | --old | --ol | --o) 1013 ac_prev=oldincludedir ;; 1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1017 oldincludedir=$ac_optarg ;; 1018 1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1020 ac_prev=prefix ;; 1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1022 prefix=$ac_optarg ;; 1023 1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1025 | --program-pre | --program-pr | --program-p) 1026 ac_prev=program_prefix ;; 1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1029 program_prefix=$ac_optarg ;; 1030 1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1032 | --program-suf | --program-su | --program-s) 1033 ac_prev=program_suffix ;; 1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1036 program_suffix=$ac_optarg ;; 1037 1038 -program-transform-name | --program-transform-name \ 1039 | --program-transform-nam | --program-transform-na \ 1040 | --program-transform-n | --program-transform- \ 1041 | --program-transform | --program-transfor \ 1042 | --program-transfo | --program-transf \ 1043 | --program-trans | --program-tran \ 1044 | --progr-tra | --program-tr | --program-t) 1045 ac_prev=program_transform_name ;; 1046 -program-transform-name=* | --program-transform-name=* \ 1047 | --program-transform-nam=* | --program-transform-na=* \ 1048 | --program-transform-n=* | --program-transform-=* \ 1049 | --program-transform=* | --program-transfor=* \ 1050 | --program-transfo=* | --program-transf=* \ 1051 | --program-trans=* | --program-tran=* \ 1052 | --progr-tra=* | --program-tr=* | --program-t=*) 1053 program_transform_name=$ac_optarg ;; 1054 1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1056 ac_prev=pdfdir ;; 1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1058 pdfdir=$ac_optarg ;; 1059 1060 -psdir | --psdir | --psdi | --psd | --ps) 1061 ac_prev=psdir ;; 1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1063 psdir=$ac_optarg ;; 1064 1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1066 | -silent | --silent | --silen | --sile | --sil) 1067 silent=yes ;; 1068 1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1070 ac_prev=sbindir ;; 1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1072 | --sbi=* | --sb=*) 1073 sbindir=$ac_optarg ;; 1074 1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1077 | --sharedst | --shareds | --shared | --share | --shar \ 1078 | --sha | --sh) 1079 ac_prev=sharedstatedir ;; 1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1083 | --sha=* | --sh=*) 1084 sharedstatedir=$ac_optarg ;; 1085 1086 -site | --site | --sit) 1087 ac_prev=site ;; 1088 -site=* | --site=* | --sit=*) 1089 site=$ac_optarg ;; 1090 1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1092 ac_prev=srcdir ;; 1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1094 srcdir=$ac_optarg ;; 1095 1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1097 | --syscon | --sysco | --sysc | --sys | --sy) 1098 ac_prev=sysconfdir ;; 1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1101 sysconfdir=$ac_optarg ;; 1102 1103 -target | --target | --targe | --targ | --tar | --ta | --t) 1104 ac_prev=target_alias ;; 1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1106 target_alias=$ac_optarg ;; 1107 1108 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1109 verbose=yes ;; 1110 1111 -version | --version | --versio | --versi | --vers | -V) 1112 ac_init_version=: ;; 1113 1114 -with-* | --with-*) 1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1116 # Reject names that are not valid shell variable names. 1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1118 as_fn_error $? "invalid package name: $ac_useropt" 1119 ac_useropt_orig=$ac_useropt 1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1121 case $ac_user_opts in 1122 *" 1123"with_$ac_useropt" 1124"*) ;; 1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1126 ac_unrecognized_sep=', ';; 1127 esac 1128 eval with_$ac_useropt=\$ac_optarg ;; 1129 1130 -without-* | --without-*) 1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1132 # Reject names that are not valid shell variable names. 1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1134 as_fn_error $? "invalid package name: $ac_useropt" 1135 ac_useropt_orig=$ac_useropt 1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 case $ac_user_opts in 1138 *" 1139"with_$ac_useropt" 1140"*) ;; 1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1142 ac_unrecognized_sep=', ';; 1143 esac 1144 eval with_$ac_useropt=no ;; 1145 1146 --x) 1147 # Obsolete; use --with-x. 1148 with_x=yes ;; 1149 1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1151 | --x-incl | --x-inc | --x-in | --x-i) 1152 ac_prev=x_includes ;; 1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1155 x_includes=$ac_optarg ;; 1156 1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1159 ac_prev=x_libraries ;; 1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1162 x_libraries=$ac_optarg ;; 1163 1164 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1165Try \`$0 --help' for more information" 1166 ;; 1167 1168 *=*) 1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1170 # Reject names that are not valid shell variable names. 1171 case $ac_envvar in #( 1172 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1173 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1174 esac 1175 eval $ac_envvar=\$ac_optarg 1176 export $ac_envvar ;; 1177 1178 *) 1179 # FIXME: should be removed in autoconf 3.0. 1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1183 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1184 ;; 1185 1186 esac 1187done 1188 1189if test -n "$ac_prev"; then 1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1191 as_fn_error $? "missing argument to $ac_option" 1192fi 1193 1194if test -n "$ac_unrecognized_opts"; then 1195 case $enable_option_checking in 1196 no) ;; 1197 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1199 esac 1200fi 1201 1202# Check all directory arguments for consistency. 1203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1204 datadir sysconfdir sharedstatedir localstatedir includedir \ 1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1206 libdir localedir mandir 1207do 1208 eval ac_val=\$$ac_var 1209 # Remove trailing slashes. 1210 case $ac_val in 1211 */ ) 1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1213 eval $ac_var=\$ac_val;; 1214 esac 1215 # Be sure to have absolute directory names. 1216 case $ac_val in 1217 [\\/$]* | ?:[\\/]* ) continue;; 1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1219 esac 1220 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1221done 1222 1223# There might be people who depend on the old broken behavior: `$host' 1224# used to hold the argument of --host etc. 1225# FIXME: To remove some day. 1226build=$build_alias 1227host=$host_alias 1228target=$target_alias 1229 1230# FIXME: To remove some day. 1231if test "x$host_alias" != x; then 1232 if test "x$build_alias" = x; then 1233 cross_compiling=maybe 1234 elif test "x$build_alias" != "x$host_alias"; then 1235 cross_compiling=yes 1236 fi 1237fi 1238 1239ac_tool_prefix= 1240test -n "$host_alias" && ac_tool_prefix=$host_alias- 1241 1242test "$silent" = yes && exec 6>/dev/null 1243 1244 1245ac_pwd=`pwd` && test -n "$ac_pwd" && 1246ac_ls_di=`ls -di .` && 1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1248 as_fn_error $? "working directory cannot be determined" 1249test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1250 as_fn_error $? "pwd does not report name of working directory" 1251 1252 1253# Find the source files, if location was not specified. 1254if test -z "$srcdir"; then 1255 ac_srcdir_defaulted=yes 1256 # Try the directory containing this script, then the parent directory. 1257 ac_confdir=`$as_dirname -- "$as_myself" || 1258$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1259 X"$as_myself" : 'X\(//\)[^/]' \| \ 1260 X"$as_myself" : 'X\(//\)$' \| \ 1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1262$as_echo X"$as_myself" | 1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1264 s//\1/ 1265 q 1266 } 1267 /^X\(\/\/\)[^/].*/{ 1268 s//\1/ 1269 q 1270 } 1271 /^X\(\/\/\)$/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\).*/{ 1276 s//\1/ 1277 q 1278 } 1279 s/.*/./; q'` 1280 srcdir=$ac_confdir 1281 if test ! -r "$srcdir/$ac_unique_file"; then 1282 srcdir=.. 1283 fi 1284else 1285 ac_srcdir_defaulted=no 1286fi 1287if test ! -r "$srcdir/$ac_unique_file"; then 1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1289 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1290fi 1291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1292ac_abs_confdir=`( 1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1294 pwd)` 1295# When building in place, set srcdir=. 1296if test "$ac_abs_confdir" = "$ac_pwd"; then 1297 srcdir=. 1298fi 1299# Remove unnecessary trailing slashes from srcdir. 1300# Double slashes in file names in object file debugging info 1301# mess up M-x gdb in Emacs. 1302case $srcdir in 1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1304esac 1305for ac_var in $ac_precious_vars; do 1306 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1307 eval ac_env_${ac_var}_value=\$${ac_var} 1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1309 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1310done 1311 1312# 1313# Report the --help message. 1314# 1315if test "$ac_init_help" = "long"; then 1316 # Omit some internal or obsolete options to make the list less imposing. 1317 # This message is too long to be a string in the A/UX 3.1 sh. 1318 cat <<_ACEOF 1319\`configure' configures xlogo 1.0.5 to adapt to many kinds of systems. 1320 1321Usage: $0 [OPTION]... [VAR=VALUE]... 1322 1323To assign environment variables (e.g., CC, CFLAGS...), specify them as 1324VAR=VALUE. See below for descriptions of some of the useful variables. 1325 1326Defaults for the options are specified in brackets. 1327 1328Configuration: 1329 -h, --help display this help and exit 1330 --help=short display options specific to this package 1331 --help=recursive display the short help of all the included packages 1332 -V, --version display version information and exit 1333 -q, --quiet, --silent do not print \`checking ...' messages 1334 --cache-file=FILE cache test results in FILE [disabled] 1335 -C, --config-cache alias for \`--cache-file=config.cache' 1336 -n, --no-create do not create output files 1337 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1338 1339Installation directories: 1340 --prefix=PREFIX install architecture-independent files in PREFIX 1341 [$ac_default_prefix] 1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1343 [PREFIX] 1344 1345By default, \`make install' will install all the files in 1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1347an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1348for instance \`--prefix=\$HOME'. 1349 1350For better control, use the options below. 1351 1352Fine tuning of the installation directories: 1353 --bindir=DIR user executables [EPREFIX/bin] 1354 --sbindir=DIR system admin executables [EPREFIX/sbin] 1355 --libexecdir=DIR program executables [EPREFIX/libexec] 1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1359 --libdir=DIR object code libraries [EPREFIX/lib] 1360 --includedir=DIR C header files [PREFIX/include] 1361 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1364 --infodir=DIR info documentation [DATAROOTDIR/info] 1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1366 --mandir=DIR man documentation [DATAROOTDIR/man] 1367 --docdir=DIR documentation root [DATAROOTDIR/doc/xlogo] 1368 --htmldir=DIR html documentation [DOCDIR] 1369 --dvidir=DIR dvi documentation [DOCDIR] 1370 --pdfdir=DIR pdf documentation [DOCDIR] 1371 --psdir=DIR ps documentation [DOCDIR] 1372_ACEOF 1373 1374 cat <<\_ACEOF 1375 1376Program names: 1377 --program-prefix=PREFIX prepend PREFIX to installed program names 1378 --program-suffix=SUFFIX append SUFFIX to installed program names 1379 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1380 1381System types: 1382 --build=BUILD configure for building on BUILD [guessed] 1383 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1384_ACEOF 1385fi 1386 1387if test -n "$ac_init_help"; then 1388 case $ac_init_help in 1389 short | recursive ) echo "Configuration of xlogo 1.0.5:";; 1390 esac 1391 cat <<\_ACEOF 1392 1393Optional Features: 1394 --disable-option-checking ignore unrecognized --enable/--with options 1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1397 --enable-silent-rules less verbose build output (undo: "make V=1") 1398 --disable-silent-rules verbose build output (undo: "make V=0") 1399 --enable-dependency-tracking 1400 do not reject slow dependency extractors 1401 --disable-dependency-tracking 1402 speeds up one-time build 1403 --disable-selective-werror 1404 Turn off selective compiler errors. (default: 1405 enabled) 1406 --enable-strict-compilation 1407 Enable all warnings from compiler and make them 1408 errors (default: disabled) 1409 1410Optional Packages: 1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1413 --with-xrender Use Xrender & Xft2 to draw logo 1414 --with-appdefaultdir=<pathname> 1415 specify directory for app-defaults files (default is 1416 autodetected) 1417 1418Some influential environment variables: 1419 CC C compiler command 1420 CFLAGS C compiler flags 1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1422 nonstandard directory <lib dir> 1423 LIBS libraries to pass to the linker, e.g. -l<library> 1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1425 you have headers in a nonstandard directory <include dir> 1426 CPP C preprocessor 1427 PKG_CONFIG path to pkg-config utility 1428 PKG_CONFIG_PATH 1429 directories to add to pkg-config's search path 1430 PKG_CONFIG_LIBDIR 1431 path overriding pkg-config's built-in search path 1432 XLOGO_CFLAGS 1433 C compiler flags for XLOGO, overriding pkg-config 1434 XLOGO_LIBS linker flags for XLOGO, overriding pkg-config 1435 APPDEFS_CFLAGS 1436 C compiler flags for APPDEFS, overriding pkg-config 1437 APPDEFS_LIBS 1438 linker flags for APPDEFS, overriding pkg-config 1439 1440Use these variables to override the choices made by `configure' or to help 1441it to find libraries and programs with nonstandard names/locations. 1442 1443Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/issues>. 1444_ACEOF 1445ac_status=$? 1446fi 1447 1448if test "$ac_init_help" = "recursive"; then 1449 # If there are subdirs, report their specific --help. 1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1451 test -d "$ac_dir" || 1452 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1453 continue 1454 ac_builddir=. 1455 1456case "$ac_dir" in 1457.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458*) 1459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1460 # A ".." for each directory in $ac_dir_suffix. 1461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1462 case $ac_top_builddir_sub in 1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1465 esac ;; 1466esac 1467ac_abs_top_builddir=$ac_pwd 1468ac_abs_builddir=$ac_pwd$ac_dir_suffix 1469# for backward compatibility: 1470ac_top_builddir=$ac_top_build_prefix 1471 1472case $srcdir in 1473 .) # We are building in place. 1474 ac_srcdir=. 1475 ac_top_srcdir=$ac_top_builddir_sub 1476 ac_abs_top_srcdir=$ac_pwd ;; 1477 [\\/]* | ?:[\\/]* ) # Absolute name. 1478 ac_srcdir=$srcdir$ac_dir_suffix; 1479 ac_top_srcdir=$srcdir 1480 ac_abs_top_srcdir=$srcdir ;; 1481 *) # Relative name. 1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1483 ac_top_srcdir=$ac_top_build_prefix$srcdir 1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1485esac 1486ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1487 1488 cd "$ac_dir" || { ac_status=$?; continue; } 1489 # Check for guested configure. 1490 if test -f "$ac_srcdir/configure.gnu"; then 1491 echo && 1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1493 elif test -f "$ac_srcdir/configure"; then 1494 echo && 1495 $SHELL "$ac_srcdir/configure" --help=recursive 1496 else 1497 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1498 fi || ac_status=$? 1499 cd "$ac_pwd" || { ac_status=$?; break; } 1500 done 1501fi 1502 1503test -n "$ac_init_help" && exit $ac_status 1504if $ac_init_version; then 1505 cat <<\_ACEOF 1506xlogo configure 1.0.5 1507generated by GNU Autoconf 2.69 1508 1509Copyright (C) 2012 Free Software Foundation, Inc. 1510This configure script is free software; the Free Software Foundation 1511gives unlimited permission to copy, distribute and modify it. 1512_ACEOF 1513 exit 1514fi 1515 1516## ------------------------ ## 1517## Autoconf initialization. ## 1518## ------------------------ ## 1519 1520# ac_fn_c_try_compile LINENO 1521# -------------------------- 1522# Try to compile conftest.$ac_ext, and return whether this succeeded. 1523ac_fn_c_try_compile () 1524{ 1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1526 rm -f conftest.$ac_objext 1527 if { { ac_try="$ac_compile" 1528case "(($ac_try" in 1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1530 *) ac_try_echo=$ac_try;; 1531esac 1532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1533$as_echo "$ac_try_echo"; } >&5 1534 (eval "$ac_compile") 2>conftest.err 1535 ac_status=$? 1536 if test -s conftest.err; then 1537 grep -v '^ *+' conftest.err >conftest.er1 1538 cat conftest.er1 >&5 1539 mv -f conftest.er1 conftest.err 1540 fi 1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1542 test $ac_status = 0; } && { 1543 test -z "$ac_c_werror_flag" || 1544 test ! -s conftest.err 1545 } && test -s conftest.$ac_objext; then : 1546 ac_retval=0 1547else 1548 $as_echo "$as_me: failed program was:" >&5 1549sed 's/^/| /' conftest.$ac_ext >&5 1550 1551 ac_retval=1 1552fi 1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1554 as_fn_set_status $ac_retval 1555 1556} # ac_fn_c_try_compile 1557 1558# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1559# --------------------------------------------- 1560# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1561# accordingly. 1562ac_fn_c_check_decl () 1563{ 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 as_decl_name=`echo $2|sed 's/ *(.*//'` 1566 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1568$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1569if eval \${$3+:} false; then : 1570 $as_echo_n "(cached) " >&6 1571else 1572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1573/* end confdefs.h. */ 1574$4 1575int 1576main () 1577{ 1578#ifndef $as_decl_name 1579#ifdef __cplusplus 1580 (void) $as_decl_use; 1581#else 1582 (void) $as_decl_name; 1583#endif 1584#endif 1585 1586 ; 1587 return 0; 1588} 1589_ACEOF 1590if ac_fn_c_try_compile "$LINENO"; then : 1591 eval "$3=yes" 1592else 1593 eval "$3=no" 1594fi 1595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1596fi 1597eval ac_res=\$$3 1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1599$as_echo "$ac_res" >&6; } 1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1601 1602} # ac_fn_c_check_decl 1603 1604# ac_fn_c_try_cpp LINENO 1605# ---------------------- 1606# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1607ac_fn_c_try_cpp () 1608{ 1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1610 if { { ac_try="$ac_cpp conftest.$ac_ext" 1611case "(($ac_try" in 1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1613 *) ac_try_echo=$ac_try;; 1614esac 1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1616$as_echo "$ac_try_echo"; } >&5 1617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1618 ac_status=$? 1619 if test -s conftest.err; then 1620 grep -v '^ *+' conftest.err >conftest.er1 1621 cat conftest.er1 >&5 1622 mv -f conftest.er1 conftest.err 1623 fi 1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1625 test $ac_status = 0; } > conftest.i && { 1626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1627 test ! -s conftest.err 1628 }; then : 1629 ac_retval=0 1630else 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=1 1635fi 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_cpp 1640 1641# ac_fn_c_try_run LINENO 1642# ---------------------- 1643# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1644# that executables *can* be run. 1645ac_fn_c_try_run () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 if { { ac_try="$ac_link" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_link") 2>&5 1656 ac_status=$? 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1659 { { case "(($ac_try" in 1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1661 *) ac_try_echo=$ac_try;; 1662esac 1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664$as_echo "$ac_try_echo"; } >&5 1665 (eval "$ac_try") 2>&5 1666 ac_status=$? 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; }; }; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: program exited with status $ac_status" >&5 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=$ac_status 1676fi 1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 as_fn_set_status $ac_retval 1680 1681} # ac_fn_c_try_run 1682 1683# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1684# ------------------------------------------------------- 1685# Tests whether HEADER exists and can be compiled using the include files in 1686# INCLUDES, setting the cache variable VAR accordingly. 1687ac_fn_c_check_header_compile () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1691$as_echo_n "checking for $2... " >&6; } 1692if eval \${$3+:} false; then : 1693 $as_echo_n "(cached) " >&6 1694else 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696/* end confdefs.h. */ 1697$4 1698#include <$2> 1699_ACEOF 1700if ac_fn_c_try_compile "$LINENO"; then : 1701 eval "$3=yes" 1702else 1703 eval "$3=no" 1704fi 1705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1706fi 1707eval ac_res=\$$3 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1709$as_echo "$ac_res" >&6; } 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 1712} # ac_fn_c_check_header_compile 1713 1714# ac_fn_c_try_link LINENO 1715# ----------------------- 1716# Try to link conftest.$ac_ext, and return whether this succeeded. 1717ac_fn_c_try_link () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 rm -f conftest.$ac_objext conftest$ac_exeext 1721 if { { ac_try="$ac_link" 1722case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725esac 1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727$as_echo "$ac_try_echo"; } >&5 1728 (eval "$ac_link") 2>conftest.err 1729 ac_status=$? 1730 if test -s conftest.err; then 1731 grep -v '^ *+' conftest.err >conftest.er1 1732 cat conftest.er1 >&5 1733 mv -f conftest.er1 conftest.err 1734 fi 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; } && { 1737 test -z "$ac_c_werror_flag" || 1738 test ! -s conftest.err 1739 } && test -s conftest$ac_exeext && { 1740 test "$cross_compiling" = yes || 1741 test -x conftest$ac_exeext 1742 }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: failed program was:" >&5 1746sed 's/^/| /' conftest.$ac_ext >&5 1747 1748 ac_retval=1 1749fi 1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1752 # interfere with the next link command; also delete a directory that is 1753 # left behind by Apple's compiler. We do this before executing the actions. 1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 as_fn_set_status $ac_retval 1757 1758} # ac_fn_c_try_link 1759cat >config.log <<_ACEOF 1760This file contains any messages produced by compilers while 1761running configure, to aid debugging if configure makes a mistake. 1762 1763It was created by xlogo $as_me 1.0.5, which was 1764generated by GNU Autoconf 2.69. Invocation command line was 1765 1766 $ $0 $@ 1767 1768_ACEOF 1769exec 5>>config.log 1770{ 1771cat <<_ASUNAME 1772## --------- ## 1773## Platform. ## 1774## --------- ## 1775 1776hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1777uname -m = `(uname -m) 2>/dev/null || echo unknown` 1778uname -r = `(uname -r) 2>/dev/null || echo unknown` 1779uname -s = `(uname -s) 2>/dev/null || echo unknown` 1780uname -v = `(uname -v) 2>/dev/null || echo unknown` 1781 1782/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1783/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1784 1785/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1786/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1787/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1788/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1789/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1790/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1791/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1792 1793_ASUNAME 1794 1795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1796for as_dir in $PATH 1797do 1798 IFS=$as_save_IFS 1799 test -z "$as_dir" && as_dir=. 1800 $as_echo "PATH: $as_dir" 1801 done 1802IFS=$as_save_IFS 1803 1804} >&5 1805 1806cat >&5 <<_ACEOF 1807 1808 1809## ----------- ## 1810## Core tests. ## 1811## ----------- ## 1812 1813_ACEOF 1814 1815 1816# Keep a trace of the command line. 1817# Strip out --no-create and --no-recursion so they do not pile up. 1818# Strip out --silent because we don't want to record it for future runs. 1819# Also quote any args containing shell meta-characters. 1820# Make two passes to allow for proper duplicate-argument suppression. 1821ac_configure_args= 1822ac_configure_args0= 1823ac_configure_args1= 1824ac_must_keep_next=false 1825for ac_pass in 1 2 1826do 1827 for ac_arg 1828 do 1829 case $ac_arg in 1830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1832 | -silent | --silent | --silen | --sile | --sil) 1833 continue ;; 1834 *\'*) 1835 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1836 esac 1837 case $ac_pass in 1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1839 2) 1840 as_fn_append ac_configure_args1 " '$ac_arg'" 1841 if test $ac_must_keep_next = true; then 1842 ac_must_keep_next=false # Got value, back to normal. 1843 else 1844 case $ac_arg in 1845 *=* | --config-cache | -C | -disable-* | --disable-* \ 1846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1848 | -with-* | --with-* | -without-* | --without-* | --x) 1849 case "$ac_configure_args0 " in 1850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1851 esac 1852 ;; 1853 -* ) ac_must_keep_next=true ;; 1854 esac 1855 fi 1856 as_fn_append ac_configure_args " '$ac_arg'" 1857 ;; 1858 esac 1859 done 1860done 1861{ ac_configure_args0=; unset ac_configure_args0;} 1862{ ac_configure_args1=; unset ac_configure_args1;} 1863 1864# When interrupted or exit'd, cleanup temporary files, and complete 1865# config.log. We remove comments because anyway the quotes in there 1866# would cause problems or look ugly. 1867# WARNING: Use '\'' to represent an apostrophe within the trap. 1868# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1869trap 'exit_status=$? 1870 # Save into config.log some information that might help in debugging. 1871 { 1872 echo 1873 1874 $as_echo "## ---------------- ## 1875## Cache variables. ## 1876## ---------------- ##" 1877 echo 1878 # The following way of writing the cache mishandles newlines in values, 1879( 1880 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1881 eval ac_val=\$$ac_var 1882 case $ac_val in #( 1883 *${as_nl}*) 1884 case $ac_var in #( 1885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1886$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1887 esac 1888 case $ac_var in #( 1889 _ | IFS | as_nl) ;; #( 1890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1891 *) { eval $ac_var=; unset $ac_var;} ;; 1892 esac ;; 1893 esac 1894 done 1895 (set) 2>&1 | 1896 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1897 *${as_nl}ac_space=\ *) 1898 sed -n \ 1899 "s/'\''/'\''\\\\'\'''\''/g; 1900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1901 ;; #( 1902 *) 1903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1904 ;; 1905 esac | 1906 sort 1907) 1908 echo 1909 1910 $as_echo "## ----------------- ## 1911## Output variables. ## 1912## ----------------- ##" 1913 echo 1914 for ac_var in $ac_subst_vars 1915 do 1916 eval ac_val=\$$ac_var 1917 case $ac_val in 1918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1919 esac 1920 $as_echo "$ac_var='\''$ac_val'\''" 1921 done | sort 1922 echo 1923 1924 if test -n "$ac_subst_files"; then 1925 $as_echo "## ------------------- ## 1926## File substitutions. ## 1927## ------------------- ##" 1928 echo 1929 for ac_var in $ac_subst_files 1930 do 1931 eval ac_val=\$$ac_var 1932 case $ac_val in 1933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1934 esac 1935 $as_echo "$ac_var='\''$ac_val'\''" 1936 done | sort 1937 echo 1938 fi 1939 1940 if test -s confdefs.h; then 1941 $as_echo "## ----------- ## 1942## confdefs.h. ## 1943## ----------- ##" 1944 echo 1945 cat confdefs.h 1946 echo 1947 fi 1948 test "$ac_signal" != 0 && 1949 $as_echo "$as_me: caught signal $ac_signal" 1950 $as_echo "$as_me: exit $exit_status" 1951 } >&5 1952 rm -f core *.core core.conftest.* && 1953 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1954 exit $exit_status 1955' 0 1956for ac_signal in 1 2 13 15; do 1957 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1958done 1959ac_signal=0 1960 1961# confdefs.h avoids OS command line length limits that DEFS can exceed. 1962rm -f -r conftest* confdefs.h 1963 1964$as_echo "/* confdefs.h */" > confdefs.h 1965 1966# Predefined preprocessor variables. 1967 1968cat >>confdefs.h <<_ACEOF 1969#define PACKAGE_NAME "$PACKAGE_NAME" 1970_ACEOF 1971 1972cat >>confdefs.h <<_ACEOF 1973#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1974_ACEOF 1975 1976cat >>confdefs.h <<_ACEOF 1977#define PACKAGE_VERSION "$PACKAGE_VERSION" 1978_ACEOF 1979 1980cat >>confdefs.h <<_ACEOF 1981#define PACKAGE_STRING "$PACKAGE_STRING" 1982_ACEOF 1983 1984cat >>confdefs.h <<_ACEOF 1985#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1986_ACEOF 1987 1988cat >>confdefs.h <<_ACEOF 1989#define PACKAGE_URL "$PACKAGE_URL" 1990_ACEOF 1991 1992 1993# Let the site file select an alternate cache file if it wants to. 1994# Prefer an explicitly selected file to automatically selected ones. 1995ac_site_file1=NONE 1996ac_site_file2=NONE 1997if test -n "$CONFIG_SITE"; then 1998 # We do not want a PATH search for config.site. 1999 case $CONFIG_SITE in #(( 2000 -*) ac_site_file1=./$CONFIG_SITE;; 2001 */*) ac_site_file1=$CONFIG_SITE;; 2002 *) ac_site_file1=./$CONFIG_SITE;; 2003 esac 2004elif test "x$prefix" != xNONE; then 2005 ac_site_file1=$prefix/share/config.site 2006 ac_site_file2=$prefix/etc/config.site 2007else 2008 ac_site_file1=$ac_default_prefix/share/config.site 2009 ac_site_file2=$ac_default_prefix/etc/config.site 2010fi 2011for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2012do 2013 test "x$ac_site_file" = xNONE && continue 2014 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2016$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2017 sed 's/^/| /' "$ac_site_file" >&5 2018 . "$ac_site_file" \ 2019 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2021as_fn_error $? "failed to load site script $ac_site_file 2022See \`config.log' for more details" "$LINENO" 5; } 2023 fi 2024done 2025 2026if test -r "$cache_file"; then 2027 # Some versions of bash will fail to source /dev/null (special files 2028 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2029 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2031$as_echo "$as_me: loading cache $cache_file" >&6;} 2032 case $cache_file in 2033 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2034 *) . "./$cache_file";; 2035 esac 2036 fi 2037else 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2039$as_echo "$as_me: creating cache $cache_file" >&6;} 2040 >$cache_file 2041fi 2042 2043# Check that the precious variables saved in the cache have kept the same 2044# value. 2045ac_cache_corrupted=false 2046for ac_var in $ac_precious_vars; do 2047 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2048 eval ac_new_set=\$ac_env_${ac_var}_set 2049 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2050 eval ac_new_val=\$ac_env_${ac_var}_value 2051 case $ac_old_set,$ac_new_set in 2052 set,) 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2054$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2055 ac_cache_corrupted=: ;; 2056 ,set) 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2058$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2059 ac_cache_corrupted=: ;; 2060 ,);; 2061 *) 2062 if test "x$ac_old_val" != "x$ac_new_val"; then 2063 # differences in whitespace do not lead to failure. 2064 ac_old_val_w=`echo x $ac_old_val` 2065 ac_new_val_w=`echo x $ac_new_val` 2066 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2068$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2069 ac_cache_corrupted=: 2070 else 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2072$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2073 eval $ac_var=\$ac_old_val 2074 fi 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2076$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2078$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2079 fi;; 2080 esac 2081 # Pass precious variables to config.status. 2082 if test "$ac_new_set" = set; then 2083 case $ac_new_val in 2084 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2085 *) ac_arg=$ac_var=$ac_new_val ;; 2086 esac 2087 case " $ac_configure_args " in 2088 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2089 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2090 esac 2091 fi 2092done 2093if $ac_cache_corrupted; then 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2097$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2098 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2099fi 2100## -------------------- ## 2101## Main body of script. ## 2102## -------------------- ## 2103 2104ac_ext=c 2105ac_cpp='$CPP $CPPFLAGS' 2106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2108ac_compiler_gnu=$ac_cv_c_compiler_gnu 2109 2110 2111 2112ac_config_headers="$ac_config_headers config.h" 2113 2114 2115# Initialize Automake 2116am__api_version='1.15' 2117 2118ac_aux_dir= 2119for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2120 if test -f "$ac_dir/install-sh"; then 2121 ac_aux_dir=$ac_dir 2122 ac_install_sh="$ac_aux_dir/install-sh -c" 2123 break 2124 elif test -f "$ac_dir/install.sh"; then 2125 ac_aux_dir=$ac_dir 2126 ac_install_sh="$ac_aux_dir/install.sh -c" 2127 break 2128 elif test -f "$ac_dir/shtool"; then 2129 ac_aux_dir=$ac_dir 2130 ac_install_sh="$ac_aux_dir/shtool install -c" 2131 break 2132 fi 2133done 2134if test -z "$ac_aux_dir"; then 2135 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2136fi 2137 2138# These three variables are undocumented and unsupported, 2139# and are intended to be withdrawn in a future Autoconf release. 2140# They can cause serious problems if a builder's source tree is in a directory 2141# whose full name contains unusual characters. 2142ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2143ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2144ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2145 2146 2147# Find a good install program. We prefer a C program (faster), 2148# so one script is as good as another. But avoid the broken or 2149# incompatible versions: 2150# SysV /etc/install, /usr/sbin/install 2151# SunOS /usr/etc/install 2152# IRIX /sbin/install 2153# AIX /bin/install 2154# AmigaOS /C/install, which installs bootblocks on floppy discs 2155# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2156# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2157# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2158# OS/2's system install, which has a completely different semantic 2159# ./install, which can be erroneously created by make from ./install.sh. 2160# Reject install programs that cannot install multiple files. 2161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2162$as_echo_n "checking for a BSD-compatible install... " >&6; } 2163if test -z "$INSTALL"; then 2164if ${ac_cv_path_install+:} false; then : 2165 $as_echo_n "(cached) " >&6 2166else 2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2168for as_dir in $PATH 2169do 2170 IFS=$as_save_IFS 2171 test -z "$as_dir" && as_dir=. 2172 # Account for people who put trailing slashes in PATH elements. 2173case $as_dir/ in #(( 2174 ./ | .// | /[cC]/* | \ 2175 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2176 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2177 /usr/ucb/* ) ;; 2178 *) 2179 # OSF1 and SCO ODT 3.0 have their own names for install. 2180 # Don't use installbsd from OSF since it installs stuff as root 2181 # by default. 2182 for ac_prog in ginstall scoinst install; do 2183 for ac_exec_ext in '' $ac_executable_extensions; do 2184 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2185 if test $ac_prog = install && 2186 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2187 # AIX install. It has an incompatible calling convention. 2188 : 2189 elif test $ac_prog = install && 2190 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2191 # program-specific install script used by HP pwplus--don't use. 2192 : 2193 else 2194 rm -rf conftest.one conftest.two conftest.dir 2195 echo one > conftest.one 2196 echo two > conftest.two 2197 mkdir conftest.dir 2198 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2199 test -s conftest.one && test -s conftest.two && 2200 test -s conftest.dir/conftest.one && 2201 test -s conftest.dir/conftest.two 2202 then 2203 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2204 break 3 2205 fi 2206 fi 2207 fi 2208 done 2209 done 2210 ;; 2211esac 2212 2213 done 2214IFS=$as_save_IFS 2215 2216rm -rf conftest.one conftest.two conftest.dir 2217 2218fi 2219 if test "${ac_cv_path_install+set}" = set; then 2220 INSTALL=$ac_cv_path_install 2221 else 2222 # As a last resort, use the slow shell script. Don't cache a 2223 # value for INSTALL within a source directory, because that will 2224 # break other packages using the cache if that directory is 2225 # removed, or if the value is a relative name. 2226 INSTALL=$ac_install_sh 2227 fi 2228fi 2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2230$as_echo "$INSTALL" >&6; } 2231 2232# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2233# It thinks the first close brace ends the variable substitution. 2234test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2235 2236test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2237 2238test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2239 2240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2241$as_echo_n "checking whether build environment is sane... " >&6; } 2242# Reject unsafe characters in $srcdir or the absolute working directory 2243# name. Accept space and tab only in the latter. 2244am_lf=' 2245' 2246case `pwd` in 2247 *[\\\"\#\$\&\'\`$am_lf]*) 2248 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2249esac 2250case $srcdir in 2251 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2252 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2253esac 2254 2255# Do 'set' in a subshell so we don't clobber the current shell's 2256# arguments. Must try -L first in case configure is actually a 2257# symlink; some systems play weird games with the mod time of symlinks 2258# (eg FreeBSD returns the mod time of the symlink's containing 2259# directory). 2260if ( 2261 am_has_slept=no 2262 for am_try in 1 2; do 2263 echo "timestamp, slept: $am_has_slept" > conftest.file 2264 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2265 if test "$*" = "X"; then 2266 # -L didn't work. 2267 set X `ls -t "$srcdir/configure" conftest.file` 2268 fi 2269 if test "$*" != "X $srcdir/configure conftest.file" \ 2270 && test "$*" != "X conftest.file $srcdir/configure"; then 2271 2272 # If neither matched, then we have a broken ls. This can happen 2273 # if, for instance, CONFIG_SHELL is bash and it inherits a 2274 # broken ls alias from the environment. This has actually 2275 # happened. Such a system could not be considered "sane". 2276 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2277 alias in your environment" "$LINENO" 5 2278 fi 2279 if test "$2" = conftest.file || test $am_try -eq 2; then 2280 break 2281 fi 2282 # Just in case. 2283 sleep 1 2284 am_has_slept=yes 2285 done 2286 test "$2" = conftest.file 2287 ) 2288then 2289 # Ok. 2290 : 2291else 2292 as_fn_error $? "newly created file is older than distributed files! 2293Check your system clock" "$LINENO" 5 2294fi 2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2296$as_echo "yes" >&6; } 2297# If we didn't sleep, we still need to ensure time stamps of config.status and 2298# generated files are strictly newer. 2299am_sleep_pid= 2300if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2301 ( sleep 1 ) & 2302 am_sleep_pid=$! 2303fi 2304 2305rm -f conftest.file 2306 2307test "$program_prefix" != NONE && 2308 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2309# Use a double $ so make ignores it. 2310test "$program_suffix" != NONE && 2311 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2312# Double any \ or $. 2313# By default was `s,x,x', remove it if useless. 2314ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2315program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2316 2317# Expand $ac_aux_dir to an absolute path. 2318am_aux_dir=`cd "$ac_aux_dir" && pwd` 2319 2320if test x"${MISSING+set}" != xset; then 2321 case $am_aux_dir in 2322 *\ * | *\ *) 2323 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2324 *) 2325 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2326 esac 2327fi 2328# Use eval to expand $SHELL 2329if eval "$MISSING --is-lightweight"; then 2330 am_missing_run="$MISSING " 2331else 2332 am_missing_run= 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2334$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2335fi 2336 2337if test x"${install_sh+set}" != xset; then 2338 case $am_aux_dir in 2339 *\ * | *\ *) 2340 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2341 *) 2342 install_sh="\${SHELL} $am_aux_dir/install-sh" 2343 esac 2344fi 2345 2346# Installed binaries are usually stripped using 'strip' when the user 2347# run "make install-strip". However 'strip' might not be the right 2348# tool to use in cross-compilation environments, therefore Automake 2349# will honor the 'STRIP' environment variable to overrule this program. 2350if test "$cross_compiling" != no; then 2351 if test -n "$ac_tool_prefix"; then 2352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2353set dummy ${ac_tool_prefix}strip; ac_word=$2 2354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2355$as_echo_n "checking for $ac_word... " >&6; } 2356if ${ac_cv_prog_STRIP+:} false; then : 2357 $as_echo_n "(cached) " >&6 2358else 2359 if test -n "$STRIP"; then 2360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2361else 2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363for as_dir in $PATH 2364do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2369 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373done 2374 done 2375IFS=$as_save_IFS 2376 2377fi 2378fi 2379STRIP=$ac_cv_prog_STRIP 2380if test -n "$STRIP"; then 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2382$as_echo "$STRIP" >&6; } 2383else 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2385$as_echo "no" >&6; } 2386fi 2387 2388 2389fi 2390if test -z "$ac_cv_prog_STRIP"; then 2391 ac_ct_STRIP=$STRIP 2392 # Extract the first word of "strip", so it can be a program name with args. 2393set dummy strip; ac_word=$2 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2395$as_echo_n "checking for $ac_word... " >&6; } 2396if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2397 $as_echo_n "(cached) " >&6 2398else 2399 if test -n "$ac_ct_STRIP"; then 2400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2401else 2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403for as_dir in $PATH 2404do 2405 IFS=$as_save_IFS 2406 test -z "$as_dir" && as_dir=. 2407 for ac_exec_ext in '' $ac_executable_extensions; do 2408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2409 ac_cv_prog_ac_ct_STRIP="strip" 2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2411 break 2 2412 fi 2413done 2414 done 2415IFS=$as_save_IFS 2416 2417fi 2418fi 2419ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2420if test -n "$ac_ct_STRIP"; then 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2422$as_echo "$ac_ct_STRIP" >&6; } 2423else 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2425$as_echo "no" >&6; } 2426fi 2427 2428 if test "x$ac_ct_STRIP" = x; then 2429 STRIP=":" 2430 else 2431 case $cross_compiling:$ac_tool_warned in 2432yes:) 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2435ac_tool_warned=yes ;; 2436esac 2437 STRIP=$ac_ct_STRIP 2438 fi 2439else 2440 STRIP="$ac_cv_prog_STRIP" 2441fi 2442 2443fi 2444INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2445 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2447$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2448if test -z "$MKDIR_P"; then 2449 if ${ac_cv_path_mkdir+:} false; then : 2450 $as_echo_n "(cached) " >&6 2451else 2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2453for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2454do 2455 IFS=$as_save_IFS 2456 test -z "$as_dir" && as_dir=. 2457 for ac_prog in mkdir gmkdir; do 2458 for ac_exec_ext in '' $ac_executable_extensions; do 2459 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2460 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2461 'mkdir (GNU coreutils) '* | \ 2462 'mkdir (coreutils) '* | \ 2463 'mkdir (fileutils) '4.1*) 2464 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2465 break 3;; 2466 esac 2467 done 2468 done 2469 done 2470IFS=$as_save_IFS 2471 2472fi 2473 2474 test -d ./--version && rmdir ./--version 2475 if test "${ac_cv_path_mkdir+set}" = set; then 2476 MKDIR_P="$ac_cv_path_mkdir -p" 2477 else 2478 # As a last resort, use the slow shell script. Don't cache a 2479 # value for MKDIR_P within a source directory, because that will 2480 # break other packages using the cache if that directory is 2481 # removed, or if the value is a relative name. 2482 MKDIR_P="$ac_install_sh -d" 2483 fi 2484fi 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2486$as_echo "$MKDIR_P" >&6; } 2487 2488for ac_prog in gawk mawk nawk awk 2489do 2490 # Extract the first word of "$ac_prog", so it can be a program name with args. 2491set dummy $ac_prog; ac_word=$2 2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2493$as_echo_n "checking for $ac_word... " >&6; } 2494if ${ac_cv_prog_AWK+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496else 2497 if test -n "$AWK"; then 2498 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2499else 2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2501for as_dir in $PATH 2502do 2503 IFS=$as_save_IFS 2504 test -z "$as_dir" && as_dir=. 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2507 ac_cv_prog_AWK="$ac_prog" 2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2509 break 2 2510 fi 2511done 2512 done 2513IFS=$as_save_IFS 2514 2515fi 2516fi 2517AWK=$ac_cv_prog_AWK 2518if test -n "$AWK"; then 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2520$as_echo "$AWK" >&6; } 2521else 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2523$as_echo "no" >&6; } 2524fi 2525 2526 2527 test -n "$AWK" && break 2528done 2529 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2531$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2532set x ${MAKE-make} 2533ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2534if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 cat >conftest.make <<\_ACEOF 2538SHELL = /bin/sh 2539all: 2540 @echo '@@@%%%=$(MAKE)=@@@%%%' 2541_ACEOF 2542# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2543case `${MAKE-make} -f conftest.make 2>/dev/null` in 2544 *@@@%%%=?*=@@@%%%*) 2545 eval ac_cv_prog_make_${ac_make}_set=yes;; 2546 *) 2547 eval ac_cv_prog_make_${ac_make}_set=no;; 2548esac 2549rm -f conftest.make 2550fi 2551if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2553$as_echo "yes" >&6; } 2554 SET_MAKE= 2555else 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2557$as_echo "no" >&6; } 2558 SET_MAKE="MAKE=${MAKE-make}" 2559fi 2560 2561rm -rf .tst 2>/dev/null 2562mkdir .tst 2>/dev/null 2563if test -d .tst; then 2564 am__leading_dot=. 2565else 2566 am__leading_dot=_ 2567fi 2568rmdir .tst 2>/dev/null 2569 2570# Check whether --enable-silent-rules was given. 2571if test "${enable_silent_rules+set}" = set; then : 2572 enableval=$enable_silent_rules; 2573fi 2574 2575case $enable_silent_rules in # ((( 2576 yes) AM_DEFAULT_VERBOSITY=0;; 2577 no) AM_DEFAULT_VERBOSITY=1;; 2578 *) AM_DEFAULT_VERBOSITY=1;; 2579esac 2580am_make=${MAKE-make} 2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2582$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2583if ${am_cv_make_support_nested_variables+:} false; then : 2584 $as_echo_n "(cached) " >&6 2585else 2586 if $as_echo 'TRUE=$(BAR$(V)) 2587BAR0=false 2588BAR1=true 2589V=1 2590am__doit: 2591 @$(TRUE) 2592.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2593 am_cv_make_support_nested_variables=yes 2594else 2595 am_cv_make_support_nested_variables=no 2596fi 2597fi 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2599$as_echo "$am_cv_make_support_nested_variables" >&6; } 2600if test $am_cv_make_support_nested_variables = yes; then 2601 AM_V='$(V)' 2602 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2603else 2604 AM_V=$AM_DEFAULT_VERBOSITY 2605 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2606fi 2607AM_BACKSLASH='\' 2608 2609if test "`cd $srcdir && pwd`" != "`pwd`"; then 2610 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2611 # is not polluted with repeated "-I." 2612 am__isrc=' -I$(srcdir)' 2613 # test to see if srcdir already configured 2614 if test -f $srcdir/config.status; then 2615 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2616 fi 2617fi 2618 2619# test whether we have cygpath 2620if test -z "$CYGPATH_W"; then 2621 if (cygpath --version) >/dev/null 2>/dev/null; then 2622 CYGPATH_W='cygpath -w' 2623 else 2624 CYGPATH_W=echo 2625 fi 2626fi 2627 2628 2629# Define the identity of the package. 2630 PACKAGE='xlogo' 2631 VERSION='1.0.5' 2632 2633 2634cat >>confdefs.h <<_ACEOF 2635#define PACKAGE "$PACKAGE" 2636_ACEOF 2637 2638 2639cat >>confdefs.h <<_ACEOF 2640#define VERSION "$VERSION" 2641_ACEOF 2642 2643# Some tools Automake needs. 2644 2645ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2646 2647 2648AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2649 2650 2651AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2652 2653 2654AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2655 2656 2657MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2658 2659# For better backward compatibility. To be removed once Automake 1.9.x 2660# dies out for good. For more background, see: 2661# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2662# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2663mkdir_p='$(MKDIR_P)' 2664 2665# We need awk for the "check" target (and possibly the TAP driver). The 2666# system "awk" is bad on some platforms. 2667# Always define AMTAR for backward compatibility. Yes, it's still used 2668# in the wild :-( We should find a proper way to deprecate it ... 2669AMTAR='$${TAR-tar}' 2670 2671 2672# We'll loop over all known methods to create a tar archive until one works. 2673_am_tools='gnutar pax cpio none' 2674 2675am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2676 2677 2678 2679 2680 2681 2682# POSIX will say in a future version that running "rm -f" with no argument 2683# is OK; and we want to be able to make that assumption in our Makefile 2684# recipes. So use an aggressive probe to check that the usage we want is 2685# actually supported "in the wild" to an acceptable degree. 2686# See automake bug#10828. 2687# To make any issue more visible, cause the running configure to be aborted 2688# by default if the 'rm' program in use doesn't match our expectations; the 2689# user can still override this though. 2690if rm -f && rm -fr && rm -rf; then : OK; else 2691 cat >&2 <<'END' 2692Oops! 2693 2694Your 'rm' program seems unable to run without file operands specified 2695on the command line, even when the '-f' option is present. This is contrary 2696to the behaviour of most rm programs out there, and not conforming with 2697the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2698 2699Please tell bug-automake@gnu.org about your system, including the value 2700of your $PATH and any error possibly output before this message. This 2701can help us improve future automake versions. 2702 2703END 2704 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2705 echo 'Configuration will proceed anyway, since you have set the' >&2 2706 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2707 echo >&2 2708 else 2709 cat >&2 <<'END' 2710Aborting the configuration process, to ensure you take notice of the issue. 2711 2712You can download and install GNU coreutils to get an 'rm' implementation 2713that behaves properly: <http://www.gnu.org/software/coreutils/>. 2714 2715If you want to complete the configuration process using your problematic 2716'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2717to "yes", and re-run configure. 2718 2719END 2720 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2721 fi 2722fi 2723 2724 2725# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737DEPDIR="${am__leading_dot}deps" 2738 2739ac_config_commands="$ac_config_commands depfiles" 2740 2741 2742am_make=${MAKE-make} 2743cat > confinc << 'END' 2744am__doit: 2745 @echo this is the am__doit target 2746.PHONY: am__doit 2747END 2748# If we don't find an include directive, just comment out the code. 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2750$as_echo_n "checking for style of include used by $am_make... " >&6; } 2751am__include="#" 2752am__quote= 2753_am_result=none 2754# First try GNU make style include. 2755echo "include confinc" > confmf 2756# Ignore all kinds of additional output from 'make'. 2757case `$am_make -s -f confmf 2> /dev/null` in #( 2758*the\ am__doit\ target*) 2759 am__include=include 2760 am__quote= 2761 _am_result=GNU 2762 ;; 2763esac 2764# Now try BSD make style include. 2765if test "$am__include" = "#"; then 2766 echo '.include "confinc"' > confmf 2767 case `$am_make -s -f confmf 2> /dev/null` in #( 2768 *the\ am__doit\ target*) 2769 am__include=.include 2770 am__quote="\"" 2771 _am_result=BSD 2772 ;; 2773 esac 2774fi 2775 2776 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2778$as_echo "$_am_result" >&6; } 2779rm -f confinc confmf 2780 2781# Check whether --enable-dependency-tracking was given. 2782if test "${enable_dependency_tracking+set}" = set; then : 2783 enableval=$enable_dependency_tracking; 2784fi 2785 2786if test "x$enable_dependency_tracking" != xno; then 2787 am_depcomp="$ac_aux_dir/depcomp" 2788 AMDEPBACKSLASH='\' 2789 am__nodep='_no' 2790fi 2791 if test "x$enable_dependency_tracking" != xno; then 2792 AMDEP_TRUE= 2793 AMDEP_FALSE='#' 2794else 2795 AMDEP_TRUE='#' 2796 AMDEP_FALSE= 2797fi 2798 2799 2800ac_ext=c 2801ac_cpp='$CPP $CPPFLAGS' 2802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2804ac_compiler_gnu=$ac_cv_c_compiler_gnu 2805if test -n "$ac_tool_prefix"; then 2806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2807set dummy ${ac_tool_prefix}gcc; ac_word=$2 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809$as_echo_n "checking for $ac_word... " >&6; } 2810if ${ac_cv_prog_CC+:} false; then : 2811 $as_echo_n "(cached) " >&6 2812else 2813 if test -n "$CC"; then 2814 ac_cv_prog_CC="$CC" # Let the user override the test. 2815else 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 test -z "$as_dir" && as_dir=. 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2823 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2825 break 2 2826 fi 2827done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832fi 2833CC=$ac_cv_prog_CC 2834if test -n "$CC"; then 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2836$as_echo "$CC" >&6; } 2837else 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2839$as_echo "no" >&6; } 2840fi 2841 2842 2843fi 2844if test -z "$ac_cv_prog_CC"; then 2845 ac_ct_CC=$CC 2846 # Extract the first word of "gcc", so it can be a program name with args. 2847set dummy gcc; ac_word=$2 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849$as_echo_n "checking for $ac_word... " >&6; } 2850if ${ac_cv_prog_ac_ct_CC+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 if test -n "$ac_ct_CC"; then 2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2855else 2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857for as_dir in $PATH 2858do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2863 ac_cv_prog_ac_ct_CC="gcc" 2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867done 2868 done 2869IFS=$as_save_IFS 2870 2871fi 2872fi 2873ac_ct_CC=$ac_cv_prog_ac_ct_CC 2874if test -n "$ac_ct_CC"; then 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2876$as_echo "$ac_ct_CC" >&6; } 2877else 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879$as_echo "no" >&6; } 2880fi 2881 2882 if test "x$ac_ct_CC" = x; then 2883 CC="" 2884 else 2885 case $cross_compiling:$ac_tool_warned in 2886yes:) 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2889ac_tool_warned=yes ;; 2890esac 2891 CC=$ac_ct_CC 2892 fi 2893else 2894 CC="$ac_cv_prog_CC" 2895fi 2896 2897if test -z "$CC"; then 2898 if test -n "$ac_tool_prefix"; then 2899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2900set dummy ${ac_tool_prefix}cc; ac_word=$2 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2902$as_echo_n "checking for $ac_word... " >&6; } 2903if ${ac_cv_prog_CC+:} false; then : 2904 $as_echo_n "(cached) " >&6 2905else 2906 if test -n "$CC"; then 2907 ac_cv_prog_CC="$CC" # Let the user override the test. 2908else 2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910for as_dir in $PATH 2911do 2912 IFS=$as_save_IFS 2913 test -z "$as_dir" && as_dir=. 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2916 ac_cv_prog_CC="${ac_tool_prefix}cc" 2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2918 break 2 2919 fi 2920done 2921 done 2922IFS=$as_save_IFS 2923 2924fi 2925fi 2926CC=$ac_cv_prog_CC 2927if test -n "$CC"; then 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2929$as_echo "$CC" >&6; } 2930else 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2932$as_echo "no" >&6; } 2933fi 2934 2935 2936 fi 2937fi 2938if test -z "$CC"; then 2939 # Extract the first word of "cc", so it can be a program name with args. 2940set dummy cc; ac_word=$2 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2942$as_echo_n "checking for $ac_word... " >&6; } 2943if ${ac_cv_prog_CC+:} false; then : 2944 $as_echo_n "(cached) " >&6 2945else 2946 if test -n "$CC"; then 2947 ac_cv_prog_CC="$CC" # Let the user override the test. 2948else 2949 ac_prog_rejected=no 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2958 ac_prog_rejected=yes 2959 continue 2960 fi 2961 ac_cv_prog_CC="cc" 2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2963 break 2 2964 fi 2965done 2966 done 2967IFS=$as_save_IFS 2968 2969if test $ac_prog_rejected = yes; then 2970 # We found a bogon in the path, so make sure we never use it. 2971 set dummy $ac_cv_prog_CC 2972 shift 2973 if test $# != 0; then 2974 # We chose a different compiler from the bogus one. 2975 # However, it has the same basename, so the bogon will be chosen 2976 # first if we set CC to just the basename; use the full file name. 2977 shift 2978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2979 fi 2980fi 2981fi 2982fi 2983CC=$ac_cv_prog_CC 2984if test -n "$CC"; then 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2986$as_echo "$CC" >&6; } 2987else 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989$as_echo "no" >&6; } 2990fi 2991 2992 2993fi 2994if test -z "$CC"; then 2995 if test -n "$ac_tool_prefix"; then 2996 for ac_prog in cl.exe 2997 do 2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2999set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3001$as_echo_n "checking for $ac_word... " >&6; } 3002if ${ac_cv_prog_CC+:} false; then : 3003 $as_echo_n "(cached) " >&6 3004else 3005 if test -n "$CC"; then 3006 ac_cv_prog_CC="$CC" # Let the user override the test. 3007else 3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3009for as_dir in $PATH 3010do 3011 IFS=$as_save_IFS 3012 test -z "$as_dir" && as_dir=. 3013 for ac_exec_ext in '' $ac_executable_extensions; do 3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3017 break 2 3018 fi 3019done 3020 done 3021IFS=$as_save_IFS 3022 3023fi 3024fi 3025CC=$ac_cv_prog_CC 3026if test -n "$CC"; then 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3028$as_echo "$CC" >&6; } 3029else 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031$as_echo "no" >&6; } 3032fi 3033 3034 3035 test -n "$CC" && break 3036 done 3037fi 3038if test -z "$CC"; then 3039 ac_ct_CC=$CC 3040 for ac_prog in cl.exe 3041do 3042 # Extract the first word of "$ac_prog", so it can be a program name with args. 3043set dummy $ac_prog; ac_word=$2 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3045$as_echo_n "checking for $ac_word... " >&6; } 3046if ${ac_cv_prog_ac_ct_CC+:} false; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 if test -n "$ac_ct_CC"; then 3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3051else 3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3053for as_dir in $PATH 3054do 3055 IFS=$as_save_IFS 3056 test -z "$as_dir" && as_dir=. 3057 for ac_exec_ext in '' $ac_executable_extensions; do 3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3059 ac_cv_prog_ac_ct_CC="$ac_prog" 3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3061 break 2 3062 fi 3063done 3064 done 3065IFS=$as_save_IFS 3066 3067fi 3068fi 3069ac_ct_CC=$ac_cv_prog_ac_ct_CC 3070if test -n "$ac_ct_CC"; then 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3072$as_echo "$ac_ct_CC" >&6; } 3073else 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3075$as_echo "no" >&6; } 3076fi 3077 3078 3079 test -n "$ac_ct_CC" && break 3080done 3081 3082 if test "x$ac_ct_CC" = x; then 3083 CC="" 3084 else 3085 case $cross_compiling:$ac_tool_warned in 3086yes:) 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3089ac_tool_warned=yes ;; 3090esac 3091 CC=$ac_ct_CC 3092 fi 3093fi 3094 3095fi 3096 3097 3098test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3100as_fn_error $? "no acceptable C compiler found in \$PATH 3101See \`config.log' for more details" "$LINENO" 5; } 3102 3103# Provide some information about the compiler. 3104$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3105set X $ac_compile 3106ac_compiler=$2 3107for ac_option in --version -v -V -qversion; do 3108 { { ac_try="$ac_compiler $ac_option >&5" 3109case "(($ac_try" in 3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3111 *) ac_try_echo=$ac_try;; 3112esac 3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3114$as_echo "$ac_try_echo"; } >&5 3115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3116 ac_status=$? 3117 if test -s conftest.err; then 3118 sed '10a\ 3119... rest of stderr output deleted ... 3120 10q' conftest.err >conftest.er1 3121 cat conftest.er1 >&5 3122 fi 3123 rm -f conftest.er1 conftest.err 3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3125 test $ac_status = 0; } 3126done 3127 3128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3129/* end confdefs.h. */ 3130 3131int 3132main () 3133{ 3134 3135 ; 3136 return 0; 3137} 3138_ACEOF 3139ac_clean_files_save=$ac_clean_files 3140ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3141# Try to create an executable without -o first, disregard a.out. 3142# It will help us diagnose broken compilers, and finding out an intuition 3143# of exeext. 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3145$as_echo_n "checking whether the C compiler works... " >&6; } 3146ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3147 3148# The possible output files: 3149ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3150 3151ac_rmfiles= 3152for ac_file in $ac_files 3153do 3154 case $ac_file in 3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3156 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3157 esac 3158done 3159rm -f $ac_rmfiles 3160 3161if { { ac_try="$ac_link_default" 3162case "(($ac_try" in 3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3164 *) ac_try_echo=$ac_try;; 3165esac 3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3167$as_echo "$ac_try_echo"; } >&5 3168 (eval "$ac_link_default") 2>&5 3169 ac_status=$? 3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3171 test $ac_status = 0; }; then : 3172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3174# in a Makefile. We should not override ac_cv_exeext if it was cached, 3175# so that the user can short-circuit this test for compilers unknown to 3176# Autoconf. 3177for ac_file in $ac_files '' 3178do 3179 test -f "$ac_file" || continue 3180 case $ac_file in 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3182 ;; 3183 [ab].out ) 3184 # We found the default executable, but exeext='' is most 3185 # certainly right. 3186 break;; 3187 *.* ) 3188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3189 then :; else 3190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3191 fi 3192 # We set ac_cv_exeext here because the later test for it is not 3193 # safe: cross compilers may not add the suffix if given an `-o' 3194 # argument, so we may need to know it at that point already. 3195 # Even if this section looks crufty: it has the advantage of 3196 # actually working. 3197 break;; 3198 * ) 3199 break;; 3200 esac 3201done 3202test "$ac_cv_exeext" = no && ac_cv_exeext= 3203 3204else 3205 ac_file='' 3206fi 3207if test -z "$ac_file"; then : 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209$as_echo "no" >&6; } 3210$as_echo "$as_me: failed program was:" >&5 3211sed 's/^/| /' conftest.$ac_ext >&5 3212 3213{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3215as_fn_error 77 "C compiler cannot create executables 3216See \`config.log' for more details" "$LINENO" 5; } 3217else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3219$as_echo "yes" >&6; } 3220fi 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3222$as_echo_n "checking for C compiler default output file name... " >&6; } 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3224$as_echo "$ac_file" >&6; } 3225ac_exeext=$ac_cv_exeext 3226 3227rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3228ac_clean_files=$ac_clean_files_save 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3230$as_echo_n "checking for suffix of executables... " >&6; } 3231if { { ac_try="$ac_link" 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") 2>&5 3239 ac_status=$? 3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3241 test $ac_status = 0; }; then : 3242 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3243# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3244# work properly (i.e., refer to `conftest.exe'), while it won't with 3245# `rm'. 3246for ac_file in conftest.exe conftest conftest.*; do 3247 test -f "$ac_file" || continue 3248 case $ac_file in 3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3251 break;; 3252 * ) break;; 3253 esac 3254done 3255else 3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3258as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3259See \`config.log' for more details" "$LINENO" 5; } 3260fi 3261rm -f conftest conftest$ac_cv_exeext 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3263$as_echo "$ac_cv_exeext" >&6; } 3264 3265rm -f conftest.$ac_ext 3266EXEEXT=$ac_cv_exeext 3267ac_exeext=$EXEEXT 3268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3269/* end confdefs.h. */ 3270#include <stdio.h> 3271int 3272main () 3273{ 3274FILE *f = fopen ("conftest.out", "w"); 3275 return ferror (f) || fclose (f) != 0; 3276 3277 ; 3278 return 0; 3279} 3280_ACEOF 3281ac_clean_files="$ac_clean_files conftest.out" 3282# Check that the compiler produces executables we can run. If not, either 3283# the compiler is broken, or we cross compile. 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3285$as_echo_n "checking whether we are cross compiling... " >&6; } 3286if test "$cross_compiling" != yes; then 3287 { { ac_try="$ac_link" 3288case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3293$as_echo "$ac_try_echo"; } >&5 3294 (eval "$ac_link") 2>&5 3295 ac_status=$? 3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3297 test $ac_status = 0; } 3298 if { ac_try='./conftest$ac_cv_exeext' 3299 { { case "(($ac_try" in 3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3301 *) ac_try_echo=$ac_try;; 3302esac 3303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3304$as_echo "$ac_try_echo"; } >&5 3305 (eval "$ac_try") 2>&5 3306 ac_status=$? 3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3308 test $ac_status = 0; }; }; then 3309 cross_compiling=no 3310 else 3311 if test "$cross_compiling" = maybe; then 3312 cross_compiling=yes 3313 else 3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3316as_fn_error $? "cannot run C compiled programs. 3317If you meant to cross compile, use \`--host'. 3318See \`config.log' for more details" "$LINENO" 5; } 3319 fi 3320 fi 3321fi 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3323$as_echo "$cross_compiling" >&6; } 3324 3325rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3326ac_clean_files=$ac_clean_files_save 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3328$as_echo_n "checking for suffix of object files... " >&6; } 3329if ${ac_cv_objext+:} false; then : 3330 $as_echo_n "(cached) " >&6 3331else 3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3333/* end confdefs.h. */ 3334 3335int 3336main () 3337{ 3338 3339 ; 3340 return 0; 3341} 3342_ACEOF 3343rm -f conftest.o conftest.obj 3344if { { ac_try="$ac_compile" 3345case "(($ac_try" in 3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3347 *) ac_try_echo=$ac_try;; 3348esac 3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3350$as_echo "$ac_try_echo"; } >&5 3351 (eval "$ac_compile") 2>&5 3352 ac_status=$? 3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3354 test $ac_status = 0; }; then : 3355 for ac_file in conftest.o conftest.obj conftest.*; do 3356 test -f "$ac_file" || continue; 3357 case $ac_file in 3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3360 break;; 3361 esac 3362done 3363else 3364 $as_echo "$as_me: failed program was:" >&5 3365sed 's/^/| /' conftest.$ac_ext >&5 3366 3367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3369as_fn_error $? "cannot compute suffix of object files: cannot compile 3370See \`config.log' for more details" "$LINENO" 5; } 3371fi 3372rm -f conftest.$ac_cv_objext conftest.$ac_ext 3373fi 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3375$as_echo "$ac_cv_objext" >&6; } 3376OBJEXT=$ac_cv_objext 3377ac_objext=$OBJEXT 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3379$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3380if ${ac_cv_c_compiler_gnu+:} false; then : 3381 $as_echo_n "(cached) " >&6 3382else 3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384/* end confdefs.h. */ 3385 3386int 3387main () 3388{ 3389#ifndef __GNUC__ 3390 choke me 3391#endif 3392 3393 ; 3394 return 0; 3395} 3396_ACEOF 3397if ac_fn_c_try_compile "$LINENO"; then : 3398 ac_compiler_gnu=yes 3399else 3400 ac_compiler_gnu=no 3401fi 3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3403ac_cv_c_compiler_gnu=$ac_compiler_gnu 3404 3405fi 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3407$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3408if test $ac_compiler_gnu = yes; then 3409 GCC=yes 3410else 3411 GCC= 3412fi 3413ac_test_CFLAGS=${CFLAGS+set} 3414ac_save_CFLAGS=$CFLAGS 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3416$as_echo_n "checking whether $CC accepts -g... " >&6; } 3417if ${ac_cv_prog_cc_g+:} false; then : 3418 $as_echo_n "(cached) " >&6 3419else 3420 ac_save_c_werror_flag=$ac_c_werror_flag 3421 ac_c_werror_flag=yes 3422 ac_cv_prog_cc_g=no 3423 CFLAGS="-g" 3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3425/* end confdefs.h. */ 3426 3427int 3428main () 3429{ 3430 3431 ; 3432 return 0; 3433} 3434_ACEOF 3435if ac_fn_c_try_compile "$LINENO"; then : 3436 ac_cv_prog_cc_g=yes 3437else 3438 CFLAGS="" 3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3440/* end confdefs.h. */ 3441 3442int 3443main () 3444{ 3445 3446 ; 3447 return 0; 3448} 3449_ACEOF 3450if ac_fn_c_try_compile "$LINENO"; then : 3451 3452else 3453 ac_c_werror_flag=$ac_save_c_werror_flag 3454 CFLAGS="-g" 3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3456/* end confdefs.h. */ 3457 3458int 3459main () 3460{ 3461 3462 ; 3463 return 0; 3464} 3465_ACEOF 3466if ac_fn_c_try_compile "$LINENO"; then : 3467 ac_cv_prog_cc_g=yes 3468fi 3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3470fi 3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3472fi 3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3474 ac_c_werror_flag=$ac_save_c_werror_flag 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3477$as_echo "$ac_cv_prog_cc_g" >&6; } 3478if test "$ac_test_CFLAGS" = set; then 3479 CFLAGS=$ac_save_CFLAGS 3480elif test $ac_cv_prog_cc_g = yes; then 3481 if test "$GCC" = yes; then 3482 CFLAGS="-g -O2" 3483 else 3484 CFLAGS="-g" 3485 fi 3486else 3487 if test "$GCC" = yes; then 3488 CFLAGS="-O2" 3489 else 3490 CFLAGS= 3491 fi 3492fi 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3494$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3495if ${ac_cv_prog_cc_c89+:} false; then : 3496 $as_echo_n "(cached) " >&6 3497else 3498 ac_cv_prog_cc_c89=no 3499ac_save_CC=$CC 3500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502#include <stdarg.h> 3503#include <stdio.h> 3504struct stat; 3505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3506struct buf { int x; }; 3507FILE * (*rcsopen) (struct buf *, struct stat *, int); 3508static char *e (p, i) 3509 char **p; 3510 int i; 3511{ 3512 return p[i]; 3513} 3514static char *f (char * (*g) (char **, int), char **p, ...) 3515{ 3516 char *s; 3517 va_list v; 3518 va_start (v,p); 3519 s = g (p, va_arg (v,int)); 3520 va_end (v); 3521 return s; 3522} 3523 3524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3525 function prototypes and stuff, but not '\xHH' hex character constants. 3526 These don't provoke an error unfortunately, instead are silently treated 3527 as 'x'. The following induces an error, until -std is added to get 3528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3529 array size at least. It's necessary to write '\x00'==0 to get something 3530 that's true only with -std. */ 3531int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3532 3533/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3534 inside strings and character constants. */ 3535#define FOO(x) 'x' 3536int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3537 3538int test (int i, double x); 3539struct s1 {int (*f) (int a);}; 3540struct s2 {int (*f) (double a);}; 3541int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3542int argc; 3543char **argv; 3544int 3545main () 3546{ 3547return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3553 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3554do 3555 CC="$ac_save_CC $ac_arg" 3556 if ac_fn_c_try_compile "$LINENO"; then : 3557 ac_cv_prog_cc_c89=$ac_arg 3558fi 3559rm -f core conftest.err conftest.$ac_objext 3560 test "x$ac_cv_prog_cc_c89" != "xno" && break 3561done 3562rm -f conftest.$ac_ext 3563CC=$ac_save_CC 3564 3565fi 3566# AC_CACHE_VAL 3567case "x$ac_cv_prog_cc_c89" in 3568 x) 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3570$as_echo "none needed" >&6; } ;; 3571 xno) 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3573$as_echo "unsupported" >&6; } ;; 3574 *) 3575 CC="$CC $ac_cv_prog_cc_c89" 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3577$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3578esac 3579if test "x$ac_cv_prog_cc_c89" != xno; then : 3580 3581fi 3582 3583ac_ext=c 3584ac_cpp='$CPP $CPPFLAGS' 3585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3587ac_compiler_gnu=$ac_cv_c_compiler_gnu 3588 3589ac_ext=c 3590ac_cpp='$CPP $CPPFLAGS' 3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3593ac_compiler_gnu=$ac_cv_c_compiler_gnu 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3595$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3596if ${am_cv_prog_cc_c_o+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598else 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601 3602int 3603main () 3604{ 3605 3606 ; 3607 return 0; 3608} 3609_ACEOF 3610 # Make sure it works both with $CC and with simple cc. 3611 # Following AC_PROG_CC_C_O, we do the test twice because some 3612 # compilers refuse to overwrite an existing .o file with -o, 3613 # though they will create one. 3614 am_cv_prog_cc_c_o=yes 3615 for am_i in 1 2; do 3616 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3617 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3618 ac_status=$? 3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3620 (exit $ac_status); } \ 3621 && test -f conftest2.$ac_objext; then 3622 : OK 3623 else 3624 am_cv_prog_cc_c_o=no 3625 break 3626 fi 3627 done 3628 rm -f core conftest* 3629 unset am_i 3630fi 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3632$as_echo "$am_cv_prog_cc_c_o" >&6; } 3633if test "$am_cv_prog_cc_c_o" != yes; then 3634 # Losing compiler, so override with the script. 3635 # FIXME: It is wrong to rewrite CC. 3636 # But if we don't then we get into trouble of one sort or another. 3637 # A longer-term fix would be to have automake use am__CC in this case, 3638 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3639 CC="$am_aux_dir/compile $CC" 3640fi 3641ac_ext=c 3642ac_cpp='$CPP $CPPFLAGS' 3643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3645ac_compiler_gnu=$ac_cv_c_compiler_gnu 3646 3647 3648depcc="$CC" am_compiler_list= 3649 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3651$as_echo_n "checking dependency style of $depcc... " >&6; } 3652if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3653 $as_echo_n "(cached) " >&6 3654else 3655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3656 # We make a subdir and do the tests there. Otherwise we can end up 3657 # making bogus files that we don't know about and never remove. For 3658 # instance it was reported that on HP-UX the gcc test will end up 3659 # making a dummy file named 'D' -- because '-MD' means "put the output 3660 # in D". 3661 rm -rf conftest.dir 3662 mkdir conftest.dir 3663 # Copy depcomp to subdir because otherwise we won't find it if we're 3664 # using a relative directory. 3665 cp "$am_depcomp" conftest.dir 3666 cd conftest.dir 3667 # We will build objects and dependencies in a subdirectory because 3668 # it helps to detect inapplicable dependency modes. For instance 3669 # both Tru64's cc and ICC support -MD to output dependencies as a 3670 # side effect of compilation, but ICC will put the dependencies in 3671 # the current directory while Tru64 will put them in the object 3672 # directory. 3673 mkdir sub 3674 3675 am_cv_CC_dependencies_compiler_type=none 3676 if test "$am_compiler_list" = ""; then 3677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3678 fi 3679 am__universal=false 3680 case " $depcc " in #( 3681 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3682 esac 3683 3684 for depmode in $am_compiler_list; do 3685 # Setup a source with many dependencies, because some compilers 3686 # like to wrap large dependency lists on column 80 (with \), and 3687 # we should not choose a depcomp mode which is confused by this. 3688 # 3689 # We need to recreate these files for each test, as the compiler may 3690 # overwrite some of them when testing with obscure command lines. 3691 # This happens at least with the AIX C compiler. 3692 : > sub/conftest.c 3693 for i in 1 2 3 4 5 6; do 3694 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3695 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3696 # Solaris 10 /bin/sh. 3697 echo '/* dummy */' > sub/conftst$i.h 3698 done 3699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3700 3701 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3702 # mode. It turns out that the SunPro C++ compiler does not properly 3703 # handle '-M -o', and we need to detect this. Also, some Intel 3704 # versions had trouble with output in subdirs. 3705 am__obj=sub/conftest.${OBJEXT-o} 3706 am__minus_obj="-o $am__obj" 3707 case $depmode in 3708 gcc) 3709 # This depmode causes a compiler race in universal mode. 3710 test "$am__universal" = false || continue 3711 ;; 3712 nosideeffect) 3713 # After this tag, mechanisms are not by side-effect, so they'll 3714 # only be used when explicitly requested. 3715 if test "x$enable_dependency_tracking" = xyes; then 3716 continue 3717 else 3718 break 3719 fi 3720 ;; 3721 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3722 # This compiler won't grok '-c -o', but also, the minuso test has 3723 # not run yet. These depmodes are late enough in the game, and 3724 # so weak that their functioning should not be impacted. 3725 am__obj=conftest.${OBJEXT-o} 3726 am__minus_obj= 3727 ;; 3728 none) break ;; 3729 esac 3730 if depmode=$depmode \ 3731 source=sub/conftest.c object=$am__obj \ 3732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3733 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3734 >/dev/null 2>conftest.err && 3735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3737 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3739 # icc doesn't choke on unknown options, it will just issue warnings 3740 # or remarks (even with -Werror). So we grep stderr for any message 3741 # that says an option was ignored or not supported. 3742 # When given -MP, icc 7.0 and 7.1 complain thusly: 3743 # icc: Command line warning: ignoring option '-M'; no argument required 3744 # The diagnosis changed in icc 8.0: 3745 # icc: Command line remark: option '-MP' not supported 3746 if (grep 'ignoring option' conftest.err || 3747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3748 am_cv_CC_dependencies_compiler_type=$depmode 3749 break 3750 fi 3751 fi 3752 done 3753 3754 cd .. 3755 rm -rf conftest.dir 3756else 3757 am_cv_CC_dependencies_compiler_type=none 3758fi 3759 3760fi 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3762$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3763CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3764 3765 if 3766 test "x$enable_dependency_tracking" != xno \ 3767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3768 am__fastdepCC_TRUE= 3769 am__fastdepCC_FALSE='#' 3770else 3771 am__fastdepCC_TRUE='#' 3772 am__fastdepCC_FALSE= 3773fi 3774 3775 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3777$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3778if ${ac_cv_prog_cc_c99+:} false; then : 3779 $as_echo_n "(cached) " >&6 3780else 3781 ac_cv_prog_cc_c99=no 3782ac_save_CC=$CC 3783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3784/* end confdefs.h. */ 3785#include <stdarg.h> 3786#include <stdbool.h> 3787#include <stdlib.h> 3788#include <wchar.h> 3789#include <stdio.h> 3790 3791// Check varargs macros. These examples are taken from C99 6.10.3.5. 3792#define debug(...) fprintf (stderr, __VA_ARGS__) 3793#define showlist(...) puts (#__VA_ARGS__) 3794#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3795static void 3796test_varargs_macros (void) 3797{ 3798 int x = 1234; 3799 int y = 5678; 3800 debug ("Flag"); 3801 debug ("X = %d\n", x); 3802 showlist (The first, second, and third items.); 3803 report (x>y, "x is %d but y is %d", x, y); 3804} 3805 3806// Check long long types. 3807#define BIG64 18446744073709551615ull 3808#define BIG32 4294967295ul 3809#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3810#if !BIG_OK 3811 your preprocessor is broken; 3812#endif 3813#if BIG_OK 3814#else 3815 your preprocessor is broken; 3816#endif 3817static long long int bignum = -9223372036854775807LL; 3818static unsigned long long int ubignum = BIG64; 3819 3820struct incomplete_array 3821{ 3822 int datasize; 3823 double data[]; 3824}; 3825 3826struct named_init { 3827 int number; 3828 const wchar_t *name; 3829 double average; 3830}; 3831 3832typedef const char *ccp; 3833 3834static inline int 3835test_restrict (ccp restrict text) 3836{ 3837 // See if C++-style comments work. 3838 // Iterate through items via the restricted pointer. 3839 // Also check for declarations in for loops. 3840 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3841 continue; 3842 return 0; 3843} 3844 3845// Check varargs and va_copy. 3846static void 3847test_varargs (const char *format, ...) 3848{ 3849 va_list args; 3850 va_start (args, format); 3851 va_list args_copy; 3852 va_copy (args_copy, args); 3853 3854 const char *str; 3855 int number; 3856 float fnumber; 3857 3858 while (*format) 3859 { 3860 switch (*format++) 3861 { 3862 case 's': // string 3863 str = va_arg (args_copy, const char *); 3864 break; 3865 case 'd': // int 3866 number = va_arg (args_copy, int); 3867 break; 3868 case 'f': // float 3869 fnumber = va_arg (args_copy, double); 3870 break; 3871 default: 3872 break; 3873 } 3874 } 3875 va_end (args_copy); 3876 va_end (args); 3877} 3878 3879int 3880main () 3881{ 3882 3883 // Check bool. 3884 _Bool success = false; 3885 3886 // Check restrict. 3887 if (test_restrict ("String literal") == 0) 3888 success = true; 3889 char *restrict newvar = "Another string"; 3890 3891 // Check varargs. 3892 test_varargs ("s, d' f .", "string", 65, 34.234); 3893 test_varargs_macros (); 3894 3895 // Check flexible array members. 3896 struct incomplete_array *ia = 3897 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3898 ia->datasize = 10; 3899 for (int i = 0; i < ia->datasize; ++i) 3900 ia->data[i] = i * 1.234; 3901 3902 // Check named initializers. 3903 struct named_init ni = { 3904 .number = 34, 3905 .name = L"Test wide string", 3906 .average = 543.34343, 3907 }; 3908 3909 ni.number = 58; 3910 3911 int dynamic_array[ni.number]; 3912 dynamic_array[ni.number - 1] = 543; 3913 3914 // work around unused variable warnings 3915 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3916 || dynamic_array[ni.number - 1] != 543); 3917 3918 ; 3919 return 0; 3920} 3921_ACEOF 3922for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3923do 3924 CC="$ac_save_CC $ac_arg" 3925 if ac_fn_c_try_compile "$LINENO"; then : 3926 ac_cv_prog_cc_c99=$ac_arg 3927fi 3928rm -f core conftest.err conftest.$ac_objext 3929 test "x$ac_cv_prog_cc_c99" != "xno" && break 3930done 3931rm -f conftest.$ac_ext 3932CC=$ac_save_CC 3933 3934fi 3935# AC_CACHE_VAL 3936case "x$ac_cv_prog_cc_c99" in 3937 x) 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3939$as_echo "none needed" >&6; } ;; 3940 xno) 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3942$as_echo "unsupported" >&6; } ;; 3943 *) 3944 CC="$CC $ac_cv_prog_cc_c99" 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3946$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3947esac 3948if test "x$ac_cv_prog_cc_c99" != xno; then : 3949 3950fi 3951 3952 3953 3954ac_ext=c 3955ac_cpp='$CPP $CPPFLAGS' 3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3958ac_compiler_gnu=$ac_cv_c_compiler_gnu 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3960$as_echo_n "checking how to run the C preprocessor... " >&6; } 3961# On Suns, sometimes $CPP names a directory. 3962if test -n "$CPP" && test -d "$CPP"; then 3963 CPP= 3964fi 3965if test -z "$CPP"; then 3966 if ${ac_cv_prog_CPP+:} false; then : 3967 $as_echo_n "(cached) " >&6 3968else 3969 # Double quotes because CPP needs to be expanded 3970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3971 do 3972 ac_preproc_ok=false 3973for ac_c_preproc_warn_flag in '' yes 3974do 3975 # Use a header file that comes with gcc, so configuring glibc 3976 # with a fresh cross-compiler works. 3977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3978 # <limits.h> exists even on freestanding compilers. 3979 # On the NeXT, cc -E runs the code through the compiler's parser, 3980 # not just through cpp. "Syntax error" is here to catch this case. 3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982/* end confdefs.h. */ 3983#ifdef __STDC__ 3984# include <limits.h> 3985#else 3986# include <assert.h> 3987#endif 3988 Syntax error 3989_ACEOF 3990if ac_fn_c_try_cpp "$LINENO"; then : 3991 3992else 3993 # Broken: fails on valid input. 3994continue 3995fi 3996rm -f conftest.err conftest.i conftest.$ac_ext 3997 3998 # OK, works on sane cases. Now check whether nonexistent headers 3999 # can be detected and how. 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002#include <ac_nonexistent.h> 4003_ACEOF 4004if ac_fn_c_try_cpp "$LINENO"; then : 4005 # Broken: success on invalid input. 4006continue 4007else 4008 # Passes both tests. 4009ac_preproc_ok=: 4010break 4011fi 4012rm -f conftest.err conftest.i conftest.$ac_ext 4013 4014done 4015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4016rm -f conftest.i conftest.err conftest.$ac_ext 4017if $ac_preproc_ok; then : 4018 break 4019fi 4020 4021 done 4022 ac_cv_prog_CPP=$CPP 4023 4024fi 4025 CPP=$ac_cv_prog_CPP 4026else 4027 ac_cv_prog_CPP=$CPP 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4030$as_echo "$CPP" >&6; } 4031ac_preproc_ok=false 4032for ac_c_preproc_warn_flag in '' yes 4033do 4034 # Use a header file that comes with gcc, so configuring glibc 4035 # with a fresh cross-compiler works. 4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4037 # <limits.h> exists even on freestanding compilers. 4038 # On the NeXT, cc -E runs the code through the compiler's parser, 4039 # not just through cpp. "Syntax error" is here to catch this case. 4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4041/* end confdefs.h. */ 4042#ifdef __STDC__ 4043# include <limits.h> 4044#else 4045# include <assert.h> 4046#endif 4047 Syntax error 4048_ACEOF 4049if ac_fn_c_try_cpp "$LINENO"; then : 4050 4051else 4052 # Broken: fails on valid input. 4053continue 4054fi 4055rm -f conftest.err conftest.i conftest.$ac_ext 4056 4057 # OK, works on sane cases. Now check whether nonexistent headers 4058 # can be detected and how. 4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061#include <ac_nonexistent.h> 4062_ACEOF 4063if ac_fn_c_try_cpp "$LINENO"; then : 4064 # Broken: success on invalid input. 4065continue 4066else 4067 # Passes both tests. 4068ac_preproc_ok=: 4069break 4070fi 4071rm -f conftest.err conftest.i conftest.$ac_ext 4072 4073done 4074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4075rm -f conftest.i conftest.err conftest.$ac_ext 4076if $ac_preproc_ok; then : 4077 4078else 4079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4081as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4082See \`config.log' for more details" "$LINENO" 5; } 4083fi 4084 4085ac_ext=c 4086ac_cpp='$CPP $CPPFLAGS' 4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4089ac_compiler_gnu=$ac_cv_c_compiler_gnu 4090 4091 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4093$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4094if ${ac_cv_path_GREP+:} false; then : 4095 $as_echo_n "(cached) " >&6 4096else 4097 if test -z "$GREP"; then 4098 ac_path_GREP_found=false 4099 # Loop through the user's path and test for each of PROGNAME-LIST 4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4101for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4102do 4103 IFS=$as_save_IFS 4104 test -z "$as_dir" && as_dir=. 4105 for ac_prog in grep ggrep; do 4106 for ac_exec_ext in '' $ac_executable_extensions; do 4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4108 as_fn_executable_p "$ac_path_GREP" || continue 4109# Check for GNU ac_path_GREP and select it if it is found. 4110 # Check for GNU $ac_path_GREP 4111case `"$ac_path_GREP" --version 2>&1` in 4112*GNU*) 4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4114*) 4115 ac_count=0 4116 $as_echo_n 0123456789 >"conftest.in" 4117 while : 4118 do 4119 cat "conftest.in" "conftest.in" >"conftest.tmp" 4120 mv "conftest.tmp" "conftest.in" 4121 cp "conftest.in" "conftest.nl" 4122 $as_echo 'GREP' >> "conftest.nl" 4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4125 as_fn_arith $ac_count + 1 && ac_count=$as_val 4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4127 # Best one so far, save it but keep looking for a better one 4128 ac_cv_path_GREP="$ac_path_GREP" 4129 ac_path_GREP_max=$ac_count 4130 fi 4131 # 10*(2^10) chars as input seems more than enough 4132 test $ac_count -gt 10 && break 4133 done 4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4135esac 4136 4137 $ac_path_GREP_found && break 3 4138 done 4139 done 4140 done 4141IFS=$as_save_IFS 4142 if test -z "$ac_cv_path_GREP"; then 4143 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4144 fi 4145else 4146 ac_cv_path_GREP=$GREP 4147fi 4148 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4151$as_echo "$ac_cv_path_GREP" >&6; } 4152 GREP="$ac_cv_path_GREP" 4153 4154 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4156$as_echo_n "checking for egrep... " >&6; } 4157if ${ac_cv_path_EGREP+:} false; then : 4158 $as_echo_n "(cached) " >&6 4159else 4160 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4161 then ac_cv_path_EGREP="$GREP -E" 4162 else 4163 if test -z "$EGREP"; then 4164 ac_path_EGREP_found=false 4165 # Loop through the user's path and test for each of PROGNAME-LIST 4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_prog in egrep; do 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4174 as_fn_executable_p "$ac_path_EGREP" || continue 4175# Check for GNU ac_path_EGREP and select it if it is found. 4176 # Check for GNU $ac_path_EGREP 4177case `"$ac_path_EGREP" --version 2>&1` in 4178*GNU*) 4179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4180*) 4181 ac_count=0 4182 $as_echo_n 0123456789 >"conftest.in" 4183 while : 4184 do 4185 cat "conftest.in" "conftest.in" >"conftest.tmp" 4186 mv "conftest.tmp" "conftest.in" 4187 cp "conftest.in" "conftest.nl" 4188 $as_echo 'EGREP' >> "conftest.nl" 4189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4191 as_fn_arith $ac_count + 1 && ac_count=$as_val 4192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4193 # Best one so far, save it but keep looking for a better one 4194 ac_cv_path_EGREP="$ac_path_EGREP" 4195 ac_path_EGREP_max=$ac_count 4196 fi 4197 # 10*(2^10) chars as input seems more than enough 4198 test $ac_count -gt 10 && break 4199 done 4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4201esac 4202 4203 $ac_path_EGREP_found && break 3 4204 done 4205 done 4206 done 4207IFS=$as_save_IFS 4208 if test -z "$ac_cv_path_EGREP"; then 4209 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4210 fi 4211else 4212 ac_cv_path_EGREP=$EGREP 4213fi 4214 4215 fi 4216fi 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4218$as_echo "$ac_cv_path_EGREP" >&6; } 4219 EGREP="$ac_cv_path_EGREP" 4220 4221 4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4223$as_echo_n "checking for ANSI C header files... " >&6; } 4224if ${ac_cv_header_stdc+:} false; then : 4225 $as_echo_n "(cached) " >&6 4226else 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228/* end confdefs.h. */ 4229#include <stdlib.h> 4230#include <stdarg.h> 4231#include <string.h> 4232#include <float.h> 4233 4234int 4235main () 4236{ 4237 4238 ; 4239 return 0; 4240} 4241_ACEOF 4242if ac_fn_c_try_compile "$LINENO"; then : 4243 ac_cv_header_stdc=yes 4244else 4245 ac_cv_header_stdc=no 4246fi 4247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4248 4249if test $ac_cv_header_stdc = yes; then 4250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4252/* end confdefs.h. */ 4253#include <string.h> 4254 4255_ACEOF 4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4257 $EGREP "memchr" >/dev/null 2>&1; then : 4258 4259else 4260 ac_cv_header_stdc=no 4261fi 4262rm -f conftest* 4263 4264fi 4265 4266if test $ac_cv_header_stdc = yes; then 4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4269/* end confdefs.h. */ 4270#include <stdlib.h> 4271 4272_ACEOF 4273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4274 $EGREP "free" >/dev/null 2>&1; then : 4275 4276else 4277 ac_cv_header_stdc=no 4278fi 4279rm -f conftest* 4280 4281fi 4282 4283if test $ac_cv_header_stdc = yes; then 4284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4285 if test "$cross_compiling" = yes; then : 4286 : 4287else 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#include <ctype.h> 4291#include <stdlib.h> 4292#if ((' ' & 0x0FF) == 0x020) 4293# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4294# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4295#else 4296# define ISLOWER(c) \ 4297 (('a' <= (c) && (c) <= 'i') \ 4298 || ('j' <= (c) && (c) <= 'r') \ 4299 || ('s' <= (c) && (c) <= 'z')) 4300# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4301#endif 4302 4303#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4304int 4305main () 4306{ 4307 int i; 4308 for (i = 0; i < 256; i++) 4309 if (XOR (islower (i), ISLOWER (i)) 4310 || toupper (i) != TOUPPER (i)) 4311 return 2; 4312 return 0; 4313} 4314_ACEOF 4315if ac_fn_c_try_run "$LINENO"; then : 4316 4317else 4318 ac_cv_header_stdc=no 4319fi 4320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4321 conftest.$ac_objext conftest.beam conftest.$ac_ext 4322fi 4323 4324fi 4325fi 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4327$as_echo "$ac_cv_header_stdc" >&6; } 4328if test $ac_cv_header_stdc = yes; then 4329 4330$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4331 4332fi 4333 4334# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4336 inttypes.h stdint.h unistd.h 4337do : 4338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4339ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4340" 4341if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4342 cat >>confdefs.h <<_ACEOF 4343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4344_ACEOF 4345 4346fi 4347 4348done 4349 4350 4351 4352 4353 4354 4355ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4356if test "x$ac_cv_have_decl___clang__" = xyes; then : 4357 CLANGCC="yes" 4358else 4359 CLANGCC="no" 4360fi 4361 4362ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4363if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4364 INTELCC="yes" 4365else 4366 INTELCC="no" 4367fi 4368 4369ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4370if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4371 SUNCC="yes" 4372else 4373 SUNCC="no" 4374fi 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4385 if test -n "$ac_tool_prefix"; then 4386 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4387set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4389$as_echo_n "checking for $ac_word... " >&6; } 4390if ${ac_cv_path_PKG_CONFIG+:} false; then : 4391 $as_echo_n "(cached) " >&6 4392else 4393 case $PKG_CONFIG in 4394 [\\/]* | ?:[\\/]*) 4395 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4396 ;; 4397 *) 4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4399for as_dir in $PATH 4400do 4401 IFS=$as_save_IFS 4402 test -z "$as_dir" && as_dir=. 4403 for ac_exec_ext in '' $ac_executable_extensions; do 4404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4405 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4407 break 2 4408 fi 4409done 4410 done 4411IFS=$as_save_IFS 4412 4413 ;; 4414esac 4415fi 4416PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4417if test -n "$PKG_CONFIG"; then 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4419$as_echo "$PKG_CONFIG" >&6; } 4420else 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4422$as_echo "no" >&6; } 4423fi 4424 4425 4426fi 4427if test -z "$ac_cv_path_PKG_CONFIG"; then 4428 ac_pt_PKG_CONFIG=$PKG_CONFIG 4429 # Extract the first word of "pkg-config", so it can be a program name with args. 4430set dummy pkg-config; ac_word=$2 4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4432$as_echo_n "checking for $ac_word... " >&6; } 4433if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4434 $as_echo_n "(cached) " >&6 4435else 4436 case $ac_pt_PKG_CONFIG in 4437 [\\/]* | ?:[\\/]*) 4438 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4439 ;; 4440 *) 4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4442for as_dir in $PATH 4443do 4444 IFS=$as_save_IFS 4445 test -z "$as_dir" && as_dir=. 4446 for ac_exec_ext in '' $ac_executable_extensions; do 4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4448 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4450 break 2 4451 fi 4452done 4453 done 4454IFS=$as_save_IFS 4455 4456 ;; 4457esac 4458fi 4459ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4460if test -n "$ac_pt_PKG_CONFIG"; then 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4462$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4463else 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4465$as_echo "no" >&6; } 4466fi 4467 4468 if test "x$ac_pt_PKG_CONFIG" = x; then 4469 PKG_CONFIG="" 4470 else 4471 case $cross_compiling:$ac_tool_warned in 4472yes:) 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4475ac_tool_warned=yes ;; 4476esac 4477 PKG_CONFIG=$ac_pt_PKG_CONFIG 4478 fi 4479else 4480 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4481fi 4482 4483fi 4484if test -n "$PKG_CONFIG"; then 4485 _pkg_min_version=0.9.0 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4487$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4488 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4490$as_echo "yes" >&6; } 4491 else 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4493$as_echo "no" >&6; } 4494 PKG_CONFIG="" 4495 fi 4496fi 4497# Make sure we can run config.sub. 4498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4500 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4502$as_echo_n "checking build system type... " >&6; } 4503if ${ac_cv_build+:} false; then : 4504 $as_echo_n "(cached) " >&6 4505else 4506 ac_build_alias=$build_alias 4507test "x$ac_build_alias" = x && 4508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4509test "x$ac_build_alias" = x && 4510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4513 4514fi 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4516$as_echo "$ac_cv_build" >&6; } 4517case $ac_cv_build in 4518*-*-*) ;; 4519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4520esac 4521build=$ac_cv_build 4522ac_save_IFS=$IFS; IFS='-' 4523set x $ac_cv_build 4524shift 4525build_cpu=$1 4526build_vendor=$2 4527shift; shift 4528# Remember, the first character of IFS is used to create $*, 4529# except with old shells: 4530build_os=$* 4531IFS=$ac_save_IFS 4532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4533 4534 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4536$as_echo_n "checking host system type... " >&6; } 4537if ${ac_cv_host+:} false; then : 4538 $as_echo_n "(cached) " >&6 4539else 4540 if test "x$host_alias" = x; then 4541 ac_cv_host=$ac_cv_build 4542else 4543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4545fi 4546 4547fi 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4549$as_echo "$ac_cv_host" >&6; } 4550case $ac_cv_host in 4551*-*-*) ;; 4552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4553esac 4554host=$ac_cv_host 4555ac_save_IFS=$IFS; IFS='-' 4556set x $ac_cv_host 4557shift 4558host_cpu=$1 4559host_vendor=$2 4560shift; shift 4561# Remember, the first character of IFS is used to create $*, 4562# except with old shells: 4563host_os=$* 4564IFS=$ac_save_IFS 4565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4566 4567 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4569$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4570if ${ac_cv_path_SED+:} false; then : 4571 $as_echo_n "(cached) " >&6 4572else 4573 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4574 for ac_i in 1 2 3 4 5 6 7; do 4575 ac_script="$ac_script$as_nl$ac_script" 4576 done 4577 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4578 { ac_script=; unset ac_script;} 4579 if test -z "$SED"; then 4580 ac_path_SED_found=false 4581 # Loop through the user's path and test for each of PROGNAME-LIST 4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4583for as_dir in $PATH 4584do 4585 IFS=$as_save_IFS 4586 test -z "$as_dir" && as_dir=. 4587 for ac_prog in sed gsed; do 4588 for ac_exec_ext in '' $ac_executable_extensions; do 4589 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4590 as_fn_executable_p "$ac_path_SED" || continue 4591# Check for GNU ac_path_SED and select it if it is found. 4592 # Check for GNU $ac_path_SED 4593case `"$ac_path_SED" --version 2>&1` in 4594*GNU*) 4595 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4596*) 4597 ac_count=0 4598 $as_echo_n 0123456789 >"conftest.in" 4599 while : 4600 do 4601 cat "conftest.in" "conftest.in" >"conftest.tmp" 4602 mv "conftest.tmp" "conftest.in" 4603 cp "conftest.in" "conftest.nl" 4604 $as_echo '' >> "conftest.nl" 4605 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4607 as_fn_arith $ac_count + 1 && ac_count=$as_val 4608 if test $ac_count -gt ${ac_path_SED_max-0}; then 4609 # Best one so far, save it but keep looking for a better one 4610 ac_cv_path_SED="$ac_path_SED" 4611 ac_path_SED_max=$ac_count 4612 fi 4613 # 10*(2^10) chars as input seems more than enough 4614 test $ac_count -gt 10 && break 4615 done 4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4617esac 4618 4619 $ac_path_SED_found && break 3 4620 done 4621 done 4622 done 4623IFS=$as_save_IFS 4624 if test -z "$ac_cv_path_SED"; then 4625 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4626 fi 4627else 4628 ac_cv_path_SED=$SED 4629fi 4630 4631fi 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4633$as_echo "$ac_cv_path_SED" >&6; } 4634 SED="$ac_cv_path_SED" 4635 rm -f conftest.sed 4636 4637 4638 4639 4640 4641 4642# Check whether --enable-selective-werror was given. 4643if test "${enable_selective_werror+set}" = set; then : 4644 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4645else 4646 SELECTIVE_WERROR=yes 4647fi 4648 4649 4650 4651 4652 4653# -v is too short to test reliably with XORG_TESTSET_CFLAG 4654if test "x$SUNCC" = "xyes"; then 4655 BASE_CFLAGS="-v" 4656else 4657 BASE_CFLAGS="" 4658fi 4659 4660# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674xorg_testset_save_CFLAGS="$CFLAGS" 4675 4676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4681 $as_echo_n "(cached) " >&6 4682else 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684/* end confdefs.h. */ 4685int i; 4686_ACEOF 4687if ac_fn_c_try_compile "$LINENO"; then : 4688 xorg_cv_cc_flag_unknown_warning_option=yes 4689else 4690 xorg_cv_cc_flag_unknown_warning_option=no 4691fi 4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4693fi 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4697 CFLAGS="$xorg_testset_save_CFLAGS" 4698fi 4699 4700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4703 fi 4704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4711/* end confdefs.h. */ 4712int i; 4713_ACEOF 4714if ac_fn_c_try_compile "$LINENO"; then : 4715 xorg_cv_cc_flag_unused_command_line_argument=yes 4716else 4717 xorg_cv_cc_flag_unused_command_line_argument=no 4718fi 4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4720fi 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4724 CFLAGS="$xorg_testset_save_CFLAGS" 4725fi 4726 4727found="no" 4728 4729 if test $found = "no" ; then 4730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4732 fi 4733 4734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4736 fi 4737 4738 CFLAGS="$CFLAGS -Wall" 4739 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4741$as_echo_n "checking if $CC supports -Wall... " >&6; } 4742 cacheid=xorg_cv_cc_flag__Wall 4743 if eval \${$cacheid+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745else 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748int i; 4749int 4750main () 4751{ 4752 4753 ; 4754 return 0; 4755} 4756_ACEOF 4757if ac_fn_c_try_link "$LINENO"; then : 4758 eval $cacheid=yes 4759else 4760 eval $cacheid=no 4761fi 4762rm -f core conftest.err conftest.$ac_objext \ 4763 conftest$ac_exeext conftest.$ac_ext 4764fi 4765 4766 4767 CFLAGS="$xorg_testset_save_CFLAGS" 4768 4769 eval supported=\$$cacheid 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4771$as_echo "$supported" >&6; } 4772 if test "$supported" = "yes" ; then 4773 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4774 found="yes" 4775 fi 4776 fi 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792xorg_testset_save_CFLAGS="$CFLAGS" 4793 4794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4799 $as_echo_n "(cached) " >&6 4800else 4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4802/* end confdefs.h. */ 4803int i; 4804_ACEOF 4805if ac_fn_c_try_compile "$LINENO"; then : 4806 xorg_cv_cc_flag_unknown_warning_option=yes 4807else 4808 xorg_cv_cc_flag_unknown_warning_option=no 4809fi 4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4811fi 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4815 CFLAGS="$xorg_testset_save_CFLAGS" 4816fi 4817 4818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4821 fi 4822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4829/* end confdefs.h. */ 4830int i; 4831_ACEOF 4832if ac_fn_c_try_compile "$LINENO"; then : 4833 xorg_cv_cc_flag_unused_command_line_argument=yes 4834else 4835 xorg_cv_cc_flag_unused_command_line_argument=no 4836fi 4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4838fi 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4842 CFLAGS="$xorg_testset_save_CFLAGS" 4843fi 4844 4845found="no" 4846 4847 if test $found = "no" ; then 4848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4850 fi 4851 4852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4854 fi 4855 4856 CFLAGS="$CFLAGS -Wpointer-arith" 4857 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4859$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4860 cacheid=xorg_cv_cc_flag__Wpointer_arith 4861 if eval \${$cacheid+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4865/* end confdefs.h. */ 4866int i; 4867int 4868main () 4869{ 4870 4871 ; 4872 return 0; 4873} 4874_ACEOF 4875if ac_fn_c_try_link "$LINENO"; then : 4876 eval $cacheid=yes 4877else 4878 eval $cacheid=no 4879fi 4880rm -f core conftest.err conftest.$ac_objext \ 4881 conftest$ac_exeext conftest.$ac_ext 4882fi 4883 4884 4885 CFLAGS="$xorg_testset_save_CFLAGS" 4886 4887 eval supported=\$$cacheid 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4889$as_echo "$supported" >&6; } 4890 if test "$supported" = "yes" ; then 4891 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4892 found="yes" 4893 fi 4894 fi 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910xorg_testset_save_CFLAGS="$CFLAGS" 4911 4912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4917 $as_echo_n "(cached) " >&6 4918else 4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4920/* end confdefs.h. */ 4921int i; 4922_ACEOF 4923if ac_fn_c_try_compile "$LINENO"; then : 4924 xorg_cv_cc_flag_unknown_warning_option=yes 4925else 4926 xorg_cv_cc_flag_unknown_warning_option=no 4927fi 4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4929fi 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4933 CFLAGS="$xorg_testset_save_CFLAGS" 4934fi 4935 4936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4939 fi 4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948int i; 4949_ACEOF 4950if ac_fn_c_try_compile "$LINENO"; then : 4951 xorg_cv_cc_flag_unused_command_line_argument=yes 4952else 4953 xorg_cv_cc_flag_unused_command_line_argument=no 4954fi 4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4956fi 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4960 CFLAGS="$xorg_testset_save_CFLAGS" 4961fi 4962 4963found="no" 4964 4965 if test $found = "no" ; then 4966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4968 fi 4969 4970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4972 fi 4973 4974 CFLAGS="$CFLAGS -Wmissing-declarations" 4975 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4977$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4978 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4979 if eval \${$cacheid+:} false; then : 4980 $as_echo_n "(cached) " >&6 4981else 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984int i; 4985int 4986main () 4987{ 4988 4989 ; 4990 return 0; 4991} 4992_ACEOF 4993if ac_fn_c_try_link "$LINENO"; then : 4994 eval $cacheid=yes 4995else 4996 eval $cacheid=no 4997fi 4998rm -f core conftest.err conftest.$ac_objext \ 4999 conftest$ac_exeext conftest.$ac_ext 5000fi 5001 5002 5003 CFLAGS="$xorg_testset_save_CFLAGS" 5004 5005 eval supported=\$$cacheid 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5007$as_echo "$supported" >&6; } 5008 if test "$supported" = "yes" ; then 5009 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5010 found="yes" 5011 fi 5012 fi 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028xorg_testset_save_CFLAGS="$CFLAGS" 5029 5030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5038/* end confdefs.h. */ 5039int i; 5040_ACEOF 5041if ac_fn_c_try_compile "$LINENO"; then : 5042 xorg_cv_cc_flag_unknown_warning_option=yes 5043else 5044 xorg_cv_cc_flag_unknown_warning_option=no 5045fi 5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5047fi 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5051 CFLAGS="$xorg_testset_save_CFLAGS" 5052fi 5053 5054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5057 fi 5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5062 $as_echo_n "(cached) " >&6 5063else 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066int i; 5067_ACEOF 5068if ac_fn_c_try_compile "$LINENO"; then : 5069 xorg_cv_cc_flag_unused_command_line_argument=yes 5070else 5071 xorg_cv_cc_flag_unused_command_line_argument=no 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5078 CFLAGS="$xorg_testset_save_CFLAGS" 5079fi 5080 5081found="no" 5082 5083 if test $found = "no" ; then 5084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5086 fi 5087 5088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5090 fi 5091 5092 CFLAGS="$CFLAGS -Wformat=2" 5093 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5095$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5096 cacheid=xorg_cv_cc_flag__Wformat_2 5097 if eval \${$cacheid+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102int i; 5103int 5104main () 5105{ 5106 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111if ac_fn_c_try_link "$LINENO"; then : 5112 eval $cacheid=yes 5113else 5114 eval $cacheid=no 5115fi 5116rm -f core conftest.err conftest.$ac_objext \ 5117 conftest$ac_exeext conftest.$ac_ext 5118fi 5119 5120 5121 CFLAGS="$xorg_testset_save_CFLAGS" 5122 5123 eval supported=\$$cacheid 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5125$as_echo "$supported" >&6; } 5126 if test "$supported" = "yes" ; then 5127 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5128 found="yes" 5129 fi 5130 fi 5131 5132 if test $found = "no" ; then 5133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5135 fi 5136 5137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5139 fi 5140 5141 CFLAGS="$CFLAGS -Wformat" 5142 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5144$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5145 cacheid=xorg_cv_cc_flag__Wformat 5146 if eval \${$cacheid+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148else 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150/* end confdefs.h. */ 5151int i; 5152int 5153main () 5154{ 5155 5156 ; 5157 return 0; 5158} 5159_ACEOF 5160if ac_fn_c_try_link "$LINENO"; then : 5161 eval $cacheid=yes 5162else 5163 eval $cacheid=no 5164fi 5165rm -f core conftest.err conftest.$ac_objext \ 5166 conftest$ac_exeext conftest.$ac_ext 5167fi 5168 5169 5170 CFLAGS="$xorg_testset_save_CFLAGS" 5171 5172 eval supported=\$$cacheid 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5174$as_echo "$supported" >&6; } 5175 if test "$supported" = "yes" ; then 5176 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5177 found="yes" 5178 fi 5179 fi 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197xorg_testset_save_CFLAGS="$CFLAGS" 5198 5199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5204 $as_echo_n "(cached) " >&6 5205else 5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5207/* end confdefs.h. */ 5208int i; 5209_ACEOF 5210if ac_fn_c_try_compile "$LINENO"; then : 5211 xorg_cv_cc_flag_unknown_warning_option=yes 5212else 5213 xorg_cv_cc_flag_unknown_warning_option=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5216fi 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5220 CFLAGS="$xorg_testset_save_CFLAGS" 5221fi 5222 5223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5226 fi 5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235int i; 5236_ACEOF 5237if ac_fn_c_try_compile "$LINENO"; then : 5238 xorg_cv_cc_flag_unused_command_line_argument=yes 5239else 5240 xorg_cv_cc_flag_unused_command_line_argument=no 5241fi 5242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5243fi 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5247 CFLAGS="$xorg_testset_save_CFLAGS" 5248fi 5249 5250found="no" 5251 5252 if test $found = "no" ; then 5253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5255 fi 5256 5257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5259 fi 5260 5261 CFLAGS="$CFLAGS -Wstrict-prototypes" 5262 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5264$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5265 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5266 if eval \${$cacheid+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5270/* end confdefs.h. */ 5271int i; 5272int 5273main () 5274{ 5275 5276 ; 5277 return 0; 5278} 5279_ACEOF 5280if ac_fn_c_try_link "$LINENO"; then : 5281 eval $cacheid=yes 5282else 5283 eval $cacheid=no 5284fi 5285rm -f core conftest.err conftest.$ac_objext \ 5286 conftest$ac_exeext conftest.$ac_ext 5287fi 5288 5289 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291 5292 eval supported=\$$cacheid 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5294$as_echo "$supported" >&6; } 5295 if test "$supported" = "yes" ; then 5296 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5297 found="yes" 5298 fi 5299 fi 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315xorg_testset_save_CFLAGS="$CFLAGS" 5316 5317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325/* end confdefs.h. */ 5326int i; 5327_ACEOF 5328if ac_fn_c_try_compile "$LINENO"; then : 5329 xorg_cv_cc_flag_unknown_warning_option=yes 5330else 5331 xorg_cv_cc_flag_unknown_warning_option=no 5332fi 5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5334fi 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5338 CFLAGS="$xorg_testset_save_CFLAGS" 5339fi 5340 5341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5344 fi 5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5352/* end confdefs.h. */ 5353int i; 5354_ACEOF 5355if ac_fn_c_try_compile "$LINENO"; then : 5356 xorg_cv_cc_flag_unused_command_line_argument=yes 5357else 5358 xorg_cv_cc_flag_unused_command_line_argument=no 5359fi 5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5361fi 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5365 CFLAGS="$xorg_testset_save_CFLAGS" 5366fi 5367 5368found="no" 5369 5370 if test $found = "no" ; then 5371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5373 fi 5374 5375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5377 fi 5378 5379 CFLAGS="$CFLAGS -Wmissing-prototypes" 5380 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5382$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5383 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5384 if eval \${$cacheid+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389int i; 5390int 5391main () 5392{ 5393 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398if ac_fn_c_try_link "$LINENO"; then : 5399 eval $cacheid=yes 5400else 5401 eval $cacheid=no 5402fi 5403rm -f core conftest.err conftest.$ac_objext \ 5404 conftest$ac_exeext conftest.$ac_ext 5405fi 5406 5407 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409 5410 eval supported=\$$cacheid 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5412$as_echo "$supported" >&6; } 5413 if test "$supported" = "yes" ; then 5414 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5415 found="yes" 5416 fi 5417 fi 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433xorg_testset_save_CFLAGS="$CFLAGS" 5434 5435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5440 $as_echo_n "(cached) " >&6 5441else 5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5443/* end confdefs.h. */ 5444int i; 5445_ACEOF 5446if ac_fn_c_try_compile "$LINENO"; then : 5447 xorg_cv_cc_flag_unknown_warning_option=yes 5448else 5449 xorg_cv_cc_flag_unknown_warning_option=no 5450fi 5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5452fi 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5456 CFLAGS="$xorg_testset_save_CFLAGS" 5457fi 5458 5459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5462 fi 5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5467 $as_echo_n "(cached) " >&6 5468else 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471int i; 5472_ACEOF 5473if ac_fn_c_try_compile "$LINENO"; then : 5474 xorg_cv_cc_flag_unused_command_line_argument=yes 5475else 5476 xorg_cv_cc_flag_unused_command_line_argument=no 5477fi 5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5483 CFLAGS="$xorg_testset_save_CFLAGS" 5484fi 5485 5486found="no" 5487 5488 if test $found = "no" ; then 5489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5491 fi 5492 5493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5495 fi 5496 5497 CFLAGS="$CFLAGS -Wnested-externs" 5498 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5500$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5501 cacheid=xorg_cv_cc_flag__Wnested_externs 5502 if eval \${$cacheid+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507int i; 5508int 5509main () 5510{ 5511 5512 ; 5513 return 0; 5514} 5515_ACEOF 5516if ac_fn_c_try_link "$LINENO"; then : 5517 eval $cacheid=yes 5518else 5519 eval $cacheid=no 5520fi 5521rm -f core conftest.err conftest.$ac_objext \ 5522 conftest$ac_exeext conftest.$ac_ext 5523fi 5524 5525 5526 CFLAGS="$xorg_testset_save_CFLAGS" 5527 5528 eval supported=\$$cacheid 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5530$as_echo "$supported" >&6; } 5531 if test "$supported" = "yes" ; then 5532 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5533 found="yes" 5534 fi 5535 fi 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551xorg_testset_save_CFLAGS="$CFLAGS" 5552 5553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5561/* end confdefs.h. */ 5562int i; 5563_ACEOF 5564if ac_fn_c_try_compile "$LINENO"; then : 5565 xorg_cv_cc_flag_unknown_warning_option=yes 5566else 5567 xorg_cv_cc_flag_unknown_warning_option=no 5568fi 5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5570fi 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5574 CFLAGS="$xorg_testset_save_CFLAGS" 5575fi 5576 5577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5580 fi 5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588/* end confdefs.h. */ 5589int i; 5590_ACEOF 5591if ac_fn_c_try_compile "$LINENO"; then : 5592 xorg_cv_cc_flag_unused_command_line_argument=yes 5593else 5594 xorg_cv_cc_flag_unused_command_line_argument=no 5595fi 5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602fi 5603 5604found="no" 5605 5606 if test $found = "no" ; then 5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5609 fi 5610 5611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5613 fi 5614 5615 CFLAGS="$CFLAGS -Wbad-function-cast" 5616 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5618$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5619 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5620 if eval \${$cacheid+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625int i; 5626int 5627main () 5628{ 5629 5630 ; 5631 return 0; 5632} 5633_ACEOF 5634if ac_fn_c_try_link "$LINENO"; then : 5635 eval $cacheid=yes 5636else 5637 eval $cacheid=no 5638fi 5639rm -f core conftest.err conftest.$ac_objext \ 5640 conftest$ac_exeext conftest.$ac_ext 5641fi 5642 5643 5644 CFLAGS="$xorg_testset_save_CFLAGS" 5645 5646 eval supported=\$$cacheid 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5648$as_echo "$supported" >&6; } 5649 if test "$supported" = "yes" ; then 5650 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5651 found="yes" 5652 fi 5653 fi 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669xorg_testset_save_CFLAGS="$CFLAGS" 5670 5671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5676 $as_echo_n "(cached) " >&6 5677else 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5679/* end confdefs.h. */ 5680int i; 5681_ACEOF 5682if ac_fn_c_try_compile "$LINENO"; then : 5683 xorg_cv_cc_flag_unknown_warning_option=yes 5684else 5685 xorg_cv_cc_flag_unknown_warning_option=no 5686fi 5687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5688fi 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5692 CFLAGS="$xorg_testset_save_CFLAGS" 5693fi 5694 5695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5698 fi 5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5703 $as_echo_n "(cached) " >&6 5704else 5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707int i; 5708_ACEOF 5709if ac_fn_c_try_compile "$LINENO"; then : 5710 xorg_cv_cc_flag_unused_command_line_argument=yes 5711else 5712 xorg_cv_cc_flag_unused_command_line_argument=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715fi 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5719 CFLAGS="$xorg_testset_save_CFLAGS" 5720fi 5721 5722found="no" 5723 5724 if test $found = "no" ; then 5725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5727 fi 5728 5729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5731 fi 5732 5733 CFLAGS="$CFLAGS -Wold-style-definition" 5734 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5736$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5737 cacheid=xorg_cv_cc_flag__Wold_style_definition 5738 if eval \${$cacheid+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5742/* end confdefs.h. */ 5743int i; 5744int 5745main () 5746{ 5747 5748 ; 5749 return 0; 5750} 5751_ACEOF 5752if ac_fn_c_try_link "$LINENO"; then : 5753 eval $cacheid=yes 5754else 5755 eval $cacheid=no 5756fi 5757rm -f core conftest.err conftest.$ac_objext \ 5758 conftest$ac_exeext conftest.$ac_ext 5759fi 5760 5761 5762 CFLAGS="$xorg_testset_save_CFLAGS" 5763 5764 eval supported=\$$cacheid 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5766$as_echo "$supported" >&6; } 5767 if test "$supported" = "yes" ; then 5768 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5769 found="yes" 5770 fi 5771 fi 5772 5773 if test $found = "no" ; then 5774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5776 fi 5777 5778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5780 fi 5781 5782 CFLAGS="$CFLAGS -fd" 5783 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5785$as_echo_n "checking if $CC supports -fd... " >&6; } 5786 cacheid=xorg_cv_cc_flag__fd 5787 if eval \${$cacheid+:} false; then : 5788 $as_echo_n "(cached) " >&6 5789else 5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5791/* end confdefs.h. */ 5792int i; 5793int 5794main () 5795{ 5796 5797 ; 5798 return 0; 5799} 5800_ACEOF 5801if ac_fn_c_try_link "$LINENO"; then : 5802 eval $cacheid=yes 5803else 5804 eval $cacheid=no 5805fi 5806rm -f core conftest.err conftest.$ac_objext \ 5807 conftest$ac_exeext conftest.$ac_ext 5808fi 5809 5810 5811 CFLAGS="$xorg_testset_save_CFLAGS" 5812 5813 eval supported=\$$cacheid 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5815$as_echo "$supported" >&6; } 5816 if test "$supported" = "yes" ; then 5817 BASE_CFLAGS="$BASE_CFLAGS -fd" 5818 found="yes" 5819 fi 5820 fi 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836xorg_testset_save_CFLAGS="$CFLAGS" 5837 5838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844else 5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847int i; 5848_ACEOF 5849if ac_fn_c_try_compile "$LINENO"; then : 5850 xorg_cv_cc_flag_unknown_warning_option=yes 5851else 5852 xorg_cv_cc_flag_unknown_warning_option=no 5853fi 5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5855fi 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860fi 5861 5862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5865 fi 5866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5873/* end confdefs.h. */ 5874int i; 5875_ACEOF 5876if ac_fn_c_try_compile "$LINENO"; then : 5877 xorg_cv_cc_flag_unused_command_line_argument=yes 5878else 5879 xorg_cv_cc_flag_unused_command_line_argument=no 5880fi 5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5882fi 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5886 CFLAGS="$xorg_testset_save_CFLAGS" 5887fi 5888 5889found="no" 5890 5891 if test $found = "no" ; then 5892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5894 fi 5895 5896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5898 fi 5899 5900 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5901 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5903$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5904 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5905 if eval \${$cacheid+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909/* end confdefs.h. */ 5910int i; 5911int 5912main () 5913{ 5914 5915 ; 5916 return 0; 5917} 5918_ACEOF 5919if ac_fn_c_try_link "$LINENO"; then : 5920 eval $cacheid=yes 5921else 5922 eval $cacheid=no 5923fi 5924rm -f core conftest.err conftest.$ac_objext \ 5925 conftest$ac_exeext conftest.$ac_ext 5926fi 5927 5928 5929 CFLAGS="$xorg_testset_save_CFLAGS" 5930 5931 eval supported=\$$cacheid 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5933$as_echo "$supported" >&6; } 5934 if test "$supported" = "yes" ; then 5935 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5936 found="yes" 5937 fi 5938 fi 5939 5940 5941 5942 5943 5944# This chunk adds additional warnings that could catch undesired effects. 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958xorg_testset_save_CFLAGS="$CFLAGS" 5959 5960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968/* end confdefs.h. */ 5969int i; 5970_ACEOF 5971if ac_fn_c_try_compile "$LINENO"; then : 5972 xorg_cv_cc_flag_unknown_warning_option=yes 5973else 5974 xorg_cv_cc_flag_unknown_warning_option=no 5975fi 5976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5977fi 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5981 CFLAGS="$xorg_testset_save_CFLAGS" 5982fi 5983 5984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5987 fi 5988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5995/* end confdefs.h. */ 5996int i; 5997_ACEOF 5998if ac_fn_c_try_compile "$LINENO"; then : 5999 xorg_cv_cc_flag_unused_command_line_argument=yes 6000else 6001 xorg_cv_cc_flag_unused_command_line_argument=no 6002fi 6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6004fi 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6008 CFLAGS="$xorg_testset_save_CFLAGS" 6009fi 6010 6011found="no" 6012 6013 if test $found = "no" ; then 6014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6016 fi 6017 6018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6020 fi 6021 6022 CFLAGS="$CFLAGS -Wunused" 6023 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6025$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6026 cacheid=xorg_cv_cc_flag__Wunused 6027 if eval \${$cacheid+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6031/* end confdefs.h. */ 6032int i; 6033int 6034main () 6035{ 6036 6037 ; 6038 return 0; 6039} 6040_ACEOF 6041if ac_fn_c_try_link "$LINENO"; then : 6042 eval $cacheid=yes 6043else 6044 eval $cacheid=no 6045fi 6046rm -f core conftest.err conftest.$ac_objext \ 6047 conftest$ac_exeext conftest.$ac_ext 6048fi 6049 6050 6051 CFLAGS="$xorg_testset_save_CFLAGS" 6052 6053 eval supported=\$$cacheid 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6055$as_echo "$supported" >&6; } 6056 if test "$supported" = "yes" ; then 6057 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6058 found="yes" 6059 fi 6060 fi 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076xorg_testset_save_CFLAGS="$CFLAGS" 6077 6078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6086/* end confdefs.h. */ 6087int i; 6088_ACEOF 6089if ac_fn_c_try_compile "$LINENO"; then : 6090 xorg_cv_cc_flag_unknown_warning_option=yes 6091else 6092 xorg_cv_cc_flag_unknown_warning_option=no 6093fi 6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6095fi 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6099 CFLAGS="$xorg_testset_save_CFLAGS" 6100fi 6101 6102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 fi 6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6110 $as_echo_n "(cached) " >&6 6111else 6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6113/* end confdefs.h. */ 6114int i; 6115_ACEOF 6116if ac_fn_c_try_compile "$LINENO"; then : 6117 xorg_cv_cc_flag_unused_command_line_argument=yes 6118else 6119 xorg_cv_cc_flag_unused_command_line_argument=no 6120fi 6121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6122fi 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6126 CFLAGS="$xorg_testset_save_CFLAGS" 6127fi 6128 6129found="no" 6130 6131 if test $found = "no" ; then 6132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6134 fi 6135 6136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6138 fi 6139 6140 CFLAGS="$CFLAGS -Wuninitialized" 6141 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6143$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6144 cacheid=xorg_cv_cc_flag__Wuninitialized 6145 if eval \${$cacheid+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6149/* end confdefs.h. */ 6150int i; 6151int 6152main () 6153{ 6154 6155 ; 6156 return 0; 6157} 6158_ACEOF 6159if ac_fn_c_try_link "$LINENO"; then : 6160 eval $cacheid=yes 6161else 6162 eval $cacheid=no 6163fi 6164rm -f core conftest.err conftest.$ac_objext \ 6165 conftest$ac_exeext conftest.$ac_ext 6166fi 6167 6168 6169 CFLAGS="$xorg_testset_save_CFLAGS" 6170 6171 eval supported=\$$cacheid 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6173$as_echo "$supported" >&6; } 6174 if test "$supported" = "yes" ; then 6175 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6176 found="yes" 6177 fi 6178 fi 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194xorg_testset_save_CFLAGS="$CFLAGS" 6195 6196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6201 $as_echo_n "(cached) " >&6 6202else 6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6204/* end confdefs.h. */ 6205int i; 6206_ACEOF 6207if ac_fn_c_try_compile "$LINENO"; then : 6208 xorg_cv_cc_flag_unknown_warning_option=yes 6209else 6210 xorg_cv_cc_flag_unknown_warning_option=no 6211fi 6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6213fi 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6217 CFLAGS="$xorg_testset_save_CFLAGS" 6218fi 6219 6220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6223 fi 6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6228 $as_echo_n "(cached) " >&6 6229else 6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6231/* end confdefs.h. */ 6232int i; 6233_ACEOF 6234if ac_fn_c_try_compile "$LINENO"; then : 6235 xorg_cv_cc_flag_unused_command_line_argument=yes 6236else 6237 xorg_cv_cc_flag_unused_command_line_argument=no 6238fi 6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6240fi 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6244 CFLAGS="$xorg_testset_save_CFLAGS" 6245fi 6246 6247found="no" 6248 6249 if test $found = "no" ; then 6250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6252 fi 6253 6254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6256 fi 6257 6258 CFLAGS="$CFLAGS -Wshadow" 6259 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6261$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6262 cacheid=xorg_cv_cc_flag__Wshadow 6263 if eval \${$cacheid+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267/* end confdefs.h. */ 6268int i; 6269int 6270main () 6271{ 6272 6273 ; 6274 return 0; 6275} 6276_ACEOF 6277if ac_fn_c_try_link "$LINENO"; then : 6278 eval $cacheid=yes 6279else 6280 eval $cacheid=no 6281fi 6282rm -f core conftest.err conftest.$ac_objext \ 6283 conftest$ac_exeext conftest.$ac_ext 6284fi 6285 6286 6287 CFLAGS="$xorg_testset_save_CFLAGS" 6288 6289 eval supported=\$$cacheid 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6291$as_echo "$supported" >&6; } 6292 if test "$supported" = "yes" ; then 6293 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6294 found="yes" 6295 fi 6296 fi 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312xorg_testset_save_CFLAGS="$CFLAGS" 6313 6314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322/* end confdefs.h. */ 6323int i; 6324_ACEOF 6325if ac_fn_c_try_compile "$LINENO"; then : 6326 xorg_cv_cc_flag_unknown_warning_option=yes 6327else 6328 xorg_cv_cc_flag_unknown_warning_option=no 6329fi 6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6331fi 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6335 CFLAGS="$xorg_testset_save_CFLAGS" 6336fi 6337 6338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6341 fi 6342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6349/* end confdefs.h. */ 6350int i; 6351_ACEOF 6352if ac_fn_c_try_compile "$LINENO"; then : 6353 xorg_cv_cc_flag_unused_command_line_argument=yes 6354else 6355 xorg_cv_cc_flag_unused_command_line_argument=no 6356fi 6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6358fi 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6362 CFLAGS="$xorg_testset_save_CFLAGS" 6363fi 6364 6365found="no" 6366 6367 if test $found = "no" ; then 6368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6370 fi 6371 6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6374 fi 6375 6376 CFLAGS="$CFLAGS -Wmissing-noreturn" 6377 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6379$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6380 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6381 if eval \${$cacheid+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6385/* end confdefs.h. */ 6386int i; 6387int 6388main () 6389{ 6390 6391 ; 6392 return 0; 6393} 6394_ACEOF 6395if ac_fn_c_try_link "$LINENO"; then : 6396 eval $cacheid=yes 6397else 6398 eval $cacheid=no 6399fi 6400rm -f core conftest.err conftest.$ac_objext \ 6401 conftest$ac_exeext conftest.$ac_ext 6402fi 6403 6404 6405 CFLAGS="$xorg_testset_save_CFLAGS" 6406 6407 eval supported=\$$cacheid 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6409$as_echo "$supported" >&6; } 6410 if test "$supported" = "yes" ; then 6411 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6412 found="yes" 6413 fi 6414 fi 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430xorg_testset_save_CFLAGS="$CFLAGS" 6431 6432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6440/* end confdefs.h. */ 6441int i; 6442_ACEOF 6443if ac_fn_c_try_compile "$LINENO"; then : 6444 xorg_cv_cc_flag_unknown_warning_option=yes 6445else 6446 xorg_cv_cc_flag_unknown_warning_option=no 6447fi 6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6449fi 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6453 CFLAGS="$xorg_testset_save_CFLAGS" 6454fi 6455 6456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6459 fi 6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6467/* end confdefs.h. */ 6468int i; 6469_ACEOF 6470if ac_fn_c_try_compile "$LINENO"; then : 6471 xorg_cv_cc_flag_unused_command_line_argument=yes 6472else 6473 xorg_cv_cc_flag_unused_command_line_argument=no 6474fi 6475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6476fi 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6480 CFLAGS="$xorg_testset_save_CFLAGS" 6481fi 6482 6483found="no" 6484 6485 if test $found = "no" ; then 6486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6488 fi 6489 6490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6492 fi 6493 6494 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6495 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6497$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6498 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6499 if eval \${$cacheid+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504int i; 6505int 6506main () 6507{ 6508 6509 ; 6510 return 0; 6511} 6512_ACEOF 6513if ac_fn_c_try_link "$LINENO"; then : 6514 eval $cacheid=yes 6515else 6516 eval $cacheid=no 6517fi 6518rm -f core conftest.err conftest.$ac_objext \ 6519 conftest$ac_exeext conftest.$ac_ext 6520fi 6521 6522 6523 CFLAGS="$xorg_testset_save_CFLAGS" 6524 6525 eval supported=\$$cacheid 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6527$as_echo "$supported" >&6; } 6528 if test "$supported" = "yes" ; then 6529 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6530 found="yes" 6531 fi 6532 fi 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548xorg_testset_save_CFLAGS="$CFLAGS" 6549 6550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6555 $as_echo_n "(cached) " >&6 6556else 6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6558/* end confdefs.h. */ 6559int i; 6560_ACEOF 6561if ac_fn_c_try_compile "$LINENO"; then : 6562 xorg_cv_cc_flag_unknown_warning_option=yes 6563else 6564 xorg_cv_cc_flag_unknown_warning_option=no 6565fi 6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6567fi 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6571 CFLAGS="$xorg_testset_save_CFLAGS" 6572fi 6573 6574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6577 fi 6578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6585/* end confdefs.h. */ 6586int i; 6587_ACEOF 6588if ac_fn_c_try_compile "$LINENO"; then : 6589 xorg_cv_cc_flag_unused_command_line_argument=yes 6590else 6591 xorg_cv_cc_flag_unused_command_line_argument=no 6592fi 6593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6594fi 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599fi 6600 6601found="no" 6602 6603 if test $found = "no" ; then 6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6606 fi 6607 6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6610 fi 6611 6612 CFLAGS="$CFLAGS -Wredundant-decls" 6613 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6615$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6616 cacheid=xorg_cv_cc_flag__Wredundant_decls 6617 if eval \${$cacheid+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622int i; 6623int 6624main () 6625{ 6626 6627 ; 6628 return 0; 6629} 6630_ACEOF 6631if ac_fn_c_try_link "$LINENO"; then : 6632 eval $cacheid=yes 6633else 6634 eval $cacheid=no 6635fi 6636rm -f core conftest.err conftest.$ac_objext \ 6637 conftest$ac_exeext conftest.$ac_ext 6638fi 6639 6640 6641 CFLAGS="$xorg_testset_save_CFLAGS" 6642 6643 eval supported=\$$cacheid 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6645$as_echo "$supported" >&6; } 6646 if test "$supported" = "yes" ; then 6647 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6648 found="yes" 6649 fi 6650 fi 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666xorg_testset_save_CFLAGS="$CFLAGS" 6667 6668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677int i; 6678_ACEOF 6679if ac_fn_c_try_compile "$LINENO"; then : 6680 xorg_cv_cc_flag_unknown_warning_option=yes 6681else 6682 xorg_cv_cc_flag_unknown_warning_option=no 6683fi 6684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6685fi 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6689 CFLAGS="$xorg_testset_save_CFLAGS" 6690fi 6691 6692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 fi 6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704int i; 6705_ACEOF 6706if ac_fn_c_try_compile "$LINENO"; then : 6707 xorg_cv_cc_flag_unused_command_line_argument=yes 6708else 6709 xorg_cv_cc_flag_unused_command_line_argument=no 6710fi 6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6712fi 6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717fi 6718 6719found="no" 6720 6721 if test $found = "no" ; then 6722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6724 fi 6725 6726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6728 fi 6729 6730 CFLAGS="$CFLAGS -Wlogical-op" 6731 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6733$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6734 cacheid=xorg_cv_cc_flag__Wlogical_op 6735 if eval \${$cacheid+:} false; then : 6736 $as_echo_n "(cached) " >&6 6737else 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740int i; 6741int 6742main () 6743{ 6744 6745 ; 6746 return 0; 6747} 6748_ACEOF 6749if ac_fn_c_try_link "$LINENO"; then : 6750 eval $cacheid=yes 6751else 6752 eval $cacheid=no 6753fi 6754rm -f core conftest.err conftest.$ac_objext \ 6755 conftest$ac_exeext conftest.$ac_ext 6756fi 6757 6758 6759 CFLAGS="$xorg_testset_save_CFLAGS" 6760 6761 eval supported=\$$cacheid 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6763$as_echo "$supported" >&6; } 6764 if test "$supported" = "yes" ; then 6765 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6766 found="yes" 6767 fi 6768 fi 6769 6770 6771 6772# These are currently disabled because they are noisy. They will be enabled 6773# in the future once the codebase is sufficiently modernized to silence 6774# them. For now, I don't want them to drown out the other warnings. 6775# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6776# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6777# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6778 6779# Turn some warnings into errors, so we don't accidently get successful builds 6780# when there are problems that should be fixed. 6781 6782if test "x$SELECTIVE_WERROR" = "xyes" ; then 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796xorg_testset_save_CFLAGS="$CFLAGS" 6797 6798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6806/* end confdefs.h. */ 6807int i; 6808_ACEOF 6809if ac_fn_c_try_compile "$LINENO"; then : 6810 xorg_cv_cc_flag_unknown_warning_option=yes 6811else 6812 xorg_cv_cc_flag_unknown_warning_option=no 6813fi 6814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6815fi 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6819 CFLAGS="$xorg_testset_save_CFLAGS" 6820fi 6821 6822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6825 fi 6826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6830 $as_echo_n "(cached) " >&6 6831else 6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6833/* end confdefs.h. */ 6834int i; 6835_ACEOF 6836if ac_fn_c_try_compile "$LINENO"; then : 6837 xorg_cv_cc_flag_unused_command_line_argument=yes 6838else 6839 xorg_cv_cc_flag_unused_command_line_argument=no 6840fi 6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6842fi 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6846 CFLAGS="$xorg_testset_save_CFLAGS" 6847fi 6848 6849found="no" 6850 6851 if test $found = "no" ; then 6852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6854 fi 6855 6856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6858 fi 6859 6860 CFLAGS="$CFLAGS -Werror=implicit" 6861 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6863$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6864 cacheid=xorg_cv_cc_flag__Werror_implicit 6865 if eval \${$cacheid+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869/* end confdefs.h. */ 6870int i; 6871int 6872main () 6873{ 6874 6875 ; 6876 return 0; 6877} 6878_ACEOF 6879if ac_fn_c_try_link "$LINENO"; then : 6880 eval $cacheid=yes 6881else 6882 eval $cacheid=no 6883fi 6884rm -f core conftest.err conftest.$ac_objext \ 6885 conftest$ac_exeext conftest.$ac_ext 6886fi 6887 6888 6889 CFLAGS="$xorg_testset_save_CFLAGS" 6890 6891 eval supported=\$$cacheid 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6893$as_echo "$supported" >&6; } 6894 if test "$supported" = "yes" ; then 6895 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6896 found="yes" 6897 fi 6898 fi 6899 6900 if test $found = "no" ; then 6901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6903 fi 6904 6905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6907 fi 6908 6909 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6910 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6912$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6913 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6914 if eval \${$cacheid+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916else 6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6918/* end confdefs.h. */ 6919int i; 6920int 6921main () 6922{ 6923 6924 ; 6925 return 0; 6926} 6927_ACEOF 6928if ac_fn_c_try_link "$LINENO"; then : 6929 eval $cacheid=yes 6930else 6931 eval $cacheid=no 6932fi 6933rm -f core conftest.err conftest.$ac_objext \ 6934 conftest$ac_exeext conftest.$ac_ext 6935fi 6936 6937 6938 CFLAGS="$xorg_testset_save_CFLAGS" 6939 6940 eval supported=\$$cacheid 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6942$as_echo "$supported" >&6; } 6943 if test "$supported" = "yes" ; then 6944 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6945 found="yes" 6946 fi 6947 fi 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963xorg_testset_save_CFLAGS="$CFLAGS" 6964 6965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971else 6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6973/* end confdefs.h. */ 6974int i; 6975_ACEOF 6976if ac_fn_c_try_compile "$LINENO"; then : 6977 xorg_cv_cc_flag_unknown_warning_option=yes 6978else 6979 xorg_cv_cc_flag_unknown_warning_option=no 6980fi 6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6982fi 6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6986 CFLAGS="$xorg_testset_save_CFLAGS" 6987fi 6988 6989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6992 fi 6993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6997 $as_echo_n "(cached) " >&6 6998else 6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7000/* end confdefs.h. */ 7001int i; 7002_ACEOF 7003if ac_fn_c_try_compile "$LINENO"; then : 7004 xorg_cv_cc_flag_unused_command_line_argument=yes 7005else 7006 xorg_cv_cc_flag_unused_command_line_argument=no 7007fi 7008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7009fi 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7013 CFLAGS="$xorg_testset_save_CFLAGS" 7014fi 7015 7016found="no" 7017 7018 if test $found = "no" ; then 7019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7021 fi 7022 7023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7025 fi 7026 7027 CFLAGS="$CFLAGS -Werror=nonnull" 7028 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7030$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7031 cacheid=xorg_cv_cc_flag__Werror_nonnull 7032 if eval \${$cacheid+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036/* end confdefs.h. */ 7037int i; 7038int 7039main () 7040{ 7041 7042 ; 7043 return 0; 7044} 7045_ACEOF 7046if ac_fn_c_try_link "$LINENO"; then : 7047 eval $cacheid=yes 7048else 7049 eval $cacheid=no 7050fi 7051rm -f core conftest.err conftest.$ac_objext \ 7052 conftest$ac_exeext conftest.$ac_ext 7053fi 7054 7055 7056 CFLAGS="$xorg_testset_save_CFLAGS" 7057 7058 eval supported=\$$cacheid 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7060$as_echo "$supported" >&6; } 7061 if test "$supported" = "yes" ; then 7062 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7063 found="yes" 7064 fi 7065 fi 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081xorg_testset_save_CFLAGS="$CFLAGS" 7082 7083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092int i; 7093_ACEOF 7094if ac_fn_c_try_compile "$LINENO"; then : 7095 xorg_cv_cc_flag_unknown_warning_option=yes 7096else 7097 xorg_cv_cc_flag_unknown_warning_option=no 7098fi 7099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7100fi 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7104 CFLAGS="$xorg_testset_save_CFLAGS" 7105fi 7106 7107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7110 fi 7111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116else 7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119int i; 7120_ACEOF 7121if ac_fn_c_try_compile "$LINENO"; then : 7122 xorg_cv_cc_flag_unused_command_line_argument=yes 7123else 7124 xorg_cv_cc_flag_unused_command_line_argument=no 7125fi 7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7127fi 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7131 CFLAGS="$xorg_testset_save_CFLAGS" 7132fi 7133 7134found="no" 7135 7136 if test $found = "no" ; then 7137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7139 fi 7140 7141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7143 fi 7144 7145 CFLAGS="$CFLAGS -Werror=init-self" 7146 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7148$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7149 cacheid=xorg_cv_cc_flag__Werror_init_self 7150 if eval \${$cacheid+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155int i; 7156int 7157main () 7158{ 7159 7160 ; 7161 return 0; 7162} 7163_ACEOF 7164if ac_fn_c_try_link "$LINENO"; then : 7165 eval $cacheid=yes 7166else 7167 eval $cacheid=no 7168fi 7169rm -f core conftest.err conftest.$ac_objext \ 7170 conftest$ac_exeext conftest.$ac_ext 7171fi 7172 7173 7174 CFLAGS="$xorg_testset_save_CFLAGS" 7175 7176 eval supported=\$$cacheid 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7178$as_echo "$supported" >&6; } 7179 if test "$supported" = "yes" ; then 7180 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7181 found="yes" 7182 fi 7183 fi 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199xorg_testset_save_CFLAGS="$CFLAGS" 7200 7201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209/* end confdefs.h. */ 7210int i; 7211_ACEOF 7212if ac_fn_c_try_compile "$LINENO"; then : 7213 xorg_cv_cc_flag_unknown_warning_option=yes 7214else 7215 xorg_cv_cc_flag_unknown_warning_option=no 7216fi 7217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7218fi 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7222 CFLAGS="$xorg_testset_save_CFLAGS" 7223fi 7224 7225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7228 fi 7229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7236/* end confdefs.h. */ 7237int i; 7238_ACEOF 7239if ac_fn_c_try_compile "$LINENO"; then : 7240 xorg_cv_cc_flag_unused_command_line_argument=yes 7241else 7242 xorg_cv_cc_flag_unused_command_line_argument=no 7243fi 7244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7245fi 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7249 CFLAGS="$xorg_testset_save_CFLAGS" 7250fi 7251 7252found="no" 7253 7254 if test $found = "no" ; then 7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7257 fi 7258 7259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7261 fi 7262 7263 CFLAGS="$CFLAGS -Werror=main" 7264 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7266$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7267 cacheid=xorg_cv_cc_flag__Werror_main 7268 if eval \${$cacheid+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273int i; 7274int 7275main () 7276{ 7277 7278 ; 7279 return 0; 7280} 7281_ACEOF 7282if ac_fn_c_try_link "$LINENO"; then : 7283 eval $cacheid=yes 7284else 7285 eval $cacheid=no 7286fi 7287rm -f core conftest.err conftest.$ac_objext \ 7288 conftest$ac_exeext conftest.$ac_ext 7289fi 7290 7291 7292 CFLAGS="$xorg_testset_save_CFLAGS" 7293 7294 eval supported=\$$cacheid 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7296$as_echo "$supported" >&6; } 7297 if test "$supported" = "yes" ; then 7298 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7299 found="yes" 7300 fi 7301 fi 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317xorg_testset_save_CFLAGS="$CFLAGS" 7318 7319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7324 $as_echo_n "(cached) " >&6 7325else 7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7327/* end confdefs.h. */ 7328int i; 7329_ACEOF 7330if ac_fn_c_try_compile "$LINENO"; then : 7331 xorg_cv_cc_flag_unknown_warning_option=yes 7332else 7333 xorg_cv_cc_flag_unknown_warning_option=no 7334fi 7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7336fi 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7340 CFLAGS="$xorg_testset_save_CFLAGS" 7341fi 7342 7343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7346 fi 7347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352else 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354/* end confdefs.h. */ 7355int i; 7356_ACEOF 7357if ac_fn_c_try_compile "$LINENO"; then : 7358 xorg_cv_cc_flag_unused_command_line_argument=yes 7359else 7360 xorg_cv_cc_flag_unused_command_line_argument=no 7361fi 7362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7363fi 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7367 CFLAGS="$xorg_testset_save_CFLAGS" 7368fi 7369 7370found="no" 7371 7372 if test $found = "no" ; then 7373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7375 fi 7376 7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7379 fi 7380 7381 CFLAGS="$CFLAGS -Werror=missing-braces" 7382 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7384$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7385 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7386 if eval \${$cacheid+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7390/* end confdefs.h. */ 7391int i; 7392int 7393main () 7394{ 7395 7396 ; 7397 return 0; 7398} 7399_ACEOF 7400if ac_fn_c_try_link "$LINENO"; then : 7401 eval $cacheid=yes 7402else 7403 eval $cacheid=no 7404fi 7405rm -f core conftest.err conftest.$ac_objext \ 7406 conftest$ac_exeext conftest.$ac_ext 7407fi 7408 7409 7410 CFLAGS="$xorg_testset_save_CFLAGS" 7411 7412 eval supported=\$$cacheid 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7414$as_echo "$supported" >&6; } 7415 if test "$supported" = "yes" ; then 7416 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7417 found="yes" 7418 fi 7419 fi 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435xorg_testset_save_CFLAGS="$CFLAGS" 7436 7437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7442 $as_echo_n "(cached) " >&6 7443else 7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7445/* end confdefs.h. */ 7446int i; 7447_ACEOF 7448if ac_fn_c_try_compile "$LINENO"; then : 7449 xorg_cv_cc_flag_unknown_warning_option=yes 7450else 7451 xorg_cv_cc_flag_unknown_warning_option=no 7452fi 7453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7454fi 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7458 CFLAGS="$xorg_testset_save_CFLAGS" 7459fi 7460 7461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7464 fi 7465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7469 $as_echo_n "(cached) " >&6 7470else 7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7472/* end confdefs.h. */ 7473int i; 7474_ACEOF 7475if ac_fn_c_try_compile "$LINENO"; then : 7476 xorg_cv_cc_flag_unused_command_line_argument=yes 7477else 7478 xorg_cv_cc_flag_unused_command_line_argument=no 7479fi 7480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7481fi 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7485 CFLAGS="$xorg_testset_save_CFLAGS" 7486fi 7487 7488found="no" 7489 7490 if test $found = "no" ; then 7491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7493 fi 7494 7495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7497 fi 7498 7499 CFLAGS="$CFLAGS -Werror=sequence-point" 7500 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7502$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7503 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7504 if eval \${$cacheid+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509int i; 7510int 7511main () 7512{ 7513 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518if ac_fn_c_try_link "$LINENO"; then : 7519 eval $cacheid=yes 7520else 7521 eval $cacheid=no 7522fi 7523rm -f core conftest.err conftest.$ac_objext \ 7524 conftest$ac_exeext conftest.$ac_ext 7525fi 7526 7527 7528 CFLAGS="$xorg_testset_save_CFLAGS" 7529 7530 eval supported=\$$cacheid 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7532$as_echo "$supported" >&6; } 7533 if test "$supported" = "yes" ; then 7534 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7535 found="yes" 7536 fi 7537 fi 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553xorg_testset_save_CFLAGS="$CFLAGS" 7554 7555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561else 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563/* end confdefs.h. */ 7564int i; 7565_ACEOF 7566if ac_fn_c_try_compile "$LINENO"; then : 7567 xorg_cv_cc_flag_unknown_warning_option=yes 7568else 7569 xorg_cv_cc_flag_unknown_warning_option=no 7570fi 7571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7572fi 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7576 CFLAGS="$xorg_testset_save_CFLAGS" 7577fi 7578 7579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7582 fi 7583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7587 $as_echo_n "(cached) " >&6 7588else 7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7590/* end confdefs.h. */ 7591int i; 7592_ACEOF 7593if ac_fn_c_try_compile "$LINENO"; then : 7594 xorg_cv_cc_flag_unused_command_line_argument=yes 7595else 7596 xorg_cv_cc_flag_unused_command_line_argument=no 7597fi 7598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7599fi 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7603 CFLAGS="$xorg_testset_save_CFLAGS" 7604fi 7605 7606found="no" 7607 7608 if test $found = "no" ; then 7609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7611 fi 7612 7613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7615 fi 7616 7617 CFLAGS="$CFLAGS -Werror=return-type" 7618 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7620$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7621 cacheid=xorg_cv_cc_flag__Werror_return_type 7622 if eval \${$cacheid+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7626/* end confdefs.h. */ 7627int i; 7628int 7629main () 7630{ 7631 7632 ; 7633 return 0; 7634} 7635_ACEOF 7636if ac_fn_c_try_link "$LINENO"; then : 7637 eval $cacheid=yes 7638else 7639 eval $cacheid=no 7640fi 7641rm -f core conftest.err conftest.$ac_objext \ 7642 conftest$ac_exeext conftest.$ac_ext 7643fi 7644 7645 7646 CFLAGS="$xorg_testset_save_CFLAGS" 7647 7648 eval supported=\$$cacheid 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7650$as_echo "$supported" >&6; } 7651 if test "$supported" = "yes" ; then 7652 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7653 found="yes" 7654 fi 7655 fi 7656 7657 if test $found = "no" ; then 7658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7660 fi 7661 7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7664 fi 7665 7666 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7667 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7669$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7670 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7671 if eval \${$cacheid+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675/* end confdefs.h. */ 7676int i; 7677int 7678main () 7679{ 7680 7681 ; 7682 return 0; 7683} 7684_ACEOF 7685if ac_fn_c_try_link "$LINENO"; then : 7686 eval $cacheid=yes 7687else 7688 eval $cacheid=no 7689fi 7690rm -f core conftest.err conftest.$ac_objext \ 7691 conftest$ac_exeext conftest.$ac_ext 7692fi 7693 7694 7695 CFLAGS="$xorg_testset_save_CFLAGS" 7696 7697 eval supported=\$$cacheid 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7699$as_echo "$supported" >&6; } 7700 if test "$supported" = "yes" ; then 7701 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7702 found="yes" 7703 fi 7704 fi 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720xorg_testset_save_CFLAGS="$CFLAGS" 7721 7722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7730/* end confdefs.h. */ 7731int i; 7732_ACEOF 7733if ac_fn_c_try_compile "$LINENO"; then : 7734 xorg_cv_cc_flag_unknown_warning_option=yes 7735else 7736 xorg_cv_cc_flag_unknown_warning_option=no 7737fi 7738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7739fi 7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7743 CFLAGS="$xorg_testset_save_CFLAGS" 7744fi 7745 7746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7749 fi 7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7757/* end confdefs.h. */ 7758int i; 7759_ACEOF 7760if ac_fn_c_try_compile "$LINENO"; then : 7761 xorg_cv_cc_flag_unused_command_line_argument=yes 7762else 7763 xorg_cv_cc_flag_unused_command_line_argument=no 7764fi 7765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7766fi 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7770 CFLAGS="$xorg_testset_save_CFLAGS" 7771fi 7772 7773found="no" 7774 7775 if test $found = "no" ; then 7776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7778 fi 7779 7780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7782 fi 7783 7784 CFLAGS="$CFLAGS -Werror=trigraphs" 7785 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7787$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7788 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7789 if eval \${$cacheid+:} false; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794int i; 7795int 7796main () 7797{ 7798 7799 ; 7800 return 0; 7801} 7802_ACEOF 7803if ac_fn_c_try_link "$LINENO"; then : 7804 eval $cacheid=yes 7805else 7806 eval $cacheid=no 7807fi 7808rm -f core conftest.err conftest.$ac_objext \ 7809 conftest$ac_exeext conftest.$ac_ext 7810fi 7811 7812 7813 CFLAGS="$xorg_testset_save_CFLAGS" 7814 7815 eval supported=\$$cacheid 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7817$as_echo "$supported" >&6; } 7818 if test "$supported" = "yes" ; then 7819 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7820 found="yes" 7821 fi 7822 fi 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838xorg_testset_save_CFLAGS="$CFLAGS" 7839 7840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846else 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848/* end confdefs.h. */ 7849int i; 7850_ACEOF 7851if ac_fn_c_try_compile "$LINENO"; then : 7852 xorg_cv_cc_flag_unknown_warning_option=yes 7853else 7854 xorg_cv_cc_flag_unknown_warning_option=no 7855fi 7856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7857fi 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7861 CFLAGS="$xorg_testset_save_CFLAGS" 7862fi 7863 7864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7867 fi 7868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7875/* end confdefs.h. */ 7876int i; 7877_ACEOF 7878if ac_fn_c_try_compile "$LINENO"; then : 7879 xorg_cv_cc_flag_unused_command_line_argument=yes 7880else 7881 xorg_cv_cc_flag_unused_command_line_argument=no 7882fi 7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7884fi 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7888 CFLAGS="$xorg_testset_save_CFLAGS" 7889fi 7890 7891found="no" 7892 7893 if test $found = "no" ; then 7894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7896 fi 7897 7898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7900 fi 7901 7902 CFLAGS="$CFLAGS -Werror=array-bounds" 7903 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7905$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7906 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7907 if eval \${$cacheid+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913int 7914main () 7915{ 7916 7917 ; 7918 return 0; 7919} 7920_ACEOF 7921if ac_fn_c_try_link "$LINENO"; then : 7922 eval $cacheid=yes 7923else 7924 eval $cacheid=no 7925fi 7926rm -f core conftest.err conftest.$ac_objext \ 7927 conftest$ac_exeext conftest.$ac_ext 7928fi 7929 7930 7931 CFLAGS="$xorg_testset_save_CFLAGS" 7932 7933 eval supported=\$$cacheid 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7935$as_echo "$supported" >&6; } 7936 if test "$supported" = "yes" ; then 7937 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7938 found="yes" 7939 fi 7940 fi 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956xorg_testset_save_CFLAGS="$CFLAGS" 7957 7958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7966/* end confdefs.h. */ 7967int i; 7968_ACEOF 7969if ac_fn_c_try_compile "$LINENO"; then : 7970 xorg_cv_cc_flag_unknown_warning_option=yes 7971else 7972 xorg_cv_cc_flag_unknown_warning_option=no 7973fi 7974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7975fi 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7979 CFLAGS="$xorg_testset_save_CFLAGS" 7980fi 7981 7982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7985 fi 7986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7990 $as_echo_n "(cached) " >&6 7991else 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7993/* end confdefs.h. */ 7994int i; 7995_ACEOF 7996if ac_fn_c_try_compile "$LINENO"; then : 7997 xorg_cv_cc_flag_unused_command_line_argument=yes 7998else 7999 xorg_cv_cc_flag_unused_command_line_argument=no 8000fi 8001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8002fi 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8006 CFLAGS="$xorg_testset_save_CFLAGS" 8007fi 8008 8009found="no" 8010 8011 if test $found = "no" ; then 8012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8014 fi 8015 8016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8018 fi 8019 8020 CFLAGS="$CFLAGS -Werror=write-strings" 8021 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8023$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8024 cacheid=xorg_cv_cc_flag__Werror_write_strings 8025 if eval \${$cacheid+:} false; then : 8026 $as_echo_n "(cached) " >&6 8027else 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029/* end confdefs.h. */ 8030int i; 8031int 8032main () 8033{ 8034 8035 ; 8036 return 0; 8037} 8038_ACEOF 8039if ac_fn_c_try_link "$LINENO"; then : 8040 eval $cacheid=yes 8041else 8042 eval $cacheid=no 8043fi 8044rm -f core conftest.err conftest.$ac_objext \ 8045 conftest$ac_exeext conftest.$ac_ext 8046fi 8047 8048 8049 CFLAGS="$xorg_testset_save_CFLAGS" 8050 8051 eval supported=\$$cacheid 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8053$as_echo "$supported" >&6; } 8054 if test "$supported" = "yes" ; then 8055 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8056 found="yes" 8057 fi 8058 fi 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074xorg_testset_save_CFLAGS="$CFLAGS" 8075 8076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085int i; 8086_ACEOF 8087if ac_fn_c_try_compile "$LINENO"; then : 8088 xorg_cv_cc_flag_unknown_warning_option=yes 8089else 8090 xorg_cv_cc_flag_unknown_warning_option=no 8091fi 8092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8093fi 8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8097 CFLAGS="$xorg_testset_save_CFLAGS" 8098fi 8099 8100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8103 fi 8104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111/* end confdefs.h. */ 8112int i; 8113_ACEOF 8114if ac_fn_c_try_compile "$LINENO"; then : 8115 xorg_cv_cc_flag_unused_command_line_argument=yes 8116else 8117 xorg_cv_cc_flag_unused_command_line_argument=no 8118fi 8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8120fi 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8124 CFLAGS="$xorg_testset_save_CFLAGS" 8125fi 8126 8127found="no" 8128 8129 if test $found = "no" ; then 8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8132 fi 8133 8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8136 fi 8137 8138 CFLAGS="$CFLAGS -Werror=address" 8139 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8141$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8142 cacheid=xorg_cv_cc_flag__Werror_address 8143 if eval \${$cacheid+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148int i; 8149int 8150main () 8151{ 8152 8153 ; 8154 return 0; 8155} 8156_ACEOF 8157if ac_fn_c_try_link "$LINENO"; then : 8158 eval $cacheid=yes 8159else 8160 eval $cacheid=no 8161fi 8162rm -f core conftest.err conftest.$ac_objext \ 8163 conftest$ac_exeext conftest.$ac_ext 8164fi 8165 8166 8167 CFLAGS="$xorg_testset_save_CFLAGS" 8168 8169 eval supported=\$$cacheid 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8171$as_echo "$supported" >&6; } 8172 if test "$supported" = "yes" ; then 8173 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8174 found="yes" 8175 fi 8176 fi 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192xorg_testset_save_CFLAGS="$CFLAGS" 8193 8194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203int i; 8204_ACEOF 8205if ac_fn_c_try_compile "$LINENO"; then : 8206 xorg_cv_cc_flag_unknown_warning_option=yes 8207else 8208 xorg_cv_cc_flag_unknown_warning_option=no 8209fi 8210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8211fi 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216fi 8217 8218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8221 fi 8222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227else 8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229/* end confdefs.h. */ 8230int i; 8231_ACEOF 8232if ac_fn_c_try_compile "$LINENO"; then : 8233 xorg_cv_cc_flag_unused_command_line_argument=yes 8234else 8235 xorg_cv_cc_flag_unused_command_line_argument=no 8236fi 8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8238fi 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8242 CFLAGS="$xorg_testset_save_CFLAGS" 8243fi 8244 8245found="no" 8246 8247 if test $found = "no" ; then 8248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8250 fi 8251 8252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8254 fi 8255 8256 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8257 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8259$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8260 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8261 if eval \${$cacheid+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266int i; 8267int 8268main () 8269{ 8270 8271 ; 8272 return 0; 8273} 8274_ACEOF 8275if ac_fn_c_try_link "$LINENO"; then : 8276 eval $cacheid=yes 8277else 8278 eval $cacheid=no 8279fi 8280rm -f core conftest.err conftest.$ac_objext \ 8281 conftest$ac_exeext conftest.$ac_ext 8282fi 8283 8284 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286 8287 eval supported=\$$cacheid 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8289$as_echo "$supported" >&6; } 8290 if test "$supported" = "yes" ; then 8291 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8292 found="yes" 8293 fi 8294 fi 8295 8296 if test $found = "no" ; then 8297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8299 fi 8300 8301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8303 fi 8304 8305 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8306 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8308$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8309 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8310 if eval \${$cacheid+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315int i; 8316int 8317main () 8318{ 8319 8320 ; 8321 return 0; 8322} 8323_ACEOF 8324if ac_fn_c_try_link "$LINENO"; then : 8325 eval $cacheid=yes 8326else 8327 eval $cacheid=no 8328fi 8329rm -f core conftest.err conftest.$ac_objext \ 8330 conftest$ac_exeext conftest.$ac_ext 8331fi 8332 8333 8334 CFLAGS="$xorg_testset_save_CFLAGS" 8335 8336 eval supported=\$$cacheid 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8338$as_echo "$supported" >&6; } 8339 if test "$supported" = "yes" ; then 8340 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8341 found="yes" 8342 fi 8343 fi 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359xorg_testset_save_CFLAGS="$CFLAGS" 8360 8361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370int i; 8371_ACEOF 8372if ac_fn_c_try_compile "$LINENO"; then : 8373 xorg_cv_cc_flag_unknown_warning_option=yes 8374else 8375 xorg_cv_cc_flag_unknown_warning_option=no 8376fi 8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8378fi 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8382 CFLAGS="$xorg_testset_save_CFLAGS" 8383fi 8384 8385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8388 fi 8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397int i; 8398_ACEOF 8399if ac_fn_c_try_compile "$LINENO"; then : 8400 xorg_cv_cc_flag_unused_command_line_argument=yes 8401else 8402 xorg_cv_cc_flag_unused_command_line_argument=no 8403fi 8404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8405fi 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8409 CFLAGS="$xorg_testset_save_CFLAGS" 8410fi 8411 8412found="no" 8413 8414 if test $found = "no" ; then 8415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8417 fi 8418 8419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8421 fi 8422 8423 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8426$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8427 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8428 if eval \${$cacheid+:} false; then : 8429 $as_echo_n "(cached) " >&6 8430else 8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8432/* end confdefs.h. */ 8433int i; 8434int 8435main () 8436{ 8437 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442if ac_fn_c_try_link "$LINENO"; then : 8443 eval $cacheid=yes 8444else 8445 eval $cacheid=no 8446fi 8447rm -f core conftest.err conftest.$ac_objext \ 8448 conftest$ac_exeext conftest.$ac_ext 8449fi 8450 8451 8452 CFLAGS="$xorg_testset_save_CFLAGS" 8453 8454 eval supported=\$$cacheid 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8456$as_echo "$supported" >&6; } 8457 if test "$supported" = "yes" ; then 8458 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8459 found="yes" 8460 fi 8461 fi 8462 8463 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8464else 8465{ $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 8466$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;} 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480xorg_testset_save_CFLAGS="$CFLAGS" 8481 8482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8487 $as_echo_n "(cached) " >&6 8488else 8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8490/* end confdefs.h. */ 8491int i; 8492_ACEOF 8493if ac_fn_c_try_compile "$LINENO"; then : 8494 xorg_cv_cc_flag_unknown_warning_option=yes 8495else 8496 xorg_cv_cc_flag_unknown_warning_option=no 8497fi 8498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8499fi 8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8503 CFLAGS="$xorg_testset_save_CFLAGS" 8504fi 8505 8506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8509 fi 8510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8514 $as_echo_n "(cached) " >&6 8515else 8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8517/* end confdefs.h. */ 8518int i; 8519_ACEOF 8520if ac_fn_c_try_compile "$LINENO"; then : 8521 xorg_cv_cc_flag_unused_command_line_argument=yes 8522else 8523 xorg_cv_cc_flag_unused_command_line_argument=no 8524fi 8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8526fi 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8530 CFLAGS="$xorg_testset_save_CFLAGS" 8531fi 8532 8533found="no" 8534 8535 if test $found = "no" ; then 8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8538 fi 8539 8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8542 fi 8543 8544 CFLAGS="$CFLAGS -Wimplicit" 8545 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8547$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8548 cacheid=xorg_cv_cc_flag__Wimplicit 8549 if eval \${$cacheid+:} false; then : 8550 $as_echo_n "(cached) " >&6 8551else 8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8553/* end confdefs.h. */ 8554int i; 8555int 8556main () 8557{ 8558 8559 ; 8560 return 0; 8561} 8562_ACEOF 8563if ac_fn_c_try_link "$LINENO"; then : 8564 eval $cacheid=yes 8565else 8566 eval $cacheid=no 8567fi 8568rm -f core conftest.err conftest.$ac_objext \ 8569 conftest$ac_exeext conftest.$ac_ext 8570fi 8571 8572 8573 CFLAGS="$xorg_testset_save_CFLAGS" 8574 8575 eval supported=\$$cacheid 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8577$as_echo "$supported" >&6; } 8578 if test "$supported" = "yes" ; then 8579 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8580 found="yes" 8581 fi 8582 fi 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598xorg_testset_save_CFLAGS="$CFLAGS" 8599 8600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8605 $as_echo_n "(cached) " >&6 8606else 8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8608/* end confdefs.h. */ 8609int i; 8610_ACEOF 8611if ac_fn_c_try_compile "$LINENO"; then : 8612 xorg_cv_cc_flag_unknown_warning_option=yes 8613else 8614 xorg_cv_cc_flag_unknown_warning_option=no 8615fi 8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8617fi 8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8621 CFLAGS="$xorg_testset_save_CFLAGS" 8622fi 8623 8624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627 fi 8628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8632 $as_echo_n "(cached) " >&6 8633else 8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8635/* end confdefs.h. */ 8636int i; 8637_ACEOF 8638if ac_fn_c_try_compile "$LINENO"; then : 8639 xorg_cv_cc_flag_unused_command_line_argument=yes 8640else 8641 xorg_cv_cc_flag_unused_command_line_argument=no 8642fi 8643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8644fi 8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8648 CFLAGS="$xorg_testset_save_CFLAGS" 8649fi 8650 8651found="no" 8652 8653 if test $found = "no" ; then 8654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8656 fi 8657 8658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8660 fi 8661 8662 CFLAGS="$CFLAGS -Wnonnull" 8663 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8665$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8666 cacheid=xorg_cv_cc_flag__Wnonnull 8667 if eval \${$cacheid+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673int 8674main () 8675{ 8676 8677 ; 8678 return 0; 8679} 8680_ACEOF 8681if ac_fn_c_try_link "$LINENO"; then : 8682 eval $cacheid=yes 8683else 8684 eval $cacheid=no 8685fi 8686rm -f core conftest.err conftest.$ac_objext \ 8687 conftest$ac_exeext conftest.$ac_ext 8688fi 8689 8690 8691 CFLAGS="$xorg_testset_save_CFLAGS" 8692 8693 eval supported=\$$cacheid 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8695$as_echo "$supported" >&6; } 8696 if test "$supported" = "yes" ; then 8697 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8698 found="yes" 8699 fi 8700 fi 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716xorg_testset_save_CFLAGS="$CFLAGS" 8717 8718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8723 $as_echo_n "(cached) " >&6 8724else 8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8726/* end confdefs.h. */ 8727int i; 8728_ACEOF 8729if ac_fn_c_try_compile "$LINENO"; then : 8730 xorg_cv_cc_flag_unknown_warning_option=yes 8731else 8732 xorg_cv_cc_flag_unknown_warning_option=no 8733fi 8734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8735fi 8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8739 CFLAGS="$xorg_testset_save_CFLAGS" 8740fi 8741 8742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8745 fi 8746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8750 $as_echo_n "(cached) " >&6 8751else 8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753/* end confdefs.h. */ 8754int i; 8755_ACEOF 8756if ac_fn_c_try_compile "$LINENO"; then : 8757 xorg_cv_cc_flag_unused_command_line_argument=yes 8758else 8759 xorg_cv_cc_flag_unused_command_line_argument=no 8760fi 8761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8762fi 8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8766 CFLAGS="$xorg_testset_save_CFLAGS" 8767fi 8768 8769found="no" 8770 8771 if test $found = "no" ; then 8772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8774 fi 8775 8776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8778 fi 8779 8780 CFLAGS="$CFLAGS -Winit-self" 8781 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8783$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8784 cacheid=xorg_cv_cc_flag__Winit_self 8785 if eval \${$cacheid+:} false; then : 8786 $as_echo_n "(cached) " >&6 8787else 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790int i; 8791int 8792main () 8793{ 8794 8795 ; 8796 return 0; 8797} 8798_ACEOF 8799if ac_fn_c_try_link "$LINENO"; then : 8800 eval $cacheid=yes 8801else 8802 eval $cacheid=no 8803fi 8804rm -f core conftest.err conftest.$ac_objext \ 8805 conftest$ac_exeext conftest.$ac_ext 8806fi 8807 8808 8809 CFLAGS="$xorg_testset_save_CFLAGS" 8810 8811 eval supported=\$$cacheid 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8813$as_echo "$supported" >&6; } 8814 if test "$supported" = "yes" ; then 8815 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8816 found="yes" 8817 fi 8818 fi 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834xorg_testset_save_CFLAGS="$CFLAGS" 8835 8836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8840if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8841 $as_echo_n "(cached) " >&6 8842else 8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8844/* end confdefs.h. */ 8845int i; 8846_ACEOF 8847if ac_fn_c_try_compile "$LINENO"; then : 8848 xorg_cv_cc_flag_unknown_warning_option=yes 8849else 8850 xorg_cv_cc_flag_unknown_warning_option=no 8851fi 8852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8853fi 8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8855$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8857 CFLAGS="$xorg_testset_save_CFLAGS" 8858fi 8859 8860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8863 fi 8864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8866$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8867if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869else 8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871/* end confdefs.h. */ 8872int i; 8873_ACEOF 8874if ac_fn_c_try_compile "$LINENO"; then : 8875 xorg_cv_cc_flag_unused_command_line_argument=yes 8876else 8877 xorg_cv_cc_flag_unused_command_line_argument=no 8878fi 8879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8880fi 8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8882$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8884 CFLAGS="$xorg_testset_save_CFLAGS" 8885fi 8886 8887found="no" 8888 8889 if test $found = "no" ; then 8890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8892 fi 8893 8894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8896 fi 8897 8898 CFLAGS="$CFLAGS -Wmain" 8899 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8901$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8902 cacheid=xorg_cv_cc_flag__Wmain 8903 if eval \${$cacheid+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905else 8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8907/* end confdefs.h. */ 8908int i; 8909int 8910main () 8911{ 8912 8913 ; 8914 return 0; 8915} 8916_ACEOF 8917if ac_fn_c_try_link "$LINENO"; then : 8918 eval $cacheid=yes 8919else 8920 eval $cacheid=no 8921fi 8922rm -f core conftest.err conftest.$ac_objext \ 8923 conftest$ac_exeext conftest.$ac_ext 8924fi 8925 8926 8927 CFLAGS="$xorg_testset_save_CFLAGS" 8928 8929 eval supported=\$$cacheid 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8931$as_echo "$supported" >&6; } 8932 if test "$supported" = "yes" ; then 8933 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8934 found="yes" 8935 fi 8936 fi 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952xorg_testset_save_CFLAGS="$CFLAGS" 8953 8954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8959 $as_echo_n "(cached) " >&6 8960else 8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962/* end confdefs.h. */ 8963int i; 8964_ACEOF 8965if ac_fn_c_try_compile "$LINENO"; then : 8966 xorg_cv_cc_flag_unknown_warning_option=yes 8967else 8968 xorg_cv_cc_flag_unknown_warning_option=no 8969fi 8970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8971fi 8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8975 CFLAGS="$xorg_testset_save_CFLAGS" 8976fi 8977 8978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8981 fi 8982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8986 $as_echo_n "(cached) " >&6 8987else 8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990int i; 8991_ACEOF 8992if ac_fn_c_try_compile "$LINENO"; then : 8993 xorg_cv_cc_flag_unused_command_line_argument=yes 8994else 8995 xorg_cv_cc_flag_unused_command_line_argument=no 8996fi 8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8998fi 8999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9002 CFLAGS="$xorg_testset_save_CFLAGS" 9003fi 9004 9005found="no" 9006 9007 if test $found = "no" ; then 9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 fi 9011 9012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9014 fi 9015 9016 CFLAGS="$CFLAGS -Wmissing-braces" 9017 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9019$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9020 cacheid=xorg_cv_cc_flag__Wmissing_braces 9021 if eval \${$cacheid+:} false; then : 9022 $as_echo_n "(cached) " >&6 9023else 9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9025/* end confdefs.h. */ 9026int i; 9027int 9028main () 9029{ 9030 9031 ; 9032 return 0; 9033} 9034_ACEOF 9035if ac_fn_c_try_link "$LINENO"; then : 9036 eval $cacheid=yes 9037else 9038 eval $cacheid=no 9039fi 9040rm -f core conftest.err conftest.$ac_objext \ 9041 conftest$ac_exeext conftest.$ac_ext 9042fi 9043 9044 9045 CFLAGS="$xorg_testset_save_CFLAGS" 9046 9047 eval supported=\$$cacheid 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9049$as_echo "$supported" >&6; } 9050 if test "$supported" = "yes" ; then 9051 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9052 found="yes" 9053 fi 9054 fi 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070xorg_testset_save_CFLAGS="$CFLAGS" 9071 9072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9077 $as_echo_n "(cached) " >&6 9078else 9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9080/* end confdefs.h. */ 9081int i; 9082_ACEOF 9083if ac_fn_c_try_compile "$LINENO"; then : 9084 xorg_cv_cc_flag_unknown_warning_option=yes 9085else 9086 xorg_cv_cc_flag_unknown_warning_option=no 9087fi 9088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9089fi 9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9093 CFLAGS="$xorg_testset_save_CFLAGS" 9094fi 9095 9096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9099 fi 9100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9104 $as_echo_n "(cached) " >&6 9105else 9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9107/* end confdefs.h. */ 9108int i; 9109_ACEOF 9110if ac_fn_c_try_compile "$LINENO"; then : 9111 xorg_cv_cc_flag_unused_command_line_argument=yes 9112else 9113 xorg_cv_cc_flag_unused_command_line_argument=no 9114fi 9115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9116fi 9117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9120 CFLAGS="$xorg_testset_save_CFLAGS" 9121fi 9122 9123found="no" 9124 9125 if test $found = "no" ; then 9126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9128 fi 9129 9130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9132 fi 9133 9134 CFLAGS="$CFLAGS -Wsequence-point" 9135 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9137$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9138 cacheid=xorg_cv_cc_flag__Wsequence_point 9139 if eval \${$cacheid+:} false; then : 9140 $as_echo_n "(cached) " >&6 9141else 9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9143/* end confdefs.h. */ 9144int i; 9145int 9146main () 9147{ 9148 9149 ; 9150 return 0; 9151} 9152_ACEOF 9153if ac_fn_c_try_link "$LINENO"; then : 9154 eval $cacheid=yes 9155else 9156 eval $cacheid=no 9157fi 9158rm -f core conftest.err conftest.$ac_objext \ 9159 conftest$ac_exeext conftest.$ac_ext 9160fi 9161 9162 9163 CFLAGS="$xorg_testset_save_CFLAGS" 9164 9165 eval supported=\$$cacheid 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9167$as_echo "$supported" >&6; } 9168 if test "$supported" = "yes" ; then 9169 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9170 found="yes" 9171 fi 9172 fi 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188xorg_testset_save_CFLAGS="$CFLAGS" 9189 9190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9195 $as_echo_n "(cached) " >&6 9196else 9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9198/* end confdefs.h. */ 9199int i; 9200_ACEOF 9201if ac_fn_c_try_compile "$LINENO"; then : 9202 xorg_cv_cc_flag_unknown_warning_option=yes 9203else 9204 xorg_cv_cc_flag_unknown_warning_option=no 9205fi 9206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9207fi 9208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9211 CFLAGS="$xorg_testset_save_CFLAGS" 9212fi 9213 9214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9217 fi 9218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9222 $as_echo_n "(cached) " >&6 9223else 9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225/* end confdefs.h. */ 9226int i; 9227_ACEOF 9228if ac_fn_c_try_compile "$LINENO"; then : 9229 xorg_cv_cc_flag_unused_command_line_argument=yes 9230else 9231 xorg_cv_cc_flag_unused_command_line_argument=no 9232fi 9233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9234fi 9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9238 CFLAGS="$xorg_testset_save_CFLAGS" 9239fi 9240 9241found="no" 9242 9243 if test $found = "no" ; then 9244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9246 fi 9247 9248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9250 fi 9251 9252 CFLAGS="$CFLAGS -Wreturn-type" 9253 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9255$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9256 cacheid=xorg_cv_cc_flag__Wreturn_type 9257 if eval \${$cacheid+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9261/* end confdefs.h. */ 9262int i; 9263int 9264main () 9265{ 9266 9267 ; 9268 return 0; 9269} 9270_ACEOF 9271if ac_fn_c_try_link "$LINENO"; then : 9272 eval $cacheid=yes 9273else 9274 eval $cacheid=no 9275fi 9276rm -f core conftest.err conftest.$ac_objext \ 9277 conftest$ac_exeext conftest.$ac_ext 9278fi 9279 9280 9281 CFLAGS="$xorg_testset_save_CFLAGS" 9282 9283 eval supported=\$$cacheid 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9285$as_echo "$supported" >&6; } 9286 if test "$supported" = "yes" ; then 9287 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9288 found="yes" 9289 fi 9290 fi 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306xorg_testset_save_CFLAGS="$CFLAGS" 9307 9308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316/* end confdefs.h. */ 9317int i; 9318_ACEOF 9319if ac_fn_c_try_compile "$LINENO"; then : 9320 xorg_cv_cc_flag_unknown_warning_option=yes 9321else 9322 xorg_cv_cc_flag_unknown_warning_option=no 9323fi 9324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9325fi 9326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9329 CFLAGS="$xorg_testset_save_CFLAGS" 9330fi 9331 9332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 fi 9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343/* end confdefs.h. */ 9344int i; 9345_ACEOF 9346if ac_fn_c_try_compile "$LINENO"; then : 9347 xorg_cv_cc_flag_unused_command_line_argument=yes 9348else 9349 xorg_cv_cc_flag_unused_command_line_argument=no 9350fi 9351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9352fi 9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9356 CFLAGS="$xorg_testset_save_CFLAGS" 9357fi 9358 9359found="no" 9360 9361 if test $found = "no" ; then 9362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9364 fi 9365 9366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9368 fi 9369 9370 CFLAGS="$CFLAGS -Wtrigraphs" 9371 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9373$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9374 cacheid=xorg_cv_cc_flag__Wtrigraphs 9375 if eval \${$cacheid+:} false; then : 9376 $as_echo_n "(cached) " >&6 9377else 9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379/* end confdefs.h. */ 9380int i; 9381int 9382main () 9383{ 9384 9385 ; 9386 return 0; 9387} 9388_ACEOF 9389if ac_fn_c_try_link "$LINENO"; then : 9390 eval $cacheid=yes 9391else 9392 eval $cacheid=no 9393fi 9394rm -f core conftest.err conftest.$ac_objext \ 9395 conftest$ac_exeext conftest.$ac_ext 9396fi 9397 9398 9399 CFLAGS="$xorg_testset_save_CFLAGS" 9400 9401 eval supported=\$$cacheid 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9403$as_echo "$supported" >&6; } 9404 if test "$supported" = "yes" ; then 9405 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9406 found="yes" 9407 fi 9408 fi 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424xorg_testset_save_CFLAGS="$CFLAGS" 9425 9426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9431 $as_echo_n "(cached) " >&6 9432else 9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9434/* end confdefs.h. */ 9435int i; 9436_ACEOF 9437if ac_fn_c_try_compile "$LINENO"; then : 9438 xorg_cv_cc_flag_unknown_warning_option=yes 9439else 9440 xorg_cv_cc_flag_unknown_warning_option=no 9441fi 9442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9443fi 9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9447 CFLAGS="$xorg_testset_save_CFLAGS" 9448fi 9449 9450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9453 fi 9454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9458 $as_echo_n "(cached) " >&6 9459else 9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9461/* end confdefs.h. */ 9462int i; 9463_ACEOF 9464if ac_fn_c_try_compile "$LINENO"; then : 9465 xorg_cv_cc_flag_unused_command_line_argument=yes 9466else 9467 xorg_cv_cc_flag_unused_command_line_argument=no 9468fi 9469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9470fi 9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9474 CFLAGS="$xorg_testset_save_CFLAGS" 9475fi 9476 9477found="no" 9478 9479 if test $found = "no" ; then 9480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9482 fi 9483 9484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9486 fi 9487 9488 CFLAGS="$CFLAGS -Warray-bounds" 9489 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9491$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9492 cacheid=xorg_cv_cc_flag__Warray_bounds 9493 if eval \${$cacheid+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495else 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498int i; 9499int 9500main () 9501{ 9502 9503 ; 9504 return 0; 9505} 9506_ACEOF 9507if ac_fn_c_try_link "$LINENO"; then : 9508 eval $cacheid=yes 9509else 9510 eval $cacheid=no 9511fi 9512rm -f core conftest.err conftest.$ac_objext \ 9513 conftest$ac_exeext conftest.$ac_ext 9514fi 9515 9516 9517 CFLAGS="$xorg_testset_save_CFLAGS" 9518 9519 eval supported=\$$cacheid 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9521$as_echo "$supported" >&6; } 9522 if test "$supported" = "yes" ; then 9523 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9524 found="yes" 9525 fi 9526 fi 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542xorg_testset_save_CFLAGS="$CFLAGS" 9543 9544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9549 $as_echo_n "(cached) " >&6 9550else 9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552/* end confdefs.h. */ 9553int i; 9554_ACEOF 9555if ac_fn_c_try_compile "$LINENO"; then : 9556 xorg_cv_cc_flag_unknown_warning_option=yes 9557else 9558 xorg_cv_cc_flag_unknown_warning_option=no 9559fi 9560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9561fi 9562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9565 CFLAGS="$xorg_testset_save_CFLAGS" 9566fi 9567 9568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 fi 9572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9576 $as_echo_n "(cached) " >&6 9577else 9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579/* end confdefs.h. */ 9580int i; 9581_ACEOF 9582if ac_fn_c_try_compile "$LINENO"; then : 9583 xorg_cv_cc_flag_unused_command_line_argument=yes 9584else 9585 xorg_cv_cc_flag_unused_command_line_argument=no 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9588fi 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9592 CFLAGS="$xorg_testset_save_CFLAGS" 9593fi 9594 9595found="no" 9596 9597 if test $found = "no" ; then 9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9600 fi 9601 9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9604 fi 9605 9606 CFLAGS="$CFLAGS -Wwrite-strings" 9607 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9609$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9610 cacheid=xorg_cv_cc_flag__Wwrite_strings 9611 if eval \${$cacheid+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9615/* end confdefs.h. */ 9616int i; 9617int 9618main () 9619{ 9620 9621 ; 9622 return 0; 9623} 9624_ACEOF 9625if ac_fn_c_try_link "$LINENO"; then : 9626 eval $cacheid=yes 9627else 9628 eval $cacheid=no 9629fi 9630rm -f core conftest.err conftest.$ac_objext \ 9631 conftest$ac_exeext conftest.$ac_ext 9632fi 9633 9634 9635 CFLAGS="$xorg_testset_save_CFLAGS" 9636 9637 eval supported=\$$cacheid 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9639$as_echo "$supported" >&6; } 9640 if test "$supported" = "yes" ; then 9641 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9642 found="yes" 9643 fi 9644 fi 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660xorg_testset_save_CFLAGS="$CFLAGS" 9661 9662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9667 $as_echo_n "(cached) " >&6 9668else 9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9670/* end confdefs.h. */ 9671int i; 9672_ACEOF 9673if ac_fn_c_try_compile "$LINENO"; then : 9674 xorg_cv_cc_flag_unknown_warning_option=yes 9675else 9676 xorg_cv_cc_flag_unknown_warning_option=no 9677fi 9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9679fi 9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9683 CFLAGS="$xorg_testset_save_CFLAGS" 9684fi 9685 9686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9689 fi 9690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9694 $as_echo_n "(cached) " >&6 9695else 9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9697/* end confdefs.h. */ 9698int i; 9699_ACEOF 9700if ac_fn_c_try_compile "$LINENO"; then : 9701 xorg_cv_cc_flag_unused_command_line_argument=yes 9702else 9703 xorg_cv_cc_flag_unused_command_line_argument=no 9704fi 9705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9706fi 9707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9710 CFLAGS="$xorg_testset_save_CFLAGS" 9711fi 9712 9713found="no" 9714 9715 if test $found = "no" ; then 9716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9718 fi 9719 9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9722 fi 9723 9724 CFLAGS="$CFLAGS -Waddress" 9725 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9727$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9728 cacheid=xorg_cv_cc_flag__Waddress 9729 if eval \${$cacheid+:} false; then : 9730 $as_echo_n "(cached) " >&6 9731else 9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734int i; 9735int 9736main () 9737{ 9738 9739 ; 9740 return 0; 9741} 9742_ACEOF 9743if ac_fn_c_try_link "$LINENO"; then : 9744 eval $cacheid=yes 9745else 9746 eval $cacheid=no 9747fi 9748rm -f core conftest.err conftest.$ac_objext \ 9749 conftest$ac_exeext conftest.$ac_ext 9750fi 9751 9752 9753 CFLAGS="$xorg_testset_save_CFLAGS" 9754 9755 eval supported=\$$cacheid 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9757$as_echo "$supported" >&6; } 9758 if test "$supported" = "yes" ; then 9759 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9760 found="yes" 9761 fi 9762 fi 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778xorg_testset_save_CFLAGS="$CFLAGS" 9779 9780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9785 $as_echo_n "(cached) " >&6 9786else 9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9788/* end confdefs.h. */ 9789int i; 9790_ACEOF 9791if ac_fn_c_try_compile "$LINENO"; then : 9792 xorg_cv_cc_flag_unknown_warning_option=yes 9793else 9794 xorg_cv_cc_flag_unknown_warning_option=no 9795fi 9796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9797fi 9798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802fi 9803 9804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9807 fi 9808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9815/* end confdefs.h. */ 9816int i; 9817_ACEOF 9818if ac_fn_c_try_compile "$LINENO"; then : 9819 xorg_cv_cc_flag_unused_command_line_argument=yes 9820else 9821 xorg_cv_cc_flag_unused_command_line_argument=no 9822fi 9823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9824fi 9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9828 CFLAGS="$xorg_testset_save_CFLAGS" 9829fi 9830 9831found="no" 9832 9833 if test $found = "no" ; then 9834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9836 fi 9837 9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9840 fi 9841 9842 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9843 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9845$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9846 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9847 if eval \${$cacheid+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852int i; 9853int 9854main () 9855{ 9856 9857 ; 9858 return 0; 9859} 9860_ACEOF 9861if ac_fn_c_try_link "$LINENO"; then : 9862 eval $cacheid=yes 9863else 9864 eval $cacheid=no 9865fi 9866rm -f core conftest.err conftest.$ac_objext \ 9867 conftest$ac_exeext conftest.$ac_ext 9868fi 9869 9870 9871 CFLAGS="$xorg_testset_save_CFLAGS" 9872 9873 eval supported=\$$cacheid 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9875$as_echo "$supported" >&6; } 9876 if test "$supported" = "yes" ; then 9877 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9878 found="yes" 9879 fi 9880 fi 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896xorg_testset_save_CFLAGS="$CFLAGS" 9897 9898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9906/* end confdefs.h. */ 9907int i; 9908_ACEOF 9909if ac_fn_c_try_compile "$LINENO"; then : 9910 xorg_cv_cc_flag_unknown_warning_option=yes 9911else 9912 xorg_cv_cc_flag_unknown_warning_option=no 9913fi 9914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9915fi 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9919 CFLAGS="$xorg_testset_save_CFLAGS" 9920fi 9921 9922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9925 fi 9926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9930 $as_echo_n "(cached) " >&6 9931else 9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9933/* end confdefs.h. */ 9934int i; 9935_ACEOF 9936if ac_fn_c_try_compile "$LINENO"; then : 9937 xorg_cv_cc_flag_unused_command_line_argument=yes 9938else 9939 xorg_cv_cc_flag_unused_command_line_argument=no 9940fi 9941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9942fi 9943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9946 CFLAGS="$xorg_testset_save_CFLAGS" 9947fi 9948 9949found="no" 9950 9951 if test $found = "no" ; then 9952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9954 fi 9955 9956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9958 fi 9959 9960 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9961 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9963$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9964 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9965 if eval \${$cacheid+:} false; then : 9966 $as_echo_n "(cached) " >&6 9967else 9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9969/* end confdefs.h. */ 9970int i; 9971int 9972main () 9973{ 9974 9975 ; 9976 return 0; 9977} 9978_ACEOF 9979if ac_fn_c_try_link "$LINENO"; then : 9980 eval $cacheid=yes 9981else 9982 eval $cacheid=no 9983fi 9984rm -f core conftest.err conftest.$ac_objext \ 9985 conftest$ac_exeext conftest.$ac_ext 9986fi 9987 9988 9989 CFLAGS="$xorg_testset_save_CFLAGS" 9990 9991 eval supported=\$$cacheid 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9993$as_echo "$supported" >&6; } 9994 if test "$supported" = "yes" ; then 9995 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9996 found="yes" 9997 fi 9998 fi 9999 10000 10001fi 10002 10003 10004 10005 10006 10007 10008 10009 CWARNFLAGS="$BASE_CFLAGS" 10010 if test "x$GCC" = xyes ; then 10011 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10012 fi 10013 10014 10015 10016 10017 10018 10019 10020 10021# Check whether --enable-strict-compilation was given. 10022if test "${enable_strict_compilation+set}" = set; then : 10023 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10024else 10025 STRICT_COMPILE=no 10026fi 10027 10028 10029 10030 10031 10032 10033STRICT_CFLAGS="" 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047xorg_testset_save_CFLAGS="$CFLAGS" 10048 10049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055else 10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10057/* end confdefs.h. */ 10058int i; 10059_ACEOF 10060if ac_fn_c_try_compile "$LINENO"; then : 10061 xorg_cv_cc_flag_unknown_warning_option=yes 10062else 10063 xorg_cv_cc_flag_unknown_warning_option=no 10064fi 10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10066fi 10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10070 CFLAGS="$xorg_testset_save_CFLAGS" 10071fi 10072 10073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10076 fi 10077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10081 $as_echo_n "(cached) " >&6 10082else 10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10084/* end confdefs.h. */ 10085int i; 10086_ACEOF 10087if ac_fn_c_try_compile "$LINENO"; then : 10088 xorg_cv_cc_flag_unused_command_line_argument=yes 10089else 10090 xorg_cv_cc_flag_unused_command_line_argument=no 10091fi 10092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10093fi 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10097 CFLAGS="$xorg_testset_save_CFLAGS" 10098fi 10099 10100found="no" 10101 10102 if test $found = "no" ; then 10103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105 fi 10106 10107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10109 fi 10110 10111 CFLAGS="$CFLAGS -pedantic" 10112 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10114$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10115 cacheid=xorg_cv_cc_flag__pedantic 10116 if eval \${$cacheid+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120/* end confdefs.h. */ 10121int i; 10122int 10123main () 10124{ 10125 10126 ; 10127 return 0; 10128} 10129_ACEOF 10130if ac_fn_c_try_link "$LINENO"; then : 10131 eval $cacheid=yes 10132else 10133 eval $cacheid=no 10134fi 10135rm -f core conftest.err conftest.$ac_objext \ 10136 conftest$ac_exeext conftest.$ac_ext 10137fi 10138 10139 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141 10142 eval supported=\$$cacheid 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10144$as_echo "$supported" >&6; } 10145 if test "$supported" = "yes" ; then 10146 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10147 found="yes" 10148 fi 10149 fi 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165xorg_testset_save_CFLAGS="$CFLAGS" 10166 10167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10172 $as_echo_n "(cached) " >&6 10173else 10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10175/* end confdefs.h. */ 10176int i; 10177_ACEOF 10178if ac_fn_c_try_compile "$LINENO"; then : 10179 xorg_cv_cc_flag_unknown_warning_option=yes 10180else 10181 xorg_cv_cc_flag_unknown_warning_option=no 10182fi 10183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10184fi 10185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10188 CFLAGS="$xorg_testset_save_CFLAGS" 10189fi 10190 10191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10194 fi 10195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10199 $as_echo_n "(cached) " >&6 10200else 10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10202/* end confdefs.h. */ 10203int i; 10204_ACEOF 10205if ac_fn_c_try_compile "$LINENO"; then : 10206 xorg_cv_cc_flag_unused_command_line_argument=yes 10207else 10208 xorg_cv_cc_flag_unused_command_line_argument=no 10209fi 10210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10211fi 10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10215 CFLAGS="$xorg_testset_save_CFLAGS" 10216fi 10217 10218found="no" 10219 10220 if test $found = "no" ; then 10221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10223 fi 10224 10225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10227 fi 10228 10229 CFLAGS="$CFLAGS -Werror" 10230 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10232$as_echo_n "checking if $CC supports -Werror... " >&6; } 10233 cacheid=xorg_cv_cc_flag__Werror 10234 if eval \${$cacheid+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238/* end confdefs.h. */ 10239int i; 10240int 10241main () 10242{ 10243 10244 ; 10245 return 0; 10246} 10247_ACEOF 10248if ac_fn_c_try_link "$LINENO"; then : 10249 eval $cacheid=yes 10250else 10251 eval $cacheid=no 10252fi 10253rm -f core conftest.err conftest.$ac_objext \ 10254 conftest$ac_exeext conftest.$ac_ext 10255fi 10256 10257 10258 CFLAGS="$xorg_testset_save_CFLAGS" 10259 10260 eval supported=\$$cacheid 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10262$as_echo "$supported" >&6; } 10263 if test "$supported" = "yes" ; then 10264 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10265 found="yes" 10266 fi 10267 fi 10268 10269 if test $found = "no" ; then 10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10272 fi 10273 10274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10276 fi 10277 10278 CFLAGS="$CFLAGS -errwarn" 10279 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10281$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10282 cacheid=xorg_cv_cc_flag__errwarn 10283 if eval \${$cacheid+:} false; then : 10284 $as_echo_n "(cached) " >&6 10285else 10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288int i; 10289int 10290main () 10291{ 10292 10293 ; 10294 return 0; 10295} 10296_ACEOF 10297if ac_fn_c_try_link "$LINENO"; then : 10298 eval $cacheid=yes 10299else 10300 eval $cacheid=no 10301fi 10302rm -f core conftest.err conftest.$ac_objext \ 10303 conftest$ac_exeext conftest.$ac_ext 10304fi 10305 10306 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308 10309 eval supported=\$$cacheid 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10311$as_echo "$supported" >&6; } 10312 if test "$supported" = "yes" ; then 10313 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10314 found="yes" 10315 fi 10316 fi 10317 10318 10319 10320# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10321# activate it with -Werror, so we add it here explicitly. 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335xorg_testset_save_CFLAGS="$CFLAGS" 10336 10337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10342 $as_echo_n "(cached) " >&6 10343else 10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10345/* end confdefs.h. */ 10346int i; 10347_ACEOF 10348if ac_fn_c_try_compile "$LINENO"; then : 10349 xorg_cv_cc_flag_unknown_warning_option=yes 10350else 10351 xorg_cv_cc_flag_unknown_warning_option=no 10352fi 10353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10354fi 10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10358 CFLAGS="$xorg_testset_save_CFLAGS" 10359fi 10360 10361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10364 fi 10365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10369 $as_echo_n "(cached) " >&6 10370else 10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10372/* end confdefs.h. */ 10373int i; 10374_ACEOF 10375if ac_fn_c_try_compile "$LINENO"; then : 10376 xorg_cv_cc_flag_unused_command_line_argument=yes 10377else 10378 xorg_cv_cc_flag_unused_command_line_argument=no 10379fi 10380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10381fi 10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386fi 10387 10388found="no" 10389 10390 if test $found = "no" ; then 10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10393 fi 10394 10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10397 fi 10398 10399 CFLAGS="$CFLAGS -Werror=attributes" 10400 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10402$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10403 cacheid=xorg_cv_cc_flag__Werror_attributes 10404 if eval \${$cacheid+:} false; then : 10405 $as_echo_n "(cached) " >&6 10406else 10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10408/* end confdefs.h. */ 10409int i; 10410int 10411main () 10412{ 10413 10414 ; 10415 return 0; 10416} 10417_ACEOF 10418if ac_fn_c_try_link "$LINENO"; then : 10419 eval $cacheid=yes 10420else 10421 eval $cacheid=no 10422fi 10423rm -f core conftest.err conftest.$ac_objext \ 10424 conftest$ac_exeext conftest.$ac_ext 10425fi 10426 10427 10428 CFLAGS="$xorg_testset_save_CFLAGS" 10429 10430 eval supported=\$$cacheid 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10432$as_echo "$supported" >&6; } 10433 if test "$supported" = "yes" ; then 10434 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10435 found="yes" 10436 fi 10437 fi 10438 10439 10440 10441if test "x$STRICT_COMPILE" = "xyes"; then 10442 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10443 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10444fi 10445 10446 10447 10448 10449 10450 10451cat >>confdefs.h <<_ACEOF 10452#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10453_ACEOF 10454 10455 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10456 if test "x$PVM" = "x"; then 10457 PVM="0" 10458 fi 10459 10460cat >>confdefs.h <<_ACEOF 10461#define PACKAGE_VERSION_MINOR $PVM 10462_ACEOF 10463 10464 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10465 if test "x$PVP" = "x"; then 10466 PVP="0" 10467 fi 10468 10469cat >>confdefs.h <<_ACEOF 10470#define PACKAGE_VERSION_PATCHLEVEL $PVP 10471_ACEOF 10472 10473 10474 10475CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10476mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10477|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10478echo 'git directory not found: installing possibly empty changelog.' >&2)" 10479 10480 10481 10482 10483macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10484INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10485mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10486|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10487echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10488 10489 10490 10491 10492 10493 10494if test x$APP_MAN_SUFFIX = x ; then 10495 APP_MAN_SUFFIX=1 10496fi 10497if test x$APP_MAN_DIR = x ; then 10498 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10499fi 10500 10501if test x$LIB_MAN_SUFFIX = x ; then 10502 LIB_MAN_SUFFIX=3 10503fi 10504if test x$LIB_MAN_DIR = x ; then 10505 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10506fi 10507 10508if test x$FILE_MAN_SUFFIX = x ; then 10509 case $host_os in 10510 # Solaris 2.0 - 11 use SysV man page sections 10511 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10512 *) FILE_MAN_SUFFIX=5 ;; 10513 esac 10514fi 10515if test x$FILE_MAN_DIR = x ; then 10516 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10517fi 10518 10519if test x$MISC_MAN_SUFFIX = x ; then 10520 case $host_os in 10521 # Solaris 2.0 - 11 use SysV man page sections 10522 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10523 *) MISC_MAN_SUFFIX=7 ;; 10524 esac 10525fi 10526if test x$MISC_MAN_DIR = x ; then 10527 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10528fi 10529 10530if test x$DRIVER_MAN_SUFFIX = x ; then 10531 case $host_os in 10532 # Solaris 2.0 - 11 use SysV man page sections 10533 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10534 *) DRIVER_MAN_SUFFIX=4 ;; 10535 esac 10536fi 10537if test x$DRIVER_MAN_DIR = x ; then 10538 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10539fi 10540 10541if test x$ADMIN_MAN_SUFFIX = x ; then 10542 case $host_os in 10543 # Solaris 2.0 - 11 use SysV man page sections 10544 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10545 *) ADMIN_MAN_SUFFIX=8 ;; 10546 esac 10547fi 10548if test x$ADMIN_MAN_DIR = x ; then 10549 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10550fi 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566XORG_MAN_PAGE="X Version 11" 10567 10568MAN_SUBSTS="\ 10569 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10570 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10571 -e 's|__xservername__|Xorg|g' \ 10572 -e 's|__xconfigfile__|xorg.conf|g' \ 10573 -e 's|__projectroot__|\$(prefix)|g' \ 10574 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10575 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10576 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10577 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10578 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10579 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10580 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10581 10582 10583 10584# Check whether --enable-silent-rules was given. 10585if test "${enable_silent_rules+set}" = set; then : 10586 enableval=$enable_silent_rules; 10587fi 10588 10589case $enable_silent_rules in # ((( 10590 yes) AM_DEFAULT_VERBOSITY=0;; 10591 no) AM_DEFAULT_VERBOSITY=1;; 10592 *) AM_DEFAULT_VERBOSITY=0;; 10593esac 10594am_make=${MAKE-make} 10595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10596$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10597if ${am_cv_make_support_nested_variables+:} false; then : 10598 $as_echo_n "(cached) " >&6 10599else 10600 if $as_echo 'TRUE=$(BAR$(V)) 10601BAR0=false 10602BAR1=true 10603V=1 10604am__doit: 10605 @$(TRUE) 10606.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10607 am_cv_make_support_nested_variables=yes 10608else 10609 am_cv_make_support_nested_variables=no 10610fi 10611fi 10612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10613$as_echo "$am_cv_make_support_nested_variables" >&6; } 10614if test $am_cv_make_support_nested_variables = yes; then 10615 AM_V='$(V)' 10616 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10617else 10618 AM_V=$AM_DEFAULT_VERBOSITY 10619 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10620fi 10621AM_BACKSLASH='\' 10622 10623 10624 10625# Base set of required pkg-config packages 10626XLOGO_DEPS="sm xaw7 xmu xt >= 1.0 xext x11" 10627 10628# Use render & xft2 to draw logo? 10629 10630 10631# Check whether --with-render was given. 10632if test "${with_render+set}" = set; then : 10633 withval=$with_render; USE_RENDER="$withval" 10634else 10635 USE_RENDER="try" 10636fi 10637 10638 10639if test "x$USE_RENDER" = "xtry" ; then 10640 if test -n "$PKG_CONFIG" && \ 10641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5 10642 ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5 10643 ac_status=$? 10644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10645 test $ac_status = 0; }; then 10646 USE_RENDER="yes" 10647else 10648 USE_RENDER="no" 10649fi 10650fi 10651 10652if test "x$USE_RENDER" = "xyes" ; then 10653 XLOGO_DEPS="xft xrender $XLOGO_DEPS" 10654 10655 10656$as_echo "#define XRENDER 1" >>confdefs.h 10657 10658fi 10659 if test "x$USE_RENDER" = "xyes"; then 10660 USE_RENDER_TRUE= 10661 USE_RENDER_FALSE='#' 10662else 10663 USE_RENDER_TRUE='#' 10664 USE_RENDER_FALSE= 10665fi 10666 10667 10668 10669pkg_failed=no 10670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLOGO" >&5 10671$as_echo_n "checking for XLOGO... " >&6; } 10672 10673if test -n "$XLOGO_CFLAGS"; then 10674 pkg_cv_XLOGO_CFLAGS="$XLOGO_CFLAGS" 10675 elif test -n "$PKG_CONFIG"; then 10676 if test -n "$PKG_CONFIG" && \ 10677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5 10678 ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5 10679 ac_status=$? 10680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10681 test $ac_status = 0; }; then 10682 pkg_cv_XLOGO_CFLAGS=`$PKG_CONFIG --cflags "$XLOGO_DEPS" 2>/dev/null` 10683 test "x$?" != "x0" && pkg_failed=yes 10684else 10685 pkg_failed=yes 10686fi 10687 else 10688 pkg_failed=untried 10689fi 10690if test -n "$XLOGO_LIBS"; then 10691 pkg_cv_XLOGO_LIBS="$XLOGO_LIBS" 10692 elif test -n "$PKG_CONFIG"; then 10693 if test -n "$PKG_CONFIG" && \ 10694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5 10695 ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5 10696 ac_status=$? 10697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10698 test $ac_status = 0; }; then 10699 pkg_cv_XLOGO_LIBS=`$PKG_CONFIG --libs "$XLOGO_DEPS" 2>/dev/null` 10700 test "x$?" != "x0" && pkg_failed=yes 10701else 10702 pkg_failed=yes 10703fi 10704 else 10705 pkg_failed=untried 10706fi 10707 10708 10709 10710if test $pkg_failed = yes; then 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10712$as_echo "no" >&6; } 10713 10714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10715 _pkg_short_errors_supported=yes 10716else 10717 _pkg_short_errors_supported=no 10718fi 10719 if test $_pkg_short_errors_supported = yes; then 10720 XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1` 10721 else 10722 XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1` 10723 fi 10724 # Put the nasty error message in config.log where it belongs 10725 echo "$XLOGO_PKG_ERRORS" >&5 10726 10727 as_fn_error $? "Package requirements ($XLOGO_DEPS) were not met: 10728 10729$XLOGO_PKG_ERRORS 10730 10731Consider adjusting the PKG_CONFIG_PATH environment variable if you 10732installed software in a non-standard prefix. 10733 10734Alternatively, you may set the environment variables XLOGO_CFLAGS 10735and XLOGO_LIBS to avoid the need to call pkg-config. 10736See the pkg-config man page for more details." "$LINENO" 5 10737elif test $pkg_failed = untried; then 10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10739$as_echo "no" >&6; } 10740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10742as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10743is in your PATH or set the PKG_CONFIG environment variable to the full 10744path to pkg-config. 10745 10746Alternatively, you may set the environment variables XLOGO_CFLAGS 10747and XLOGO_LIBS to avoid the need to call pkg-config. 10748See the pkg-config man page for more details. 10749 10750To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10751See \`config.log' for more details" "$LINENO" 5; } 10752else 10753 XLOGO_CFLAGS=$pkg_cv_XLOGO_CFLAGS 10754 XLOGO_LIBS=$pkg_cv_XLOGO_LIBS 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10756$as_echo "yes" >&6; } 10757 10758fi 10759 10760 10761pkg_failed=no 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 10763$as_echo_n "checking for APPDEFS... " >&6; } 10764 10765if test -n "$APPDEFS_CFLAGS"; then 10766 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 10767 elif test -n "$PKG_CONFIG"; then 10768 if test -n "$PKG_CONFIG" && \ 10769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10770 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10771 ac_status=$? 10772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10773 test $ac_status = 0; }; then 10774 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 10775 test "x$?" != "x0" && pkg_failed=yes 10776else 10777 pkg_failed=yes 10778fi 10779 else 10780 pkg_failed=untried 10781fi 10782if test -n "$APPDEFS_LIBS"; then 10783 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 10784 elif test -n "$PKG_CONFIG"; then 10785 if test -n "$PKG_CONFIG" && \ 10786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10787 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10788 ac_status=$? 10789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10790 test $ac_status = 0; }; then 10791 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 10792 test "x$?" != "x0" && pkg_failed=yes 10793else 10794 pkg_failed=yes 10795fi 10796 else 10797 pkg_failed=untried 10798fi 10799 10800 10801 10802if test $pkg_failed = yes; then 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10804$as_echo "no" >&6; } 10805 10806if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10807 _pkg_short_errors_supported=yes 10808else 10809 _pkg_short_errors_supported=no 10810fi 10811 if test $_pkg_short_errors_supported = yes; then 10812 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 10813 else 10814 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 10815 fi 10816 # Put the nasty error message in config.log where it belongs 10817 echo "$APPDEFS_PKG_ERRORS" >&5 10818 10819 as_fn_error $? "Package requirements (xt) were not met: 10820 10821$APPDEFS_PKG_ERRORS 10822 10823Consider adjusting the PKG_CONFIG_PATH environment variable if you 10824installed software in a non-standard prefix. 10825 10826Alternatively, you may set the environment variables APPDEFS_CFLAGS 10827and APPDEFS_LIBS to avoid the need to call pkg-config. 10828See the pkg-config man page for more details." "$LINENO" 5 10829elif test $pkg_failed = untried; then 10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10831$as_echo "no" >&6; } 10832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10834as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10835is in your PATH or set the PKG_CONFIG environment variable to the full 10836path to pkg-config. 10837 10838Alternatively, you may set the environment variables APPDEFS_CFLAGS 10839and APPDEFS_LIBS to avoid the need to call pkg-config. 10840See the pkg-config man page for more details. 10841 10842To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10843See \`config.log' for more details" "$LINENO" 5; } 10844else 10845 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 10846 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10848$as_echo "yes" >&6; } 10849 10850fi 10851xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10852 10853# Check whether --with-appdefaultdir was given. 10854if test "${with_appdefaultdir+set}" = set; then : 10855 withval=$with_appdefaultdir; appdefaultdir="$withval" 10856else 10857 appdefaultdir="${xt_appdefaultdir}" 10858fi 10859 10860 10861 10862ac_config_files="$ac_config_files Makefile man/Makefile" 10863 10864cat >confcache <<\_ACEOF 10865# This file is a shell script that caches the results of configure 10866# tests run on this system so they can be shared between configure 10867# scripts and configure runs, see configure's option --config-cache. 10868# It is not useful on other systems. If it contains results you don't 10869# want to keep, you may remove or edit it. 10870# 10871# config.status only pays attention to the cache file if you give it 10872# the --recheck option to rerun configure. 10873# 10874# `ac_cv_env_foo' variables (set or unset) will be overridden when 10875# loading this file, other *unset* `ac_cv_foo' will be assigned the 10876# following values. 10877 10878_ACEOF 10879 10880# The following way of writing the cache mishandles newlines in values, 10881# but we know of no workaround that is simple, portable, and efficient. 10882# So, we kill variables containing newlines. 10883# Ultrix sh set writes to stderr and can't be redirected directly, 10884# and sets the high bit in the cache file unless we assign to the vars. 10885( 10886 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10887 eval ac_val=\$$ac_var 10888 case $ac_val in #( 10889 *${as_nl}*) 10890 case $ac_var in #( 10891 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10892$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10893 esac 10894 case $ac_var in #( 10895 _ | IFS | as_nl) ;; #( 10896 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10897 *) { eval $ac_var=; unset $ac_var;} ;; 10898 esac ;; 10899 esac 10900 done 10901 10902 (set) 2>&1 | 10903 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10904 *${as_nl}ac_space=\ *) 10905 # `set' does not quote correctly, so add quotes: double-quote 10906 # substitution turns \\\\ into \\, and sed turns \\ into \. 10907 sed -n \ 10908 "s/'/'\\\\''/g; 10909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10910 ;; #( 10911 *) 10912 # `set' quotes correctly as required by POSIX, so do not add quotes. 10913 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10914 ;; 10915 esac | 10916 sort 10917) | 10918 sed ' 10919 /^ac_cv_env_/b end 10920 t clear 10921 :clear 10922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10923 t end 10924 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10925 :end' >>confcache 10926if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10927 if test -w "$cache_file"; then 10928 if test "x$cache_file" != "x/dev/null"; then 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10930$as_echo "$as_me: updating cache $cache_file" >&6;} 10931 if test ! -f "$cache_file" || test -h "$cache_file"; then 10932 cat confcache >"$cache_file" 10933 else 10934 case $cache_file in #( 10935 */* | ?:*) 10936 mv -f confcache "$cache_file"$$ && 10937 mv -f "$cache_file"$$ "$cache_file" ;; #( 10938 *) 10939 mv -f confcache "$cache_file" ;; 10940 esac 10941 fi 10942 fi 10943 else 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10945$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10946 fi 10947fi 10948rm -f confcache 10949 10950test "x$prefix" = xNONE && prefix=$ac_default_prefix 10951# Let make expand exec_prefix. 10952test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10953 10954DEFS=-DHAVE_CONFIG_H 10955 10956ac_libobjs= 10957ac_ltlibobjs= 10958U= 10959for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10960 # 1. Remove the extension, and $U if already installed. 10961 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10962 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10963 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10964 # will be set to the directory where LIBOBJS objects are built. 10965 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10966 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10967done 10968LIBOBJS=$ac_libobjs 10969 10970LTLIBOBJS=$ac_ltlibobjs 10971 10972 10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10974$as_echo_n "checking that generated files are newer than configure... " >&6; } 10975 if test -n "$am_sleep_pid"; then 10976 # Hide warnings about reused PIDs. 10977 wait $am_sleep_pid 2>/dev/null 10978 fi 10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10980$as_echo "done" >&6; } 10981 if test -n "$EXEEXT"; then 10982 am__EXEEXT_TRUE= 10983 am__EXEEXT_FALSE='#' 10984else 10985 am__EXEEXT_TRUE='#' 10986 am__EXEEXT_FALSE= 10987fi 10988 10989if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10990 as_fn_error $? "conditional \"AMDEP\" was never defined. 10991Usually this means the macro was only invoked conditionally." "$LINENO" 5 10992fi 10993if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10994 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10995Usually this means the macro was only invoked conditionally." "$LINENO" 5 10996fi 10997if test -z "${USE_RENDER_TRUE}" && test -z "${USE_RENDER_FALSE}"; then 10998 as_fn_error $? "conditional \"USE_RENDER\" was never defined. 10999Usually this means the macro was only invoked conditionally." "$LINENO" 5 11000fi 11001 11002: "${CONFIG_STATUS=./config.status}" 11003ac_write_fail=0 11004ac_clean_files_save=$ac_clean_files 11005ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11006{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11007$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11008as_write_fail=0 11009cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11010#! $SHELL 11011# Generated by $as_me. 11012# Run this file to recreate the current configuration. 11013# Compiler output produced by configure, useful for debugging 11014# configure, is in config.log if it exists. 11015 11016debug=false 11017ac_cs_recheck=false 11018ac_cs_silent=false 11019 11020SHELL=\${CONFIG_SHELL-$SHELL} 11021export SHELL 11022_ASEOF 11023cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11024## -------------------- ## 11025## M4sh Initialization. ## 11026## -------------------- ## 11027 11028# Be more Bourne compatible 11029DUALCASE=1; export DUALCASE # for MKS sh 11030if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11031 emulate sh 11032 NULLCMD=: 11033 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11034 # is contrary to our usage. Disable this feature. 11035 alias -g '${1+"$@"}'='"$@"' 11036 setopt NO_GLOB_SUBST 11037else 11038 case `(set -o) 2>/dev/null` in #( 11039 *posix*) : 11040 set -o posix ;; #( 11041 *) : 11042 ;; 11043esac 11044fi 11045 11046 11047as_nl=' 11048' 11049export as_nl 11050# Printing a long string crashes Solaris 7 /usr/bin/printf. 11051as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11052as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11053as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11054# Prefer a ksh shell builtin over an external printf program on Solaris, 11055# but without wasting forks for bash or zsh. 11056if test -z "$BASH_VERSION$ZSH_VERSION" \ 11057 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11058 as_echo='print -r --' 11059 as_echo_n='print -rn --' 11060elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11061 as_echo='printf %s\n' 11062 as_echo_n='printf %s' 11063else 11064 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11065 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11066 as_echo_n='/usr/ucb/echo -n' 11067 else 11068 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11069 as_echo_n_body='eval 11070 arg=$1; 11071 case $arg in #( 11072 *"$as_nl"*) 11073 expr "X$arg" : "X\\(.*\\)$as_nl"; 11074 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11075 esac; 11076 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11077 ' 11078 export as_echo_n_body 11079 as_echo_n='sh -c $as_echo_n_body as_echo' 11080 fi 11081 export as_echo_body 11082 as_echo='sh -c $as_echo_body as_echo' 11083fi 11084 11085# The user is always right. 11086if test "${PATH_SEPARATOR+set}" != set; then 11087 PATH_SEPARATOR=: 11088 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11089 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11090 PATH_SEPARATOR=';' 11091 } 11092fi 11093 11094 11095# IFS 11096# We need space, tab and new line, in precisely that order. Quoting is 11097# there to prevent editors from complaining about space-tab. 11098# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11099# splitting by setting IFS to empty value.) 11100IFS=" "" $as_nl" 11101 11102# Find who we are. Look in the path if we contain no directory separator. 11103as_myself= 11104case $0 in #(( 11105 *[\\/]* ) as_myself=$0 ;; 11106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11107for as_dir in $PATH 11108do 11109 IFS=$as_save_IFS 11110 test -z "$as_dir" && as_dir=. 11111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11112 done 11113IFS=$as_save_IFS 11114 11115 ;; 11116esac 11117# We did not find ourselves, most probably we were run as `sh COMMAND' 11118# in which case we are not to be found in the path. 11119if test "x$as_myself" = x; then 11120 as_myself=$0 11121fi 11122if test ! -f "$as_myself"; then 11123 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11124 exit 1 11125fi 11126 11127# Unset variables that we do not need and which cause bugs (e.g. in 11128# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11129# suppresses any "Segmentation fault" message there. '((' could 11130# trigger a bug in pdksh 5.2.14. 11131for as_var in BASH_ENV ENV MAIL MAILPATH 11132do eval test x\${$as_var+set} = xset \ 11133 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11134done 11135PS1='$ ' 11136PS2='> ' 11137PS4='+ ' 11138 11139# NLS nuisances. 11140LC_ALL=C 11141export LC_ALL 11142LANGUAGE=C 11143export LANGUAGE 11144 11145# CDPATH. 11146(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11147 11148 11149# as_fn_error STATUS ERROR [LINENO LOG_FD] 11150# ---------------------------------------- 11151# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11152# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11153# script with STATUS, using 1 if that was 0. 11154as_fn_error () 11155{ 11156 as_status=$1; test $as_status -eq 0 && as_status=1 11157 if test "$4"; then 11158 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11159 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11160 fi 11161 $as_echo "$as_me: error: $2" >&2 11162 as_fn_exit $as_status 11163} # as_fn_error 11164 11165 11166# as_fn_set_status STATUS 11167# ----------------------- 11168# Set $? to STATUS, without forking. 11169as_fn_set_status () 11170{ 11171 return $1 11172} # as_fn_set_status 11173 11174# as_fn_exit STATUS 11175# ----------------- 11176# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11177as_fn_exit () 11178{ 11179 set +e 11180 as_fn_set_status $1 11181 exit $1 11182} # as_fn_exit 11183 11184# as_fn_unset VAR 11185# --------------- 11186# Portably unset VAR. 11187as_fn_unset () 11188{ 11189 { eval $1=; unset $1;} 11190} 11191as_unset=as_fn_unset 11192# as_fn_append VAR VALUE 11193# ---------------------- 11194# Append the text in VALUE to the end of the definition contained in VAR. Take 11195# advantage of any shell optimizations that allow amortized linear growth over 11196# repeated appends, instead of the typical quadratic growth present in naive 11197# implementations. 11198if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11199 eval 'as_fn_append () 11200 { 11201 eval $1+=\$2 11202 }' 11203else 11204 as_fn_append () 11205 { 11206 eval $1=\$$1\$2 11207 } 11208fi # as_fn_append 11209 11210# as_fn_arith ARG... 11211# ------------------ 11212# Perform arithmetic evaluation on the ARGs, and store the result in the 11213# global $as_val. Take advantage of shells that can avoid forks. The arguments 11214# must be portable across $(()) and expr. 11215if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11216 eval 'as_fn_arith () 11217 { 11218 as_val=$(( $* )) 11219 }' 11220else 11221 as_fn_arith () 11222 { 11223 as_val=`expr "$@" || test $? -eq 1` 11224 } 11225fi # as_fn_arith 11226 11227 11228if expr a : '\(a\)' >/dev/null 2>&1 && 11229 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11230 as_expr=expr 11231else 11232 as_expr=false 11233fi 11234 11235if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11236 as_basename=basename 11237else 11238 as_basename=false 11239fi 11240 11241if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11242 as_dirname=dirname 11243else 11244 as_dirname=false 11245fi 11246 11247as_me=`$as_basename -- "$0" || 11248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11249 X"$0" : 'X\(//\)$' \| \ 11250 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11251$as_echo X/"$0" | 11252 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11253 s//\1/ 11254 q 11255 } 11256 /^X\/\(\/\/\)$/{ 11257 s//\1/ 11258 q 11259 } 11260 /^X\/\(\/\).*/{ 11261 s//\1/ 11262 q 11263 } 11264 s/.*/./; q'` 11265 11266# Avoid depending upon Character Ranges. 11267as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11268as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11269as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11270as_cr_digits='0123456789' 11271as_cr_alnum=$as_cr_Letters$as_cr_digits 11272 11273ECHO_C= ECHO_N= ECHO_T= 11274case `echo -n x` in #((((( 11275-n*) 11276 case `echo 'xy\c'` in 11277 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11278 xy) ECHO_C='\c';; 11279 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11280 ECHO_T=' ';; 11281 esac;; 11282*) 11283 ECHO_N='-n';; 11284esac 11285 11286rm -f conf$$ conf$$.exe conf$$.file 11287if test -d conf$$.dir; then 11288 rm -f conf$$.dir/conf$$.file 11289else 11290 rm -f conf$$.dir 11291 mkdir conf$$.dir 2>/dev/null 11292fi 11293if (echo >conf$$.file) 2>/dev/null; then 11294 if ln -s conf$$.file conf$$ 2>/dev/null; then 11295 as_ln_s='ln -s' 11296 # ... but there are two gotchas: 11297 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11298 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11299 # In both cases, we have to default to `cp -pR'. 11300 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11301 as_ln_s='cp -pR' 11302 elif ln conf$$.file conf$$ 2>/dev/null; then 11303 as_ln_s=ln 11304 else 11305 as_ln_s='cp -pR' 11306 fi 11307else 11308 as_ln_s='cp -pR' 11309fi 11310rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11311rmdir conf$$.dir 2>/dev/null 11312 11313 11314# as_fn_mkdir_p 11315# ------------- 11316# Create "$as_dir" as a directory, including parents if necessary. 11317as_fn_mkdir_p () 11318{ 11319 11320 case $as_dir in #( 11321 -*) as_dir=./$as_dir;; 11322 esac 11323 test -d "$as_dir" || eval $as_mkdir_p || { 11324 as_dirs= 11325 while :; do 11326 case $as_dir in #( 11327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11328 *) as_qdir=$as_dir;; 11329 esac 11330 as_dirs="'$as_qdir' $as_dirs" 11331 as_dir=`$as_dirname -- "$as_dir" || 11332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11333 X"$as_dir" : 'X\(//\)[^/]' \| \ 11334 X"$as_dir" : 'X\(//\)$' \| \ 11335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11336$as_echo X"$as_dir" | 11337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11338 s//\1/ 11339 q 11340 } 11341 /^X\(\/\/\)[^/].*/{ 11342 s//\1/ 11343 q 11344 } 11345 /^X\(\/\/\)$/{ 11346 s//\1/ 11347 q 11348 } 11349 /^X\(\/\).*/{ 11350 s//\1/ 11351 q 11352 } 11353 s/.*/./; q'` 11354 test -d "$as_dir" && break 11355 done 11356 test -z "$as_dirs" || eval "mkdir $as_dirs" 11357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11358 11359 11360} # as_fn_mkdir_p 11361if mkdir -p . 2>/dev/null; then 11362 as_mkdir_p='mkdir -p "$as_dir"' 11363else 11364 test -d ./-p && rmdir ./-p 11365 as_mkdir_p=false 11366fi 11367 11368 11369# as_fn_executable_p FILE 11370# ----------------------- 11371# Test if FILE is an executable regular file. 11372as_fn_executable_p () 11373{ 11374 test -f "$1" && test -x "$1" 11375} # as_fn_executable_p 11376as_test_x='test -x' 11377as_executable_p=as_fn_executable_p 11378 11379# Sed expression to map a string onto a valid CPP name. 11380as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11381 11382# Sed expression to map a string onto a valid variable name. 11383as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11384 11385 11386exec 6>&1 11387## ----------------------------------- ## 11388## Main body of $CONFIG_STATUS script. ## 11389## ----------------------------------- ## 11390_ASEOF 11391test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11392 11393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11394# Save the log message, to keep $0 and so on meaningful, and to 11395# report actual input values of CONFIG_FILES etc. instead of their 11396# values after options handling. 11397ac_log=" 11398This file was extended by xlogo $as_me 1.0.5, which was 11399generated by GNU Autoconf 2.69. Invocation command line was 11400 11401 CONFIG_FILES = $CONFIG_FILES 11402 CONFIG_HEADERS = $CONFIG_HEADERS 11403 CONFIG_LINKS = $CONFIG_LINKS 11404 CONFIG_COMMANDS = $CONFIG_COMMANDS 11405 $ $0 $@ 11406 11407on `(hostname || uname -n) 2>/dev/null | sed 1q` 11408" 11409 11410_ACEOF 11411 11412case $ac_config_files in *" 11413"*) set x $ac_config_files; shift; ac_config_files=$*;; 11414esac 11415 11416case $ac_config_headers in *" 11417"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11418esac 11419 11420 11421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11422# Files that config.status was made for. 11423config_files="$ac_config_files" 11424config_headers="$ac_config_headers" 11425config_commands="$ac_config_commands" 11426 11427_ACEOF 11428 11429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11430ac_cs_usage="\ 11431\`$as_me' instantiates files and other configuration actions 11432from templates according to the current configuration. Unless the files 11433and actions are specified as TAGs, all are instantiated by default. 11434 11435Usage: $0 [OPTION]... [TAG]... 11436 11437 -h, --help print this help, then exit 11438 -V, --version print version number and configuration settings, then exit 11439 --config print configuration, then exit 11440 -q, --quiet, --silent 11441 do not print progress messages 11442 -d, --debug don't remove temporary files 11443 --recheck update $as_me by reconfiguring in the same conditions 11444 --file=FILE[:TEMPLATE] 11445 instantiate the configuration file FILE 11446 --header=FILE[:TEMPLATE] 11447 instantiate the configuration header FILE 11448 11449Configuration files: 11450$config_files 11451 11452Configuration headers: 11453$config_headers 11454 11455Configuration commands: 11456$config_commands 11457 11458Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/issues>." 11459 11460_ACEOF 11461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11462ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11463ac_cs_version="\\ 11464xlogo config.status 1.0.5 11465configured by $0, generated by GNU Autoconf 2.69, 11466 with options \\"\$ac_cs_config\\" 11467 11468Copyright (C) 2012 Free Software Foundation, Inc. 11469This config.status script is free software; the Free Software Foundation 11470gives unlimited permission to copy, distribute and modify it." 11471 11472ac_pwd='$ac_pwd' 11473srcdir='$srcdir' 11474INSTALL='$INSTALL' 11475MKDIR_P='$MKDIR_P' 11476AWK='$AWK' 11477test -n "\$AWK" || AWK=awk 11478_ACEOF 11479 11480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11481# The default lists apply if the user does not specify any file. 11482ac_need_defaults=: 11483while test $# != 0 11484do 11485 case $1 in 11486 --*=?*) 11487 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11488 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11489 ac_shift=: 11490 ;; 11491 --*=) 11492 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11493 ac_optarg= 11494 ac_shift=: 11495 ;; 11496 *) 11497 ac_option=$1 11498 ac_optarg=$2 11499 ac_shift=shift 11500 ;; 11501 esac 11502 11503 case $ac_option in 11504 # Handling of the options. 11505 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11506 ac_cs_recheck=: ;; 11507 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11508 $as_echo "$ac_cs_version"; exit ;; 11509 --config | --confi | --conf | --con | --co | --c ) 11510 $as_echo "$ac_cs_config"; exit ;; 11511 --debug | --debu | --deb | --de | --d | -d ) 11512 debug=: ;; 11513 --file | --fil | --fi | --f ) 11514 $ac_shift 11515 case $ac_optarg in 11516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11517 '') as_fn_error $? "missing file argument" ;; 11518 esac 11519 as_fn_append CONFIG_FILES " '$ac_optarg'" 11520 ac_need_defaults=false;; 11521 --header | --heade | --head | --hea ) 11522 $ac_shift 11523 case $ac_optarg in 11524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11525 esac 11526 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11527 ac_need_defaults=false;; 11528 --he | --h) 11529 # Conflict between --help and --header 11530 as_fn_error $? "ambiguous option: \`$1' 11531Try \`$0 --help' for more information.";; 11532 --help | --hel | -h ) 11533 $as_echo "$ac_cs_usage"; exit ;; 11534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11535 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11536 ac_cs_silent=: ;; 11537 11538 # This is an error. 11539 -*) as_fn_error $? "unrecognized option: \`$1' 11540Try \`$0 --help' for more information." ;; 11541 11542 *) as_fn_append ac_config_targets " $1" 11543 ac_need_defaults=false ;; 11544 11545 esac 11546 shift 11547done 11548 11549ac_configure_extra_args= 11550 11551if $ac_cs_silent; then 11552 exec 6>/dev/null 11553 ac_configure_extra_args="$ac_configure_extra_args --silent" 11554fi 11555 11556_ACEOF 11557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11558if \$ac_cs_recheck; then 11559 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11560 shift 11561 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11562 CONFIG_SHELL='$SHELL' 11563 export CONFIG_SHELL 11564 exec "\$@" 11565fi 11566 11567_ACEOF 11568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11569exec 5>>config.log 11570{ 11571 echo 11572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11573## Running $as_me. ## 11574_ASBOX 11575 $as_echo "$ac_log" 11576} >&5 11577 11578_ACEOF 11579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11580# 11581# INIT-COMMANDS 11582# 11583AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11584 11585_ACEOF 11586 11587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11588 11589# Handling of arguments. 11590for ac_config_target in $ac_config_targets 11591do 11592 case $ac_config_target in 11593 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11594 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11595 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11596 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11597 11598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11599 esac 11600done 11601 11602 11603# If the user did not use the arguments to specify the items to instantiate, 11604# then the envvar interface is used. Set only those that are not. 11605# We use the long form for the default assignment because of an extremely 11606# bizarre bug on SunOS 4.1.3. 11607if $ac_need_defaults; then 11608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11609 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11611fi 11612 11613# Have a temporary directory for convenience. Make it in the build tree 11614# simply because there is no reason against having it here, and in addition, 11615# creating and moving files from /tmp can sometimes cause problems. 11616# Hook for its removal unless debugging. 11617# Note that there is a small window in which the directory will not be cleaned: 11618# after its creation but before its name has been assigned to `$tmp'. 11619$debug || 11620{ 11621 tmp= ac_tmp= 11622 trap 'exit_status=$? 11623 : "${ac_tmp:=$tmp}" 11624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11625' 0 11626 trap 'as_fn_exit 1' 1 2 13 15 11627} 11628# Create a (secure) tmp directory for tmp files. 11629 11630{ 11631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11632 test -d "$tmp" 11633} || 11634{ 11635 tmp=./conf$$-$RANDOM 11636 (umask 077 && mkdir "$tmp") 11637} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11638ac_tmp=$tmp 11639 11640# Set up the scripts for CONFIG_FILES section. 11641# No need to generate them if there are no CONFIG_FILES. 11642# This happens for instance with `./config.status config.h'. 11643if test -n "$CONFIG_FILES"; then 11644 11645 11646ac_cr=`echo X | tr X '\015'` 11647# On cygwin, bash can eat \r inside `` if the user requested igncr. 11648# But we know of no other shell where ac_cr would be empty at this 11649# point, so we can use a bashism as a fallback. 11650if test "x$ac_cr" = x; then 11651 eval ac_cr=\$\'\\r\' 11652fi 11653ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11654if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11655 ac_cs_awk_cr='\\r' 11656else 11657 ac_cs_awk_cr=$ac_cr 11658fi 11659 11660echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11661_ACEOF 11662 11663 11664{ 11665 echo "cat >conf$$subs.awk <<_ACEOF" && 11666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11667 echo "_ACEOF" 11668} >conf$$subs.sh || 11669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11670ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11671ac_delim='%!_!# ' 11672for ac_last_try in false false false false false :; do 11673 . ./conf$$subs.sh || 11674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11675 11676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11677 if test $ac_delim_n = $ac_delim_num; then 11678 break 11679 elif $ac_last_try; then 11680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11681 else 11682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11683 fi 11684done 11685rm -f conf$$subs.sh 11686 11687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11688cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11689_ACEOF 11690sed -n ' 11691h 11692s/^/S["/; s/!.*/"]=/ 11693p 11694g 11695s/^[^!]*!// 11696:repl 11697t repl 11698s/'"$ac_delim"'$// 11699t delim 11700:nl 11701h 11702s/\(.\{148\}\)..*/\1/ 11703t more1 11704s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11705p 11706n 11707b repl 11708:more1 11709s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11710p 11711g 11712s/.\{148\}// 11713t nl 11714:delim 11715h 11716s/\(.\{148\}\)..*/\1/ 11717t more2 11718s/["\\]/\\&/g; s/^/"/; s/$/"/ 11719p 11720b 11721:more2 11722s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11723p 11724g 11725s/.\{148\}// 11726t delim 11727' <conf$$subs.awk | sed ' 11728/^[^""]/{ 11729 N 11730 s/\n// 11731} 11732' >>$CONFIG_STATUS || ac_write_fail=1 11733rm -f conf$$subs.awk 11734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11735_ACAWK 11736cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11737 for (key in S) S_is_set[key] = 1 11738 FS = "" 11739 11740} 11741{ 11742 line = $ 0 11743 nfields = split(line, field, "@") 11744 substed = 0 11745 len = length(field[1]) 11746 for (i = 2; i < nfields; i++) { 11747 key = field[i] 11748 keylen = length(key) 11749 if (S_is_set[key]) { 11750 value = S[key] 11751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11752 len += length(value) + length(field[++i]) 11753 substed = 1 11754 } else 11755 len += 1 + keylen 11756 } 11757 11758 print line 11759} 11760 11761_ACAWK 11762_ACEOF 11763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11764if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11765 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11766else 11767 cat 11768fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11769 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11770_ACEOF 11771 11772# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11773# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11774# trailing colons and then remove the whole line if VPATH becomes empty 11775# (actually we leave an empty line to preserve line numbers). 11776if test "x$srcdir" = x.; then 11777 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11778h 11779s/// 11780s/^/:/ 11781s/[ ]*$/:/ 11782s/:\$(srcdir):/:/g 11783s/:\${srcdir}:/:/g 11784s/:@srcdir@:/:/g 11785s/^:*// 11786s/:*$// 11787x 11788s/\(=[ ]*\).*/\1/ 11789G 11790s/\n// 11791s/^[^=]*=[ ]*$// 11792}' 11793fi 11794 11795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11796fi # test -n "$CONFIG_FILES" 11797 11798# Set up the scripts for CONFIG_HEADERS section. 11799# No need to generate them if there are no CONFIG_HEADERS. 11800# This happens for instance with `./config.status Makefile'. 11801if test -n "$CONFIG_HEADERS"; then 11802cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11803BEGIN { 11804_ACEOF 11805 11806# Transform confdefs.h into an awk script `defines.awk', embedded as 11807# here-document in config.status, that substitutes the proper values into 11808# config.h.in to produce config.h. 11809 11810# Create a delimiter string that does not exist in confdefs.h, to ease 11811# handling of long lines. 11812ac_delim='%!_!# ' 11813for ac_last_try in false false :; do 11814 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11815 if test -z "$ac_tt"; then 11816 break 11817 elif $ac_last_try; then 11818 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11819 else 11820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11821 fi 11822done 11823 11824# For the awk script, D is an array of macro values keyed by name, 11825# likewise P contains macro parameters if any. Preserve backslash 11826# newline sequences. 11827 11828ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11829sed -n ' 11830s/.\{148\}/&'"$ac_delim"'/g 11831t rset 11832:rset 11833s/^[ ]*#[ ]*define[ ][ ]*/ / 11834t def 11835d 11836:def 11837s/\\$// 11838t bsnl 11839s/["\\]/\\&/g 11840s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11841D["\1"]=" \3"/p 11842s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11843d 11844:bsnl 11845s/["\\]/\\&/g 11846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11847D["\1"]=" \3\\\\\\n"\\/p 11848t cont 11849s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11850t cont 11851d 11852:cont 11853n 11854s/.\{148\}/&'"$ac_delim"'/g 11855t clear 11856:clear 11857s/\\$// 11858t bsnlc 11859s/["\\]/\\&/g; s/^/"/; s/$/"/p 11860d 11861:bsnlc 11862s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11863b cont 11864' <confdefs.h | sed ' 11865s/'"$ac_delim"'/"\\\ 11866"/g' >>$CONFIG_STATUS || ac_write_fail=1 11867 11868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11869 for (key in D) D_is_set[key] = 1 11870 FS = "" 11871} 11872/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11873 line = \$ 0 11874 split(line, arg, " ") 11875 if (arg[1] == "#") { 11876 defundef = arg[2] 11877 mac1 = arg[3] 11878 } else { 11879 defundef = substr(arg[1], 2) 11880 mac1 = arg[2] 11881 } 11882 split(mac1, mac2, "(") #) 11883 macro = mac2[1] 11884 prefix = substr(line, 1, index(line, defundef) - 1) 11885 if (D_is_set[macro]) { 11886 # Preserve the white space surrounding the "#". 11887 print prefix "define", macro P[macro] D[macro] 11888 next 11889 } else { 11890 # Replace #undef with comments. This is necessary, for example, 11891 # in the case of _POSIX_SOURCE, which is predefined and required 11892 # on some systems where configure will not decide to define it. 11893 if (defundef == "undef") { 11894 print "/*", prefix defundef, macro, "*/" 11895 next 11896 } 11897 } 11898} 11899{ print } 11900_ACAWK 11901_ACEOF 11902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11903 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11904fi # test -n "$CONFIG_HEADERS" 11905 11906 11907eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11908shift 11909for ac_tag 11910do 11911 case $ac_tag in 11912 :[FHLC]) ac_mode=$ac_tag; continue;; 11913 esac 11914 case $ac_mode$ac_tag in 11915 :[FHL]*:*);; 11916 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11917 :[FH]-) ac_tag=-:-;; 11918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11919 esac 11920 ac_save_IFS=$IFS 11921 IFS=: 11922 set x $ac_tag 11923 IFS=$ac_save_IFS 11924 shift 11925 ac_file=$1 11926 shift 11927 11928 case $ac_mode in 11929 :L) ac_source=$1;; 11930 :[FH]) 11931 ac_file_inputs= 11932 for ac_f 11933 do 11934 case $ac_f in 11935 -) ac_f="$ac_tmp/stdin";; 11936 *) # Look for the file first in the build tree, then in the source tree 11937 # (if the path is not absolute). The absolute path cannot be DOS-style, 11938 # because $ac_f cannot contain `:'. 11939 test -f "$ac_f" || 11940 case $ac_f in 11941 [\\/$]*) false;; 11942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11943 esac || 11944 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11945 esac 11946 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11947 as_fn_append ac_file_inputs " '$ac_f'" 11948 done 11949 11950 # Let's still pretend it is `configure' which instantiates (i.e., don't 11951 # use $as_me), people would be surprised to read: 11952 # /* config.h. Generated by config.status. */ 11953 configure_input='Generated from '` 11954 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11955 `' by configure.' 11956 if test x"$ac_file" != x-; then 11957 configure_input="$ac_file. $configure_input" 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11959$as_echo "$as_me: creating $ac_file" >&6;} 11960 fi 11961 # Neutralize special characters interpreted by sed in replacement strings. 11962 case $configure_input in #( 11963 *\&* | *\|* | *\\* ) 11964 ac_sed_conf_input=`$as_echo "$configure_input" | 11965 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11966 *) ac_sed_conf_input=$configure_input;; 11967 esac 11968 11969 case $ac_tag in 11970 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11972 esac 11973 ;; 11974 esac 11975 11976 ac_dir=`$as_dirname -- "$ac_file" || 11977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11978 X"$ac_file" : 'X\(//\)[^/]' \| \ 11979 X"$ac_file" : 'X\(//\)$' \| \ 11980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11981$as_echo X"$ac_file" | 11982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11983 s//\1/ 11984 q 11985 } 11986 /^X\(\/\/\)[^/].*/{ 11987 s//\1/ 11988 q 11989 } 11990 /^X\(\/\/\)$/{ 11991 s//\1/ 11992 q 11993 } 11994 /^X\(\/\).*/{ 11995 s//\1/ 11996 q 11997 } 11998 s/.*/./; q'` 11999 as_dir="$ac_dir"; as_fn_mkdir_p 12000 ac_builddir=. 12001 12002case "$ac_dir" in 12003.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12004*) 12005 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12006 # A ".." for each directory in $ac_dir_suffix. 12007 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12008 case $ac_top_builddir_sub in 12009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12011 esac ;; 12012esac 12013ac_abs_top_builddir=$ac_pwd 12014ac_abs_builddir=$ac_pwd$ac_dir_suffix 12015# for backward compatibility: 12016ac_top_builddir=$ac_top_build_prefix 12017 12018case $srcdir in 12019 .) # We are building in place. 12020 ac_srcdir=. 12021 ac_top_srcdir=$ac_top_builddir_sub 12022 ac_abs_top_srcdir=$ac_pwd ;; 12023 [\\/]* | ?:[\\/]* ) # Absolute name. 12024 ac_srcdir=$srcdir$ac_dir_suffix; 12025 ac_top_srcdir=$srcdir 12026 ac_abs_top_srcdir=$srcdir ;; 12027 *) # Relative name. 12028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12029 ac_top_srcdir=$ac_top_build_prefix$srcdir 12030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12031esac 12032ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12033 12034 12035 case $ac_mode in 12036 :F) 12037 # 12038 # CONFIG_FILE 12039 # 12040 12041 case $INSTALL in 12042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12044 esac 12045 ac_MKDIR_P=$MKDIR_P 12046 case $MKDIR_P in 12047 [\\/$]* | ?:[\\/]* ) ;; 12048 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12049 esac 12050_ACEOF 12051 12052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12053# If the template does not know about datarootdir, expand it. 12054# FIXME: This hack should be removed a few years after 2.60. 12055ac_datarootdir_hack=; ac_datarootdir_seen= 12056ac_sed_dataroot=' 12057/datarootdir/ { 12058 p 12059 q 12060} 12061/@datadir@/p 12062/@docdir@/p 12063/@infodir@/p 12064/@localedir@/p 12065/@mandir@/p' 12066case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12067*datarootdir*) ac_datarootdir_seen=yes;; 12068*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12070$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12071_ACEOF 12072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12073 ac_datarootdir_hack=' 12074 s&@datadir@&$datadir&g 12075 s&@docdir@&$docdir&g 12076 s&@infodir@&$infodir&g 12077 s&@localedir@&$localedir&g 12078 s&@mandir@&$mandir&g 12079 s&\\\${datarootdir}&$datarootdir&g' ;; 12080esac 12081_ACEOF 12082 12083# Neutralize VPATH when `$srcdir' = `.'. 12084# Shell code in configure.ac might set extrasub. 12085# FIXME: do we really want to maintain this feature? 12086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12087ac_sed_extra="$ac_vpsub 12088$extrasub 12089_ACEOF 12090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12091:t 12092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12093s|@configure_input@|$ac_sed_conf_input|;t t 12094s&@top_builddir@&$ac_top_builddir_sub&;t t 12095s&@top_build_prefix@&$ac_top_build_prefix&;t t 12096s&@srcdir@&$ac_srcdir&;t t 12097s&@abs_srcdir@&$ac_abs_srcdir&;t t 12098s&@top_srcdir@&$ac_top_srcdir&;t t 12099s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12100s&@builddir@&$ac_builddir&;t t 12101s&@abs_builddir@&$ac_abs_builddir&;t t 12102s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12103s&@INSTALL@&$ac_INSTALL&;t t 12104s&@MKDIR_P@&$ac_MKDIR_P&;t t 12105$ac_datarootdir_hack 12106" 12107eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12108 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12109 12110test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12111 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12113 "$ac_tmp/out"`; test -z "$ac_out"; } && 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12115which seems to be undefined. Please make sure it is defined" >&5 12116$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12117which seems to be undefined. Please make sure it is defined" >&2;} 12118 12119 rm -f "$ac_tmp/stdin" 12120 case $ac_file in 12121 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12122 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12123 esac \ 12124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12125 ;; 12126 :H) 12127 # 12128 # CONFIG_HEADER 12129 # 12130 if test x"$ac_file" != x-; then 12131 { 12132 $as_echo "/* $configure_input */" \ 12133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12134 } >"$ac_tmp/config.h" \ 12135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12136 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12138$as_echo "$as_me: $ac_file is unchanged" >&6;} 12139 else 12140 rm -f "$ac_file" 12141 mv "$ac_tmp/config.h" "$ac_file" \ 12142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12143 fi 12144 else 12145 $as_echo "/* $configure_input */" \ 12146 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12147 || as_fn_error $? "could not create -" "$LINENO" 5 12148 fi 12149# Compute "$ac_file"'s index in $config_headers. 12150_am_arg="$ac_file" 12151_am_stamp_count=1 12152for _am_header in $config_headers :; do 12153 case $_am_header in 12154 $_am_arg | $_am_arg:* ) 12155 break ;; 12156 * ) 12157 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12158 esac 12159done 12160echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12161$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12162 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12163 X"$_am_arg" : 'X\(//\)$' \| \ 12164 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12165$as_echo X"$_am_arg" | 12166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12167 s//\1/ 12168 q 12169 } 12170 /^X\(\/\/\)[^/].*/{ 12171 s//\1/ 12172 q 12173 } 12174 /^X\(\/\/\)$/{ 12175 s//\1/ 12176 q 12177 } 12178 /^X\(\/\).*/{ 12179 s//\1/ 12180 q 12181 } 12182 s/.*/./; q'`/stamp-h$_am_stamp_count 12183 ;; 12184 12185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12186$as_echo "$as_me: executing $ac_file commands" >&6;} 12187 ;; 12188 esac 12189 12190 12191 case $ac_file$ac_mode in 12192 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12193 # Older Autoconf quotes --file arguments for eval, but not when files 12194 # are listed without --file. Let's play safe and only enable the eval 12195 # if we detect the quoting. 12196 case $CONFIG_FILES in 12197 *\'*) eval set x "$CONFIG_FILES" ;; 12198 *) set x $CONFIG_FILES ;; 12199 esac 12200 shift 12201 for mf 12202 do 12203 # Strip MF so we end up with the name of the file. 12204 mf=`echo "$mf" | sed -e 's/:.*$//'` 12205 # Check whether this is an Automake generated Makefile or not. 12206 # We used to match only the files named 'Makefile.in', but 12207 # some people rename them; so instead we look at the file content. 12208 # Grep'ing the first line is not enough: some people post-process 12209 # each Makefile.in and add a new line on top of each file to say so. 12210 # Grep'ing the whole file is not good either: AIX grep has a line 12211 # limit of 2048, but all sed's we know have understand at least 4000. 12212 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12213 dirpart=`$as_dirname -- "$mf" || 12214$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12215 X"$mf" : 'X\(//\)[^/]' \| \ 12216 X"$mf" : 'X\(//\)$' \| \ 12217 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12218$as_echo X"$mf" | 12219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12220 s//\1/ 12221 q 12222 } 12223 /^X\(\/\/\)[^/].*/{ 12224 s//\1/ 12225 q 12226 } 12227 /^X\(\/\/\)$/{ 12228 s//\1/ 12229 q 12230 } 12231 /^X\(\/\).*/{ 12232 s//\1/ 12233 q 12234 } 12235 s/.*/./; q'` 12236 else 12237 continue 12238 fi 12239 # Extract the definition of DEPDIR, am__include, and am__quote 12240 # from the Makefile without running 'make'. 12241 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12242 test -z "$DEPDIR" && continue 12243 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12244 test -z "$am__include" && continue 12245 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12246 # Find all dependency output files, they are included files with 12247 # $(DEPDIR) in their names. We invoke sed twice because it is the 12248 # simplest approach to changing $(DEPDIR) to its actual value in the 12249 # expansion. 12250 for file in `sed -n " 12251 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12252 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12253 # Make sure the directory exists. 12254 test -f "$dirpart/$file" && continue 12255 fdir=`$as_dirname -- "$file" || 12256$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12257 X"$file" : 'X\(//\)[^/]' \| \ 12258 X"$file" : 'X\(//\)$' \| \ 12259 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12260$as_echo X"$file" | 12261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12262 s//\1/ 12263 q 12264 } 12265 /^X\(\/\/\)[^/].*/{ 12266 s//\1/ 12267 q 12268 } 12269 /^X\(\/\/\)$/{ 12270 s//\1/ 12271 q 12272 } 12273 /^X\(\/\).*/{ 12274 s//\1/ 12275 q 12276 } 12277 s/.*/./; q'` 12278 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12279 # echo "creating $dirpart/$file" 12280 echo '# dummy' > "$dirpart/$file" 12281 done 12282 done 12283} 12284 ;; 12285 12286 esac 12287done # for ac_tag 12288 12289 12290as_fn_exit 0 12291_ACEOF 12292ac_clean_files=$ac_clean_files_save 12293 12294test $ac_write_fail = 0 || 12295 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12296 12297 12298# configure is writing to config.log, and then calls config.status. 12299# config.status does its own redirection, appending to config.log. 12300# Unfortunately, on DOS this fails, as config.log is still kept open 12301# by configure, so config.status won't be able to write to it; its 12302# output is simply discarded. So we exec the FD to /dev/null, 12303# effectively closing config.log, so it can be properly (re)opened and 12304# appended to by config.status. When coming back to configure, we 12305# need to make the FD available again. 12306if test "$no_create" != yes; then 12307 ac_cs_success=: 12308 ac_config_status_args= 12309 test "$silent" = yes && 12310 ac_config_status_args="$ac_config_status_args --quiet" 12311 exec 5>/dev/null 12312 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12313 exec 5>>config.log 12314 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12315 # would make configure fail if this is the last instruction. 12316 $ac_cs_success || as_fn_exit 1 12317fi 12318if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12320$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12321fi 12322 12323