configure revision 0c7e83b2
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xmag 1.0.6. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xmag' 583PACKAGE_TARNAME='xmag' 584PACKAGE_VERSION='1.0.6' 585PACKAGE_STRING='xmag 1.0.6' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630appdefaultdir 631XMAG_LIBS 632XMAG_CFLAGS 633MAN_SUBSTS 634XORG_MAN_PAGE 635ADMIN_MAN_DIR 636DRIVER_MAN_DIR 637MISC_MAN_DIR 638FILE_MAN_DIR 639LIB_MAN_DIR 640APP_MAN_DIR 641ADMIN_MAN_SUFFIX 642DRIVER_MAN_SUFFIX 643MISC_MAN_SUFFIX 644FILE_MAN_SUFFIX 645LIB_MAN_SUFFIX 646APP_MAN_SUFFIX 647SED 648host_os 649host_vendor 650host_cpu 651host 652build_os 653build_vendor 654build_cpu 655build 656INSTALL_CMD 657PKG_CONFIG 658CHANGELOG_CMD 659STRICT_CFLAGS 660CWARNFLAGS 661BASE_CFLAGS 662EGREP 663GREP 664CPP 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__quote 673am__include 674DEPDIR 675OBJEXT 676EXEEXT 677ac_ct_CC 678CPPFLAGS 679LDFLAGS 680CFLAGS 681CC 682AM_BACKSLASH 683AM_DEFAULT_VERBOSITY 684AM_DEFAULT_V 685AM_V 686am__untar 687am__tar 688AMTAR 689am__leading_dot 690SET_MAKE 691AWK 692mkdir_p 693MKDIR_P 694INSTALL_STRIP_PROGRAM 695STRIP 696install_sh 697MAKEINFO 698AUTOHEADER 699AUTOMAKE 700AUTOCONF 701ACLOCAL 702VERSION 703PACKAGE 704CYGPATH_W 705am__isrc 706INSTALL_DATA 707INSTALL_SCRIPT 708INSTALL_PROGRAM 709target_alias 710host_alias 711build_alias 712LIBS 713ECHO_T 714ECHO_N 715ECHO_C 716DEFS 717mandir 718localedir 719libdir 720psdir 721pdfdir 722dvidir 723htmldir 724infodir 725docdir 726oldincludedir 727includedir 728localstatedir 729sharedstatedir 730sysconfdir 731datadir 732datarootdir 733libexecdir 734sbindir 735bindir 736program_transform_name 737prefix 738exec_prefix 739PACKAGE_URL 740PACKAGE_BUGREPORT 741PACKAGE_STRING 742PACKAGE_VERSION 743PACKAGE_TARNAME 744PACKAGE_NAME 745PATH_SEPARATOR 746SHELL' 747ac_subst_files='' 748ac_user_opts=' 749enable_option_checking 750enable_silent_rules 751enable_dependency_tracking 752enable_selective_werror 753enable_strict_compilation 754with_appdefaultdir 755' 756 ac_precious_vars='build_alias 757host_alias 758target_alias 759CC 760CFLAGS 761LDFLAGS 762LIBS 763CPPFLAGS 764CPP 765PKG_CONFIG 766XMAG_CFLAGS 767XMAG_LIBS' 768 769 770# Initialize some variables set by options. 771ac_init_help= 772ac_init_version=false 773ac_unrecognized_opts= 774ac_unrecognized_sep= 775# The variables have the same names as the options, with 776# dashes changed to underlines. 777cache_file=/dev/null 778exec_prefix=NONE 779no_create= 780no_recursion= 781prefix=NONE 782program_prefix=NONE 783program_suffix=NONE 784program_transform_name=s,x,x, 785silent= 786site= 787srcdir= 788verbose= 789x_includes=NONE 790x_libraries=NONE 791 792# Installation directory options. 793# These are left unexpanded so users can "make install exec_prefix=/foo" 794# and all the variables that are supposed to be based on exec_prefix 795# by default will actually change. 796# Use braces instead of parens because sh, perl, etc. also accept them. 797# (The list follows the same order as the GNU Coding Standards.) 798bindir='${exec_prefix}/bin' 799sbindir='${exec_prefix}/sbin' 800libexecdir='${exec_prefix}/libexec' 801datarootdir='${prefix}/share' 802datadir='${datarootdir}' 803sysconfdir='${prefix}/etc' 804sharedstatedir='${prefix}/com' 805localstatedir='${prefix}/var' 806includedir='${prefix}/include' 807oldincludedir='/usr/include' 808docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 809infodir='${datarootdir}/info' 810htmldir='${docdir}' 811dvidir='${docdir}' 812pdfdir='${docdir}' 813psdir='${docdir}' 814libdir='${exec_prefix}/lib' 815localedir='${datarootdir}/locale' 816mandir='${datarootdir}/man' 817 818ac_prev= 819ac_dashdash= 820for ac_option 821do 822 # If the previous option needs an argument, assign it. 823 if test -n "$ac_prev"; then 824 eval $ac_prev=\$ac_option 825 ac_prev= 826 continue 827 fi 828 829 case $ac_option in 830 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 831 *=) ac_optarg= ;; 832 *) ac_optarg=yes ;; 833 esac 834 835 # Accept the important Cygnus configure options, so we can diagnose typos. 836 837 case $ac_dashdash$ac_option in 838 --) 839 ac_dashdash=yes ;; 840 841 -bindir | --bindir | --bindi | --bind | --bin | --bi) 842 ac_prev=bindir ;; 843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 844 bindir=$ac_optarg ;; 845 846 -build | --build | --buil | --bui | --bu) 847 ac_prev=build_alias ;; 848 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 849 build_alias=$ac_optarg ;; 850 851 -cache-file | --cache-file | --cache-fil | --cache-fi \ 852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 853 ac_prev=cache_file ;; 854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 856 cache_file=$ac_optarg ;; 857 858 --config-cache | -C) 859 cache_file=config.cache ;; 860 861 -datadir | --datadir | --datadi | --datad) 862 ac_prev=datadir ;; 863 -datadir=* | --datadir=* | --datadi=* | --datad=*) 864 datadir=$ac_optarg ;; 865 866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 867 | --dataroo | --dataro | --datar) 868 ac_prev=datarootdir ;; 869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 871 datarootdir=$ac_optarg ;; 872 873 -disable-* | --disable-*) 874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 875 # Reject names that are not valid shell variable names. 876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 877 as_fn_error $? "invalid feature name: $ac_useropt" 878 ac_useropt_orig=$ac_useropt 879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 880 case $ac_user_opts in 881 *" 882"enable_$ac_useropt" 883"*) ;; 884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 885 ac_unrecognized_sep=', ';; 886 esac 887 eval enable_$ac_useropt=no ;; 888 889 -docdir | --docdir | --docdi | --doc | --do) 890 ac_prev=docdir ;; 891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 892 docdir=$ac_optarg ;; 893 894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 895 ac_prev=dvidir ;; 896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 897 dvidir=$ac_optarg ;; 898 899 -enable-* | --enable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: $ac_useropt" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908"enable_$ac_useropt" 909"*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=\$ac_optarg ;; 914 915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 917 | --exec | --exe | --ex) 918 ac_prev=exec_prefix ;; 919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 921 | --exec=* | --exe=* | --ex=*) 922 exec_prefix=$ac_optarg ;; 923 924 -gas | --gas | --ga | --g) 925 # Obsolete; use --with-gas. 926 with_gas=yes ;; 927 928 -help | --help | --hel | --he | -h) 929 ac_init_help=long ;; 930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 931 ac_init_help=recursive ;; 932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 933 ac_init_help=short ;; 934 935 -host | --host | --hos | --ho) 936 ac_prev=host_alias ;; 937 -host=* | --host=* | --hos=* | --ho=*) 938 host_alias=$ac_optarg ;; 939 940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 941 ac_prev=htmldir ;; 942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 943 | --ht=*) 944 htmldir=$ac_optarg ;; 945 946 -includedir | --includedir | --includedi | --included | --include \ 947 | --includ | --inclu | --incl | --inc) 948 ac_prev=includedir ;; 949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 950 | --includ=* | --inclu=* | --incl=* | --inc=*) 951 includedir=$ac_optarg ;; 952 953 -infodir | --infodir | --infodi | --infod | --info | --inf) 954 ac_prev=infodir ;; 955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 956 infodir=$ac_optarg ;; 957 958 -libdir | --libdir | --libdi | --libd) 959 ac_prev=libdir ;; 960 -libdir=* | --libdir=* | --libdi=* | --libd=*) 961 libdir=$ac_optarg ;; 962 963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 964 | --libexe | --libex | --libe) 965 ac_prev=libexecdir ;; 966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 967 | --libexe=* | --libex=* | --libe=*) 968 libexecdir=$ac_optarg ;; 969 970 -localedir | --localedir | --localedi | --localed | --locale) 971 ac_prev=localedir ;; 972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 973 localedir=$ac_optarg ;; 974 975 -localstatedir | --localstatedir | --localstatedi | --localstated \ 976 | --localstate | --localstat | --localsta | --localst | --locals) 977 ac_prev=localstatedir ;; 978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 980 localstatedir=$ac_optarg ;; 981 982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 983 ac_prev=mandir ;; 984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 985 mandir=$ac_optarg ;; 986 987 -nfp | --nfp | --nf) 988 # Obsolete; use --without-fp. 989 with_fp=no ;; 990 991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 992 | --no-cr | --no-c | -n) 993 no_create=yes ;; 994 995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 997 no_recursion=yes ;; 998 999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1001 | --oldin | --oldi | --old | --ol | --o) 1002 ac_prev=oldincludedir ;; 1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1006 oldincludedir=$ac_optarg ;; 1007 1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1009 ac_prev=prefix ;; 1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1011 prefix=$ac_optarg ;; 1012 1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1014 | --program-pre | --program-pr | --program-p) 1015 ac_prev=program_prefix ;; 1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1018 program_prefix=$ac_optarg ;; 1019 1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1021 | --program-suf | --program-su | --program-s) 1022 ac_prev=program_suffix ;; 1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1025 program_suffix=$ac_optarg ;; 1026 1027 -program-transform-name | --program-transform-name \ 1028 | --program-transform-nam | --program-transform-na \ 1029 | --program-transform-n | --program-transform- \ 1030 | --program-transform | --program-transfor \ 1031 | --program-transfo | --program-transf \ 1032 | --program-trans | --program-tran \ 1033 | --progr-tra | --program-tr | --program-t) 1034 ac_prev=program_transform_name ;; 1035 -program-transform-name=* | --program-transform-name=* \ 1036 | --program-transform-nam=* | --program-transform-na=* \ 1037 | --program-transform-n=* | --program-transform-=* \ 1038 | --program-transform=* | --program-transfor=* \ 1039 | --program-transfo=* | --program-transf=* \ 1040 | --program-trans=* | --program-tran=* \ 1041 | --progr-tra=* | --program-tr=* | --program-t=*) 1042 program_transform_name=$ac_optarg ;; 1043 1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1045 ac_prev=pdfdir ;; 1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1047 pdfdir=$ac_optarg ;; 1048 1049 -psdir | --psdir | --psdi | --psd | --ps) 1050 ac_prev=psdir ;; 1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1052 psdir=$ac_optarg ;; 1053 1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1055 | -silent | --silent | --silen | --sile | --sil) 1056 silent=yes ;; 1057 1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1059 ac_prev=sbindir ;; 1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1061 | --sbi=* | --sb=*) 1062 sbindir=$ac_optarg ;; 1063 1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1066 | --sharedst | --shareds | --shared | --share | --shar \ 1067 | --sha | --sh) 1068 ac_prev=sharedstatedir ;; 1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1072 | --sha=* | --sh=*) 1073 sharedstatedir=$ac_optarg ;; 1074 1075 -site | --site | --sit) 1076 ac_prev=site ;; 1077 -site=* | --site=* | --sit=*) 1078 site=$ac_optarg ;; 1079 1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1081 ac_prev=srcdir ;; 1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1083 srcdir=$ac_optarg ;; 1084 1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1086 | --syscon | --sysco | --sysc | --sys | --sy) 1087 ac_prev=sysconfdir ;; 1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1090 sysconfdir=$ac_optarg ;; 1091 1092 -target | --target | --targe | --targ | --tar | --ta | --t) 1093 ac_prev=target_alias ;; 1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1095 target_alias=$ac_optarg ;; 1096 1097 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1098 verbose=yes ;; 1099 1100 -version | --version | --versio | --versi | --vers | -V) 1101 ac_init_version=: ;; 1102 1103 -with-* | --with-*) 1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1105 # Reject names that are not valid shell variable names. 1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1107 as_fn_error $? "invalid package name: $ac_useropt" 1108 ac_useropt_orig=$ac_useropt 1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1110 case $ac_user_opts in 1111 *" 1112"with_$ac_useropt" 1113"*) ;; 1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1115 ac_unrecognized_sep=', ';; 1116 esac 1117 eval with_$ac_useropt=\$ac_optarg ;; 1118 1119 -without-* | --without-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid package name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"with_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval with_$ac_useropt=no ;; 1134 1135 --x) 1136 # Obsolete; use --with-x. 1137 with_x=yes ;; 1138 1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1140 | --x-incl | --x-inc | --x-in | --x-i) 1141 ac_prev=x_includes ;; 1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1144 x_includes=$ac_optarg ;; 1145 1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1148 ac_prev=x_libraries ;; 1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1151 x_libraries=$ac_optarg ;; 1152 1153 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1154Try \`$0 --help' for more information" 1155 ;; 1156 1157 *=*) 1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1159 # Reject names that are not valid shell variable names. 1160 case $ac_envvar in #( 1161 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1162 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1163 esac 1164 eval $ac_envvar=\$ac_optarg 1165 export $ac_envvar ;; 1166 1167 *) 1168 # FIXME: should be removed in autoconf 3.0. 1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1173 ;; 1174 1175 esac 1176done 1177 1178if test -n "$ac_prev"; then 1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1180 as_fn_error $? "missing argument to $ac_option" 1181fi 1182 1183if test -n "$ac_unrecognized_opts"; then 1184 case $enable_option_checking in 1185 no) ;; 1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1188 esac 1189fi 1190 1191# Check all directory arguments for consistency. 1192for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1193 datadir sysconfdir sharedstatedir localstatedir includedir \ 1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1195 libdir localedir mandir 1196do 1197 eval ac_val=\$$ac_var 1198 # Remove trailing slashes. 1199 case $ac_val in 1200 */ ) 1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1202 eval $ac_var=\$ac_val;; 1203 esac 1204 # Be sure to have absolute directory names. 1205 case $ac_val in 1206 [\\/$]* | ?:[\\/]* ) continue;; 1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1208 esac 1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1210done 1211 1212# There might be people who depend on the old broken behavior: `$host' 1213# used to hold the argument of --host etc. 1214# FIXME: To remove some day. 1215build=$build_alias 1216host=$host_alias 1217target=$target_alias 1218 1219# FIXME: To remove some day. 1220if test "x$host_alias" != x; then 1221 if test "x$build_alias" = x; then 1222 cross_compiling=maybe 1223 elif test "x$build_alias" != "x$host_alias"; then 1224 cross_compiling=yes 1225 fi 1226fi 1227 1228ac_tool_prefix= 1229test -n "$host_alias" && ac_tool_prefix=$host_alias- 1230 1231test "$silent" = yes && exec 6>/dev/null 1232 1233 1234ac_pwd=`pwd` && test -n "$ac_pwd" && 1235ac_ls_di=`ls -di .` && 1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1237 as_fn_error $? "working directory cannot be determined" 1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1239 as_fn_error $? "pwd does not report name of working directory" 1240 1241 1242# Find the source files, if location was not specified. 1243if test -z "$srcdir"; then 1244 ac_srcdir_defaulted=yes 1245 # Try the directory containing this script, then the parent directory. 1246 ac_confdir=`$as_dirname -- "$as_myself" || 1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1248 X"$as_myself" : 'X\(//\)[^/]' \| \ 1249 X"$as_myself" : 'X\(//\)$' \| \ 1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1251$as_echo X"$as_myself" | 1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1253 s//\1/ 1254 q 1255 } 1256 /^X\(\/\/\)[^/].*/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\/\)$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\).*/{ 1265 s//\1/ 1266 q 1267 } 1268 s/.*/./; q'` 1269 srcdir=$ac_confdir 1270 if test ! -r "$srcdir/$ac_unique_file"; then 1271 srcdir=.. 1272 fi 1273else 1274 ac_srcdir_defaulted=no 1275fi 1276if test ! -r "$srcdir/$ac_unique_file"; then 1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1279fi 1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1281ac_abs_confdir=`( 1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1283 pwd)` 1284# When building in place, set srcdir=. 1285if test "$ac_abs_confdir" = "$ac_pwd"; then 1286 srcdir=. 1287fi 1288# Remove unnecessary trailing slashes from srcdir. 1289# Double slashes in file names in object file debugging info 1290# mess up M-x gdb in Emacs. 1291case $srcdir in 1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1293esac 1294for ac_var in $ac_precious_vars; do 1295 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_env_${ac_var}_value=\$${ac_var} 1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1299done 1300 1301# 1302# Report the --help message. 1303# 1304if test "$ac_init_help" = "long"; then 1305 # Omit some internal or obsolete options to make the list less imposing. 1306 # This message is too long to be a string in the A/UX 3.1 sh. 1307 cat <<_ACEOF 1308\`configure' configures xmag 1.0.6 to adapt to many kinds of systems. 1309 1310Usage: $0 [OPTION]... [VAR=VALUE]... 1311 1312To assign environment variables (e.g., CC, CFLAGS...), specify them as 1313VAR=VALUE. See below for descriptions of some of the useful variables. 1314 1315Defaults for the options are specified in brackets. 1316 1317Configuration: 1318 -h, --help display this help and exit 1319 --help=short display options specific to this package 1320 --help=recursive display the short help of all the included packages 1321 -V, --version display version information and exit 1322 -q, --quiet, --silent do not print \`checking ...' messages 1323 --cache-file=FILE cache test results in FILE [disabled] 1324 -C, --config-cache alias for \`--cache-file=config.cache' 1325 -n, --no-create do not create output files 1326 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1327 1328Installation directories: 1329 --prefix=PREFIX install architecture-independent files in PREFIX 1330 [$ac_default_prefix] 1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1332 [PREFIX] 1333 1334By default, \`make install' will install all the files in 1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1336an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1337for instance \`--prefix=\$HOME'. 1338 1339For better control, use the options below. 1340 1341Fine tuning of the installation directories: 1342 --bindir=DIR user executables [EPREFIX/bin] 1343 --sbindir=DIR system admin executables [EPREFIX/sbin] 1344 --libexecdir=DIR program executables [EPREFIX/libexec] 1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1348 --libdir=DIR object code libraries [EPREFIX/lib] 1349 --includedir=DIR C header files [PREFIX/include] 1350 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1353 --infodir=DIR info documentation [DATAROOTDIR/info] 1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1355 --mandir=DIR man documentation [DATAROOTDIR/man] 1356 --docdir=DIR documentation root [DATAROOTDIR/doc/xmag] 1357 --htmldir=DIR html documentation [DOCDIR] 1358 --dvidir=DIR dvi documentation [DOCDIR] 1359 --pdfdir=DIR pdf documentation [DOCDIR] 1360 --psdir=DIR ps documentation [DOCDIR] 1361_ACEOF 1362 1363 cat <<\_ACEOF 1364 1365Program names: 1366 --program-prefix=PREFIX prepend PREFIX to installed program names 1367 --program-suffix=SUFFIX append SUFFIX to installed program names 1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1369 1370System types: 1371 --build=BUILD configure for building on BUILD [guessed] 1372 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1373_ACEOF 1374fi 1375 1376if test -n "$ac_init_help"; then 1377 case $ac_init_help in 1378 short | recursive ) echo "Configuration of xmag 1.0.6:";; 1379 esac 1380 cat <<\_ACEOF 1381 1382Optional Features: 1383 --disable-option-checking ignore unrecognized --enable/--with options 1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1386 --enable-silent-rules less verbose build output (undo: "make V=1") 1387 --disable-silent-rules verbose build output (undo: "make V=0") 1388 --enable-dependency-tracking 1389 do not reject slow dependency extractors 1390 --disable-dependency-tracking 1391 speeds up one-time build 1392 --disable-selective-werror 1393 Turn off selective compiler errors. (default: 1394 enabled) 1395 --enable-strict-compilation 1396 Enable all warnings from compiler and make them 1397 errors (default: disabled) 1398 1399Optional Packages: 1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1402 --with-appdefaultdir=<pathname> 1403 specify directory for app-defaults files (default is 1404 autodetected) 1405 1406Some influential environment variables: 1407 CC C compiler command 1408 CFLAGS C compiler flags 1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1410 nonstandard directory <lib dir> 1411 LIBS libraries to pass to the linker, e.g. -l<library> 1412 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1413 you have headers in a nonstandard directory <include dir> 1414 CPP C preprocessor 1415 PKG_CONFIG path to pkg-config utility 1416 XMAG_CFLAGS C compiler flags for XMAG, overriding pkg-config 1417 XMAG_LIBS linker flags for XMAG, overriding pkg-config 1418 1419Use these variables to override the choices made by `configure' or to help 1420it to find libraries and programs with nonstandard names/locations. 1421 1422Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1423_ACEOF 1424ac_status=$? 1425fi 1426 1427if test "$ac_init_help" = "recursive"; then 1428 # If there are subdirs, report their specific --help. 1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1430 test -d "$ac_dir" || 1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1432 continue 1433 ac_builddir=. 1434 1435case "$ac_dir" in 1436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1437*) 1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1439 # A ".." for each directory in $ac_dir_suffix. 1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1441 case $ac_top_builddir_sub in 1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1444 esac ;; 1445esac 1446ac_abs_top_builddir=$ac_pwd 1447ac_abs_builddir=$ac_pwd$ac_dir_suffix 1448# for backward compatibility: 1449ac_top_builddir=$ac_top_build_prefix 1450 1451case $srcdir in 1452 .) # We are building in place. 1453 ac_srcdir=. 1454 ac_top_srcdir=$ac_top_builddir_sub 1455 ac_abs_top_srcdir=$ac_pwd ;; 1456 [\\/]* | ?:[\\/]* ) # Absolute name. 1457 ac_srcdir=$srcdir$ac_dir_suffix; 1458 ac_top_srcdir=$srcdir 1459 ac_abs_top_srcdir=$srcdir ;; 1460 *) # Relative name. 1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1462 ac_top_srcdir=$ac_top_build_prefix$srcdir 1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1464esac 1465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1466 1467 cd "$ac_dir" || { ac_status=$?; continue; } 1468 # Check for guested configure. 1469 if test -f "$ac_srcdir/configure.gnu"; then 1470 echo && 1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1472 elif test -f "$ac_srcdir/configure"; then 1473 echo && 1474 $SHELL "$ac_srcdir/configure" --help=recursive 1475 else 1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1477 fi || ac_status=$? 1478 cd "$ac_pwd" || { ac_status=$?; break; } 1479 done 1480fi 1481 1482test -n "$ac_init_help" && exit $ac_status 1483if $ac_init_version; then 1484 cat <<\_ACEOF 1485xmag configure 1.0.6 1486generated by GNU Autoconf 2.69 1487 1488Copyright (C) 2012 Free Software Foundation, Inc. 1489This configure script is free software; the Free Software Foundation 1490gives unlimited permission to copy, distribute and modify it. 1491_ACEOF 1492 exit 1493fi 1494 1495## ------------------------ ## 1496## Autoconf initialization. ## 1497## ------------------------ ## 1498 1499# ac_fn_c_try_compile LINENO 1500# -------------------------- 1501# Try to compile conftest.$ac_ext, and return whether this succeeded. 1502ac_fn_c_try_compile () 1503{ 1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1505 rm -f conftest.$ac_objext 1506 if { { ac_try="$ac_compile" 1507case "(($ac_try" in 1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1509 *) ac_try_echo=$ac_try;; 1510esac 1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1512$as_echo "$ac_try_echo"; } >&5 1513 (eval "$ac_compile") 2>conftest.err 1514 ac_status=$? 1515 if test -s conftest.err; then 1516 grep -v '^ *+' conftest.err >conftest.er1 1517 cat conftest.er1 >&5 1518 mv -f conftest.er1 conftest.err 1519 fi 1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1521 test $ac_status = 0; } && { 1522 test -z "$ac_c_werror_flag" || 1523 test ! -s conftest.err 1524 } && test -s conftest.$ac_objext; then : 1525 ac_retval=0 1526else 1527 $as_echo "$as_me: failed program was:" >&5 1528sed 's/^/| /' conftest.$ac_ext >&5 1529 1530 ac_retval=1 1531fi 1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1533 as_fn_set_status $ac_retval 1534 1535} # ac_fn_c_try_compile 1536 1537# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1538# --------------------------------------------- 1539# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1540# accordingly. 1541ac_fn_c_check_decl () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 as_decl_name=`echo $2|sed 's/ *(.*//'` 1545 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1547$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1548if eval \${$3+:} false; then : 1549 $as_echo_n "(cached) " >&6 1550else 1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1552/* end confdefs.h. */ 1553$4 1554int 1555main () 1556{ 1557#ifndef $as_decl_name 1558#ifdef __cplusplus 1559 (void) $as_decl_use; 1560#else 1561 (void) $as_decl_name; 1562#endif 1563#endif 1564 1565 ; 1566 return 0; 1567} 1568_ACEOF 1569if ac_fn_c_try_compile "$LINENO"; then : 1570 eval "$3=yes" 1571else 1572 eval "$3=no" 1573fi 1574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1575fi 1576eval ac_res=\$$3 1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1578$as_echo "$ac_res" >&6; } 1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1580 1581} # ac_fn_c_check_decl 1582 1583# ac_fn_c_try_cpp LINENO 1584# ---------------------- 1585# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1586ac_fn_c_try_cpp () 1587{ 1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1589 if { { ac_try="$ac_cpp conftest.$ac_ext" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } > conftest.i && { 1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 }; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1616 as_fn_set_status $ac_retval 1617 1618} # ac_fn_c_try_cpp 1619 1620# ac_fn_c_try_run LINENO 1621# ---------------------- 1622# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1623# that executables *can* be run. 1624ac_fn_c_try_run () 1625{ 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 if { { ac_try="$ac_link" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_link") 2>&5 1635 ac_status=$? 1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1638 { { case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_try") 2>&5 1645 ac_status=$? 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; }; }; then : 1648 ac_retval=0 1649else 1650 $as_echo "$as_me: program exited with status $ac_status" >&5 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=$ac_status 1655fi 1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1658 as_fn_set_status $ac_retval 1659 1660} # ac_fn_c_try_run 1661 1662# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1663# ------------------------------------------------------- 1664# Tests whether HEADER exists and can be compiled using the include files in 1665# INCLUDES, setting the cache variable VAR accordingly. 1666ac_fn_c_check_header_compile () 1667{ 1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1670$as_echo_n "checking for $2... " >&6; } 1671if eval \${$3+:} false; then : 1672 $as_echo_n "(cached) " >&6 1673else 1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675/* end confdefs.h. */ 1676$4 1677#include <$2> 1678_ACEOF 1679if ac_fn_c_try_compile "$LINENO"; then : 1680 eval "$3=yes" 1681else 1682 eval "$3=no" 1683fi 1684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1685fi 1686eval ac_res=\$$3 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1688$as_echo "$ac_res" >&6; } 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 1691} # ac_fn_c_check_header_compile 1692 1693# ac_fn_c_try_link LINENO 1694# ----------------------- 1695# Try to link conftest.$ac_ext, and return whether this succeeded. 1696ac_fn_c_try_link () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 rm -f conftest.$ac_objext conftest$ac_exeext 1700 if { { ac_try="$ac_link" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_link") 2>conftest.err 1708 ac_status=$? 1709 if test -s conftest.err; then 1710 grep -v '^ *+' conftest.err >conftest.er1 1711 cat conftest.er1 >&5 1712 mv -f conftest.er1 conftest.err 1713 fi 1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; } && { 1716 test -z "$ac_c_werror_flag" || 1717 test ! -s conftest.err 1718 } && test -s conftest$ac_exeext && { 1719 test "$cross_compiling" = yes || 1720 test -x conftest$ac_exeext 1721 }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1731 # interfere with the next link command; also delete a directory that is 1732 # left behind by Apple's compiler. We do this before executing the actions. 1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_link 1738 1739# ac_fn_c_check_func LINENO FUNC VAR 1740# ---------------------------------- 1741# Tests whether FUNC exists, setting the cache variable VAR accordingly 1742ac_fn_c_check_func () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1746$as_echo_n "checking for $2... " >&6; } 1747if eval \${$3+:} false; then : 1748 $as_echo_n "(cached) " >&6 1749else 1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1751/* end confdefs.h. */ 1752/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1753 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1754#define $2 innocuous_$2 1755 1756/* System header to define __stub macros and hopefully few prototypes, 1757 which can conflict with char $2 (); below. 1758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1759 <limits.h> exists even on freestanding compilers. */ 1760 1761#ifdef __STDC__ 1762# include <limits.h> 1763#else 1764# include <assert.h> 1765#endif 1766 1767#undef $2 1768 1769/* Override any GCC internal prototype to avoid an error. 1770 Use char because int might match the return type of a GCC 1771 builtin and then its argument prototype would still apply. */ 1772#ifdef __cplusplus 1773extern "C" 1774#endif 1775char $2 (); 1776/* The GNU C library defines this for functions which it implements 1777 to always fail with ENOSYS. Some functions are actually named 1778 something starting with __ and the normal name is an alias. */ 1779#if defined __stub_$2 || defined __stub___$2 1780choke me 1781#endif 1782 1783int 1784main () 1785{ 1786return $2 (); 1787 ; 1788 return 0; 1789} 1790_ACEOF 1791if ac_fn_c_try_link "$LINENO"; then : 1792 eval "$3=yes" 1793else 1794 eval "$3=no" 1795fi 1796rm -f core conftest.err conftest.$ac_objext \ 1797 conftest$ac_exeext conftest.$ac_ext 1798fi 1799eval ac_res=\$$3 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801$as_echo "$ac_res" >&6; } 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 1804} # ac_fn_c_check_func 1805cat >config.log <<_ACEOF 1806This file contains any messages produced by compilers while 1807running configure, to aid debugging if configure makes a mistake. 1808 1809It was created by xmag $as_me 1.0.6, which was 1810generated by GNU Autoconf 2.69. Invocation command line was 1811 1812 $ $0 $@ 1813 1814_ACEOF 1815exec 5>>config.log 1816{ 1817cat <<_ASUNAME 1818## --------- ## 1819## Platform. ## 1820## --------- ## 1821 1822hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1823uname -m = `(uname -m) 2>/dev/null || echo unknown` 1824uname -r = `(uname -r) 2>/dev/null || echo unknown` 1825uname -s = `(uname -s) 2>/dev/null || echo unknown` 1826uname -v = `(uname -v) 2>/dev/null || echo unknown` 1827 1828/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1829/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1830 1831/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1832/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1833/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1834/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1835/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1836/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1837/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1838 1839_ASUNAME 1840 1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1842for as_dir in $PATH 1843do 1844 IFS=$as_save_IFS 1845 test -z "$as_dir" && as_dir=. 1846 $as_echo "PATH: $as_dir" 1847 done 1848IFS=$as_save_IFS 1849 1850} >&5 1851 1852cat >&5 <<_ACEOF 1853 1854 1855## ----------- ## 1856## Core tests. ## 1857## ----------- ## 1858 1859_ACEOF 1860 1861 1862# Keep a trace of the command line. 1863# Strip out --no-create and --no-recursion so they do not pile up. 1864# Strip out --silent because we don't want to record it for future runs. 1865# Also quote any args containing shell meta-characters. 1866# Make two passes to allow for proper duplicate-argument suppression. 1867ac_configure_args= 1868ac_configure_args0= 1869ac_configure_args1= 1870ac_must_keep_next=false 1871for ac_pass in 1 2 1872do 1873 for ac_arg 1874 do 1875 case $ac_arg in 1876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1878 | -silent | --silent | --silen | --sile | --sil) 1879 continue ;; 1880 *\'*) 1881 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1882 esac 1883 case $ac_pass in 1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1885 2) 1886 as_fn_append ac_configure_args1 " '$ac_arg'" 1887 if test $ac_must_keep_next = true; then 1888 ac_must_keep_next=false # Got value, back to normal. 1889 else 1890 case $ac_arg in 1891 *=* | --config-cache | -C | -disable-* | --disable-* \ 1892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1894 | -with-* | --with-* | -without-* | --without-* | --x) 1895 case "$ac_configure_args0 " in 1896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1897 esac 1898 ;; 1899 -* ) ac_must_keep_next=true ;; 1900 esac 1901 fi 1902 as_fn_append ac_configure_args " '$ac_arg'" 1903 ;; 1904 esac 1905 done 1906done 1907{ ac_configure_args0=; unset ac_configure_args0;} 1908{ ac_configure_args1=; unset ac_configure_args1;} 1909 1910# When interrupted or exit'd, cleanup temporary files, and complete 1911# config.log. We remove comments because anyway the quotes in there 1912# would cause problems or look ugly. 1913# WARNING: Use '\'' to represent an apostrophe within the trap. 1914# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1915trap 'exit_status=$? 1916 # Save into config.log some information that might help in debugging. 1917 { 1918 echo 1919 1920 $as_echo "## ---------------- ## 1921## Cache variables. ## 1922## ---------------- ##" 1923 echo 1924 # The following way of writing the cache mishandles newlines in values, 1925( 1926 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1927 eval ac_val=\$$ac_var 1928 case $ac_val in #( 1929 *${as_nl}*) 1930 case $ac_var in #( 1931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1932$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1933 esac 1934 case $ac_var in #( 1935 _ | IFS | as_nl) ;; #( 1936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1937 *) { eval $ac_var=; unset $ac_var;} ;; 1938 esac ;; 1939 esac 1940 done 1941 (set) 2>&1 | 1942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1943 *${as_nl}ac_space=\ *) 1944 sed -n \ 1945 "s/'\''/'\''\\\\'\'''\''/g; 1946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1947 ;; #( 1948 *) 1949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1950 ;; 1951 esac | 1952 sort 1953) 1954 echo 1955 1956 $as_echo "## ----------------- ## 1957## Output variables. ## 1958## ----------------- ##" 1959 echo 1960 for ac_var in $ac_subst_vars 1961 do 1962 eval ac_val=\$$ac_var 1963 case $ac_val in 1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1965 esac 1966 $as_echo "$ac_var='\''$ac_val'\''" 1967 done | sort 1968 echo 1969 1970 if test -n "$ac_subst_files"; then 1971 $as_echo "## ------------------- ## 1972## File substitutions. ## 1973## ------------------- ##" 1974 echo 1975 for ac_var in $ac_subst_files 1976 do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in 1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1980 esac 1981 $as_echo "$ac_var='\''$ac_val'\''" 1982 done | sort 1983 echo 1984 fi 1985 1986 if test -s confdefs.h; then 1987 $as_echo "## ----------- ## 1988## confdefs.h. ## 1989## ----------- ##" 1990 echo 1991 cat confdefs.h 1992 echo 1993 fi 1994 test "$ac_signal" != 0 && 1995 $as_echo "$as_me: caught signal $ac_signal" 1996 $as_echo "$as_me: exit $exit_status" 1997 } >&5 1998 rm -f core *.core core.conftest.* && 1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2000 exit $exit_status 2001' 0 2002for ac_signal in 1 2 13 15; do 2003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2004done 2005ac_signal=0 2006 2007# confdefs.h avoids OS command line length limits that DEFS can exceed. 2008rm -f -r conftest* confdefs.h 2009 2010$as_echo "/* confdefs.h */" > confdefs.h 2011 2012# Predefined preprocessor variables. 2013 2014cat >>confdefs.h <<_ACEOF 2015#define PACKAGE_NAME "$PACKAGE_NAME" 2016_ACEOF 2017 2018cat >>confdefs.h <<_ACEOF 2019#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2020_ACEOF 2021 2022cat >>confdefs.h <<_ACEOF 2023#define PACKAGE_VERSION "$PACKAGE_VERSION" 2024_ACEOF 2025 2026cat >>confdefs.h <<_ACEOF 2027#define PACKAGE_STRING "$PACKAGE_STRING" 2028_ACEOF 2029 2030cat >>confdefs.h <<_ACEOF 2031#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2032_ACEOF 2033 2034cat >>confdefs.h <<_ACEOF 2035#define PACKAGE_URL "$PACKAGE_URL" 2036_ACEOF 2037 2038 2039# Let the site file select an alternate cache file if it wants to. 2040# Prefer an explicitly selected file to automatically selected ones. 2041ac_site_file1=NONE 2042ac_site_file2=NONE 2043if test -n "$CONFIG_SITE"; then 2044 # We do not want a PATH search for config.site. 2045 case $CONFIG_SITE in #(( 2046 -*) ac_site_file1=./$CONFIG_SITE;; 2047 */*) ac_site_file1=$CONFIG_SITE;; 2048 *) ac_site_file1=./$CONFIG_SITE;; 2049 esac 2050elif test "x$prefix" != xNONE; then 2051 ac_site_file1=$prefix/share/config.site 2052 ac_site_file2=$prefix/etc/config.site 2053else 2054 ac_site_file1=$ac_default_prefix/share/config.site 2055 ac_site_file2=$ac_default_prefix/etc/config.site 2056fi 2057for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2058do 2059 test "x$ac_site_file" = xNONE && continue 2060 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2062$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2063 sed 's/^/| /' "$ac_site_file" >&5 2064 . "$ac_site_file" \ 2065 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2067as_fn_error $? "failed to load site script $ac_site_file 2068See \`config.log' for more details" "$LINENO" 5; } 2069 fi 2070done 2071 2072if test -r "$cache_file"; then 2073 # Some versions of bash will fail to source /dev/null (special files 2074 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2075 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2077$as_echo "$as_me: loading cache $cache_file" >&6;} 2078 case $cache_file in 2079 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2080 *) . "./$cache_file";; 2081 esac 2082 fi 2083else 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2085$as_echo "$as_me: creating cache $cache_file" >&6;} 2086 >$cache_file 2087fi 2088 2089# Check that the precious variables saved in the cache have kept the same 2090# value. 2091ac_cache_corrupted=false 2092for ac_var in $ac_precious_vars; do 2093 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2094 eval ac_new_set=\$ac_env_${ac_var}_set 2095 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2096 eval ac_new_val=\$ac_env_${ac_var}_value 2097 case $ac_old_set,$ac_new_set in 2098 set,) 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2100$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2101 ac_cache_corrupted=: ;; 2102 ,set) 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2104$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2105 ac_cache_corrupted=: ;; 2106 ,);; 2107 *) 2108 if test "x$ac_old_val" != "x$ac_new_val"; then 2109 # differences in whitespace do not lead to failure. 2110 ac_old_val_w=`echo x $ac_old_val` 2111 ac_new_val_w=`echo x $ac_new_val` 2112 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2114$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2115 ac_cache_corrupted=: 2116 else 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2118$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2119 eval $ac_var=\$ac_old_val 2120 fi 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2122$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2124$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2125 fi;; 2126 esac 2127 # Pass precious variables to config.status. 2128 if test "$ac_new_set" = set; then 2129 case $ac_new_val in 2130 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2131 *) ac_arg=$ac_var=$ac_new_val ;; 2132 esac 2133 case " $ac_configure_args " in 2134 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2135 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2136 esac 2137 fi 2138done 2139if $ac_cache_corrupted; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2143$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2144 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2145fi 2146## -------------------- ## 2147## Main body of script. ## 2148## -------------------- ## 2149 2150ac_ext=c 2151ac_cpp='$CPP $CPPFLAGS' 2152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2154ac_compiler_gnu=$ac_cv_c_compiler_gnu 2155 2156 2157 2158ac_config_headers="$ac_config_headers config.h" 2159 2160 2161# Initialize Automake 2162am__api_version='1.15' 2163 2164ac_aux_dir= 2165for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2166 if test -f "$ac_dir/install-sh"; then 2167 ac_aux_dir=$ac_dir 2168 ac_install_sh="$ac_aux_dir/install-sh -c" 2169 break 2170 elif test -f "$ac_dir/install.sh"; then 2171 ac_aux_dir=$ac_dir 2172 ac_install_sh="$ac_aux_dir/install.sh -c" 2173 break 2174 elif test -f "$ac_dir/shtool"; then 2175 ac_aux_dir=$ac_dir 2176 ac_install_sh="$ac_aux_dir/shtool install -c" 2177 break 2178 fi 2179done 2180if test -z "$ac_aux_dir"; then 2181 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2182fi 2183 2184# These three variables are undocumented and unsupported, 2185# and are intended to be withdrawn in a future Autoconf release. 2186# They can cause serious problems if a builder's source tree is in a directory 2187# whose full name contains unusual characters. 2188ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2189ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2190ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2191 2192 2193# Find a good install program. We prefer a C program (faster), 2194# so one script is as good as another. But avoid the broken or 2195# incompatible versions: 2196# SysV /etc/install, /usr/sbin/install 2197# SunOS /usr/etc/install 2198# IRIX /sbin/install 2199# AIX /bin/install 2200# AmigaOS /C/install, which installs bootblocks on floppy discs 2201# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2202# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2203# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2204# OS/2's system install, which has a completely different semantic 2205# ./install, which can be erroneously created by make from ./install.sh. 2206# Reject install programs that cannot install multiple files. 2207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2208$as_echo_n "checking for a BSD-compatible install... " >&6; } 2209if test -z "$INSTALL"; then 2210if ${ac_cv_path_install+:} false; then : 2211 $as_echo_n "(cached) " >&6 2212else 2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2214for as_dir in $PATH 2215do 2216 IFS=$as_save_IFS 2217 test -z "$as_dir" && as_dir=. 2218 # Account for people who put trailing slashes in PATH elements. 2219case $as_dir/ in #(( 2220 ./ | .// | /[cC]/* | \ 2221 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2222 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2223 /usr/ucb/* ) ;; 2224 *) 2225 # OSF1 and SCO ODT 3.0 have their own names for install. 2226 # Don't use installbsd from OSF since it installs stuff as root 2227 # by default. 2228 for ac_prog in ginstall scoinst install; do 2229 for ac_exec_ext in '' $ac_executable_extensions; do 2230 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2231 if test $ac_prog = install && 2232 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2233 # AIX install. It has an incompatible calling convention. 2234 : 2235 elif test $ac_prog = install && 2236 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2237 # program-specific install script used by HP pwplus--don't use. 2238 : 2239 else 2240 rm -rf conftest.one conftest.two conftest.dir 2241 echo one > conftest.one 2242 echo two > conftest.two 2243 mkdir conftest.dir 2244 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2245 test -s conftest.one && test -s conftest.two && 2246 test -s conftest.dir/conftest.one && 2247 test -s conftest.dir/conftest.two 2248 then 2249 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2250 break 3 2251 fi 2252 fi 2253 fi 2254 done 2255 done 2256 ;; 2257esac 2258 2259 done 2260IFS=$as_save_IFS 2261 2262rm -rf conftest.one conftest.two conftest.dir 2263 2264fi 2265 if test "${ac_cv_path_install+set}" = set; then 2266 INSTALL=$ac_cv_path_install 2267 else 2268 # As a last resort, use the slow shell script. Don't cache a 2269 # value for INSTALL within a source directory, because that will 2270 # break other packages using the cache if that directory is 2271 # removed, or if the value is a relative name. 2272 INSTALL=$ac_install_sh 2273 fi 2274fi 2275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2276$as_echo "$INSTALL" >&6; } 2277 2278# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2279# It thinks the first close brace ends the variable substitution. 2280test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2281 2282test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2283 2284test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2285 2286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2287$as_echo_n "checking whether build environment is sane... " >&6; } 2288# Reject unsafe characters in $srcdir or the absolute working directory 2289# name. Accept space and tab only in the latter. 2290am_lf=' 2291' 2292case `pwd` in 2293 *[\\\"\#\$\&\'\`$am_lf]*) 2294 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2295esac 2296case $srcdir in 2297 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2298 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2299esac 2300 2301# Do 'set' in a subshell so we don't clobber the current shell's 2302# arguments. Must try -L first in case configure is actually a 2303# symlink; some systems play weird games with the mod time of symlinks 2304# (eg FreeBSD returns the mod time of the symlink's containing 2305# directory). 2306if ( 2307 am_has_slept=no 2308 for am_try in 1 2; do 2309 echo "timestamp, slept: $am_has_slept" > conftest.file 2310 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2311 if test "$*" = "X"; then 2312 # -L didn't work. 2313 set X `ls -t "$srcdir/configure" conftest.file` 2314 fi 2315 if test "$*" != "X $srcdir/configure conftest.file" \ 2316 && test "$*" != "X conftest.file $srcdir/configure"; then 2317 2318 # If neither matched, then we have a broken ls. This can happen 2319 # if, for instance, CONFIG_SHELL is bash and it inherits a 2320 # broken ls alias from the environment. This has actually 2321 # happened. Such a system could not be considered "sane". 2322 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2323 alias in your environment" "$LINENO" 5 2324 fi 2325 if test "$2" = conftest.file || test $am_try -eq 2; then 2326 break 2327 fi 2328 # Just in case. 2329 sleep 1 2330 am_has_slept=yes 2331 done 2332 test "$2" = conftest.file 2333 ) 2334then 2335 # Ok. 2336 : 2337else 2338 as_fn_error $? "newly created file is older than distributed files! 2339Check your system clock" "$LINENO" 5 2340fi 2341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2342$as_echo "yes" >&6; } 2343# If we didn't sleep, we still need to ensure time stamps of config.status and 2344# generated files are strictly newer. 2345am_sleep_pid= 2346if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2347 ( sleep 1 ) & 2348 am_sleep_pid=$! 2349fi 2350 2351rm -f conftest.file 2352 2353test "$program_prefix" != NONE && 2354 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2355# Use a double $ so make ignores it. 2356test "$program_suffix" != NONE && 2357 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2358# Double any \ or $. 2359# By default was `s,x,x', remove it if useless. 2360ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2361program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2362 2363# Expand $ac_aux_dir to an absolute path. 2364am_aux_dir=`cd "$ac_aux_dir" && pwd` 2365 2366if test x"${MISSING+set}" != xset; then 2367 case $am_aux_dir in 2368 *\ * | *\ *) 2369 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2370 *) 2371 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2372 esac 2373fi 2374# Use eval to expand $SHELL 2375if eval "$MISSING --is-lightweight"; then 2376 am_missing_run="$MISSING " 2377else 2378 am_missing_run= 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2380$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2381fi 2382 2383if test x"${install_sh+set}" != xset; then 2384 case $am_aux_dir in 2385 *\ * | *\ *) 2386 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2387 *) 2388 install_sh="\${SHELL} $am_aux_dir/install-sh" 2389 esac 2390fi 2391 2392# Installed binaries are usually stripped using 'strip' when the user 2393# run "make install-strip". However 'strip' might not be the right 2394# tool to use in cross-compilation environments, therefore Automake 2395# will honor the 'STRIP' environment variable to overrule this program. 2396if test "$cross_compiling" != no; then 2397 if test -n "$ac_tool_prefix"; then 2398 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2399set dummy ${ac_tool_prefix}strip; ac_word=$2 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2401$as_echo_n "checking for $ac_word... " >&6; } 2402if ${ac_cv_prog_STRIP+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404else 2405 if test -n "$STRIP"; then 2406 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2407else 2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2409for as_dir in $PATH 2410do 2411 IFS=$as_save_IFS 2412 test -z "$as_dir" && as_dir=. 2413 for ac_exec_ext in '' $ac_executable_extensions; do 2414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2415 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2417 break 2 2418 fi 2419done 2420 done 2421IFS=$as_save_IFS 2422 2423fi 2424fi 2425STRIP=$ac_cv_prog_STRIP 2426if test -n "$STRIP"; then 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2428$as_echo "$STRIP" >&6; } 2429else 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2431$as_echo "no" >&6; } 2432fi 2433 2434 2435fi 2436if test -z "$ac_cv_prog_STRIP"; then 2437 ac_ct_STRIP=$STRIP 2438 # Extract the first word of "strip", so it can be a program name with args. 2439set dummy strip; ac_word=$2 2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2441$as_echo_n "checking for $ac_word... " >&6; } 2442if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2443 $as_echo_n "(cached) " >&6 2444else 2445 if test -n "$ac_ct_STRIP"; then 2446 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2447else 2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2449for as_dir in $PATH 2450do 2451 IFS=$as_save_IFS 2452 test -z "$as_dir" && as_dir=. 2453 for ac_exec_ext in '' $ac_executable_extensions; do 2454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2455 ac_cv_prog_ac_ct_STRIP="strip" 2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2457 break 2 2458 fi 2459done 2460 done 2461IFS=$as_save_IFS 2462 2463fi 2464fi 2465ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2466if test -n "$ac_ct_STRIP"; then 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2468$as_echo "$ac_ct_STRIP" >&6; } 2469else 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2471$as_echo "no" >&6; } 2472fi 2473 2474 if test "x$ac_ct_STRIP" = x; then 2475 STRIP=":" 2476 else 2477 case $cross_compiling:$ac_tool_warned in 2478yes:) 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2481ac_tool_warned=yes ;; 2482esac 2483 STRIP=$ac_ct_STRIP 2484 fi 2485else 2486 STRIP="$ac_cv_prog_STRIP" 2487fi 2488 2489fi 2490INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2491 2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2493$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2494if test -z "$MKDIR_P"; then 2495 if ${ac_cv_path_mkdir+:} false; then : 2496 $as_echo_n "(cached) " >&6 2497else 2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2499for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2500do 2501 IFS=$as_save_IFS 2502 test -z "$as_dir" && as_dir=. 2503 for ac_prog in mkdir gmkdir; do 2504 for ac_exec_ext in '' $ac_executable_extensions; do 2505 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2506 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2507 'mkdir (GNU coreutils) '* | \ 2508 'mkdir (coreutils) '* | \ 2509 'mkdir (fileutils) '4.1*) 2510 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2511 break 3;; 2512 esac 2513 done 2514 done 2515 done 2516IFS=$as_save_IFS 2517 2518fi 2519 2520 test -d ./--version && rmdir ./--version 2521 if test "${ac_cv_path_mkdir+set}" = set; then 2522 MKDIR_P="$ac_cv_path_mkdir -p" 2523 else 2524 # As a last resort, use the slow shell script. Don't cache a 2525 # value for MKDIR_P within a source directory, because that will 2526 # break other packages using the cache if that directory is 2527 # removed, or if the value is a relative name. 2528 MKDIR_P="$ac_install_sh -d" 2529 fi 2530fi 2531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2532$as_echo "$MKDIR_P" >&6; } 2533 2534for ac_prog in gawk mawk nawk awk 2535do 2536 # Extract the first word of "$ac_prog", so it can be a program name with args. 2537set dummy $ac_prog; ac_word=$2 2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2539$as_echo_n "checking for $ac_word... " >&6; } 2540if ${ac_cv_prog_AWK+:} false; then : 2541 $as_echo_n "(cached) " >&6 2542else 2543 if test -n "$AWK"; then 2544 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2545else 2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2547for as_dir in $PATH 2548do 2549 IFS=$as_save_IFS 2550 test -z "$as_dir" && as_dir=. 2551 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2553 ac_cv_prog_AWK="$ac_prog" 2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2555 break 2 2556 fi 2557done 2558 done 2559IFS=$as_save_IFS 2560 2561fi 2562fi 2563AWK=$ac_cv_prog_AWK 2564if test -n "$AWK"; then 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2566$as_echo "$AWK" >&6; } 2567else 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2569$as_echo "no" >&6; } 2570fi 2571 2572 2573 test -n "$AWK" && break 2574done 2575 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2577$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2578set x ${MAKE-make} 2579ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2580if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2581 $as_echo_n "(cached) " >&6 2582else 2583 cat >conftest.make <<\_ACEOF 2584SHELL = /bin/sh 2585all: 2586 @echo '@@@%%%=$(MAKE)=@@@%%%' 2587_ACEOF 2588# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2589case `${MAKE-make} -f conftest.make 2>/dev/null` in 2590 *@@@%%%=?*=@@@%%%*) 2591 eval ac_cv_prog_make_${ac_make}_set=yes;; 2592 *) 2593 eval ac_cv_prog_make_${ac_make}_set=no;; 2594esac 2595rm -f conftest.make 2596fi 2597if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2599$as_echo "yes" >&6; } 2600 SET_MAKE= 2601else 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2603$as_echo "no" >&6; } 2604 SET_MAKE="MAKE=${MAKE-make}" 2605fi 2606 2607rm -rf .tst 2>/dev/null 2608mkdir .tst 2>/dev/null 2609if test -d .tst; then 2610 am__leading_dot=. 2611else 2612 am__leading_dot=_ 2613fi 2614rmdir .tst 2>/dev/null 2615 2616# Check whether --enable-silent-rules was given. 2617if test "${enable_silent_rules+set}" = set; then : 2618 enableval=$enable_silent_rules; 2619fi 2620 2621case $enable_silent_rules in # ((( 2622 yes) AM_DEFAULT_VERBOSITY=0;; 2623 no) AM_DEFAULT_VERBOSITY=1;; 2624 *) AM_DEFAULT_VERBOSITY=1;; 2625esac 2626am_make=${MAKE-make} 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2628$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2629if ${am_cv_make_support_nested_variables+:} false; then : 2630 $as_echo_n "(cached) " >&6 2631else 2632 if $as_echo 'TRUE=$(BAR$(V)) 2633BAR0=false 2634BAR1=true 2635V=1 2636am__doit: 2637 @$(TRUE) 2638.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2639 am_cv_make_support_nested_variables=yes 2640else 2641 am_cv_make_support_nested_variables=no 2642fi 2643fi 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2645$as_echo "$am_cv_make_support_nested_variables" >&6; } 2646if test $am_cv_make_support_nested_variables = yes; then 2647 AM_V='$(V)' 2648 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2649else 2650 AM_V=$AM_DEFAULT_VERBOSITY 2651 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2652fi 2653AM_BACKSLASH='\' 2654 2655if test "`cd $srcdir && pwd`" != "`pwd`"; then 2656 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2657 # is not polluted with repeated "-I." 2658 am__isrc=' -I$(srcdir)' 2659 # test to see if srcdir already configured 2660 if test -f $srcdir/config.status; then 2661 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2662 fi 2663fi 2664 2665# test whether we have cygpath 2666if test -z "$CYGPATH_W"; then 2667 if (cygpath --version) >/dev/null 2>/dev/null; then 2668 CYGPATH_W='cygpath -w' 2669 else 2670 CYGPATH_W=echo 2671 fi 2672fi 2673 2674 2675# Define the identity of the package. 2676 PACKAGE='xmag' 2677 VERSION='1.0.6' 2678 2679 2680cat >>confdefs.h <<_ACEOF 2681#define PACKAGE "$PACKAGE" 2682_ACEOF 2683 2684 2685cat >>confdefs.h <<_ACEOF 2686#define VERSION "$VERSION" 2687_ACEOF 2688 2689# Some tools Automake needs. 2690 2691ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2692 2693 2694AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2695 2696 2697AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2698 2699 2700AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2701 2702 2703MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2704 2705# For better backward compatibility. To be removed once Automake 1.9.x 2706# dies out for good. For more background, see: 2707# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2708# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2709mkdir_p='$(MKDIR_P)' 2710 2711# We need awk for the "check" target (and possibly the TAP driver). The 2712# system "awk" is bad on some platforms. 2713# Always define AMTAR for backward compatibility. Yes, it's still used 2714# in the wild :-( We should find a proper way to deprecate it ... 2715AMTAR='$${TAR-tar}' 2716 2717 2718# We'll loop over all known methods to create a tar archive until one works. 2719_am_tools='gnutar pax cpio none' 2720 2721am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2722 2723 2724 2725 2726 2727 2728# POSIX will say in a future version that running "rm -f" with no argument 2729# is OK; and we want to be able to make that assumption in our Makefile 2730# recipes. So use an aggressive probe to check that the usage we want is 2731# actually supported "in the wild" to an acceptable degree. 2732# See automake bug#10828. 2733# To make any issue more visible, cause the running configure to be aborted 2734# by default if the 'rm' program in use doesn't match our expectations; the 2735# user can still override this though. 2736if rm -f && rm -fr && rm -rf; then : OK; else 2737 cat >&2 <<'END' 2738Oops! 2739 2740Your 'rm' program seems unable to run without file operands specified 2741on the command line, even when the '-f' option is present. This is contrary 2742to the behaviour of most rm programs out there, and not conforming with 2743the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2744 2745Please tell bug-automake@gnu.org about your system, including the value 2746of your $PATH and any error possibly output before this message. This 2747can help us improve future automake versions. 2748 2749END 2750 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2751 echo 'Configuration will proceed anyway, since you have set the' >&2 2752 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2753 echo >&2 2754 else 2755 cat >&2 <<'END' 2756Aborting the configuration process, to ensure you take notice of the issue. 2757 2758You can download and install GNU coreutils to get an 'rm' implementation 2759that behaves properly: <http://www.gnu.org/software/coreutils/>. 2760 2761If you want to complete the configuration process using your problematic 2762'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2763to "yes", and re-run configure. 2764 2765END 2766 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2767 fi 2768fi 2769 2770 2771# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783DEPDIR="${am__leading_dot}deps" 2784 2785ac_config_commands="$ac_config_commands depfiles" 2786 2787 2788am_make=${MAKE-make} 2789cat > confinc << 'END' 2790am__doit: 2791 @echo this is the am__doit target 2792.PHONY: am__doit 2793END 2794# If we don't find an include directive, just comment out the code. 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2796$as_echo_n "checking for style of include used by $am_make... " >&6; } 2797am__include="#" 2798am__quote= 2799_am_result=none 2800# First try GNU make style include. 2801echo "include confinc" > confmf 2802# Ignore all kinds of additional output from 'make'. 2803case `$am_make -s -f confmf 2> /dev/null` in #( 2804*the\ am__doit\ target*) 2805 am__include=include 2806 am__quote= 2807 _am_result=GNU 2808 ;; 2809esac 2810# Now try BSD make style include. 2811if test "$am__include" = "#"; then 2812 echo '.include "confinc"' > confmf 2813 case `$am_make -s -f confmf 2> /dev/null` in #( 2814 *the\ am__doit\ target*) 2815 am__include=.include 2816 am__quote="\"" 2817 _am_result=BSD 2818 ;; 2819 esac 2820fi 2821 2822 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2824$as_echo "$_am_result" >&6; } 2825rm -f confinc confmf 2826 2827# Check whether --enable-dependency-tracking was given. 2828if test "${enable_dependency_tracking+set}" = set; then : 2829 enableval=$enable_dependency_tracking; 2830fi 2831 2832if test "x$enable_dependency_tracking" != xno; then 2833 am_depcomp="$ac_aux_dir/depcomp" 2834 AMDEPBACKSLASH='\' 2835 am__nodep='_no' 2836fi 2837 if test "x$enable_dependency_tracking" != xno; then 2838 AMDEP_TRUE= 2839 AMDEP_FALSE='#' 2840else 2841 AMDEP_TRUE='#' 2842 AMDEP_FALSE= 2843fi 2844 2845 2846ac_ext=c 2847ac_cpp='$CPP $CPPFLAGS' 2848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2850ac_compiler_gnu=$ac_cv_c_compiler_gnu 2851if test -n "$ac_tool_prefix"; then 2852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2853set dummy ${ac_tool_prefix}gcc; ac_word=$2 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855$as_echo_n "checking for $ac_word... " >&6; } 2856if ${ac_cv_prog_CC+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 if test -n "$CC"; then 2860 ac_cv_prog_CC="$CC" # Let the user override the test. 2861else 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874 done 2875IFS=$as_save_IFS 2876 2877fi 2878fi 2879CC=$ac_cv_prog_CC 2880if test -n "$CC"; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2882$as_echo "$CC" >&6; } 2883else 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885$as_echo "no" >&6; } 2886fi 2887 2888 2889fi 2890if test -z "$ac_cv_prog_CC"; then 2891 ac_ct_CC=$CC 2892 # Extract the first word of "gcc", so it can be a program name with args. 2893set dummy gcc; ac_word=$2 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2895$as_echo_n "checking for $ac_word... " >&6; } 2896if ${ac_cv_prog_ac_ct_CC+:} false; then : 2897 $as_echo_n "(cached) " >&6 2898else 2899 if test -n "$ac_ct_CC"; then 2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2901else 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2909 ac_cv_prog_ac_ct_CC="gcc" 2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2911 break 2 2912 fi 2913done 2914 done 2915IFS=$as_save_IFS 2916 2917fi 2918fi 2919ac_ct_CC=$ac_cv_prog_ac_ct_CC 2920if test -n "$ac_ct_CC"; then 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2922$as_echo "$ac_ct_CC" >&6; } 2923else 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2925$as_echo "no" >&6; } 2926fi 2927 2928 if test "x$ac_ct_CC" = x; then 2929 CC="" 2930 else 2931 case $cross_compiling:$ac_tool_warned in 2932yes:) 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2935ac_tool_warned=yes ;; 2936esac 2937 CC=$ac_ct_CC 2938 fi 2939else 2940 CC="$ac_cv_prog_CC" 2941fi 2942 2943if test -z "$CC"; then 2944 if test -n "$ac_tool_prefix"; then 2945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2946set dummy ${ac_tool_prefix}cc; ac_word=$2 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948$as_echo_n "checking for $ac_word... " >&6; } 2949if ${ac_cv_prog_CC+:} false; then : 2950 $as_echo_n "(cached) " >&6 2951else 2952 if test -n "$CC"; then 2953 ac_cv_prog_CC="$CC" # Let the user override the test. 2954else 2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956for as_dir in $PATH 2957do 2958 IFS=$as_save_IFS 2959 test -z "$as_dir" && as_dir=. 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2962 ac_cv_prog_CC="${ac_tool_prefix}cc" 2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2964 break 2 2965 fi 2966done 2967 done 2968IFS=$as_save_IFS 2969 2970fi 2971fi 2972CC=$ac_cv_prog_CC 2973if test -n "$CC"; then 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2975$as_echo "$CC" >&6; } 2976else 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978$as_echo "no" >&6; } 2979fi 2980 2981 2982 fi 2983fi 2984if test -z "$CC"; then 2985 # Extract the first word of "cc", so it can be a program name with args. 2986set dummy cc; ac_word=$2 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2988$as_echo_n "checking for $ac_word... " >&6; } 2989if ${ac_cv_prog_CC+:} false; then : 2990 $as_echo_n "(cached) " >&6 2991else 2992 if test -n "$CC"; then 2993 ac_cv_prog_CC="$CC" # Let the user override the test. 2994else 2995 ac_prog_rejected=no 2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2997for as_dir in $PATH 2998do 2999 IFS=$as_save_IFS 3000 test -z "$as_dir" && as_dir=. 3001 for ac_exec_ext in '' $ac_executable_extensions; do 3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3004 ac_prog_rejected=yes 3005 continue 3006 fi 3007 ac_cv_prog_CC="cc" 3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3009 break 2 3010 fi 3011done 3012 done 3013IFS=$as_save_IFS 3014 3015if test $ac_prog_rejected = yes; then 3016 # We found a bogon in the path, so make sure we never use it. 3017 set dummy $ac_cv_prog_CC 3018 shift 3019 if test $# != 0; then 3020 # We chose a different compiler from the bogus one. 3021 # However, it has the same basename, so the bogon will be chosen 3022 # first if we set CC to just the basename; use the full file name. 3023 shift 3024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3025 fi 3026fi 3027fi 3028fi 3029CC=$ac_cv_prog_CC 3030if test -n "$CC"; then 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3032$as_echo "$CC" >&6; } 3033else 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3035$as_echo "no" >&6; } 3036fi 3037 3038 3039fi 3040if test -z "$CC"; then 3041 if test -n "$ac_tool_prefix"; then 3042 for ac_prog in cl.exe 3043 do 3044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3045set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3047$as_echo_n "checking for $ac_word... " >&6; } 3048if ${ac_cv_prog_CC+:} false; then : 3049 $as_echo_n "(cached) " >&6 3050else 3051 if test -n "$CC"; then 3052 ac_cv_prog_CC="$CC" # Let the user override the test. 3053else 3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3055for as_dir in $PATH 3056do 3057 IFS=$as_save_IFS 3058 test -z "$as_dir" && as_dir=. 3059 for ac_exec_ext in '' $ac_executable_extensions; do 3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3063 break 2 3064 fi 3065done 3066 done 3067IFS=$as_save_IFS 3068 3069fi 3070fi 3071CC=$ac_cv_prog_CC 3072if test -n "$CC"; then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3074$as_echo "$CC" >&6; } 3075else 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077$as_echo "no" >&6; } 3078fi 3079 3080 3081 test -n "$CC" && break 3082 done 3083fi 3084if test -z "$CC"; then 3085 ac_ct_CC=$CC 3086 for ac_prog in cl.exe 3087do 3088 # Extract the first word of "$ac_prog", so it can be a program name with args. 3089set dummy $ac_prog; ac_word=$2 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3091$as_echo_n "checking for $ac_word... " >&6; } 3092if ${ac_cv_prog_ac_ct_CC+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 if test -n "$ac_ct_CC"; then 3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3097else 3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099for as_dir in $PATH 3100do 3101 IFS=$as_save_IFS 3102 test -z "$as_dir" && as_dir=. 3103 for ac_exec_ext in '' $ac_executable_extensions; do 3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3105 ac_cv_prog_ac_ct_CC="$ac_prog" 3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3107 break 2 3108 fi 3109done 3110 done 3111IFS=$as_save_IFS 3112 3113fi 3114fi 3115ac_ct_CC=$ac_cv_prog_ac_ct_CC 3116if test -n "$ac_ct_CC"; then 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3118$as_echo "$ac_ct_CC" >&6; } 3119else 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121$as_echo "no" >&6; } 3122fi 3123 3124 3125 test -n "$ac_ct_CC" && break 3126done 3127 3128 if test "x$ac_ct_CC" = x; then 3129 CC="" 3130 else 3131 case $cross_compiling:$ac_tool_warned in 3132yes:) 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3135ac_tool_warned=yes ;; 3136esac 3137 CC=$ac_ct_CC 3138 fi 3139fi 3140 3141fi 3142 3143 3144test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3146as_fn_error $? "no acceptable C compiler found in \$PATH 3147See \`config.log' for more details" "$LINENO" 5; } 3148 3149# Provide some information about the compiler. 3150$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3151set X $ac_compile 3152ac_compiler=$2 3153for ac_option in --version -v -V -qversion; do 3154 { { ac_try="$ac_compiler $ac_option >&5" 3155case "(($ac_try" in 3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3157 *) ac_try_echo=$ac_try;; 3158esac 3159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3160$as_echo "$ac_try_echo"; } >&5 3161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3162 ac_status=$? 3163 if test -s conftest.err; then 3164 sed '10a\ 3165... rest of stderr output deleted ... 3166 10q' conftest.err >conftest.er1 3167 cat conftest.er1 >&5 3168 fi 3169 rm -f conftest.er1 conftest.err 3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3171 test $ac_status = 0; } 3172done 3173 3174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3175/* end confdefs.h. */ 3176 3177int 3178main () 3179{ 3180 3181 ; 3182 return 0; 3183} 3184_ACEOF 3185ac_clean_files_save=$ac_clean_files 3186ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3187# Try to create an executable without -o first, disregard a.out. 3188# It will help us diagnose broken compilers, and finding out an intuition 3189# of exeext. 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3191$as_echo_n "checking whether the C compiler works... " >&6; } 3192ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3193 3194# The possible output files: 3195ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3196 3197ac_rmfiles= 3198for ac_file in $ac_files 3199do 3200 case $ac_file in 3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3202 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3203 esac 3204done 3205rm -f $ac_rmfiles 3206 3207if { { ac_try="$ac_link_default" 3208case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3213$as_echo "$ac_try_echo"; } >&5 3214 (eval "$ac_link_default") 2>&5 3215 ac_status=$? 3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3217 test $ac_status = 0; }; then : 3218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3219# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3220# in a Makefile. We should not override ac_cv_exeext if it was cached, 3221# so that the user can short-circuit this test for compilers unknown to 3222# Autoconf. 3223for ac_file in $ac_files '' 3224do 3225 test -f "$ac_file" || continue 3226 case $ac_file in 3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3228 ;; 3229 [ab].out ) 3230 # We found the default executable, but exeext='' is most 3231 # certainly right. 3232 break;; 3233 *.* ) 3234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3235 then :; else 3236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3237 fi 3238 # We set ac_cv_exeext here because the later test for it is not 3239 # safe: cross compilers may not add the suffix if given an `-o' 3240 # argument, so we may need to know it at that point already. 3241 # Even if this section looks crufty: it has the advantage of 3242 # actually working. 3243 break;; 3244 * ) 3245 break;; 3246 esac 3247done 3248test "$ac_cv_exeext" = no && ac_cv_exeext= 3249 3250else 3251 ac_file='' 3252fi 3253if test -z "$ac_file"; then : 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3255$as_echo "no" >&6; } 3256$as_echo "$as_me: failed program was:" >&5 3257sed 's/^/| /' conftest.$ac_ext >&5 3258 3259{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3261as_fn_error 77 "C compiler cannot create executables 3262See \`config.log' for more details" "$LINENO" 5; } 3263else 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3265$as_echo "yes" >&6; } 3266fi 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3268$as_echo_n "checking for C compiler default output file name... " >&6; } 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3270$as_echo "$ac_file" >&6; } 3271ac_exeext=$ac_cv_exeext 3272 3273rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3274ac_clean_files=$ac_clean_files_save 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3276$as_echo_n "checking for suffix of executables... " >&6; } 3277if { { ac_try="$ac_link" 3278case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281esac 3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3283$as_echo "$ac_try_echo"; } >&5 3284 (eval "$ac_link") 2>&5 3285 ac_status=$? 3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3287 test $ac_status = 0; }; then : 3288 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3289# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3290# work properly (i.e., refer to `conftest.exe'), while it won't with 3291# `rm'. 3292for ac_file in conftest.exe conftest conftest.*; do 3293 test -f "$ac_file" || continue 3294 case $ac_file in 3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3297 break;; 3298 * ) break;; 3299 esac 3300done 3301else 3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3304as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3305See \`config.log' for more details" "$LINENO" 5; } 3306fi 3307rm -f conftest conftest$ac_cv_exeext 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3309$as_echo "$ac_cv_exeext" >&6; } 3310 3311rm -f conftest.$ac_ext 3312EXEEXT=$ac_cv_exeext 3313ac_exeext=$EXEEXT 3314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315/* end confdefs.h. */ 3316#include <stdio.h> 3317int 3318main () 3319{ 3320FILE *f = fopen ("conftest.out", "w"); 3321 return ferror (f) || fclose (f) != 0; 3322 3323 ; 3324 return 0; 3325} 3326_ACEOF 3327ac_clean_files="$ac_clean_files conftest.out" 3328# Check that the compiler produces executables we can run. If not, either 3329# the compiler is broken, or we cross compile. 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3331$as_echo_n "checking whether we are cross compiling... " >&6; } 3332if test "$cross_compiling" != yes; then 3333 { { ac_try="$ac_link" 3334case "(($ac_try" in 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *) ac_try_echo=$ac_try;; 3337esac 3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3339$as_echo "$ac_try_echo"; } >&5 3340 (eval "$ac_link") 2>&5 3341 ac_status=$? 3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3343 test $ac_status = 0; } 3344 if { ac_try='./conftest$ac_cv_exeext' 3345 { { case "(($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_try") 2>&5 3352 ac_status=$? 3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3354 test $ac_status = 0; }; }; then 3355 cross_compiling=no 3356 else 3357 if test "$cross_compiling" = maybe; then 3358 cross_compiling=yes 3359 else 3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3362as_fn_error $? "cannot run C compiled programs. 3363If you meant to cross compile, use \`--host'. 3364See \`config.log' for more details" "$LINENO" 5; } 3365 fi 3366 fi 3367fi 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3369$as_echo "$cross_compiling" >&6; } 3370 3371rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3372ac_clean_files=$ac_clean_files_save 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3374$as_echo_n "checking for suffix of object files... " >&6; } 3375if ${ac_cv_objext+:} false; then : 3376 $as_echo_n "(cached) " >&6 3377else 3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3379/* end confdefs.h. */ 3380 3381int 3382main () 3383{ 3384 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389rm -f conftest.o conftest.obj 3390if { { ac_try="$ac_compile" 3391case "(($ac_try" in 3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3393 *) ac_try_echo=$ac_try;; 3394esac 3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3396$as_echo "$ac_try_echo"; } >&5 3397 (eval "$ac_compile") 2>&5 3398 ac_status=$? 3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3400 test $ac_status = 0; }; then : 3401 for ac_file in conftest.o conftest.obj conftest.*; do 3402 test -f "$ac_file" || continue; 3403 case $ac_file in 3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3405 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3406 break;; 3407 esac 3408done 3409else 3410 $as_echo "$as_me: failed program was:" >&5 3411sed 's/^/| /' conftest.$ac_ext >&5 3412 3413{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3415as_fn_error $? "cannot compute suffix of object files: cannot compile 3416See \`config.log' for more details" "$LINENO" 5; } 3417fi 3418rm -f conftest.$ac_cv_objext conftest.$ac_ext 3419fi 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3421$as_echo "$ac_cv_objext" >&6; } 3422OBJEXT=$ac_cv_objext 3423ac_objext=$OBJEXT 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3425$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3426if ${ac_cv_c_compiler_gnu+:} false; then : 3427 $as_echo_n "(cached) " >&6 3428else 3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3430/* end confdefs.h. */ 3431 3432int 3433main () 3434{ 3435#ifndef __GNUC__ 3436 choke me 3437#endif 3438 3439 ; 3440 return 0; 3441} 3442_ACEOF 3443if ac_fn_c_try_compile "$LINENO"; then : 3444 ac_compiler_gnu=yes 3445else 3446 ac_compiler_gnu=no 3447fi 3448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3449ac_cv_c_compiler_gnu=$ac_compiler_gnu 3450 3451fi 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3453$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3454if test $ac_compiler_gnu = yes; then 3455 GCC=yes 3456else 3457 GCC= 3458fi 3459ac_test_CFLAGS=${CFLAGS+set} 3460ac_save_CFLAGS=$CFLAGS 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3462$as_echo_n "checking whether $CC accepts -g... " >&6; } 3463if ${ac_cv_prog_cc_g+:} false; then : 3464 $as_echo_n "(cached) " >&6 3465else 3466 ac_save_c_werror_flag=$ac_c_werror_flag 3467 ac_c_werror_flag=yes 3468 ac_cv_prog_cc_g=no 3469 CFLAGS="-g" 3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3471/* end confdefs.h. */ 3472 3473int 3474main () 3475{ 3476 3477 ; 3478 return 0; 3479} 3480_ACEOF 3481if ac_fn_c_try_compile "$LINENO"; then : 3482 ac_cv_prog_cc_g=yes 3483else 3484 CFLAGS="" 3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3486/* end confdefs.h. */ 3487 3488int 3489main () 3490{ 3491 3492 ; 3493 return 0; 3494} 3495_ACEOF 3496if ac_fn_c_try_compile "$LINENO"; then : 3497 3498else 3499 ac_c_werror_flag=$ac_save_c_werror_flag 3500 CFLAGS="-g" 3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503 3504int 3505main () 3506{ 3507 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512if ac_fn_c_try_compile "$LINENO"; then : 3513 ac_cv_prog_cc_g=yes 3514fi 3515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3516fi 3517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3518fi 3519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3520 ac_c_werror_flag=$ac_save_c_werror_flag 3521fi 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3523$as_echo "$ac_cv_prog_cc_g" >&6; } 3524if test "$ac_test_CFLAGS" = set; then 3525 CFLAGS=$ac_save_CFLAGS 3526elif test $ac_cv_prog_cc_g = yes; then 3527 if test "$GCC" = yes; then 3528 CFLAGS="-g -O2" 3529 else 3530 CFLAGS="-g" 3531 fi 3532else 3533 if test "$GCC" = yes; then 3534 CFLAGS="-O2" 3535 else 3536 CFLAGS= 3537 fi 3538fi 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3540$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3541if ${ac_cv_prog_cc_c89+:} false; then : 3542 $as_echo_n "(cached) " >&6 3543else 3544 ac_cv_prog_cc_c89=no 3545ac_save_CC=$CC 3546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3547/* end confdefs.h. */ 3548#include <stdarg.h> 3549#include <stdio.h> 3550struct stat; 3551/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3552struct buf { int x; }; 3553FILE * (*rcsopen) (struct buf *, struct stat *, int); 3554static char *e (p, i) 3555 char **p; 3556 int i; 3557{ 3558 return p[i]; 3559} 3560static char *f (char * (*g) (char **, int), char **p, ...) 3561{ 3562 char *s; 3563 va_list v; 3564 va_start (v,p); 3565 s = g (p, va_arg (v,int)); 3566 va_end (v); 3567 return s; 3568} 3569 3570/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3571 function prototypes and stuff, but not '\xHH' hex character constants. 3572 These don't provoke an error unfortunately, instead are silently treated 3573 as 'x'. The following induces an error, until -std is added to get 3574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3575 array size at least. It's necessary to write '\x00'==0 to get something 3576 that's true only with -std. */ 3577int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3578 3579/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3580 inside strings and character constants. */ 3581#define FOO(x) 'x' 3582int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3583 3584int test (int i, double x); 3585struct s1 {int (*f) (int a);}; 3586struct s2 {int (*f) (double a);}; 3587int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3588int argc; 3589char **argv; 3590int 3591main () 3592{ 3593return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3594 ; 3595 return 0; 3596} 3597_ACEOF 3598for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3600do 3601 CC="$ac_save_CC $ac_arg" 3602 if ac_fn_c_try_compile "$LINENO"; then : 3603 ac_cv_prog_cc_c89=$ac_arg 3604fi 3605rm -f core conftest.err conftest.$ac_objext 3606 test "x$ac_cv_prog_cc_c89" != "xno" && break 3607done 3608rm -f conftest.$ac_ext 3609CC=$ac_save_CC 3610 3611fi 3612# AC_CACHE_VAL 3613case "x$ac_cv_prog_cc_c89" in 3614 x) 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3616$as_echo "none needed" >&6; } ;; 3617 xno) 3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3619$as_echo "unsupported" >&6; } ;; 3620 *) 3621 CC="$CC $ac_cv_prog_cc_c89" 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3623$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3624esac 3625if test "x$ac_cv_prog_cc_c89" != xno; then : 3626 3627fi 3628 3629ac_ext=c 3630ac_cpp='$CPP $CPPFLAGS' 3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3633ac_compiler_gnu=$ac_cv_c_compiler_gnu 3634 3635ac_ext=c 3636ac_cpp='$CPP $CPPFLAGS' 3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3639ac_compiler_gnu=$ac_cv_c_compiler_gnu 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3641$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3642if ${am_cv_prog_cc_c_o+:} false; then : 3643 $as_echo_n "(cached) " >&6 3644else 3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3646/* end confdefs.h. */ 3647 3648int 3649main () 3650{ 3651 3652 ; 3653 return 0; 3654} 3655_ACEOF 3656 # Make sure it works both with $CC and with simple cc. 3657 # Following AC_PROG_CC_C_O, we do the test twice because some 3658 # compilers refuse to overwrite an existing .o file with -o, 3659 # though they will create one. 3660 am_cv_prog_cc_c_o=yes 3661 for am_i in 1 2; do 3662 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3663 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3664 ac_status=$? 3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3666 (exit $ac_status); } \ 3667 && test -f conftest2.$ac_objext; then 3668 : OK 3669 else 3670 am_cv_prog_cc_c_o=no 3671 break 3672 fi 3673 done 3674 rm -f core conftest* 3675 unset am_i 3676fi 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3678$as_echo "$am_cv_prog_cc_c_o" >&6; } 3679if test "$am_cv_prog_cc_c_o" != yes; then 3680 # Losing compiler, so override with the script. 3681 # FIXME: It is wrong to rewrite CC. 3682 # But if we don't then we get into trouble of one sort or another. 3683 # A longer-term fix would be to have automake use am__CC in this case, 3684 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3685 CC="$am_aux_dir/compile $CC" 3686fi 3687ac_ext=c 3688ac_cpp='$CPP $CPPFLAGS' 3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3691ac_compiler_gnu=$ac_cv_c_compiler_gnu 3692 3693 3694depcc="$CC" am_compiler_list= 3695 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3697$as_echo_n "checking dependency style of $depcc... " >&6; } 3698if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3699 $as_echo_n "(cached) " >&6 3700else 3701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3702 # We make a subdir and do the tests there. Otherwise we can end up 3703 # making bogus files that we don't know about and never remove. For 3704 # instance it was reported that on HP-UX the gcc test will end up 3705 # making a dummy file named 'D' -- because '-MD' means "put the output 3706 # in D". 3707 rm -rf conftest.dir 3708 mkdir conftest.dir 3709 # Copy depcomp to subdir because otherwise we won't find it if we're 3710 # using a relative directory. 3711 cp "$am_depcomp" conftest.dir 3712 cd conftest.dir 3713 # We will build objects and dependencies in a subdirectory because 3714 # it helps to detect inapplicable dependency modes. For instance 3715 # both Tru64's cc and ICC support -MD to output dependencies as a 3716 # side effect of compilation, but ICC will put the dependencies in 3717 # the current directory while Tru64 will put them in the object 3718 # directory. 3719 mkdir sub 3720 3721 am_cv_CC_dependencies_compiler_type=none 3722 if test "$am_compiler_list" = ""; then 3723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3724 fi 3725 am__universal=false 3726 case " $depcc " in #( 3727 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3728 esac 3729 3730 for depmode in $am_compiler_list; do 3731 # Setup a source with many dependencies, because some compilers 3732 # like to wrap large dependency lists on column 80 (with \), and 3733 # we should not choose a depcomp mode which is confused by this. 3734 # 3735 # We need to recreate these files for each test, as the compiler may 3736 # overwrite some of them when testing with obscure command lines. 3737 # This happens at least with the AIX C compiler. 3738 : > sub/conftest.c 3739 for i in 1 2 3 4 5 6; do 3740 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3741 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3742 # Solaris 10 /bin/sh. 3743 echo '/* dummy */' > sub/conftst$i.h 3744 done 3745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3746 3747 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3748 # mode. It turns out that the SunPro C++ compiler does not properly 3749 # handle '-M -o', and we need to detect this. Also, some Intel 3750 # versions had trouble with output in subdirs. 3751 am__obj=sub/conftest.${OBJEXT-o} 3752 am__minus_obj="-o $am__obj" 3753 case $depmode in 3754 gcc) 3755 # This depmode causes a compiler race in universal mode. 3756 test "$am__universal" = false || continue 3757 ;; 3758 nosideeffect) 3759 # After this tag, mechanisms are not by side-effect, so they'll 3760 # only be used when explicitly requested. 3761 if test "x$enable_dependency_tracking" = xyes; then 3762 continue 3763 else 3764 break 3765 fi 3766 ;; 3767 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3768 # This compiler won't grok '-c -o', but also, the minuso test has 3769 # not run yet. These depmodes are late enough in the game, and 3770 # so weak that their functioning should not be impacted. 3771 am__obj=conftest.${OBJEXT-o} 3772 am__minus_obj= 3773 ;; 3774 none) break ;; 3775 esac 3776 if depmode=$depmode \ 3777 source=sub/conftest.c object=$am__obj \ 3778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3780 >/dev/null 2>conftest.err && 3781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3785 # icc doesn't choke on unknown options, it will just issue warnings 3786 # or remarks (even with -Werror). So we grep stderr for any message 3787 # that says an option was ignored or not supported. 3788 # When given -MP, icc 7.0 and 7.1 complain thusly: 3789 # icc: Command line warning: ignoring option '-M'; no argument required 3790 # The diagnosis changed in icc 8.0: 3791 # icc: Command line remark: option '-MP' not supported 3792 if (grep 'ignoring option' conftest.err || 3793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3794 am_cv_CC_dependencies_compiler_type=$depmode 3795 break 3796 fi 3797 fi 3798 done 3799 3800 cd .. 3801 rm -rf conftest.dir 3802else 3803 am_cv_CC_dependencies_compiler_type=none 3804fi 3805 3806fi 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3808$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3809CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3810 3811 if 3812 test "x$enable_dependency_tracking" != xno \ 3813 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3814 am__fastdepCC_TRUE= 3815 am__fastdepCC_FALSE='#' 3816else 3817 am__fastdepCC_TRUE='#' 3818 am__fastdepCC_FALSE= 3819fi 3820 3821 3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3823$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3824if ${ac_cv_prog_cc_c99+:} false; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 ac_cv_prog_cc_c99=no 3828ac_save_CC=$CC 3829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830/* end confdefs.h. */ 3831#include <stdarg.h> 3832#include <stdbool.h> 3833#include <stdlib.h> 3834#include <wchar.h> 3835#include <stdio.h> 3836 3837// Check varargs macros. These examples are taken from C99 6.10.3.5. 3838#define debug(...) fprintf (stderr, __VA_ARGS__) 3839#define showlist(...) puts (#__VA_ARGS__) 3840#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3841static void 3842test_varargs_macros (void) 3843{ 3844 int x = 1234; 3845 int y = 5678; 3846 debug ("Flag"); 3847 debug ("X = %d\n", x); 3848 showlist (The first, second, and third items.); 3849 report (x>y, "x is %d but y is %d", x, y); 3850} 3851 3852// Check long long types. 3853#define BIG64 18446744073709551615ull 3854#define BIG32 4294967295ul 3855#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3856#if !BIG_OK 3857 your preprocessor is broken; 3858#endif 3859#if BIG_OK 3860#else 3861 your preprocessor is broken; 3862#endif 3863static long long int bignum = -9223372036854775807LL; 3864static unsigned long long int ubignum = BIG64; 3865 3866struct incomplete_array 3867{ 3868 int datasize; 3869 double data[]; 3870}; 3871 3872struct named_init { 3873 int number; 3874 const wchar_t *name; 3875 double average; 3876}; 3877 3878typedef const char *ccp; 3879 3880static inline int 3881test_restrict (ccp restrict text) 3882{ 3883 // See if C++-style comments work. 3884 // Iterate through items via the restricted pointer. 3885 // Also check for declarations in for loops. 3886 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3887 continue; 3888 return 0; 3889} 3890 3891// Check varargs and va_copy. 3892static void 3893test_varargs (const char *format, ...) 3894{ 3895 va_list args; 3896 va_start (args, format); 3897 va_list args_copy; 3898 va_copy (args_copy, args); 3899 3900 const char *str; 3901 int number; 3902 float fnumber; 3903 3904 while (*format) 3905 { 3906 switch (*format++) 3907 { 3908 case 's': // string 3909 str = va_arg (args_copy, const char *); 3910 break; 3911 case 'd': // int 3912 number = va_arg (args_copy, int); 3913 break; 3914 case 'f': // float 3915 fnumber = va_arg (args_copy, double); 3916 break; 3917 default: 3918 break; 3919 } 3920 } 3921 va_end (args_copy); 3922 va_end (args); 3923} 3924 3925int 3926main () 3927{ 3928 3929 // Check bool. 3930 _Bool success = false; 3931 3932 // Check restrict. 3933 if (test_restrict ("String literal") == 0) 3934 success = true; 3935 char *restrict newvar = "Another string"; 3936 3937 // Check varargs. 3938 test_varargs ("s, d' f .", "string", 65, 34.234); 3939 test_varargs_macros (); 3940 3941 // Check flexible array members. 3942 struct incomplete_array *ia = 3943 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3944 ia->datasize = 10; 3945 for (int i = 0; i < ia->datasize; ++i) 3946 ia->data[i] = i * 1.234; 3947 3948 // Check named initializers. 3949 struct named_init ni = { 3950 .number = 34, 3951 .name = L"Test wide string", 3952 .average = 543.34343, 3953 }; 3954 3955 ni.number = 58; 3956 3957 int dynamic_array[ni.number]; 3958 dynamic_array[ni.number - 1] = 543; 3959 3960 // work around unused variable warnings 3961 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3962 || dynamic_array[ni.number - 1] != 543); 3963 3964 ; 3965 return 0; 3966} 3967_ACEOF 3968for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3969do 3970 CC="$ac_save_CC $ac_arg" 3971 if ac_fn_c_try_compile "$LINENO"; then : 3972 ac_cv_prog_cc_c99=$ac_arg 3973fi 3974rm -f core conftest.err conftest.$ac_objext 3975 test "x$ac_cv_prog_cc_c99" != "xno" && break 3976done 3977rm -f conftest.$ac_ext 3978CC=$ac_save_CC 3979 3980fi 3981# AC_CACHE_VAL 3982case "x$ac_cv_prog_cc_c99" in 3983 x) 3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3985$as_echo "none needed" >&6; } ;; 3986 xno) 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3988$as_echo "unsupported" >&6; } ;; 3989 *) 3990 CC="$CC $ac_cv_prog_cc_c99" 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3992$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3993esac 3994if test "x$ac_cv_prog_cc_c99" != xno; then : 3995 3996fi 3997 3998 3999 4000ac_ext=c 4001ac_cpp='$CPP $CPPFLAGS' 4002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4004ac_compiler_gnu=$ac_cv_c_compiler_gnu 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4006$as_echo_n "checking how to run the C preprocessor... " >&6; } 4007# On Suns, sometimes $CPP names a directory. 4008if test -n "$CPP" && test -d "$CPP"; then 4009 CPP= 4010fi 4011if test -z "$CPP"; then 4012 if ${ac_cv_prog_CPP+:} false; then : 4013 $as_echo_n "(cached) " >&6 4014else 4015 # Double quotes because CPP needs to be expanded 4016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4017 do 4018 ac_preproc_ok=false 4019for ac_c_preproc_warn_flag in '' yes 4020do 4021 # Use a header file that comes with gcc, so configuring glibc 4022 # with a fresh cross-compiler works. 4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4024 # <limits.h> exists even on freestanding compilers. 4025 # On the NeXT, cc -E runs the code through the compiler's parser, 4026 # not just through cpp. "Syntax error" is here to catch this case. 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029#ifdef __STDC__ 4030# include <limits.h> 4031#else 4032# include <assert.h> 4033#endif 4034 Syntax error 4035_ACEOF 4036if ac_fn_c_try_cpp "$LINENO"; then : 4037 4038else 4039 # Broken: fails on valid input. 4040continue 4041fi 4042rm -f conftest.err conftest.i conftest.$ac_ext 4043 4044 # OK, works on sane cases. Now check whether nonexistent headers 4045 # can be detected and how. 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047/* end confdefs.h. */ 4048#include <ac_nonexistent.h> 4049_ACEOF 4050if ac_fn_c_try_cpp "$LINENO"; then : 4051 # Broken: success on invalid input. 4052continue 4053else 4054 # Passes both tests. 4055ac_preproc_ok=: 4056break 4057fi 4058rm -f conftest.err conftest.i conftest.$ac_ext 4059 4060done 4061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4062rm -f conftest.i conftest.err conftest.$ac_ext 4063if $ac_preproc_ok; then : 4064 break 4065fi 4066 4067 done 4068 ac_cv_prog_CPP=$CPP 4069 4070fi 4071 CPP=$ac_cv_prog_CPP 4072else 4073 ac_cv_prog_CPP=$CPP 4074fi 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4076$as_echo "$CPP" >&6; } 4077ac_preproc_ok=false 4078for ac_c_preproc_warn_flag in '' yes 4079do 4080 # Use a header file that comes with gcc, so configuring glibc 4081 # with a fresh cross-compiler works. 4082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4083 # <limits.h> exists even on freestanding compilers. 4084 # On the NeXT, cc -E runs the code through the compiler's parser, 4085 # not just through cpp. "Syntax error" is here to catch this case. 4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4087/* end confdefs.h. */ 4088#ifdef __STDC__ 4089# include <limits.h> 4090#else 4091# include <assert.h> 4092#endif 4093 Syntax error 4094_ACEOF 4095if ac_fn_c_try_cpp "$LINENO"; then : 4096 4097else 4098 # Broken: fails on valid input. 4099continue 4100fi 4101rm -f conftest.err conftest.i conftest.$ac_ext 4102 4103 # OK, works on sane cases. Now check whether nonexistent headers 4104 # can be detected and how. 4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4106/* end confdefs.h. */ 4107#include <ac_nonexistent.h> 4108_ACEOF 4109if ac_fn_c_try_cpp "$LINENO"; then : 4110 # Broken: success on invalid input. 4111continue 4112else 4113 # Passes both tests. 4114ac_preproc_ok=: 4115break 4116fi 4117rm -f conftest.err conftest.i conftest.$ac_ext 4118 4119done 4120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4121rm -f conftest.i conftest.err conftest.$ac_ext 4122if $ac_preproc_ok; then : 4123 4124else 4125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4127as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4128See \`config.log' for more details" "$LINENO" 5; } 4129fi 4130 4131ac_ext=c 4132ac_cpp='$CPP $CPPFLAGS' 4133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4135ac_compiler_gnu=$ac_cv_c_compiler_gnu 4136 4137 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4139$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4140if ${ac_cv_path_GREP+:} false; then : 4141 $as_echo_n "(cached) " >&6 4142else 4143 if test -z "$GREP"; then 4144 ac_path_GREP_found=false 4145 # Loop through the user's path and test for each of PROGNAME-LIST 4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4148do 4149 IFS=$as_save_IFS 4150 test -z "$as_dir" && as_dir=. 4151 for ac_prog in grep ggrep; do 4152 for ac_exec_ext in '' $ac_executable_extensions; do 4153 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4154 as_fn_executable_p "$ac_path_GREP" || continue 4155# Check for GNU ac_path_GREP and select it if it is found. 4156 # Check for GNU $ac_path_GREP 4157case `"$ac_path_GREP" --version 2>&1` in 4158*GNU*) 4159 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4160*) 4161 ac_count=0 4162 $as_echo_n 0123456789 >"conftest.in" 4163 while : 4164 do 4165 cat "conftest.in" "conftest.in" >"conftest.tmp" 4166 mv "conftest.tmp" "conftest.in" 4167 cp "conftest.in" "conftest.nl" 4168 $as_echo 'GREP' >> "conftest.nl" 4169 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4171 as_fn_arith $ac_count + 1 && ac_count=$as_val 4172 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4173 # Best one so far, save it but keep looking for a better one 4174 ac_cv_path_GREP="$ac_path_GREP" 4175 ac_path_GREP_max=$ac_count 4176 fi 4177 # 10*(2^10) chars as input seems more than enough 4178 test $ac_count -gt 10 && break 4179 done 4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4181esac 4182 4183 $ac_path_GREP_found && break 3 4184 done 4185 done 4186 done 4187IFS=$as_save_IFS 4188 if test -z "$ac_cv_path_GREP"; then 4189 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4190 fi 4191else 4192 ac_cv_path_GREP=$GREP 4193fi 4194 4195fi 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4197$as_echo "$ac_cv_path_GREP" >&6; } 4198 GREP="$ac_cv_path_GREP" 4199 4200 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4202$as_echo_n "checking for egrep... " >&6; } 4203if ${ac_cv_path_EGREP+:} false; then : 4204 $as_echo_n "(cached) " >&6 4205else 4206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4207 then ac_cv_path_EGREP="$GREP -E" 4208 else 4209 if test -z "$EGREP"; then 4210 ac_path_EGREP_found=false 4211 # Loop through the user's path and test for each of PROGNAME-LIST 4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4214do 4215 IFS=$as_save_IFS 4216 test -z "$as_dir" && as_dir=. 4217 for ac_prog in egrep; do 4218 for ac_exec_ext in '' $ac_executable_extensions; do 4219 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4220 as_fn_executable_p "$ac_path_EGREP" || continue 4221# Check for GNU ac_path_EGREP and select it if it is found. 4222 # Check for GNU $ac_path_EGREP 4223case `"$ac_path_EGREP" --version 2>&1` in 4224*GNU*) 4225 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4226*) 4227 ac_count=0 4228 $as_echo_n 0123456789 >"conftest.in" 4229 while : 4230 do 4231 cat "conftest.in" "conftest.in" >"conftest.tmp" 4232 mv "conftest.tmp" "conftest.in" 4233 cp "conftest.in" "conftest.nl" 4234 $as_echo 'EGREP' >> "conftest.nl" 4235 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4237 as_fn_arith $ac_count + 1 && ac_count=$as_val 4238 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4239 # Best one so far, save it but keep looking for a better one 4240 ac_cv_path_EGREP="$ac_path_EGREP" 4241 ac_path_EGREP_max=$ac_count 4242 fi 4243 # 10*(2^10) chars as input seems more than enough 4244 test $ac_count -gt 10 && break 4245 done 4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4247esac 4248 4249 $ac_path_EGREP_found && break 3 4250 done 4251 done 4252 done 4253IFS=$as_save_IFS 4254 if test -z "$ac_cv_path_EGREP"; then 4255 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4256 fi 4257else 4258 ac_cv_path_EGREP=$EGREP 4259fi 4260 4261 fi 4262fi 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4264$as_echo "$ac_cv_path_EGREP" >&6; } 4265 EGREP="$ac_cv_path_EGREP" 4266 4267 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4269$as_echo_n "checking for ANSI C header files... " >&6; } 4270if ${ac_cv_header_stdc+:} false; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4274/* end confdefs.h. */ 4275#include <stdlib.h> 4276#include <stdarg.h> 4277#include <string.h> 4278#include <float.h> 4279 4280int 4281main () 4282{ 4283 4284 ; 4285 return 0; 4286} 4287_ACEOF 4288if ac_fn_c_try_compile "$LINENO"; then : 4289 ac_cv_header_stdc=yes 4290else 4291 ac_cv_header_stdc=no 4292fi 4293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4294 4295if test $ac_cv_header_stdc = yes; then 4296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4298/* end confdefs.h. */ 4299#include <string.h> 4300 4301_ACEOF 4302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4303 $EGREP "memchr" >/dev/null 2>&1; then : 4304 4305else 4306 ac_cv_header_stdc=no 4307fi 4308rm -f conftest* 4309 4310fi 4311 4312if test $ac_cv_header_stdc = yes; then 4313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4315/* end confdefs.h. */ 4316#include <stdlib.h> 4317 4318_ACEOF 4319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4320 $EGREP "free" >/dev/null 2>&1; then : 4321 4322else 4323 ac_cv_header_stdc=no 4324fi 4325rm -f conftest* 4326 4327fi 4328 4329if test $ac_cv_header_stdc = yes; then 4330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4331 if test "$cross_compiling" = yes; then : 4332 : 4333else 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4335/* end confdefs.h. */ 4336#include <ctype.h> 4337#include <stdlib.h> 4338#if ((' ' & 0x0FF) == 0x020) 4339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4341#else 4342# define ISLOWER(c) \ 4343 (('a' <= (c) && (c) <= 'i') \ 4344 || ('j' <= (c) && (c) <= 'r') \ 4345 || ('s' <= (c) && (c) <= 'z')) 4346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4347#endif 4348 4349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4350int 4351main () 4352{ 4353 int i; 4354 for (i = 0; i < 256; i++) 4355 if (XOR (islower (i), ISLOWER (i)) 4356 || toupper (i) != TOUPPER (i)) 4357 return 2; 4358 return 0; 4359} 4360_ACEOF 4361if ac_fn_c_try_run "$LINENO"; then : 4362 4363else 4364 ac_cv_header_stdc=no 4365fi 4366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4367 conftest.$ac_objext conftest.beam conftest.$ac_ext 4368fi 4369 4370fi 4371fi 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4373$as_echo "$ac_cv_header_stdc" >&6; } 4374if test $ac_cv_header_stdc = yes; then 4375 4376$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4377 4378fi 4379 4380# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4381for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4382 inttypes.h stdint.h unistd.h 4383do : 4384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4385ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4386" 4387if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4388 cat >>confdefs.h <<_ACEOF 4389#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4390_ACEOF 4391 4392fi 4393 4394done 4395 4396 4397 4398 4399 4400 4401ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4402if test "x$ac_cv_have_decl___clang__" = xyes; then : 4403 CLANGCC="yes" 4404else 4405 CLANGCC="no" 4406fi 4407 4408ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4409if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4410 INTELCC="yes" 4411else 4412 INTELCC="no" 4413fi 4414 4415ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4416if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4417 SUNCC="yes" 4418else 4419 SUNCC="no" 4420fi 4421 4422 4423 4424 4425if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4426 if test -n "$ac_tool_prefix"; then 4427 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4428set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4430$as_echo_n "checking for $ac_word... " >&6; } 4431if ${ac_cv_path_PKG_CONFIG+:} false; then : 4432 $as_echo_n "(cached) " >&6 4433else 4434 case $PKG_CONFIG in 4435 [\\/]* | ?:[\\/]*) 4436 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4437 ;; 4438 *) 4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4440for as_dir in $PATH 4441do 4442 IFS=$as_save_IFS 4443 test -z "$as_dir" && as_dir=. 4444 for ac_exec_ext in '' $ac_executable_extensions; do 4445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4446 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4448 break 2 4449 fi 4450done 4451 done 4452IFS=$as_save_IFS 4453 4454 ;; 4455esac 4456fi 4457PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4458if test -n "$PKG_CONFIG"; then 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4460$as_echo "$PKG_CONFIG" >&6; } 4461else 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4463$as_echo "no" >&6; } 4464fi 4465 4466 4467fi 4468if test -z "$ac_cv_path_PKG_CONFIG"; then 4469 ac_pt_PKG_CONFIG=$PKG_CONFIG 4470 # Extract the first word of "pkg-config", so it can be a program name with args. 4471set dummy pkg-config; ac_word=$2 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4473$as_echo_n "checking for $ac_word... " >&6; } 4474if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 case $ac_pt_PKG_CONFIG in 4478 [\\/]* | ?:[\\/]*) 4479 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4480 ;; 4481 *) 4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4483for as_dir in $PATH 4484do 4485 IFS=$as_save_IFS 4486 test -z "$as_dir" && as_dir=. 4487 for ac_exec_ext in '' $ac_executable_extensions; do 4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4489 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4491 break 2 4492 fi 4493done 4494 done 4495IFS=$as_save_IFS 4496 4497 ;; 4498esac 4499fi 4500ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4501if test -n "$ac_pt_PKG_CONFIG"; then 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4503$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4504else 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4506$as_echo "no" >&6; } 4507fi 4508 4509 if test "x$ac_pt_PKG_CONFIG" = x; then 4510 PKG_CONFIG="" 4511 else 4512 case $cross_compiling:$ac_tool_warned in 4513yes:) 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4516ac_tool_warned=yes ;; 4517esac 4518 PKG_CONFIG=$ac_pt_PKG_CONFIG 4519 fi 4520else 4521 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4522fi 4523 4524fi 4525if test -n "$PKG_CONFIG"; then 4526 _pkg_min_version=0.9.0 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4528$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4529 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4531$as_echo "yes" >&6; } 4532 else 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4534$as_echo "no" >&6; } 4535 PKG_CONFIG="" 4536 fi 4537 4538fi 4539# Make sure we can run config.sub. 4540$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4541 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4542 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4544$as_echo_n "checking build system type... " >&6; } 4545if ${ac_cv_build+:} false; then : 4546 $as_echo_n "(cached) " >&6 4547else 4548 ac_build_alias=$build_alias 4549test "x$ac_build_alias" = x && 4550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4551test "x$ac_build_alias" = x && 4552 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4553ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4555 4556fi 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4558$as_echo "$ac_cv_build" >&6; } 4559case $ac_cv_build in 4560*-*-*) ;; 4561*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4562esac 4563build=$ac_cv_build 4564ac_save_IFS=$IFS; IFS='-' 4565set x $ac_cv_build 4566shift 4567build_cpu=$1 4568build_vendor=$2 4569shift; shift 4570# Remember, the first character of IFS is used to create $*, 4571# except with old shells: 4572build_os=$* 4573IFS=$ac_save_IFS 4574case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4575 4576 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4578$as_echo_n "checking host system type... " >&6; } 4579if ${ac_cv_host+:} false; then : 4580 $as_echo_n "(cached) " >&6 4581else 4582 if test "x$host_alias" = x; then 4583 ac_cv_host=$ac_cv_build 4584else 4585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4587fi 4588 4589fi 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4591$as_echo "$ac_cv_host" >&6; } 4592case $ac_cv_host in 4593*-*-*) ;; 4594*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4595esac 4596host=$ac_cv_host 4597ac_save_IFS=$IFS; IFS='-' 4598set x $ac_cv_host 4599shift 4600host_cpu=$1 4601host_vendor=$2 4602shift; shift 4603# Remember, the first character of IFS is used to create $*, 4604# except with old shells: 4605host_os=$* 4606IFS=$ac_save_IFS 4607case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4608 4609 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4611$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4612if ${ac_cv_path_SED+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4616 for ac_i in 1 2 3 4 5 6 7; do 4617 ac_script="$ac_script$as_nl$ac_script" 4618 done 4619 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4620 { ac_script=; unset ac_script;} 4621 if test -z "$SED"; then 4622 ac_path_SED_found=false 4623 # Loop through the user's path and test for each of PROGNAME-LIST 4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625for as_dir in $PATH 4626do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_prog in sed gsed; do 4630 for ac_exec_ext in '' $ac_executable_extensions; do 4631 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4632 as_fn_executable_p "$ac_path_SED" || continue 4633# Check for GNU ac_path_SED and select it if it is found. 4634 # Check for GNU $ac_path_SED 4635case `"$ac_path_SED" --version 2>&1` in 4636*GNU*) 4637 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4638*) 4639 ac_count=0 4640 $as_echo_n 0123456789 >"conftest.in" 4641 while : 4642 do 4643 cat "conftest.in" "conftest.in" >"conftest.tmp" 4644 mv "conftest.tmp" "conftest.in" 4645 cp "conftest.in" "conftest.nl" 4646 $as_echo '' >> "conftest.nl" 4647 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4649 as_fn_arith $ac_count + 1 && ac_count=$as_val 4650 if test $ac_count -gt ${ac_path_SED_max-0}; then 4651 # Best one so far, save it but keep looking for a better one 4652 ac_cv_path_SED="$ac_path_SED" 4653 ac_path_SED_max=$ac_count 4654 fi 4655 # 10*(2^10) chars as input seems more than enough 4656 test $ac_count -gt 10 && break 4657 done 4658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4659esac 4660 4661 $ac_path_SED_found && break 3 4662 done 4663 done 4664 done 4665IFS=$as_save_IFS 4666 if test -z "$ac_cv_path_SED"; then 4667 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4668 fi 4669else 4670 ac_cv_path_SED=$SED 4671fi 4672 4673fi 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4675$as_echo "$ac_cv_path_SED" >&6; } 4676 SED="$ac_cv_path_SED" 4677 rm -f conftest.sed 4678 4679 4680 4681 4682 4683 4684# Check whether --enable-selective-werror was given. 4685if test "${enable_selective_werror+set}" = set; then : 4686 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4687else 4688 SELECTIVE_WERROR=yes 4689fi 4690 4691 4692 4693 4694 4695# -v is too short to test reliably with XORG_TESTSET_CFLAG 4696if test "x$SUNCC" = "xyes"; then 4697 BASE_CFLAGS="-v" 4698else 4699 BASE_CFLAGS="" 4700fi 4701 4702# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716xorg_testset_save_CFLAGS="$CFLAGS" 4717 4718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4723 $as_echo_n "(cached) " >&6 4724else 4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4726/* end confdefs.h. */ 4727int i; 4728_ACEOF 4729if ac_fn_c_try_compile "$LINENO"; then : 4730 xorg_cv_cc_flag_unknown_warning_option=yes 4731else 4732 xorg_cv_cc_flag_unknown_warning_option=no 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735fi 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4739 CFLAGS="$xorg_testset_save_CFLAGS" 4740fi 4741 4742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4745 fi 4746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4753/* end confdefs.h. */ 4754int i; 4755_ACEOF 4756if ac_fn_c_try_compile "$LINENO"; then : 4757 xorg_cv_cc_flag_unused_command_line_argument=yes 4758else 4759 xorg_cv_cc_flag_unused_command_line_argument=no 4760fi 4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4762fi 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4766 CFLAGS="$xorg_testset_save_CFLAGS" 4767fi 4768 4769found="no" 4770 4771 if test $found = "no" ; then 4772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4774 fi 4775 4776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4778 fi 4779 4780 CFLAGS="$CFLAGS -Wall" 4781 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4783$as_echo_n "checking if $CC supports -Wall... " >&6; } 4784 cacheid=xorg_cv_cc_flag__Wall 4785 if eval \${$cacheid+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4789/* end confdefs.h. */ 4790int i; 4791int 4792main () 4793{ 4794 4795 ; 4796 return 0; 4797} 4798_ACEOF 4799if ac_fn_c_try_link "$LINENO"; then : 4800 eval $cacheid=yes 4801else 4802 eval $cacheid=no 4803fi 4804rm -f core conftest.err conftest.$ac_objext \ 4805 conftest$ac_exeext conftest.$ac_ext 4806fi 4807 4808 4809 CFLAGS="$xorg_testset_save_CFLAGS" 4810 4811 eval supported=\$$cacheid 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4813$as_echo "$supported" >&6; } 4814 if test "$supported" = "yes" ; then 4815 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4816 found="yes" 4817 fi 4818 fi 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834xorg_testset_save_CFLAGS="$CFLAGS" 4835 4836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4840if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4841 $as_echo_n "(cached) " >&6 4842else 4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4844/* end confdefs.h. */ 4845int i; 4846_ACEOF 4847if ac_fn_c_try_compile "$LINENO"; then : 4848 xorg_cv_cc_flag_unknown_warning_option=yes 4849else 4850 xorg_cv_cc_flag_unknown_warning_option=no 4851fi 4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4853fi 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4855$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4857 CFLAGS="$xorg_testset_save_CFLAGS" 4858fi 4859 4860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4863 fi 4864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4866$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4867if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4868 $as_echo_n "(cached) " >&6 4869else 4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4871/* end confdefs.h. */ 4872int i; 4873_ACEOF 4874if ac_fn_c_try_compile "$LINENO"; then : 4875 xorg_cv_cc_flag_unused_command_line_argument=yes 4876else 4877 xorg_cv_cc_flag_unused_command_line_argument=no 4878fi 4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4880fi 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4882$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4884 CFLAGS="$xorg_testset_save_CFLAGS" 4885fi 4886 4887found="no" 4888 4889 if test $found = "no" ; then 4890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4892 fi 4893 4894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4896 fi 4897 4898 CFLAGS="$CFLAGS -Wpointer-arith" 4899 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4901$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4902 cacheid=xorg_cv_cc_flag__Wpointer_arith 4903 if eval \${$cacheid+:} false; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908int i; 4909int 4910main () 4911{ 4912 4913 ; 4914 return 0; 4915} 4916_ACEOF 4917if ac_fn_c_try_link "$LINENO"; then : 4918 eval $cacheid=yes 4919else 4920 eval $cacheid=no 4921fi 4922rm -f core conftest.err conftest.$ac_objext \ 4923 conftest$ac_exeext conftest.$ac_ext 4924fi 4925 4926 4927 CFLAGS="$xorg_testset_save_CFLAGS" 4928 4929 eval supported=\$$cacheid 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4931$as_echo "$supported" >&6; } 4932 if test "$supported" = "yes" ; then 4933 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4934 found="yes" 4935 fi 4936 fi 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952xorg_testset_save_CFLAGS="$CFLAGS" 4953 4954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4959 $as_echo_n "(cached) " >&6 4960else 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962/* end confdefs.h. */ 4963int i; 4964_ACEOF 4965if ac_fn_c_try_compile "$LINENO"; then : 4966 xorg_cv_cc_flag_unknown_warning_option=yes 4967else 4968 xorg_cv_cc_flag_unknown_warning_option=no 4969fi 4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4971fi 4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4975 CFLAGS="$xorg_testset_save_CFLAGS" 4976fi 4977 4978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4981 fi 4982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4986 $as_echo_n "(cached) " >&6 4987else 4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4989/* end confdefs.h. */ 4990int i; 4991_ACEOF 4992if ac_fn_c_try_compile "$LINENO"; then : 4993 xorg_cv_cc_flag_unused_command_line_argument=yes 4994else 4995 xorg_cv_cc_flag_unused_command_line_argument=no 4996fi 4997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4998fi 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5002 CFLAGS="$xorg_testset_save_CFLAGS" 5003fi 5004 5005found="no" 5006 5007 if test $found = "no" ; then 5008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5010 fi 5011 5012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5014 fi 5015 5016 CFLAGS="$CFLAGS -Wmissing-declarations" 5017 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5019$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5020 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5021 if eval \${$cacheid+:} false; then : 5022 $as_echo_n "(cached) " >&6 5023else 5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5025/* end confdefs.h. */ 5026int i; 5027int 5028main () 5029{ 5030 5031 ; 5032 return 0; 5033} 5034_ACEOF 5035if ac_fn_c_try_link "$LINENO"; then : 5036 eval $cacheid=yes 5037else 5038 eval $cacheid=no 5039fi 5040rm -f core conftest.err conftest.$ac_objext \ 5041 conftest$ac_exeext conftest.$ac_ext 5042fi 5043 5044 5045 CFLAGS="$xorg_testset_save_CFLAGS" 5046 5047 eval supported=\$$cacheid 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5049$as_echo "$supported" >&6; } 5050 if test "$supported" = "yes" ; then 5051 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5052 found="yes" 5053 fi 5054 fi 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070xorg_testset_save_CFLAGS="$CFLAGS" 5071 5072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081int i; 5082_ACEOF 5083if ac_fn_c_try_compile "$LINENO"; then : 5084 xorg_cv_cc_flag_unknown_warning_option=yes 5085else 5086 xorg_cv_cc_flag_unknown_warning_option=no 5087fi 5088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5089fi 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5093 CFLAGS="$xorg_testset_save_CFLAGS" 5094fi 5095 5096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5099 fi 5100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5104 $as_echo_n "(cached) " >&6 5105else 5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5107/* end confdefs.h. */ 5108int i; 5109_ACEOF 5110if ac_fn_c_try_compile "$LINENO"; then : 5111 xorg_cv_cc_flag_unused_command_line_argument=yes 5112else 5113 xorg_cv_cc_flag_unused_command_line_argument=no 5114fi 5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5116fi 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5120 CFLAGS="$xorg_testset_save_CFLAGS" 5121fi 5122 5123found="no" 5124 5125 if test $found = "no" ; then 5126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5128 fi 5129 5130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5132 fi 5133 5134 CFLAGS="$CFLAGS -Wformat=2" 5135 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5137$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5138 cacheid=xorg_cv_cc_flag__Wformat_2 5139 if eval \${$cacheid+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143/* end confdefs.h. */ 5144int i; 5145int 5146main () 5147{ 5148 5149 ; 5150 return 0; 5151} 5152_ACEOF 5153if ac_fn_c_try_link "$LINENO"; then : 5154 eval $cacheid=yes 5155else 5156 eval $cacheid=no 5157fi 5158rm -f core conftest.err conftest.$ac_objext \ 5159 conftest$ac_exeext conftest.$ac_ext 5160fi 5161 5162 5163 CFLAGS="$xorg_testset_save_CFLAGS" 5164 5165 eval supported=\$$cacheid 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5167$as_echo "$supported" >&6; } 5168 if test "$supported" = "yes" ; then 5169 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5170 found="yes" 5171 fi 5172 fi 5173 5174 if test $found = "no" ; then 5175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5177 fi 5178 5179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5181 fi 5182 5183 CFLAGS="$CFLAGS -Wformat" 5184 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5186$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5187 cacheid=xorg_cv_cc_flag__Wformat 5188 if eval \${$cacheid+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190else 5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5192/* end confdefs.h. */ 5193int i; 5194int 5195main () 5196{ 5197 5198 ; 5199 return 0; 5200} 5201_ACEOF 5202if ac_fn_c_try_link "$LINENO"; then : 5203 eval $cacheid=yes 5204else 5205 eval $cacheid=no 5206fi 5207rm -f core conftest.err conftest.$ac_objext \ 5208 conftest$ac_exeext conftest.$ac_ext 5209fi 5210 5211 5212 CFLAGS="$xorg_testset_save_CFLAGS" 5213 5214 eval supported=\$$cacheid 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5216$as_echo "$supported" >&6; } 5217 if test "$supported" = "yes" ; then 5218 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5219 found="yes" 5220 fi 5221 fi 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239xorg_testset_save_CFLAGS="$CFLAGS" 5240 5241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5249/* end confdefs.h. */ 5250int i; 5251_ACEOF 5252if ac_fn_c_try_compile "$LINENO"; then : 5253 xorg_cv_cc_flag_unknown_warning_option=yes 5254else 5255 xorg_cv_cc_flag_unknown_warning_option=no 5256fi 5257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5258fi 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5262 CFLAGS="$xorg_testset_save_CFLAGS" 5263fi 5264 5265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5268 fi 5269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277int i; 5278_ACEOF 5279if ac_fn_c_try_compile "$LINENO"; then : 5280 xorg_cv_cc_flag_unused_command_line_argument=yes 5281else 5282 xorg_cv_cc_flag_unused_command_line_argument=no 5283fi 5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5285fi 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5289 CFLAGS="$xorg_testset_save_CFLAGS" 5290fi 5291 5292found="no" 5293 5294 if test $found = "no" ; then 5295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5297 fi 5298 5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5301 fi 5302 5303 CFLAGS="$CFLAGS -Wstrict-prototypes" 5304 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5306$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5307 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5308 if eval \${$cacheid+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313int i; 5314int 5315main () 5316{ 5317 5318 ; 5319 return 0; 5320} 5321_ACEOF 5322if ac_fn_c_try_link "$LINENO"; then : 5323 eval $cacheid=yes 5324else 5325 eval $cacheid=no 5326fi 5327rm -f core conftest.err conftest.$ac_objext \ 5328 conftest$ac_exeext conftest.$ac_ext 5329fi 5330 5331 5332 CFLAGS="$xorg_testset_save_CFLAGS" 5333 5334 eval supported=\$$cacheid 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5336$as_echo "$supported" >&6; } 5337 if test "$supported" = "yes" ; then 5338 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5339 found="yes" 5340 fi 5341 fi 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357xorg_testset_save_CFLAGS="$CFLAGS" 5358 5359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5362$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5363if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368int i; 5369_ACEOF 5370if ac_fn_c_try_compile "$LINENO"; then : 5371 xorg_cv_cc_flag_unknown_warning_option=yes 5372else 5373 xorg_cv_cc_flag_unknown_warning_option=no 5374fi 5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5376fi 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5378$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5380 CFLAGS="$xorg_testset_save_CFLAGS" 5381fi 5382 5383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5386 fi 5387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5389$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5390if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5394/* end confdefs.h. */ 5395int i; 5396_ACEOF 5397if ac_fn_c_try_compile "$LINENO"; then : 5398 xorg_cv_cc_flag_unused_command_line_argument=yes 5399else 5400 xorg_cv_cc_flag_unused_command_line_argument=no 5401fi 5402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5403fi 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5405$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5407 CFLAGS="$xorg_testset_save_CFLAGS" 5408fi 5409 5410found="no" 5411 5412 if test $found = "no" ; then 5413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5415 fi 5416 5417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5419 fi 5420 5421 CFLAGS="$CFLAGS -Wmissing-prototypes" 5422 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5424$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5425 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5426 if eval \${$cacheid+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428else 5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5430/* end confdefs.h. */ 5431int i; 5432int 5433main () 5434{ 5435 5436 ; 5437 return 0; 5438} 5439_ACEOF 5440if ac_fn_c_try_link "$LINENO"; then : 5441 eval $cacheid=yes 5442else 5443 eval $cacheid=no 5444fi 5445rm -f core conftest.err conftest.$ac_objext \ 5446 conftest$ac_exeext conftest.$ac_ext 5447fi 5448 5449 5450 CFLAGS="$xorg_testset_save_CFLAGS" 5451 5452 eval supported=\$$cacheid 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5454$as_echo "$supported" >&6; } 5455 if test "$supported" = "yes" ; then 5456 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5457 found="yes" 5458 fi 5459 fi 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475xorg_testset_save_CFLAGS="$CFLAGS" 5476 5477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486int i; 5487_ACEOF 5488if ac_fn_c_try_compile "$LINENO"; then : 5489 xorg_cv_cc_flag_unknown_warning_option=yes 5490else 5491 xorg_cv_cc_flag_unknown_warning_option=no 5492fi 5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5494fi 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5498 CFLAGS="$xorg_testset_save_CFLAGS" 5499fi 5500 5501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5504 fi 5505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5512/* end confdefs.h. */ 5513int i; 5514_ACEOF 5515if ac_fn_c_try_compile "$LINENO"; then : 5516 xorg_cv_cc_flag_unused_command_line_argument=yes 5517else 5518 xorg_cv_cc_flag_unused_command_line_argument=no 5519fi 5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5521fi 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5525 CFLAGS="$xorg_testset_save_CFLAGS" 5526fi 5527 5528found="no" 5529 5530 if test $found = "no" ; then 5531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5533 fi 5534 5535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5537 fi 5538 5539 CFLAGS="$CFLAGS -Wnested-externs" 5540 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5542$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5543 cacheid=xorg_cv_cc_flag__Wnested_externs 5544 if eval \${$cacheid+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549int i; 5550int 5551main () 5552{ 5553 5554 ; 5555 return 0; 5556} 5557_ACEOF 5558if ac_fn_c_try_link "$LINENO"; then : 5559 eval $cacheid=yes 5560else 5561 eval $cacheid=no 5562fi 5563rm -f core conftest.err conftest.$ac_objext \ 5564 conftest$ac_exeext conftest.$ac_ext 5565fi 5566 5567 5568 CFLAGS="$xorg_testset_save_CFLAGS" 5569 5570 eval supported=\$$cacheid 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5572$as_echo "$supported" >&6; } 5573 if test "$supported" = "yes" ; then 5574 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5575 found="yes" 5576 fi 5577 fi 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593xorg_testset_save_CFLAGS="$CFLAGS" 5594 5595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5598$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5599if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5603/* end confdefs.h. */ 5604int i; 5605_ACEOF 5606if ac_fn_c_try_compile "$LINENO"; then : 5607 xorg_cv_cc_flag_unknown_warning_option=yes 5608else 5609 xorg_cv_cc_flag_unknown_warning_option=no 5610fi 5611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5612fi 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5614$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5616 CFLAGS="$xorg_testset_save_CFLAGS" 5617fi 5618 5619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5622 fi 5623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5625$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5626if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5627 $as_echo_n "(cached) " >&6 5628else 5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5630/* end confdefs.h. */ 5631int i; 5632_ACEOF 5633if ac_fn_c_try_compile "$LINENO"; then : 5634 xorg_cv_cc_flag_unused_command_line_argument=yes 5635else 5636 xorg_cv_cc_flag_unused_command_line_argument=no 5637fi 5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5639fi 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5641$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5643 CFLAGS="$xorg_testset_save_CFLAGS" 5644fi 5645 5646found="no" 5647 5648 if test $found = "no" ; then 5649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5651 fi 5652 5653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5655 fi 5656 5657 CFLAGS="$CFLAGS -Wbad-function-cast" 5658 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5660$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5661 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5662 if eval \${$cacheid+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666/* end confdefs.h. */ 5667int i; 5668int 5669main () 5670{ 5671 5672 ; 5673 return 0; 5674} 5675_ACEOF 5676if ac_fn_c_try_link "$LINENO"; then : 5677 eval $cacheid=yes 5678else 5679 eval $cacheid=no 5680fi 5681rm -f core conftest.err conftest.$ac_objext \ 5682 conftest$ac_exeext conftest.$ac_ext 5683fi 5684 5685 5686 CFLAGS="$xorg_testset_save_CFLAGS" 5687 5688 eval supported=\$$cacheid 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5690$as_echo "$supported" >&6; } 5691 if test "$supported" = "yes" ; then 5692 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5693 found="yes" 5694 fi 5695 fi 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711xorg_testset_save_CFLAGS="$CFLAGS" 5712 5713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5716$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5717if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721/* end confdefs.h. */ 5722int i; 5723_ACEOF 5724if ac_fn_c_try_compile "$LINENO"; then : 5725 xorg_cv_cc_flag_unknown_warning_option=yes 5726else 5727 xorg_cv_cc_flag_unknown_warning_option=no 5728fi 5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5730fi 5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5732$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5734 CFLAGS="$xorg_testset_save_CFLAGS" 5735fi 5736 5737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5740 fi 5741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5743$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5744if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5745 $as_echo_n "(cached) " >&6 5746else 5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5748/* end confdefs.h. */ 5749int i; 5750_ACEOF 5751if ac_fn_c_try_compile "$LINENO"; then : 5752 xorg_cv_cc_flag_unused_command_line_argument=yes 5753else 5754 xorg_cv_cc_flag_unused_command_line_argument=no 5755fi 5756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5757fi 5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5759$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5761 CFLAGS="$xorg_testset_save_CFLAGS" 5762fi 5763 5764found="no" 5765 5766 if test $found = "no" ; then 5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5769 fi 5770 5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5773 fi 5774 5775 CFLAGS="$CFLAGS -Wold-style-definition" 5776 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5778$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5779 cacheid=xorg_cv_cc_flag__Wold_style_definition 5780 if eval \${$cacheid+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782else 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5784/* end confdefs.h. */ 5785int i; 5786int 5787main () 5788{ 5789 5790 ; 5791 return 0; 5792} 5793_ACEOF 5794if ac_fn_c_try_link "$LINENO"; then : 5795 eval $cacheid=yes 5796else 5797 eval $cacheid=no 5798fi 5799rm -f core conftest.err conftest.$ac_objext \ 5800 conftest$ac_exeext conftest.$ac_ext 5801fi 5802 5803 5804 CFLAGS="$xorg_testset_save_CFLAGS" 5805 5806 eval supported=\$$cacheid 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5808$as_echo "$supported" >&6; } 5809 if test "$supported" = "yes" ; then 5810 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5811 found="yes" 5812 fi 5813 fi 5814 5815 if test $found = "no" ; then 5816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5818 fi 5819 5820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5822 fi 5823 5824 CFLAGS="$CFLAGS -fd" 5825 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5827$as_echo_n "checking if $CC supports -fd... " >&6; } 5828 cacheid=xorg_cv_cc_flag__fd 5829 if eval \${$cacheid+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5833/* end confdefs.h. */ 5834int i; 5835int 5836main () 5837{ 5838 5839 ; 5840 return 0; 5841} 5842_ACEOF 5843if ac_fn_c_try_link "$LINENO"; then : 5844 eval $cacheid=yes 5845else 5846 eval $cacheid=no 5847fi 5848rm -f core conftest.err conftest.$ac_objext \ 5849 conftest$ac_exeext conftest.$ac_ext 5850fi 5851 5852 5853 CFLAGS="$xorg_testset_save_CFLAGS" 5854 5855 eval supported=\$$cacheid 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5857$as_echo "$supported" >&6; } 5858 if test "$supported" = "yes" ; then 5859 BASE_CFLAGS="$BASE_CFLAGS -fd" 5860 found="yes" 5861 fi 5862 fi 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878xorg_testset_save_CFLAGS="$CFLAGS" 5879 5880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886else 5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5888/* end confdefs.h. */ 5889int i; 5890_ACEOF 5891if ac_fn_c_try_compile "$LINENO"; then : 5892 xorg_cv_cc_flag_unknown_warning_option=yes 5893else 5894 xorg_cv_cc_flag_unknown_warning_option=no 5895fi 5896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5897fi 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5901 CFLAGS="$xorg_testset_save_CFLAGS" 5902fi 5903 5904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5907 fi 5908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5912 $as_echo_n "(cached) " >&6 5913else 5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5915/* end confdefs.h. */ 5916int i; 5917_ACEOF 5918if ac_fn_c_try_compile "$LINENO"; then : 5919 xorg_cv_cc_flag_unused_command_line_argument=yes 5920else 5921 xorg_cv_cc_flag_unused_command_line_argument=no 5922fi 5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5924fi 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5928 CFLAGS="$xorg_testset_save_CFLAGS" 5929fi 5930 5931found="no" 5932 5933 if test $found = "no" ; then 5934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5936 fi 5937 5938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5940 fi 5941 5942 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5943 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5945$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5946 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5947 if eval \${$cacheid+:} false; then : 5948 $as_echo_n "(cached) " >&6 5949else 5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5951/* end confdefs.h. */ 5952int i; 5953int 5954main () 5955{ 5956 5957 ; 5958 return 0; 5959} 5960_ACEOF 5961if ac_fn_c_try_link "$LINENO"; then : 5962 eval $cacheid=yes 5963else 5964 eval $cacheid=no 5965fi 5966rm -f core conftest.err conftest.$ac_objext \ 5967 conftest$ac_exeext conftest.$ac_ext 5968fi 5969 5970 5971 CFLAGS="$xorg_testset_save_CFLAGS" 5972 5973 eval supported=\$$cacheid 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5975$as_echo "$supported" >&6; } 5976 if test "$supported" = "yes" ; then 5977 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5978 found="yes" 5979 fi 5980 fi 5981 5982 5983 5984 5985 5986# This chunk adds additional warnings that could catch undesired effects. 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000xorg_testset_save_CFLAGS="$CFLAGS" 6001 6002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6007 $as_echo_n "(cached) " >&6 6008else 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011int i; 6012_ACEOF 6013if ac_fn_c_try_compile "$LINENO"; then : 6014 xorg_cv_cc_flag_unknown_warning_option=yes 6015else 6016 xorg_cv_cc_flag_unknown_warning_option=no 6017fi 6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6019fi 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6023 CFLAGS="$xorg_testset_save_CFLAGS" 6024fi 6025 6026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6029 fi 6030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6034 $as_echo_n "(cached) " >&6 6035else 6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6037/* end confdefs.h. */ 6038int i; 6039_ACEOF 6040if ac_fn_c_try_compile "$LINENO"; then : 6041 xorg_cv_cc_flag_unused_command_line_argument=yes 6042else 6043 xorg_cv_cc_flag_unused_command_line_argument=no 6044fi 6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6046fi 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6050 CFLAGS="$xorg_testset_save_CFLAGS" 6051fi 6052 6053found="no" 6054 6055 if test $found = "no" ; then 6056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6058 fi 6059 6060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6062 fi 6063 6064 CFLAGS="$CFLAGS -Wunused" 6065 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6067$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6068 cacheid=xorg_cv_cc_flag__Wunused 6069 if eval \${$cacheid+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6073/* end confdefs.h. */ 6074int i; 6075int 6076main () 6077{ 6078 6079 ; 6080 return 0; 6081} 6082_ACEOF 6083if ac_fn_c_try_link "$LINENO"; then : 6084 eval $cacheid=yes 6085else 6086 eval $cacheid=no 6087fi 6088rm -f core conftest.err conftest.$ac_objext \ 6089 conftest$ac_exeext conftest.$ac_ext 6090fi 6091 6092 6093 CFLAGS="$xorg_testset_save_CFLAGS" 6094 6095 eval supported=\$$cacheid 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6097$as_echo "$supported" >&6; } 6098 if test "$supported" = "yes" ; then 6099 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6100 found="yes" 6101 fi 6102 fi 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118xorg_testset_save_CFLAGS="$CFLAGS" 6119 6120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129int i; 6130_ACEOF 6131if ac_fn_c_try_compile "$LINENO"; then : 6132 xorg_cv_cc_flag_unknown_warning_option=yes 6133else 6134 xorg_cv_cc_flag_unknown_warning_option=no 6135fi 6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6137fi 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6141 CFLAGS="$xorg_testset_save_CFLAGS" 6142fi 6143 6144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6147 fi 6148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6152 $as_echo_n "(cached) " >&6 6153else 6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6155/* end confdefs.h. */ 6156int i; 6157_ACEOF 6158if ac_fn_c_try_compile "$LINENO"; then : 6159 xorg_cv_cc_flag_unused_command_line_argument=yes 6160else 6161 xorg_cv_cc_flag_unused_command_line_argument=no 6162fi 6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6164fi 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6168 CFLAGS="$xorg_testset_save_CFLAGS" 6169fi 6170 6171found="no" 6172 6173 if test $found = "no" ; then 6174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6176 fi 6177 6178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6180 fi 6181 6182 CFLAGS="$CFLAGS -Wuninitialized" 6183 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6185$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6186 cacheid=xorg_cv_cc_flag__Wuninitialized 6187 if eval \${$cacheid+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6191/* end confdefs.h. */ 6192int i; 6193int 6194main () 6195{ 6196 6197 ; 6198 return 0; 6199} 6200_ACEOF 6201if ac_fn_c_try_link "$LINENO"; then : 6202 eval $cacheid=yes 6203else 6204 eval $cacheid=no 6205fi 6206rm -f core conftest.err conftest.$ac_objext \ 6207 conftest$ac_exeext conftest.$ac_ext 6208fi 6209 6210 6211 CFLAGS="$xorg_testset_save_CFLAGS" 6212 6213 eval supported=\$$cacheid 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6215$as_echo "$supported" >&6; } 6216 if test "$supported" = "yes" ; then 6217 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6218 found="yes" 6219 fi 6220 fi 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236xorg_testset_save_CFLAGS="$CFLAGS" 6237 6238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247int i; 6248_ACEOF 6249if ac_fn_c_try_compile "$LINENO"; then : 6250 xorg_cv_cc_flag_unknown_warning_option=yes 6251else 6252 xorg_cv_cc_flag_unknown_warning_option=no 6253fi 6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6255fi 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6259 CFLAGS="$xorg_testset_save_CFLAGS" 6260fi 6261 6262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6265 fi 6266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6270 $as_echo_n "(cached) " >&6 6271else 6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273/* end confdefs.h. */ 6274int i; 6275_ACEOF 6276if ac_fn_c_try_compile "$LINENO"; then : 6277 xorg_cv_cc_flag_unused_command_line_argument=yes 6278else 6279 xorg_cv_cc_flag_unused_command_line_argument=no 6280fi 6281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6282fi 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6286 CFLAGS="$xorg_testset_save_CFLAGS" 6287fi 6288 6289found="no" 6290 6291 if test $found = "no" ; then 6292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6294 fi 6295 6296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6298 fi 6299 6300 CFLAGS="$CFLAGS -Wshadow" 6301 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6303$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6304 cacheid=xorg_cv_cc_flag__Wshadow 6305 if eval \${$cacheid+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6309/* end confdefs.h. */ 6310int i; 6311int 6312main () 6313{ 6314 6315 ; 6316 return 0; 6317} 6318_ACEOF 6319if ac_fn_c_try_link "$LINENO"; then : 6320 eval $cacheid=yes 6321else 6322 eval $cacheid=no 6323fi 6324rm -f core conftest.err conftest.$ac_objext \ 6325 conftest$ac_exeext conftest.$ac_ext 6326fi 6327 6328 6329 CFLAGS="$xorg_testset_save_CFLAGS" 6330 6331 eval supported=\$$cacheid 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6333$as_echo "$supported" >&6; } 6334 if test "$supported" = "yes" ; then 6335 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6336 found="yes" 6337 fi 6338 fi 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354xorg_testset_save_CFLAGS="$CFLAGS" 6355 6356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6364/* end confdefs.h. */ 6365int i; 6366_ACEOF 6367if ac_fn_c_try_compile "$LINENO"; then : 6368 xorg_cv_cc_flag_unknown_warning_option=yes 6369else 6370 xorg_cv_cc_flag_unknown_warning_option=no 6371fi 6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6373fi 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6377 CFLAGS="$xorg_testset_save_CFLAGS" 6378fi 6379 6380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6383 fi 6384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6388 $as_echo_n "(cached) " >&6 6389else 6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6391/* end confdefs.h. */ 6392int i; 6393_ACEOF 6394if ac_fn_c_try_compile "$LINENO"; then : 6395 xorg_cv_cc_flag_unused_command_line_argument=yes 6396else 6397 xorg_cv_cc_flag_unused_command_line_argument=no 6398fi 6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6400fi 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6404 CFLAGS="$xorg_testset_save_CFLAGS" 6405fi 6406 6407found="no" 6408 6409 if test $found = "no" ; then 6410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6412 fi 6413 6414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6416 fi 6417 6418 CFLAGS="$CFLAGS -Wmissing-noreturn" 6419 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6421$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6422 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6423 if eval \${$cacheid+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6427/* end confdefs.h. */ 6428int i; 6429int 6430main () 6431{ 6432 6433 ; 6434 return 0; 6435} 6436_ACEOF 6437if ac_fn_c_try_link "$LINENO"; then : 6438 eval $cacheid=yes 6439else 6440 eval $cacheid=no 6441fi 6442rm -f core conftest.err conftest.$ac_objext \ 6443 conftest$ac_exeext conftest.$ac_ext 6444fi 6445 6446 6447 CFLAGS="$xorg_testset_save_CFLAGS" 6448 6449 eval supported=\$$cacheid 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6451$as_echo "$supported" >&6; } 6452 if test "$supported" = "yes" ; then 6453 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6454 found="yes" 6455 fi 6456 fi 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472xorg_testset_save_CFLAGS="$CFLAGS" 6473 6474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483int i; 6484_ACEOF 6485if ac_fn_c_try_compile "$LINENO"; then : 6486 xorg_cv_cc_flag_unknown_warning_option=yes 6487else 6488 xorg_cv_cc_flag_unknown_warning_option=no 6489fi 6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6491fi 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6495 CFLAGS="$xorg_testset_save_CFLAGS" 6496fi 6497 6498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6501 fi 6502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6506 $as_echo_n "(cached) " >&6 6507else 6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509/* end confdefs.h. */ 6510int i; 6511_ACEOF 6512if ac_fn_c_try_compile "$LINENO"; then : 6513 xorg_cv_cc_flag_unused_command_line_argument=yes 6514else 6515 xorg_cv_cc_flag_unused_command_line_argument=no 6516fi 6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6518fi 6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6522 CFLAGS="$xorg_testset_save_CFLAGS" 6523fi 6524 6525found="no" 6526 6527 if test $found = "no" ; then 6528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6530 fi 6531 6532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6534 fi 6535 6536 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6537 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6539$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6540 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6541 if eval \${$cacheid+:} false; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6545/* end confdefs.h. */ 6546int i; 6547int 6548main () 6549{ 6550 6551 ; 6552 return 0; 6553} 6554_ACEOF 6555if ac_fn_c_try_link "$LINENO"; then : 6556 eval $cacheid=yes 6557else 6558 eval $cacheid=no 6559fi 6560rm -f core conftest.err conftest.$ac_objext \ 6561 conftest$ac_exeext conftest.$ac_ext 6562fi 6563 6564 6565 CFLAGS="$xorg_testset_save_CFLAGS" 6566 6567 eval supported=\$$cacheid 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6569$as_echo "$supported" >&6; } 6570 if test "$supported" = "yes" ; then 6571 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6572 found="yes" 6573 fi 6574 fi 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590xorg_testset_save_CFLAGS="$CFLAGS" 6591 6592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6595$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6596if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600/* end confdefs.h. */ 6601int i; 6602_ACEOF 6603if ac_fn_c_try_compile "$LINENO"; then : 6604 xorg_cv_cc_flag_unknown_warning_option=yes 6605else 6606 xorg_cv_cc_flag_unknown_warning_option=no 6607fi 6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6609fi 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6611$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6613 CFLAGS="$xorg_testset_save_CFLAGS" 6614fi 6615 6616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6619 fi 6620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6622$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6623if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6624 $as_echo_n "(cached) " >&6 6625else 6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6627/* end confdefs.h. */ 6628int i; 6629_ACEOF 6630if ac_fn_c_try_compile "$LINENO"; then : 6631 xorg_cv_cc_flag_unused_command_line_argument=yes 6632else 6633 xorg_cv_cc_flag_unused_command_line_argument=no 6634fi 6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6636fi 6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6638$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6640 CFLAGS="$xorg_testset_save_CFLAGS" 6641fi 6642 6643found="no" 6644 6645 if test $found = "no" ; then 6646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6648 fi 6649 6650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6652 fi 6653 6654 CFLAGS="$CFLAGS -Wredundant-decls" 6655 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6657$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6658 cacheid=xorg_cv_cc_flag__Wredundant_decls 6659 if eval \${$cacheid+:} false; then : 6660 $as_echo_n "(cached) " >&6 6661else 6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6663/* end confdefs.h. */ 6664int i; 6665int 6666main () 6667{ 6668 6669 ; 6670 return 0; 6671} 6672_ACEOF 6673if ac_fn_c_try_link "$LINENO"; then : 6674 eval $cacheid=yes 6675else 6676 eval $cacheid=no 6677fi 6678rm -f core conftest.err conftest.$ac_objext \ 6679 conftest$ac_exeext conftest.$ac_ext 6680fi 6681 6682 6683 CFLAGS="$xorg_testset_save_CFLAGS" 6684 6685 eval supported=\$$cacheid 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6687$as_echo "$supported" >&6; } 6688 if test "$supported" = "yes" ; then 6689 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6690 found="yes" 6691 fi 6692 fi 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708xorg_testset_save_CFLAGS="$CFLAGS" 6709 6710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6713$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6714if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716else 6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6718/* end confdefs.h. */ 6719int i; 6720_ACEOF 6721if ac_fn_c_try_compile "$LINENO"; then : 6722 xorg_cv_cc_flag_unknown_warning_option=yes 6723else 6724 xorg_cv_cc_flag_unknown_warning_option=no 6725fi 6726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6727fi 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6729$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6731 CFLAGS="$xorg_testset_save_CFLAGS" 6732fi 6733 6734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6737 fi 6738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6740$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6741if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745/* end confdefs.h. */ 6746int i; 6747_ACEOF 6748if ac_fn_c_try_compile "$LINENO"; then : 6749 xorg_cv_cc_flag_unused_command_line_argument=yes 6750else 6751 xorg_cv_cc_flag_unused_command_line_argument=no 6752fi 6753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6754fi 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6756$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6758 CFLAGS="$xorg_testset_save_CFLAGS" 6759fi 6760 6761found="no" 6762 6763 if test $found = "no" ; then 6764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6766 fi 6767 6768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6770 fi 6771 6772 CFLAGS="$CFLAGS -Wlogical-op" 6773 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6775$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6776 cacheid=xorg_cv_cc_flag__Wlogical_op 6777 if eval \${$cacheid+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6781/* end confdefs.h. */ 6782int i; 6783int 6784main () 6785{ 6786 6787 ; 6788 return 0; 6789} 6790_ACEOF 6791if ac_fn_c_try_link "$LINENO"; then : 6792 eval $cacheid=yes 6793else 6794 eval $cacheid=no 6795fi 6796rm -f core conftest.err conftest.$ac_objext \ 6797 conftest$ac_exeext conftest.$ac_ext 6798fi 6799 6800 6801 CFLAGS="$xorg_testset_save_CFLAGS" 6802 6803 eval supported=\$$cacheid 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6805$as_echo "$supported" >&6; } 6806 if test "$supported" = "yes" ; then 6807 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6808 found="yes" 6809 fi 6810 fi 6811 6812 6813 6814# These are currently disabled because they are noisy. They will be enabled 6815# in the future once the codebase is sufficiently modernized to silence 6816# them. For now, I don't want them to drown out the other warnings. 6817# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6818# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6819# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6820 6821# Turn some warnings into errors, so we don't accidently get successful builds 6822# when there are problems that should be fixed. 6823 6824if test "x$SELECTIVE_WERROR" = "xyes" ; then 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838xorg_testset_save_CFLAGS="$CFLAGS" 6839 6840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6845 $as_echo_n "(cached) " >&6 6846else 6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6848/* end confdefs.h. */ 6849int i; 6850_ACEOF 6851if ac_fn_c_try_compile "$LINENO"; then : 6852 xorg_cv_cc_flag_unknown_warning_option=yes 6853else 6854 xorg_cv_cc_flag_unknown_warning_option=no 6855fi 6856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6857fi 6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6861 CFLAGS="$xorg_testset_save_CFLAGS" 6862fi 6863 6864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6867 fi 6868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6872 $as_echo_n "(cached) " >&6 6873else 6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875/* end confdefs.h. */ 6876int i; 6877_ACEOF 6878if ac_fn_c_try_compile "$LINENO"; then : 6879 xorg_cv_cc_flag_unused_command_line_argument=yes 6880else 6881 xorg_cv_cc_flag_unused_command_line_argument=no 6882fi 6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6884fi 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6888 CFLAGS="$xorg_testset_save_CFLAGS" 6889fi 6890 6891found="no" 6892 6893 if test $found = "no" ; then 6894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6896 fi 6897 6898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6900 fi 6901 6902 CFLAGS="$CFLAGS -Werror=implicit" 6903 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6905$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6906 cacheid=xorg_cv_cc_flag__Werror_implicit 6907 if eval \${$cacheid+:} false; then : 6908 $as_echo_n "(cached) " >&6 6909else 6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6911/* end confdefs.h. */ 6912int i; 6913int 6914main () 6915{ 6916 6917 ; 6918 return 0; 6919} 6920_ACEOF 6921if ac_fn_c_try_link "$LINENO"; then : 6922 eval $cacheid=yes 6923else 6924 eval $cacheid=no 6925fi 6926rm -f core conftest.err conftest.$ac_objext \ 6927 conftest$ac_exeext conftest.$ac_ext 6928fi 6929 6930 6931 CFLAGS="$xorg_testset_save_CFLAGS" 6932 6933 eval supported=\$$cacheid 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6935$as_echo "$supported" >&6; } 6936 if test "$supported" = "yes" ; then 6937 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6938 found="yes" 6939 fi 6940 fi 6941 6942 if test $found = "no" ; then 6943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6945 fi 6946 6947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6949 fi 6950 6951 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6952 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6954$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6955 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6956 if eval \${$cacheid+:} false; then : 6957 $as_echo_n "(cached) " >&6 6958else 6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961int i; 6962int 6963main () 6964{ 6965 6966 ; 6967 return 0; 6968} 6969_ACEOF 6970if ac_fn_c_try_link "$LINENO"; then : 6971 eval $cacheid=yes 6972else 6973 eval $cacheid=no 6974fi 6975rm -f core conftest.err conftest.$ac_objext \ 6976 conftest$ac_exeext conftest.$ac_ext 6977fi 6978 6979 6980 CFLAGS="$xorg_testset_save_CFLAGS" 6981 6982 eval supported=\$$cacheid 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6984$as_echo "$supported" >&6; } 6985 if test "$supported" = "yes" ; then 6986 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6987 found="yes" 6988 fi 6989 fi 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005xorg_testset_save_CFLAGS="$CFLAGS" 7006 7007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7010$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7011if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015/* end confdefs.h. */ 7016int i; 7017_ACEOF 7018if ac_fn_c_try_compile "$LINENO"; then : 7019 xorg_cv_cc_flag_unknown_warning_option=yes 7020else 7021 xorg_cv_cc_flag_unknown_warning_option=no 7022fi 7023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7024fi 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7026$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7028 CFLAGS="$xorg_testset_save_CFLAGS" 7029fi 7030 7031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7034 fi 7035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7037$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7038if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7039 $as_echo_n "(cached) " >&6 7040else 7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7042/* end confdefs.h. */ 7043int i; 7044_ACEOF 7045if ac_fn_c_try_compile "$LINENO"; then : 7046 xorg_cv_cc_flag_unused_command_line_argument=yes 7047else 7048 xorg_cv_cc_flag_unused_command_line_argument=no 7049fi 7050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7051fi 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7053$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7055 CFLAGS="$xorg_testset_save_CFLAGS" 7056fi 7057 7058found="no" 7059 7060 if test $found = "no" ; then 7061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7063 fi 7064 7065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7067 fi 7068 7069 CFLAGS="$CFLAGS -Werror=nonnull" 7070 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7072$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7073 cacheid=xorg_cv_cc_flag__Werror_nonnull 7074 if eval \${$cacheid+:} false; then : 7075 $as_echo_n "(cached) " >&6 7076else 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079int i; 7080int 7081main () 7082{ 7083 7084 ; 7085 return 0; 7086} 7087_ACEOF 7088if ac_fn_c_try_link "$LINENO"; then : 7089 eval $cacheid=yes 7090else 7091 eval $cacheid=no 7092fi 7093rm -f core conftest.err conftest.$ac_objext \ 7094 conftest$ac_exeext conftest.$ac_ext 7095fi 7096 7097 7098 CFLAGS="$xorg_testset_save_CFLAGS" 7099 7100 eval supported=\$$cacheid 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7102$as_echo "$supported" >&6; } 7103 if test "$supported" = "yes" ; then 7104 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7105 found="yes" 7106 fi 7107 fi 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123xorg_testset_save_CFLAGS="$CFLAGS" 7124 7125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7130 $as_echo_n "(cached) " >&6 7131else 7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133/* end confdefs.h. */ 7134int i; 7135_ACEOF 7136if ac_fn_c_try_compile "$LINENO"; then : 7137 xorg_cv_cc_flag_unknown_warning_option=yes 7138else 7139 xorg_cv_cc_flag_unknown_warning_option=no 7140fi 7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7142fi 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7146 CFLAGS="$xorg_testset_save_CFLAGS" 7147fi 7148 7149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7152 fi 7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7160/* end confdefs.h. */ 7161int i; 7162_ACEOF 7163if ac_fn_c_try_compile "$LINENO"; then : 7164 xorg_cv_cc_flag_unused_command_line_argument=yes 7165else 7166 xorg_cv_cc_flag_unused_command_line_argument=no 7167fi 7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7169fi 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7173 CFLAGS="$xorg_testset_save_CFLAGS" 7174fi 7175 7176found="no" 7177 7178 if test $found = "no" ; then 7179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7181 fi 7182 7183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7185 fi 7186 7187 CFLAGS="$CFLAGS -Werror=init-self" 7188 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7190$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7191 cacheid=xorg_cv_cc_flag__Werror_init_self 7192 if eval \${$cacheid+:} false; then : 7193 $as_echo_n "(cached) " >&6 7194else 7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196/* end confdefs.h. */ 7197int i; 7198int 7199main () 7200{ 7201 7202 ; 7203 return 0; 7204} 7205_ACEOF 7206if ac_fn_c_try_link "$LINENO"; then : 7207 eval $cacheid=yes 7208else 7209 eval $cacheid=no 7210fi 7211rm -f core conftest.err conftest.$ac_objext \ 7212 conftest$ac_exeext conftest.$ac_ext 7213fi 7214 7215 7216 CFLAGS="$xorg_testset_save_CFLAGS" 7217 7218 eval supported=\$$cacheid 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7220$as_echo "$supported" >&6; } 7221 if test "$supported" = "yes" ; then 7222 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7223 found="yes" 7224 fi 7225 fi 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241xorg_testset_save_CFLAGS="$CFLAGS" 7242 7243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7248 $as_echo_n "(cached) " >&6 7249else 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251/* end confdefs.h. */ 7252int i; 7253_ACEOF 7254if ac_fn_c_try_compile "$LINENO"; then : 7255 xorg_cv_cc_flag_unknown_warning_option=yes 7256else 7257 xorg_cv_cc_flag_unknown_warning_option=no 7258fi 7259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7260fi 7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7264 CFLAGS="$xorg_testset_save_CFLAGS" 7265fi 7266 7267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7270 fi 7271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7275 $as_echo_n "(cached) " >&6 7276else 7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7278/* end confdefs.h. */ 7279int i; 7280_ACEOF 7281if ac_fn_c_try_compile "$LINENO"; then : 7282 xorg_cv_cc_flag_unused_command_line_argument=yes 7283else 7284 xorg_cv_cc_flag_unused_command_line_argument=no 7285fi 7286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7287fi 7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7291 CFLAGS="$xorg_testset_save_CFLAGS" 7292fi 7293 7294found="no" 7295 7296 if test $found = "no" ; then 7297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7299 fi 7300 7301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7303 fi 7304 7305 CFLAGS="$CFLAGS -Werror=main" 7306 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7308$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7309 cacheid=xorg_cv_cc_flag__Werror_main 7310 if eval \${$cacheid+:} false; then : 7311 $as_echo_n "(cached) " >&6 7312else 7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314/* end confdefs.h. */ 7315int i; 7316int 7317main () 7318{ 7319 7320 ; 7321 return 0; 7322} 7323_ACEOF 7324if ac_fn_c_try_link "$LINENO"; then : 7325 eval $cacheid=yes 7326else 7327 eval $cacheid=no 7328fi 7329rm -f core conftest.err conftest.$ac_objext \ 7330 conftest$ac_exeext conftest.$ac_ext 7331fi 7332 7333 7334 CFLAGS="$xorg_testset_save_CFLAGS" 7335 7336 eval supported=\$$cacheid 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7338$as_echo "$supported" >&6; } 7339 if test "$supported" = "yes" ; then 7340 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7341 found="yes" 7342 fi 7343 fi 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359xorg_testset_save_CFLAGS="$CFLAGS" 7360 7361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369/* end confdefs.h. */ 7370int i; 7371_ACEOF 7372if ac_fn_c_try_compile "$LINENO"; then : 7373 xorg_cv_cc_flag_unknown_warning_option=yes 7374else 7375 xorg_cv_cc_flag_unknown_warning_option=no 7376fi 7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7378fi 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7382 CFLAGS="$xorg_testset_save_CFLAGS" 7383fi 7384 7385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7388 fi 7389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7396/* end confdefs.h. */ 7397int i; 7398_ACEOF 7399if ac_fn_c_try_compile "$LINENO"; then : 7400 xorg_cv_cc_flag_unused_command_line_argument=yes 7401else 7402 xorg_cv_cc_flag_unused_command_line_argument=no 7403fi 7404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7405fi 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7409 CFLAGS="$xorg_testset_save_CFLAGS" 7410fi 7411 7412found="no" 7413 7414 if test $found = "no" ; then 7415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7417 fi 7418 7419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7421 fi 7422 7423 CFLAGS="$CFLAGS -Werror=missing-braces" 7424 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7426$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7427 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7428 if eval \${$cacheid+:} false; then : 7429 $as_echo_n "(cached) " >&6 7430else 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432/* end confdefs.h. */ 7433int i; 7434int 7435main () 7436{ 7437 7438 ; 7439 return 0; 7440} 7441_ACEOF 7442if ac_fn_c_try_link "$LINENO"; then : 7443 eval $cacheid=yes 7444else 7445 eval $cacheid=no 7446fi 7447rm -f core conftest.err conftest.$ac_objext \ 7448 conftest$ac_exeext conftest.$ac_ext 7449fi 7450 7451 7452 CFLAGS="$xorg_testset_save_CFLAGS" 7453 7454 eval supported=\$$cacheid 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7456$as_echo "$supported" >&6; } 7457 if test "$supported" = "yes" ; then 7458 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7459 found="yes" 7460 fi 7461 fi 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477xorg_testset_save_CFLAGS="$CFLAGS" 7478 7479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7484 $as_echo_n "(cached) " >&6 7485else 7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7487/* end confdefs.h. */ 7488int i; 7489_ACEOF 7490if ac_fn_c_try_compile "$LINENO"; then : 7491 xorg_cv_cc_flag_unknown_warning_option=yes 7492else 7493 xorg_cv_cc_flag_unknown_warning_option=no 7494fi 7495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7496fi 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7500 CFLAGS="$xorg_testset_save_CFLAGS" 7501fi 7502 7503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7506 fi 7507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7511 $as_echo_n "(cached) " >&6 7512else 7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7514/* end confdefs.h. */ 7515int i; 7516_ACEOF 7517if ac_fn_c_try_compile "$LINENO"; then : 7518 xorg_cv_cc_flag_unused_command_line_argument=yes 7519else 7520 xorg_cv_cc_flag_unused_command_line_argument=no 7521fi 7522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7523fi 7524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7527 CFLAGS="$xorg_testset_save_CFLAGS" 7528fi 7529 7530found="no" 7531 7532 if test $found = "no" ; then 7533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7535 fi 7536 7537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7539 fi 7540 7541 CFLAGS="$CFLAGS -Werror=sequence-point" 7542 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7544$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7545 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7546 if eval \${$cacheid+:} false; then : 7547 $as_echo_n "(cached) " >&6 7548else 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550/* end confdefs.h. */ 7551int i; 7552int 7553main () 7554{ 7555 7556 ; 7557 return 0; 7558} 7559_ACEOF 7560if ac_fn_c_try_link "$LINENO"; then : 7561 eval $cacheid=yes 7562else 7563 eval $cacheid=no 7564fi 7565rm -f core conftest.err conftest.$ac_objext \ 7566 conftest$ac_exeext conftest.$ac_ext 7567fi 7568 7569 7570 CFLAGS="$xorg_testset_save_CFLAGS" 7571 7572 eval supported=\$$cacheid 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7574$as_echo "$supported" >&6; } 7575 if test "$supported" = "yes" ; then 7576 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7577 found="yes" 7578 fi 7579 fi 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595xorg_testset_save_CFLAGS="$CFLAGS" 7596 7597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606int i; 7607_ACEOF 7608if ac_fn_c_try_compile "$LINENO"; then : 7609 xorg_cv_cc_flag_unknown_warning_option=yes 7610else 7611 xorg_cv_cc_flag_unknown_warning_option=no 7612fi 7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7614fi 7615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7618 CFLAGS="$xorg_testset_save_CFLAGS" 7619fi 7620 7621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7624 fi 7625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633int i; 7634_ACEOF 7635if ac_fn_c_try_compile "$LINENO"; then : 7636 xorg_cv_cc_flag_unused_command_line_argument=yes 7637else 7638 xorg_cv_cc_flag_unused_command_line_argument=no 7639fi 7640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7641fi 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7645 CFLAGS="$xorg_testset_save_CFLAGS" 7646fi 7647 7648found="no" 7649 7650 if test $found = "no" ; then 7651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7653 fi 7654 7655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7657 fi 7658 7659 CFLAGS="$CFLAGS -Werror=return-type" 7660 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7662$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7663 cacheid=xorg_cv_cc_flag__Werror_return_type 7664 if eval \${$cacheid+:} false; then : 7665 $as_echo_n "(cached) " >&6 7666else 7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7668/* end confdefs.h. */ 7669int i; 7670int 7671main () 7672{ 7673 7674 ; 7675 return 0; 7676} 7677_ACEOF 7678if ac_fn_c_try_link "$LINENO"; then : 7679 eval $cacheid=yes 7680else 7681 eval $cacheid=no 7682fi 7683rm -f core conftest.err conftest.$ac_objext \ 7684 conftest$ac_exeext conftest.$ac_ext 7685fi 7686 7687 7688 CFLAGS="$xorg_testset_save_CFLAGS" 7689 7690 eval supported=\$$cacheid 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7692$as_echo "$supported" >&6; } 7693 if test "$supported" = "yes" ; then 7694 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7695 found="yes" 7696 fi 7697 fi 7698 7699 if test $found = "no" ; then 7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7702 fi 7703 7704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7706 fi 7707 7708 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7709 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7711$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7712 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7713 if eval \${$cacheid+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717/* end confdefs.h. */ 7718int i; 7719int 7720main () 7721{ 7722 7723 ; 7724 return 0; 7725} 7726_ACEOF 7727if ac_fn_c_try_link "$LINENO"; then : 7728 eval $cacheid=yes 7729else 7730 eval $cacheid=no 7731fi 7732rm -f core conftest.err conftest.$ac_objext \ 7733 conftest$ac_exeext conftest.$ac_ext 7734fi 7735 7736 7737 CFLAGS="$xorg_testset_save_CFLAGS" 7738 7739 eval supported=\$$cacheid 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7741$as_echo "$supported" >&6; } 7742 if test "$supported" = "yes" ; then 7743 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7744 found="yes" 7745 fi 7746 fi 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762xorg_testset_save_CFLAGS="$CFLAGS" 7763 7764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7772/* end confdefs.h. */ 7773int i; 7774_ACEOF 7775if ac_fn_c_try_compile "$LINENO"; then : 7776 xorg_cv_cc_flag_unknown_warning_option=yes 7777else 7778 xorg_cv_cc_flag_unknown_warning_option=no 7779fi 7780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7781fi 7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7785 CFLAGS="$xorg_testset_save_CFLAGS" 7786fi 7787 7788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7791 fi 7792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799/* end confdefs.h. */ 7800int i; 7801_ACEOF 7802if ac_fn_c_try_compile "$LINENO"; then : 7803 xorg_cv_cc_flag_unused_command_line_argument=yes 7804else 7805 xorg_cv_cc_flag_unused_command_line_argument=no 7806fi 7807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7808fi 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7812 CFLAGS="$xorg_testset_save_CFLAGS" 7813fi 7814 7815found="no" 7816 7817 if test $found = "no" ; then 7818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7820 fi 7821 7822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7824 fi 7825 7826 CFLAGS="$CFLAGS -Werror=trigraphs" 7827 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7829$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7830 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7831 if eval \${$cacheid+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835/* end confdefs.h. */ 7836int i; 7837int 7838main () 7839{ 7840 7841 ; 7842 return 0; 7843} 7844_ACEOF 7845if ac_fn_c_try_link "$LINENO"; then : 7846 eval $cacheid=yes 7847else 7848 eval $cacheid=no 7849fi 7850rm -f core conftest.err conftest.$ac_objext \ 7851 conftest$ac_exeext conftest.$ac_ext 7852fi 7853 7854 7855 CFLAGS="$xorg_testset_save_CFLAGS" 7856 7857 eval supported=\$$cacheid 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7859$as_echo "$supported" >&6; } 7860 if test "$supported" = "yes" ; then 7861 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7862 found="yes" 7863 fi 7864 fi 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880xorg_testset_save_CFLAGS="$CFLAGS" 7881 7882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7887 $as_echo_n "(cached) " >&6 7888else 7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7890/* end confdefs.h. */ 7891int i; 7892_ACEOF 7893if ac_fn_c_try_compile "$LINENO"; then : 7894 xorg_cv_cc_flag_unknown_warning_option=yes 7895else 7896 xorg_cv_cc_flag_unknown_warning_option=no 7897fi 7898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7899fi 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7903 CFLAGS="$xorg_testset_save_CFLAGS" 7904fi 7905 7906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7909 fi 7910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7914 $as_echo_n "(cached) " >&6 7915else 7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7917/* end confdefs.h. */ 7918int i; 7919_ACEOF 7920if ac_fn_c_try_compile "$LINENO"; then : 7921 xorg_cv_cc_flag_unused_command_line_argument=yes 7922else 7923 xorg_cv_cc_flag_unused_command_line_argument=no 7924fi 7925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7926fi 7927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7930 CFLAGS="$xorg_testset_save_CFLAGS" 7931fi 7932 7933found="no" 7934 7935 if test $found = "no" ; then 7936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7938 fi 7939 7940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7942 fi 7943 7944 CFLAGS="$CFLAGS -Werror=array-bounds" 7945 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7947$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7948 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7949 if eval \${$cacheid+:} false; then : 7950 $as_echo_n "(cached) " >&6 7951else 7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7953/* end confdefs.h. */ 7954int i; 7955int 7956main () 7957{ 7958 7959 ; 7960 return 0; 7961} 7962_ACEOF 7963if ac_fn_c_try_link "$LINENO"; then : 7964 eval $cacheid=yes 7965else 7966 eval $cacheid=no 7967fi 7968rm -f core conftest.err conftest.$ac_objext \ 7969 conftest$ac_exeext conftest.$ac_ext 7970fi 7971 7972 7973 CFLAGS="$xorg_testset_save_CFLAGS" 7974 7975 eval supported=\$$cacheid 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7977$as_echo "$supported" >&6; } 7978 if test "$supported" = "yes" ; then 7979 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7980 found="yes" 7981 fi 7982 fi 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998xorg_testset_save_CFLAGS="$CFLAGS" 7999 8000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8005 $as_echo_n "(cached) " >&6 8006else 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009int i; 8010_ACEOF 8011if ac_fn_c_try_compile "$LINENO"; then : 8012 xorg_cv_cc_flag_unknown_warning_option=yes 8013else 8014 xorg_cv_cc_flag_unknown_warning_option=no 8015fi 8016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8017fi 8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8021 CFLAGS="$xorg_testset_save_CFLAGS" 8022fi 8023 8024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8027 fi 8028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8032 $as_echo_n "(cached) " >&6 8033else 8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8035/* end confdefs.h. */ 8036int i; 8037_ACEOF 8038if ac_fn_c_try_compile "$LINENO"; then : 8039 xorg_cv_cc_flag_unused_command_line_argument=yes 8040else 8041 xorg_cv_cc_flag_unused_command_line_argument=no 8042fi 8043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8044fi 8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8048 CFLAGS="$xorg_testset_save_CFLAGS" 8049fi 8050 8051found="no" 8052 8053 if test $found = "no" ; then 8054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8056 fi 8057 8058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8060 fi 8061 8062 CFLAGS="$CFLAGS -Werror=write-strings" 8063 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8065$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8066 cacheid=xorg_cv_cc_flag__Werror_write_strings 8067 if eval \${$cacheid+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8071/* end confdefs.h. */ 8072int i; 8073int 8074main () 8075{ 8076 8077 ; 8078 return 0; 8079} 8080_ACEOF 8081if ac_fn_c_try_link "$LINENO"; then : 8082 eval $cacheid=yes 8083else 8084 eval $cacheid=no 8085fi 8086rm -f core conftest.err conftest.$ac_objext \ 8087 conftest$ac_exeext conftest.$ac_ext 8088fi 8089 8090 8091 CFLAGS="$xorg_testset_save_CFLAGS" 8092 8093 eval supported=\$$cacheid 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8095$as_echo "$supported" >&6; } 8096 if test "$supported" = "yes" ; then 8097 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8098 found="yes" 8099 fi 8100 fi 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116xorg_testset_save_CFLAGS="$CFLAGS" 8117 8118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124else 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126/* end confdefs.h. */ 8127int i; 8128_ACEOF 8129if ac_fn_c_try_compile "$LINENO"; then : 8130 xorg_cv_cc_flag_unknown_warning_option=yes 8131else 8132 xorg_cv_cc_flag_unknown_warning_option=no 8133fi 8134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8135fi 8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8139 CFLAGS="$xorg_testset_save_CFLAGS" 8140fi 8141 8142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8145 fi 8146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8150 $as_echo_n "(cached) " >&6 8151else 8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8153/* end confdefs.h. */ 8154int i; 8155_ACEOF 8156if ac_fn_c_try_compile "$LINENO"; then : 8157 xorg_cv_cc_flag_unused_command_line_argument=yes 8158else 8159 xorg_cv_cc_flag_unused_command_line_argument=no 8160fi 8161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8162fi 8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8166 CFLAGS="$xorg_testset_save_CFLAGS" 8167fi 8168 8169found="no" 8170 8171 if test $found = "no" ; then 8172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8174 fi 8175 8176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8178 fi 8179 8180 CFLAGS="$CFLAGS -Werror=address" 8181 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8183$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8184 cacheid=xorg_cv_cc_flag__Werror_address 8185 if eval \${$cacheid+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8189/* end confdefs.h. */ 8190int i; 8191int 8192main () 8193{ 8194 8195 ; 8196 return 0; 8197} 8198_ACEOF 8199if ac_fn_c_try_link "$LINENO"; then : 8200 eval $cacheid=yes 8201else 8202 eval $cacheid=no 8203fi 8204rm -f core conftest.err conftest.$ac_objext \ 8205 conftest$ac_exeext conftest.$ac_ext 8206fi 8207 8208 8209 CFLAGS="$xorg_testset_save_CFLAGS" 8210 8211 eval supported=\$$cacheid 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8213$as_echo "$supported" >&6; } 8214 if test "$supported" = "yes" ; then 8215 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8216 found="yes" 8217 fi 8218 fi 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234xorg_testset_save_CFLAGS="$CFLAGS" 8235 8236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8239$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8240if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8241 $as_echo_n "(cached) " >&6 8242else 8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8244/* end confdefs.h. */ 8245int i; 8246_ACEOF 8247if ac_fn_c_try_compile "$LINENO"; then : 8248 xorg_cv_cc_flag_unknown_warning_option=yes 8249else 8250 xorg_cv_cc_flag_unknown_warning_option=no 8251fi 8252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8253fi 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8255$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8257 CFLAGS="$xorg_testset_save_CFLAGS" 8258fi 8259 8260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8263 fi 8264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8266$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8267if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8268 $as_echo_n "(cached) " >&6 8269else 8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8271/* end confdefs.h. */ 8272int i; 8273_ACEOF 8274if ac_fn_c_try_compile "$LINENO"; then : 8275 xorg_cv_cc_flag_unused_command_line_argument=yes 8276else 8277 xorg_cv_cc_flag_unused_command_line_argument=no 8278fi 8279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8280fi 8281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8282$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8284 CFLAGS="$xorg_testset_save_CFLAGS" 8285fi 8286 8287found="no" 8288 8289 if test $found = "no" ; then 8290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8292 fi 8293 8294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8296 fi 8297 8298 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8299 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8301$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8302 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8303 if eval \${$cacheid+:} false; then : 8304 $as_echo_n "(cached) " >&6 8305else 8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8307/* end confdefs.h. */ 8308int i; 8309int 8310main () 8311{ 8312 8313 ; 8314 return 0; 8315} 8316_ACEOF 8317if ac_fn_c_try_link "$LINENO"; then : 8318 eval $cacheid=yes 8319else 8320 eval $cacheid=no 8321fi 8322rm -f core conftest.err conftest.$ac_objext \ 8323 conftest$ac_exeext conftest.$ac_ext 8324fi 8325 8326 8327 CFLAGS="$xorg_testset_save_CFLAGS" 8328 8329 eval supported=\$$cacheid 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8331$as_echo "$supported" >&6; } 8332 if test "$supported" = "yes" ; then 8333 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8334 found="yes" 8335 fi 8336 fi 8337 8338 if test $found = "no" ; then 8339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8341 fi 8342 8343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8345 fi 8346 8347 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8348 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8350$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8351 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8352 if eval \${$cacheid+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8356/* end confdefs.h. */ 8357int i; 8358int 8359main () 8360{ 8361 8362 ; 8363 return 0; 8364} 8365_ACEOF 8366if ac_fn_c_try_link "$LINENO"; then : 8367 eval $cacheid=yes 8368else 8369 eval $cacheid=no 8370fi 8371rm -f core conftest.err conftest.$ac_objext \ 8372 conftest$ac_exeext conftest.$ac_ext 8373fi 8374 8375 8376 CFLAGS="$xorg_testset_save_CFLAGS" 8377 8378 eval supported=\$$cacheid 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8380$as_echo "$supported" >&6; } 8381 if test "$supported" = "yes" ; then 8382 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8383 found="yes" 8384 fi 8385 fi 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401xorg_testset_save_CFLAGS="$CFLAGS" 8402 8403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8408 $as_echo_n "(cached) " >&6 8409else 8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8411/* end confdefs.h. */ 8412int i; 8413_ACEOF 8414if ac_fn_c_try_compile "$LINENO"; then : 8415 xorg_cv_cc_flag_unknown_warning_option=yes 8416else 8417 xorg_cv_cc_flag_unknown_warning_option=no 8418fi 8419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8420fi 8421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8424 CFLAGS="$xorg_testset_save_CFLAGS" 8425fi 8426 8427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8430 fi 8431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439int i; 8440_ACEOF 8441if ac_fn_c_try_compile "$LINENO"; then : 8442 xorg_cv_cc_flag_unused_command_line_argument=yes 8443else 8444 xorg_cv_cc_flag_unused_command_line_argument=no 8445fi 8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8447fi 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8451 CFLAGS="$xorg_testset_save_CFLAGS" 8452fi 8453 8454found="no" 8455 8456 if test $found = "no" ; then 8457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8459 fi 8460 8461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8463 fi 8464 8465 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8466 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8468$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8469 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8470 if eval \${$cacheid+:} false; then : 8471 $as_echo_n "(cached) " >&6 8472else 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475int i; 8476int 8477main () 8478{ 8479 8480 ; 8481 return 0; 8482} 8483_ACEOF 8484if ac_fn_c_try_link "$LINENO"; then : 8485 eval $cacheid=yes 8486else 8487 eval $cacheid=no 8488fi 8489rm -f core conftest.err conftest.$ac_objext \ 8490 conftest$ac_exeext conftest.$ac_ext 8491fi 8492 8493 8494 CFLAGS="$xorg_testset_save_CFLAGS" 8495 8496 eval supported=\$$cacheid 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8498$as_echo "$supported" >&6; } 8499 if test "$supported" = "yes" ; then 8500 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8501 found="yes" 8502 fi 8503 fi 8504 8505 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8506else 8507{ $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 8508$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;} 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522xorg_testset_save_CFLAGS="$CFLAGS" 8523 8524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8529 $as_echo_n "(cached) " >&6 8530else 8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8532/* end confdefs.h. */ 8533int i; 8534_ACEOF 8535if ac_fn_c_try_compile "$LINENO"; then : 8536 xorg_cv_cc_flag_unknown_warning_option=yes 8537else 8538 xorg_cv_cc_flag_unknown_warning_option=no 8539fi 8540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8541fi 8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8545 CFLAGS="$xorg_testset_save_CFLAGS" 8546fi 8547 8548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8551 fi 8552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8556 $as_echo_n "(cached) " >&6 8557else 8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8559/* end confdefs.h. */ 8560int i; 8561_ACEOF 8562if ac_fn_c_try_compile "$LINENO"; then : 8563 xorg_cv_cc_flag_unused_command_line_argument=yes 8564else 8565 xorg_cv_cc_flag_unused_command_line_argument=no 8566fi 8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8568fi 8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8572 CFLAGS="$xorg_testset_save_CFLAGS" 8573fi 8574 8575found="no" 8576 8577 if test $found = "no" ; then 8578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8580 fi 8581 8582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8584 fi 8585 8586 CFLAGS="$CFLAGS -Wimplicit" 8587 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8589$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8590 cacheid=xorg_cv_cc_flag__Wimplicit 8591 if eval \${$cacheid+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593else 8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8595/* end confdefs.h. */ 8596int i; 8597int 8598main () 8599{ 8600 8601 ; 8602 return 0; 8603} 8604_ACEOF 8605if ac_fn_c_try_link "$LINENO"; then : 8606 eval $cacheid=yes 8607else 8608 eval $cacheid=no 8609fi 8610rm -f core conftest.err conftest.$ac_objext \ 8611 conftest$ac_exeext conftest.$ac_ext 8612fi 8613 8614 8615 CFLAGS="$xorg_testset_save_CFLAGS" 8616 8617 eval supported=\$$cacheid 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8619$as_echo "$supported" >&6; } 8620 if test "$supported" = "yes" ; then 8621 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8622 found="yes" 8623 fi 8624 fi 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640xorg_testset_save_CFLAGS="$CFLAGS" 8641 8642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8647 $as_echo_n "(cached) " >&6 8648else 8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8650/* end confdefs.h. */ 8651int i; 8652_ACEOF 8653if ac_fn_c_try_compile "$LINENO"; then : 8654 xorg_cv_cc_flag_unknown_warning_option=yes 8655else 8656 xorg_cv_cc_flag_unknown_warning_option=no 8657fi 8658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8659fi 8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8663 CFLAGS="$xorg_testset_save_CFLAGS" 8664fi 8665 8666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8669 fi 8670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8674 $as_echo_n "(cached) " >&6 8675else 8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677/* end confdefs.h. */ 8678int i; 8679_ACEOF 8680if ac_fn_c_try_compile "$LINENO"; then : 8681 xorg_cv_cc_flag_unused_command_line_argument=yes 8682else 8683 xorg_cv_cc_flag_unused_command_line_argument=no 8684fi 8685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8686fi 8687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8690 CFLAGS="$xorg_testset_save_CFLAGS" 8691fi 8692 8693found="no" 8694 8695 if test $found = "no" ; then 8696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8698 fi 8699 8700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8702 fi 8703 8704 CFLAGS="$CFLAGS -Wnonnull" 8705 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8707$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8708 cacheid=xorg_cv_cc_flag__Wnonnull 8709 if eval \${$cacheid+:} false; then : 8710 $as_echo_n "(cached) " >&6 8711else 8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8713/* end confdefs.h. */ 8714int i; 8715int 8716main () 8717{ 8718 8719 ; 8720 return 0; 8721} 8722_ACEOF 8723if ac_fn_c_try_link "$LINENO"; then : 8724 eval $cacheid=yes 8725else 8726 eval $cacheid=no 8727fi 8728rm -f core conftest.err conftest.$ac_objext \ 8729 conftest$ac_exeext conftest.$ac_ext 8730fi 8731 8732 8733 CFLAGS="$xorg_testset_save_CFLAGS" 8734 8735 eval supported=\$$cacheid 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8737$as_echo "$supported" >&6; } 8738 if test "$supported" = "yes" ; then 8739 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8740 found="yes" 8741 fi 8742 fi 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758xorg_testset_save_CFLAGS="$CFLAGS" 8759 8760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8765 $as_echo_n "(cached) " >&6 8766else 8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8768/* end confdefs.h. */ 8769int i; 8770_ACEOF 8771if ac_fn_c_try_compile "$LINENO"; then : 8772 xorg_cv_cc_flag_unknown_warning_option=yes 8773else 8774 xorg_cv_cc_flag_unknown_warning_option=no 8775fi 8776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8777fi 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8781 CFLAGS="$xorg_testset_save_CFLAGS" 8782fi 8783 8784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8787 fi 8788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8792 $as_echo_n "(cached) " >&6 8793else 8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8795/* end confdefs.h. */ 8796int i; 8797_ACEOF 8798if ac_fn_c_try_compile "$LINENO"; then : 8799 xorg_cv_cc_flag_unused_command_line_argument=yes 8800else 8801 xorg_cv_cc_flag_unused_command_line_argument=no 8802fi 8803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8804fi 8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8808 CFLAGS="$xorg_testset_save_CFLAGS" 8809fi 8810 8811found="no" 8812 8813 if test $found = "no" ; then 8814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8816 fi 8817 8818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8820 fi 8821 8822 CFLAGS="$CFLAGS -Winit-self" 8823 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8825$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8826 cacheid=xorg_cv_cc_flag__Winit_self 8827 if eval \${$cacheid+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831/* end confdefs.h. */ 8832int i; 8833int 8834main () 8835{ 8836 8837 ; 8838 return 0; 8839} 8840_ACEOF 8841if ac_fn_c_try_link "$LINENO"; then : 8842 eval $cacheid=yes 8843else 8844 eval $cacheid=no 8845fi 8846rm -f core conftest.err conftest.$ac_objext \ 8847 conftest$ac_exeext conftest.$ac_ext 8848fi 8849 8850 8851 CFLAGS="$xorg_testset_save_CFLAGS" 8852 8853 eval supported=\$$cacheid 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8855$as_echo "$supported" >&6; } 8856 if test "$supported" = "yes" ; then 8857 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8858 found="yes" 8859 fi 8860 fi 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876xorg_testset_save_CFLAGS="$CFLAGS" 8877 8878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8883 $as_echo_n "(cached) " >&6 8884else 8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8886/* end confdefs.h. */ 8887int i; 8888_ACEOF 8889if ac_fn_c_try_compile "$LINENO"; then : 8890 xorg_cv_cc_flag_unknown_warning_option=yes 8891else 8892 xorg_cv_cc_flag_unknown_warning_option=no 8893fi 8894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8895fi 8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8899 CFLAGS="$xorg_testset_save_CFLAGS" 8900fi 8901 8902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8905 fi 8906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8910 $as_echo_n "(cached) " >&6 8911else 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913/* end confdefs.h. */ 8914int i; 8915_ACEOF 8916if ac_fn_c_try_compile "$LINENO"; then : 8917 xorg_cv_cc_flag_unused_command_line_argument=yes 8918else 8919 xorg_cv_cc_flag_unused_command_line_argument=no 8920fi 8921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8922fi 8923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8926 CFLAGS="$xorg_testset_save_CFLAGS" 8927fi 8928 8929found="no" 8930 8931 if test $found = "no" ; then 8932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8934 fi 8935 8936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8938 fi 8939 8940 CFLAGS="$CFLAGS -Wmain" 8941 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8943$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8944 cacheid=xorg_cv_cc_flag__Wmain 8945 if eval \${$cacheid+:} false; then : 8946 $as_echo_n "(cached) " >&6 8947else 8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8949/* end confdefs.h. */ 8950int i; 8951int 8952main () 8953{ 8954 8955 ; 8956 return 0; 8957} 8958_ACEOF 8959if ac_fn_c_try_link "$LINENO"; then : 8960 eval $cacheid=yes 8961else 8962 eval $cacheid=no 8963fi 8964rm -f core conftest.err conftest.$ac_objext \ 8965 conftest$ac_exeext conftest.$ac_ext 8966fi 8967 8968 8969 CFLAGS="$xorg_testset_save_CFLAGS" 8970 8971 eval supported=\$$cacheid 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8973$as_echo "$supported" >&6; } 8974 if test "$supported" = "yes" ; then 8975 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8976 found="yes" 8977 fi 8978 fi 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994xorg_testset_save_CFLAGS="$CFLAGS" 8995 8996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8999$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9000if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004/* end confdefs.h. */ 9005int i; 9006_ACEOF 9007if ac_fn_c_try_compile "$LINENO"; then : 9008 xorg_cv_cc_flag_unknown_warning_option=yes 9009else 9010 xorg_cv_cc_flag_unknown_warning_option=no 9011fi 9012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9013fi 9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9015$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9017 CFLAGS="$xorg_testset_save_CFLAGS" 9018fi 9019 9020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9023 fi 9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9026$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9027if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9028 $as_echo_n "(cached) " >&6 9029else 9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031/* end confdefs.h. */ 9032int i; 9033_ACEOF 9034if ac_fn_c_try_compile "$LINENO"; then : 9035 xorg_cv_cc_flag_unused_command_line_argument=yes 9036else 9037 xorg_cv_cc_flag_unused_command_line_argument=no 9038fi 9039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9040fi 9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9042$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9044 CFLAGS="$xorg_testset_save_CFLAGS" 9045fi 9046 9047found="no" 9048 9049 if test $found = "no" ; then 9050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9052 fi 9053 9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9056 fi 9057 9058 CFLAGS="$CFLAGS -Wmissing-braces" 9059 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9061$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9062 cacheid=xorg_cv_cc_flag__Wmissing_braces 9063 if eval \${$cacheid+:} false; then : 9064 $as_echo_n "(cached) " >&6 9065else 9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9067/* end confdefs.h. */ 9068int i; 9069int 9070main () 9071{ 9072 9073 ; 9074 return 0; 9075} 9076_ACEOF 9077if ac_fn_c_try_link "$LINENO"; then : 9078 eval $cacheid=yes 9079else 9080 eval $cacheid=no 9081fi 9082rm -f core conftest.err conftest.$ac_objext \ 9083 conftest$ac_exeext conftest.$ac_ext 9084fi 9085 9086 9087 CFLAGS="$xorg_testset_save_CFLAGS" 9088 9089 eval supported=\$$cacheid 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9091$as_echo "$supported" >&6; } 9092 if test "$supported" = "yes" ; then 9093 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9094 found="yes" 9095 fi 9096 fi 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112xorg_testset_save_CFLAGS="$CFLAGS" 9113 9114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9119 $as_echo_n "(cached) " >&6 9120else 9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9122/* end confdefs.h. */ 9123int i; 9124_ACEOF 9125if ac_fn_c_try_compile "$LINENO"; then : 9126 xorg_cv_cc_flag_unknown_warning_option=yes 9127else 9128 xorg_cv_cc_flag_unknown_warning_option=no 9129fi 9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9131fi 9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9135 CFLAGS="$xorg_testset_save_CFLAGS" 9136fi 9137 9138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9141 fi 9142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9146 $as_echo_n "(cached) " >&6 9147else 9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9149/* end confdefs.h. */ 9150int i; 9151_ACEOF 9152if ac_fn_c_try_compile "$LINENO"; then : 9153 xorg_cv_cc_flag_unused_command_line_argument=yes 9154else 9155 xorg_cv_cc_flag_unused_command_line_argument=no 9156fi 9157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9158fi 9159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9162 CFLAGS="$xorg_testset_save_CFLAGS" 9163fi 9164 9165found="no" 9166 9167 if test $found = "no" ; then 9168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9170 fi 9171 9172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9174 fi 9175 9176 CFLAGS="$CFLAGS -Wsequence-point" 9177 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9179$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9180 cacheid=xorg_cv_cc_flag__Wsequence_point 9181 if eval \${$cacheid+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183else 9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185/* end confdefs.h. */ 9186int i; 9187int 9188main () 9189{ 9190 9191 ; 9192 return 0; 9193} 9194_ACEOF 9195if ac_fn_c_try_link "$LINENO"; then : 9196 eval $cacheid=yes 9197else 9198 eval $cacheid=no 9199fi 9200rm -f core conftest.err conftest.$ac_objext \ 9201 conftest$ac_exeext conftest.$ac_ext 9202fi 9203 9204 9205 CFLAGS="$xorg_testset_save_CFLAGS" 9206 9207 eval supported=\$$cacheid 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9209$as_echo "$supported" >&6; } 9210 if test "$supported" = "yes" ; then 9211 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9212 found="yes" 9213 fi 9214 fi 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230xorg_testset_save_CFLAGS="$CFLAGS" 9231 9232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9237 $as_echo_n "(cached) " >&6 9238else 9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9240/* end confdefs.h. */ 9241int i; 9242_ACEOF 9243if ac_fn_c_try_compile "$LINENO"; then : 9244 xorg_cv_cc_flag_unknown_warning_option=yes 9245else 9246 xorg_cv_cc_flag_unknown_warning_option=no 9247fi 9248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9249fi 9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9253 CFLAGS="$xorg_testset_save_CFLAGS" 9254fi 9255 9256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9259 fi 9260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9264 $as_echo_n "(cached) " >&6 9265else 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9267/* end confdefs.h. */ 9268int i; 9269_ACEOF 9270if ac_fn_c_try_compile "$LINENO"; then : 9271 xorg_cv_cc_flag_unused_command_line_argument=yes 9272else 9273 xorg_cv_cc_flag_unused_command_line_argument=no 9274fi 9275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9276fi 9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9280 CFLAGS="$xorg_testset_save_CFLAGS" 9281fi 9282 9283found="no" 9284 9285 if test $found = "no" ; then 9286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9288 fi 9289 9290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9292 fi 9293 9294 CFLAGS="$CFLAGS -Wreturn-type" 9295 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9297$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9298 cacheid=xorg_cv_cc_flag__Wreturn_type 9299 if eval \${$cacheid+:} false; then : 9300 $as_echo_n "(cached) " >&6 9301else 9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303/* end confdefs.h. */ 9304int i; 9305int 9306main () 9307{ 9308 9309 ; 9310 return 0; 9311} 9312_ACEOF 9313if ac_fn_c_try_link "$LINENO"; then : 9314 eval $cacheid=yes 9315else 9316 eval $cacheid=no 9317fi 9318rm -f core conftest.err conftest.$ac_objext \ 9319 conftest$ac_exeext conftest.$ac_ext 9320fi 9321 9322 9323 CFLAGS="$xorg_testset_save_CFLAGS" 9324 9325 eval supported=\$$cacheid 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9327$as_echo "$supported" >&6; } 9328 if test "$supported" = "yes" ; then 9329 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9330 found="yes" 9331 fi 9332 fi 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348xorg_testset_save_CFLAGS="$CFLAGS" 9349 9350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9355 $as_echo_n "(cached) " >&6 9356else 9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9358/* end confdefs.h. */ 9359int i; 9360_ACEOF 9361if ac_fn_c_try_compile "$LINENO"; then : 9362 xorg_cv_cc_flag_unknown_warning_option=yes 9363else 9364 xorg_cv_cc_flag_unknown_warning_option=no 9365fi 9366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9367fi 9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9371 CFLAGS="$xorg_testset_save_CFLAGS" 9372fi 9373 9374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9377 fi 9378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9382 $as_echo_n "(cached) " >&6 9383else 9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9385/* end confdefs.h. */ 9386int i; 9387_ACEOF 9388if ac_fn_c_try_compile "$LINENO"; then : 9389 xorg_cv_cc_flag_unused_command_line_argument=yes 9390else 9391 xorg_cv_cc_flag_unused_command_line_argument=no 9392fi 9393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9394fi 9395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9398 CFLAGS="$xorg_testset_save_CFLAGS" 9399fi 9400 9401found="no" 9402 9403 if test $found = "no" ; then 9404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9406 fi 9407 9408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9410 fi 9411 9412 CFLAGS="$CFLAGS -Wtrigraphs" 9413 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9415$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9416 cacheid=xorg_cv_cc_flag__Wtrigraphs 9417 if eval \${$cacheid+:} false; then : 9418 $as_echo_n "(cached) " >&6 9419else 9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9421/* end confdefs.h. */ 9422int i; 9423int 9424main () 9425{ 9426 9427 ; 9428 return 0; 9429} 9430_ACEOF 9431if ac_fn_c_try_link "$LINENO"; then : 9432 eval $cacheid=yes 9433else 9434 eval $cacheid=no 9435fi 9436rm -f core conftest.err conftest.$ac_objext \ 9437 conftest$ac_exeext conftest.$ac_ext 9438fi 9439 9440 9441 CFLAGS="$xorg_testset_save_CFLAGS" 9442 9443 eval supported=\$$cacheid 9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9445$as_echo "$supported" >&6; } 9446 if test "$supported" = "yes" ; then 9447 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9448 found="yes" 9449 fi 9450 fi 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466xorg_testset_save_CFLAGS="$CFLAGS" 9467 9468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476/* end confdefs.h. */ 9477int i; 9478_ACEOF 9479if ac_fn_c_try_compile "$LINENO"; then : 9480 xorg_cv_cc_flag_unknown_warning_option=yes 9481else 9482 xorg_cv_cc_flag_unknown_warning_option=no 9483fi 9484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9485fi 9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9489 CFLAGS="$xorg_testset_save_CFLAGS" 9490fi 9491 9492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9495 fi 9496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9500 $as_echo_n "(cached) " >&6 9501else 9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9503/* end confdefs.h. */ 9504int i; 9505_ACEOF 9506if ac_fn_c_try_compile "$LINENO"; then : 9507 xorg_cv_cc_flag_unused_command_line_argument=yes 9508else 9509 xorg_cv_cc_flag_unused_command_line_argument=no 9510fi 9511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9512fi 9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9516 CFLAGS="$xorg_testset_save_CFLAGS" 9517fi 9518 9519found="no" 9520 9521 if test $found = "no" ; then 9522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9524 fi 9525 9526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9528 fi 9529 9530 CFLAGS="$CFLAGS -Warray-bounds" 9531 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9533$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9534 cacheid=xorg_cv_cc_flag__Warray_bounds 9535 if eval \${$cacheid+:} false; then : 9536 $as_echo_n "(cached) " >&6 9537else 9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539/* end confdefs.h. */ 9540int i; 9541int 9542main () 9543{ 9544 9545 ; 9546 return 0; 9547} 9548_ACEOF 9549if ac_fn_c_try_link "$LINENO"; then : 9550 eval $cacheid=yes 9551else 9552 eval $cacheid=no 9553fi 9554rm -f core conftest.err conftest.$ac_objext \ 9555 conftest$ac_exeext conftest.$ac_ext 9556fi 9557 9558 9559 CFLAGS="$xorg_testset_save_CFLAGS" 9560 9561 eval supported=\$$cacheid 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9563$as_echo "$supported" >&6; } 9564 if test "$supported" = "yes" ; then 9565 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9566 found="yes" 9567 fi 9568 fi 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584xorg_testset_save_CFLAGS="$CFLAGS" 9585 9586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594/* end confdefs.h. */ 9595int i; 9596_ACEOF 9597if ac_fn_c_try_compile "$LINENO"; then : 9598 xorg_cv_cc_flag_unknown_warning_option=yes 9599else 9600 xorg_cv_cc_flag_unknown_warning_option=no 9601fi 9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9603fi 9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9607 CFLAGS="$xorg_testset_save_CFLAGS" 9608fi 9609 9610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9613 fi 9614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9618 $as_echo_n "(cached) " >&6 9619else 9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9621/* end confdefs.h. */ 9622int i; 9623_ACEOF 9624if ac_fn_c_try_compile "$LINENO"; then : 9625 xorg_cv_cc_flag_unused_command_line_argument=yes 9626else 9627 xorg_cv_cc_flag_unused_command_line_argument=no 9628fi 9629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9630fi 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9634 CFLAGS="$xorg_testset_save_CFLAGS" 9635fi 9636 9637found="no" 9638 9639 if test $found = "no" ; then 9640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9642 fi 9643 9644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9646 fi 9647 9648 CFLAGS="$CFLAGS -Wwrite-strings" 9649 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9651$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9652 cacheid=xorg_cv_cc_flag__Wwrite_strings 9653 if eval \${$cacheid+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657/* end confdefs.h. */ 9658int i; 9659int 9660main () 9661{ 9662 9663 ; 9664 return 0; 9665} 9666_ACEOF 9667if ac_fn_c_try_link "$LINENO"; then : 9668 eval $cacheid=yes 9669else 9670 eval $cacheid=no 9671fi 9672rm -f core conftest.err conftest.$ac_objext \ 9673 conftest$ac_exeext conftest.$ac_ext 9674fi 9675 9676 9677 CFLAGS="$xorg_testset_save_CFLAGS" 9678 9679 eval supported=\$$cacheid 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9681$as_echo "$supported" >&6; } 9682 if test "$supported" = "yes" ; then 9683 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9684 found="yes" 9685 fi 9686 fi 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702xorg_testset_save_CFLAGS="$CFLAGS" 9703 9704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9709 $as_echo_n "(cached) " >&6 9710else 9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712/* end confdefs.h. */ 9713int i; 9714_ACEOF 9715if ac_fn_c_try_compile "$LINENO"; then : 9716 xorg_cv_cc_flag_unknown_warning_option=yes 9717else 9718 xorg_cv_cc_flag_unknown_warning_option=no 9719fi 9720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9721fi 9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9725 CFLAGS="$xorg_testset_save_CFLAGS" 9726fi 9727 9728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9731 fi 9732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9736 $as_echo_n "(cached) " >&6 9737else 9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739/* end confdefs.h. */ 9740int i; 9741_ACEOF 9742if ac_fn_c_try_compile "$LINENO"; then : 9743 xorg_cv_cc_flag_unused_command_line_argument=yes 9744else 9745 xorg_cv_cc_flag_unused_command_line_argument=no 9746fi 9747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9748fi 9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9752 CFLAGS="$xorg_testset_save_CFLAGS" 9753fi 9754 9755found="no" 9756 9757 if test $found = "no" ; then 9758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9760 fi 9761 9762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9764 fi 9765 9766 CFLAGS="$CFLAGS -Waddress" 9767 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9769$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9770 cacheid=xorg_cv_cc_flag__Waddress 9771 if eval \${$cacheid+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775/* end confdefs.h. */ 9776int i; 9777int 9778main () 9779{ 9780 9781 ; 9782 return 0; 9783} 9784_ACEOF 9785if ac_fn_c_try_link "$LINENO"; then : 9786 eval $cacheid=yes 9787else 9788 eval $cacheid=no 9789fi 9790rm -f core conftest.err conftest.$ac_objext \ 9791 conftest$ac_exeext conftest.$ac_ext 9792fi 9793 9794 9795 CFLAGS="$xorg_testset_save_CFLAGS" 9796 9797 eval supported=\$$cacheid 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9799$as_echo "$supported" >&6; } 9800 if test "$supported" = "yes" ; then 9801 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9802 found="yes" 9803 fi 9804 fi 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820xorg_testset_save_CFLAGS="$CFLAGS" 9821 9822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9827 $as_echo_n "(cached) " >&6 9828else 9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830/* end confdefs.h. */ 9831int i; 9832_ACEOF 9833if ac_fn_c_try_compile "$LINENO"; then : 9834 xorg_cv_cc_flag_unknown_warning_option=yes 9835else 9836 xorg_cv_cc_flag_unknown_warning_option=no 9837fi 9838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9839fi 9840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9843 CFLAGS="$xorg_testset_save_CFLAGS" 9844fi 9845 9846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9849 fi 9850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9854 $as_echo_n "(cached) " >&6 9855else 9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9857/* end confdefs.h. */ 9858int i; 9859_ACEOF 9860if ac_fn_c_try_compile "$LINENO"; then : 9861 xorg_cv_cc_flag_unused_command_line_argument=yes 9862else 9863 xorg_cv_cc_flag_unused_command_line_argument=no 9864fi 9865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9866fi 9867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9870 CFLAGS="$xorg_testset_save_CFLAGS" 9871fi 9872 9873found="no" 9874 9875 if test $found = "no" ; then 9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 fi 9879 9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9882 fi 9883 9884 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9885 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9887$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9888 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9889 if eval \${$cacheid+:} false; then : 9890 $as_echo_n "(cached) " >&6 9891else 9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9893/* end confdefs.h. */ 9894int i; 9895int 9896main () 9897{ 9898 9899 ; 9900 return 0; 9901} 9902_ACEOF 9903if ac_fn_c_try_link "$LINENO"; then : 9904 eval $cacheid=yes 9905else 9906 eval $cacheid=no 9907fi 9908rm -f core conftest.err conftest.$ac_objext \ 9909 conftest$ac_exeext conftest.$ac_ext 9910fi 9911 9912 9913 CFLAGS="$xorg_testset_save_CFLAGS" 9914 9915 eval supported=\$$cacheid 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9917$as_echo "$supported" >&6; } 9918 if test "$supported" = "yes" ; then 9919 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9920 found="yes" 9921 fi 9922 fi 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938xorg_testset_save_CFLAGS="$CFLAGS" 9939 9940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948/* end confdefs.h. */ 9949int i; 9950_ACEOF 9951if ac_fn_c_try_compile "$LINENO"; then : 9952 xorg_cv_cc_flag_unknown_warning_option=yes 9953else 9954 xorg_cv_cc_flag_unknown_warning_option=no 9955fi 9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9957fi 9958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9961 CFLAGS="$xorg_testset_save_CFLAGS" 9962fi 9963 9964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9967 fi 9968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9972 $as_echo_n "(cached) " >&6 9973else 9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9975/* end confdefs.h. */ 9976int i; 9977_ACEOF 9978if ac_fn_c_try_compile "$LINENO"; then : 9979 xorg_cv_cc_flag_unused_command_line_argument=yes 9980else 9981 xorg_cv_cc_flag_unused_command_line_argument=no 9982fi 9983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9984fi 9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9988 CFLAGS="$xorg_testset_save_CFLAGS" 9989fi 9990 9991found="no" 9992 9993 if test $found = "no" ; then 9994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9996 fi 9997 9998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10000 fi 10001 10002 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10003 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10005$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10006 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10007 if eval \${$cacheid+:} false; then : 10008 $as_echo_n "(cached) " >&6 10009else 10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10011/* end confdefs.h. */ 10012int i; 10013int 10014main () 10015{ 10016 10017 ; 10018 return 0; 10019} 10020_ACEOF 10021if ac_fn_c_try_link "$LINENO"; then : 10022 eval $cacheid=yes 10023else 10024 eval $cacheid=no 10025fi 10026rm -f core conftest.err conftest.$ac_objext \ 10027 conftest$ac_exeext conftest.$ac_ext 10028fi 10029 10030 10031 CFLAGS="$xorg_testset_save_CFLAGS" 10032 10033 eval supported=\$$cacheid 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10035$as_echo "$supported" >&6; } 10036 if test "$supported" = "yes" ; then 10037 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10038 found="yes" 10039 fi 10040 fi 10041 10042 10043fi 10044 10045 10046 10047 10048 10049 10050 10051 CWARNFLAGS="$BASE_CFLAGS" 10052 if test "x$GCC" = xyes ; then 10053 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10054 fi 10055 10056 10057 10058 10059 10060 10061 10062 10063# Check whether --enable-strict-compilation was given. 10064if test "${enable_strict_compilation+set}" = set; then : 10065 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10066else 10067 STRICT_COMPILE=no 10068fi 10069 10070 10071 10072 10073 10074 10075STRICT_CFLAGS="" 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089xorg_testset_save_CFLAGS="$CFLAGS" 10090 10091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10096 $as_echo_n "(cached) " >&6 10097else 10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10099/* end confdefs.h. */ 10100int i; 10101_ACEOF 10102if ac_fn_c_try_compile "$LINENO"; then : 10103 xorg_cv_cc_flag_unknown_warning_option=yes 10104else 10105 xorg_cv_cc_flag_unknown_warning_option=no 10106fi 10107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10108fi 10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10112 CFLAGS="$xorg_testset_save_CFLAGS" 10113fi 10114 10115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10118 fi 10119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10123 $as_echo_n "(cached) " >&6 10124else 10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10126/* end confdefs.h. */ 10127int i; 10128_ACEOF 10129if ac_fn_c_try_compile "$LINENO"; then : 10130 xorg_cv_cc_flag_unused_command_line_argument=yes 10131else 10132 xorg_cv_cc_flag_unused_command_line_argument=no 10133fi 10134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10135fi 10136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10139 CFLAGS="$xorg_testset_save_CFLAGS" 10140fi 10141 10142found="no" 10143 10144 if test $found = "no" ; then 10145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10147 fi 10148 10149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10151 fi 10152 10153 CFLAGS="$CFLAGS -pedantic" 10154 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10156$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10157 cacheid=xorg_cv_cc_flag__pedantic 10158 if eval \${$cacheid+:} false; then : 10159 $as_echo_n "(cached) " >&6 10160else 10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163int i; 10164int 10165main () 10166{ 10167 10168 ; 10169 return 0; 10170} 10171_ACEOF 10172if ac_fn_c_try_link "$LINENO"; then : 10173 eval $cacheid=yes 10174else 10175 eval $cacheid=no 10176fi 10177rm -f core conftest.err conftest.$ac_objext \ 10178 conftest$ac_exeext conftest.$ac_ext 10179fi 10180 10181 10182 CFLAGS="$xorg_testset_save_CFLAGS" 10183 10184 eval supported=\$$cacheid 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10186$as_echo "$supported" >&6; } 10187 if test "$supported" = "yes" ; then 10188 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10189 found="yes" 10190 fi 10191 fi 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207xorg_testset_save_CFLAGS="$CFLAGS" 10208 10209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10214 $as_echo_n "(cached) " >&6 10215else 10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10217/* end confdefs.h. */ 10218int i; 10219_ACEOF 10220if ac_fn_c_try_compile "$LINENO"; then : 10221 xorg_cv_cc_flag_unknown_warning_option=yes 10222else 10223 xorg_cv_cc_flag_unknown_warning_option=no 10224fi 10225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10226fi 10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10230 CFLAGS="$xorg_testset_save_CFLAGS" 10231fi 10232 10233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10236 fi 10237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10241 $as_echo_n "(cached) " >&6 10242else 10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10244/* end confdefs.h. */ 10245int i; 10246_ACEOF 10247if ac_fn_c_try_compile "$LINENO"; then : 10248 xorg_cv_cc_flag_unused_command_line_argument=yes 10249else 10250 xorg_cv_cc_flag_unused_command_line_argument=no 10251fi 10252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10253fi 10254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10257 CFLAGS="$xorg_testset_save_CFLAGS" 10258fi 10259 10260found="no" 10261 10262 if test $found = "no" ; then 10263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10265 fi 10266 10267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10269 fi 10270 10271 CFLAGS="$CFLAGS -Werror" 10272 10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10274$as_echo_n "checking if $CC supports -Werror... " >&6; } 10275 cacheid=xorg_cv_cc_flag__Werror 10276 if eval \${$cacheid+:} false; then : 10277 $as_echo_n "(cached) " >&6 10278else 10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10280/* end confdefs.h. */ 10281int i; 10282int 10283main () 10284{ 10285 10286 ; 10287 return 0; 10288} 10289_ACEOF 10290if ac_fn_c_try_link "$LINENO"; then : 10291 eval $cacheid=yes 10292else 10293 eval $cacheid=no 10294fi 10295rm -f core conftest.err conftest.$ac_objext \ 10296 conftest$ac_exeext conftest.$ac_ext 10297fi 10298 10299 10300 CFLAGS="$xorg_testset_save_CFLAGS" 10301 10302 eval supported=\$$cacheid 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10304$as_echo "$supported" >&6; } 10305 if test "$supported" = "yes" ; then 10306 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10307 found="yes" 10308 fi 10309 fi 10310 10311 if test $found = "no" ; then 10312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10314 fi 10315 10316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10318 fi 10319 10320 CFLAGS="$CFLAGS -errwarn" 10321 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10323$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10324 cacheid=xorg_cv_cc_flag__errwarn 10325 if eval \${$cacheid+:} false; then : 10326 $as_echo_n "(cached) " >&6 10327else 10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10329/* end confdefs.h. */ 10330int i; 10331int 10332main () 10333{ 10334 10335 ; 10336 return 0; 10337} 10338_ACEOF 10339if ac_fn_c_try_link "$LINENO"; then : 10340 eval $cacheid=yes 10341else 10342 eval $cacheid=no 10343fi 10344rm -f core conftest.err conftest.$ac_objext \ 10345 conftest$ac_exeext conftest.$ac_ext 10346fi 10347 10348 10349 CFLAGS="$xorg_testset_save_CFLAGS" 10350 10351 eval supported=\$$cacheid 10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10353$as_echo "$supported" >&6; } 10354 if test "$supported" = "yes" ; then 10355 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10356 found="yes" 10357 fi 10358 fi 10359 10360 10361 10362# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10363# activate it with -Werror, so we add it here explicitly. 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377xorg_testset_save_CFLAGS="$CFLAGS" 10378 10379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10384 $as_echo_n "(cached) " >&6 10385else 10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10387/* end confdefs.h. */ 10388int i; 10389_ACEOF 10390if ac_fn_c_try_compile "$LINENO"; then : 10391 xorg_cv_cc_flag_unknown_warning_option=yes 10392else 10393 xorg_cv_cc_flag_unknown_warning_option=no 10394fi 10395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10396fi 10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10400 CFLAGS="$xorg_testset_save_CFLAGS" 10401fi 10402 10403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10406 fi 10407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10411 $as_echo_n "(cached) " >&6 10412else 10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10414/* end confdefs.h. */ 10415int i; 10416_ACEOF 10417if ac_fn_c_try_compile "$LINENO"; then : 10418 xorg_cv_cc_flag_unused_command_line_argument=yes 10419else 10420 xorg_cv_cc_flag_unused_command_line_argument=no 10421fi 10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10423fi 10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10427 CFLAGS="$xorg_testset_save_CFLAGS" 10428fi 10429 10430found="no" 10431 10432 if test $found = "no" ; then 10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10435 fi 10436 10437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10439 fi 10440 10441 CFLAGS="$CFLAGS -Werror=attributes" 10442 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10444$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10445 cacheid=xorg_cv_cc_flag__Werror_attributes 10446 if eval \${$cacheid+:} false; then : 10447 $as_echo_n "(cached) " >&6 10448else 10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10450/* end confdefs.h. */ 10451int i; 10452int 10453main () 10454{ 10455 10456 ; 10457 return 0; 10458} 10459_ACEOF 10460if ac_fn_c_try_link "$LINENO"; then : 10461 eval $cacheid=yes 10462else 10463 eval $cacheid=no 10464fi 10465rm -f core conftest.err conftest.$ac_objext \ 10466 conftest$ac_exeext conftest.$ac_ext 10467fi 10468 10469 10470 CFLAGS="$xorg_testset_save_CFLAGS" 10471 10472 eval supported=\$$cacheid 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10474$as_echo "$supported" >&6; } 10475 if test "$supported" = "yes" ; then 10476 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10477 found="yes" 10478 fi 10479 fi 10480 10481 10482 10483if test "x$STRICT_COMPILE" = "xyes"; then 10484 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10485 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10486fi 10487 10488 10489 10490 10491 10492 10493cat >>confdefs.h <<_ACEOF 10494#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10495_ACEOF 10496 10497 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10498 if test "x$PVM" = "x"; then 10499 PVM="0" 10500 fi 10501 10502cat >>confdefs.h <<_ACEOF 10503#define PACKAGE_VERSION_MINOR $PVM 10504_ACEOF 10505 10506 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10507 if test "x$PVP" = "x"; then 10508 PVP="0" 10509 fi 10510 10511cat >>confdefs.h <<_ACEOF 10512#define PACKAGE_VERSION_PATCHLEVEL $PVP 10513_ACEOF 10514 10515 10516 10517CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10518mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10519|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10520echo 'git directory not found: installing possibly empty changelog.' >&2)" 10521 10522 10523 10524 10525macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10526INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10527mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10528|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10529echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10530 10531 10532 10533 10534 10535 10536if test x$APP_MAN_SUFFIX = x ; then 10537 APP_MAN_SUFFIX=1 10538fi 10539if test x$APP_MAN_DIR = x ; then 10540 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10541fi 10542 10543if test x$LIB_MAN_SUFFIX = x ; then 10544 LIB_MAN_SUFFIX=3 10545fi 10546if test x$LIB_MAN_DIR = x ; then 10547 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10548fi 10549 10550if test x$FILE_MAN_SUFFIX = x ; then 10551 case $host_os in 10552 solaris*) FILE_MAN_SUFFIX=4 ;; 10553 *) FILE_MAN_SUFFIX=5 ;; 10554 esac 10555fi 10556if test x$FILE_MAN_DIR = x ; then 10557 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10558fi 10559 10560if test x$MISC_MAN_SUFFIX = x ; then 10561 case $host_os in 10562 solaris*) MISC_MAN_SUFFIX=5 ;; 10563 *) MISC_MAN_SUFFIX=7 ;; 10564 esac 10565fi 10566if test x$MISC_MAN_DIR = x ; then 10567 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10568fi 10569 10570if test x$DRIVER_MAN_SUFFIX = x ; then 10571 case $host_os in 10572 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10573 *) DRIVER_MAN_SUFFIX=4 ;; 10574 esac 10575fi 10576if test x$DRIVER_MAN_DIR = x ; then 10577 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10578fi 10579 10580if test x$ADMIN_MAN_SUFFIX = x ; then 10581 case $host_os in 10582 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10583 *) ADMIN_MAN_SUFFIX=8 ;; 10584 esac 10585fi 10586if test x$ADMIN_MAN_DIR = x ; then 10587 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10588fi 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604XORG_MAN_PAGE="X Version 11" 10605 10606MAN_SUBSTS="\ 10607 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10608 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10609 -e 's|__xservername__|Xorg|g' \ 10610 -e 's|__xconfigfile__|xorg.conf|g' \ 10611 -e 's|__projectroot__|\$(prefix)|g' \ 10612 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10613 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10614 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10615 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10616 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10617 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10618 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10619 10620 10621 10622# Check whether --enable-silent-rules was given. 10623if test "${enable_silent_rules+set}" = set; then : 10624 enableval=$enable_silent_rules; 10625fi 10626 10627case $enable_silent_rules in # ((( 10628 yes) AM_DEFAULT_VERBOSITY=0;; 10629 no) AM_DEFAULT_VERBOSITY=1;; 10630 *) AM_DEFAULT_VERBOSITY=0;; 10631esac 10632am_make=${MAKE-make} 10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10634$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10635if ${am_cv_make_support_nested_variables+:} false; then : 10636 $as_echo_n "(cached) " >&6 10637else 10638 if $as_echo 'TRUE=$(BAR$(V)) 10639BAR0=false 10640BAR1=true 10641V=1 10642am__doit: 10643 @$(TRUE) 10644.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10645 am_cv_make_support_nested_variables=yes 10646else 10647 am_cv_make_support_nested_variables=no 10648fi 10649fi 10650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10651$as_echo "$am_cv_make_support_nested_variables" >&6; } 10652if test $am_cv_make_support_nested_variables = yes; then 10653 AM_V='$(V)' 10654 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10655else 10656 AM_V=$AM_DEFAULT_VERBOSITY 10657 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10658fi 10659AM_BACKSLASH='\' 10660 10661 10662 10663for ac_func in nanosleep poll select 10664do : 10665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10666ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10667if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10668 cat >>confdefs.h <<_ACEOF 10669#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10670_ACEOF 10671 10672fi 10673done 10674 10675 10676# Math libraries & functions 10677# - some compilers use builtin inlines for floor 10678# - lrint() is a C99 addition not found on some older systems 10679# - must do the libm check first so that the lrint check will have it in $LIBS 10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 10681$as_echo_n "checking for library containing floor... " >&6; } 10682if ${ac_cv_search_floor+:} false; then : 10683 $as_echo_n "(cached) " >&6 10684else 10685 ac_func_search_save_LIBS=$LIBS 10686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10687/* end confdefs.h. */ 10688 10689/* Override any GCC internal prototype to avoid an error. 10690 Use char because int might match the return type of a GCC 10691 builtin and then its argument prototype would still apply. */ 10692#ifdef __cplusplus 10693extern "C" 10694#endif 10695char floor (); 10696int 10697main () 10698{ 10699return floor (); 10700 ; 10701 return 0; 10702} 10703_ACEOF 10704for ac_lib in '' m; do 10705 if test -z "$ac_lib"; then 10706 ac_res="none required" 10707 else 10708 ac_res=-l$ac_lib 10709 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10710 fi 10711 if ac_fn_c_try_link "$LINENO"; then : 10712 ac_cv_search_floor=$ac_res 10713fi 10714rm -f core conftest.err conftest.$ac_objext \ 10715 conftest$ac_exeext 10716 if ${ac_cv_search_floor+:} false; then : 10717 break 10718fi 10719done 10720if ${ac_cv_search_floor+:} false; then : 10721 10722else 10723 ac_cv_search_floor=no 10724fi 10725rm conftest.$ac_ext 10726LIBS=$ac_func_search_save_LIBS 10727fi 10728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 10729$as_echo "$ac_cv_search_floor" >&6; } 10730ac_res=$ac_cv_search_floor 10731if test "$ac_res" != no; then : 10732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10733 10734fi 10735 10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5 10737$as_echo_n "checking for library containing lrint... " >&6; } 10738if ${ac_cv_search_lrint+:} false; then : 10739 $as_echo_n "(cached) " >&6 10740else 10741 ac_func_search_save_LIBS=$LIBS 10742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10743/* end confdefs.h. */ 10744 10745/* Override any GCC internal prototype to avoid an error. 10746 Use char because int might match the return type of a GCC 10747 builtin and then its argument prototype would still apply. */ 10748#ifdef __cplusplus 10749extern "C" 10750#endif 10751char lrint (); 10752int 10753main () 10754{ 10755return lrint (); 10756 ; 10757 return 0; 10758} 10759_ACEOF 10760for ac_lib in '' m; do 10761 if test -z "$ac_lib"; then 10762 ac_res="none required" 10763 else 10764 ac_res=-l$ac_lib 10765 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10766 fi 10767 if ac_fn_c_try_link "$LINENO"; then : 10768 ac_cv_search_lrint=$ac_res 10769fi 10770rm -f core conftest.err conftest.$ac_objext \ 10771 conftest$ac_exeext 10772 if ${ac_cv_search_lrint+:} false; then : 10773 break 10774fi 10775done 10776if ${ac_cv_search_lrint+:} false; then : 10777 10778else 10779 ac_cv_search_lrint=no 10780fi 10781rm conftest.$ac_ext 10782LIBS=$ac_func_search_save_LIBS 10783fi 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5 10785$as_echo "$ac_cv_search_lrint" >&6; } 10786ac_res=$ac_cv_search_lrint 10787if test "$ac_res" != no; then : 10788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10789 10790fi 10791 10792for ac_func in lrint 10793do : 10794 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 10795if test "x$ac_cv_func_lrint" = xyes; then : 10796 cat >>confdefs.h <<_ACEOF 10797#define HAVE_LRINT 1 10798_ACEOF 10799 10800fi 10801done 10802 10803 10804# Checks for pkg-config packages 10805 10806pkg_failed=no 10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMAG" >&5 10808$as_echo_n "checking for XMAG... " >&6; } 10809 10810if test -n "$XMAG_CFLAGS"; then 10811 pkg_cv_XMAG_CFLAGS="$XMAG_CFLAGS" 10812 elif test -n "$PKG_CONFIG"; then 10813 if test -n "$PKG_CONFIG" && \ 10814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 10815 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 10816 ac_status=$? 10817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10818 test $ac_status = 0; }; then 10819 pkg_cv_XMAG_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null` 10820else 10821 pkg_failed=yes 10822fi 10823 else 10824 pkg_failed=untried 10825fi 10826if test -n "$XMAG_LIBS"; then 10827 pkg_cv_XMAG_LIBS="$XMAG_LIBS" 10828 elif test -n "$PKG_CONFIG"; then 10829 if test -n "$PKG_CONFIG" && \ 10830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 10831 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 10832 ac_status=$? 10833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10834 test $ac_status = 0; }; then 10835 pkg_cv_XMAG_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null` 10836else 10837 pkg_failed=yes 10838fi 10839 else 10840 pkg_failed=untried 10841fi 10842 10843 10844 10845if test $pkg_failed = yes; then 10846 10847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10848 _pkg_short_errors_supported=yes 10849else 10850 _pkg_short_errors_supported=no 10851fi 10852 if test $_pkg_short_errors_supported = yes; then 10853 XMAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11" 2>&1` 10854 else 10855 XMAG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11" 2>&1` 10856 fi 10857 # Put the nasty error message in config.log where it belongs 10858 echo "$XMAG_PKG_ERRORS" >&5 10859 10860 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met: 10861 10862$XMAG_PKG_ERRORS 10863 10864Consider adjusting the PKG_CONFIG_PATH environment variable if you 10865installed software in a non-standard prefix. 10866 10867Alternatively, you may set the environment variables XMAG_CFLAGS 10868and XMAG_LIBS to avoid the need to call pkg-config. 10869See the pkg-config man page for more details. 10870" "$LINENO" 5 10871elif test $pkg_failed = untried; then 10872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10874as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10875is in your PATH or set the PKG_CONFIG environment variable to the full 10876path to pkg-config. 10877 10878Alternatively, you may set the environment variables XMAG_CFLAGS 10879and XMAG_LIBS to avoid the need to call pkg-config. 10880See the pkg-config man page for more details. 10881 10882To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10883See \`config.log' for more details" "$LINENO" 5; } 10884else 10885 XMAG_CFLAGS=$pkg_cv_XMAG_CFLAGS 10886 XMAG_LIBS=$pkg_cv_XMAG_LIBS 10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10888$as_echo "yes" >&6; } 10889 : 10890fi 10891 10892xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10893 10894# Check whether --with-appdefaultdir was given. 10895if test "${with_appdefaultdir+set}" = set; then : 10896 withval=$with_appdefaultdir; appdefaultdir="$withval" 10897else 10898 appdefaultdir="${xt_appdefaultdir}" 10899fi 10900 10901 10902 10903 10904ac_config_files="$ac_config_files Makefile man/Makefile" 10905 10906cat >confcache <<\_ACEOF 10907# This file is a shell script that caches the results of configure 10908# tests run on this system so they can be shared between configure 10909# scripts and configure runs, see configure's option --config-cache. 10910# It is not useful on other systems. If it contains results you don't 10911# want to keep, you may remove or edit it. 10912# 10913# config.status only pays attention to the cache file if you give it 10914# the --recheck option to rerun configure. 10915# 10916# `ac_cv_env_foo' variables (set or unset) will be overridden when 10917# loading this file, other *unset* `ac_cv_foo' will be assigned the 10918# following values. 10919 10920_ACEOF 10921 10922# The following way of writing the cache mishandles newlines in values, 10923# but we know of no workaround that is simple, portable, and efficient. 10924# So, we kill variables containing newlines. 10925# Ultrix sh set writes to stderr and can't be redirected directly, 10926# and sets the high bit in the cache file unless we assign to the vars. 10927( 10928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10929 eval ac_val=\$$ac_var 10930 case $ac_val in #( 10931 *${as_nl}*) 10932 case $ac_var in #( 10933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10934$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10935 esac 10936 case $ac_var in #( 10937 _ | IFS | as_nl) ;; #( 10938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10939 *) { eval $ac_var=; unset $ac_var;} ;; 10940 esac ;; 10941 esac 10942 done 10943 10944 (set) 2>&1 | 10945 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10946 *${as_nl}ac_space=\ *) 10947 # `set' does not quote correctly, so add quotes: double-quote 10948 # substitution turns \\\\ into \\, and sed turns \\ into \. 10949 sed -n \ 10950 "s/'/'\\\\''/g; 10951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10952 ;; #( 10953 *) 10954 # `set' quotes correctly as required by POSIX, so do not add quotes. 10955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10956 ;; 10957 esac | 10958 sort 10959) | 10960 sed ' 10961 /^ac_cv_env_/b end 10962 t clear 10963 :clear 10964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10965 t end 10966 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10967 :end' >>confcache 10968if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10969 if test -w "$cache_file"; then 10970 if test "x$cache_file" != "x/dev/null"; then 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10972$as_echo "$as_me: updating cache $cache_file" >&6;} 10973 if test ! -f "$cache_file" || test -h "$cache_file"; then 10974 cat confcache >"$cache_file" 10975 else 10976 case $cache_file in #( 10977 */* | ?:*) 10978 mv -f confcache "$cache_file"$$ && 10979 mv -f "$cache_file"$$ "$cache_file" ;; #( 10980 *) 10981 mv -f confcache "$cache_file" ;; 10982 esac 10983 fi 10984 fi 10985 else 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10987$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10988 fi 10989fi 10990rm -f confcache 10991 10992test "x$prefix" = xNONE && prefix=$ac_default_prefix 10993# Let make expand exec_prefix. 10994test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10995 10996DEFS=-DHAVE_CONFIG_H 10997 10998ac_libobjs= 10999ac_ltlibobjs= 11000U= 11001for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11002 # 1. Remove the extension, and $U if already installed. 11003 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11004 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11006 # will be set to the directory where LIBOBJS objects are built. 11007 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11008 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11009done 11010LIBOBJS=$ac_libobjs 11011 11012LTLIBOBJS=$ac_ltlibobjs 11013 11014 11015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11016$as_echo_n "checking that generated files are newer than configure... " >&6; } 11017 if test -n "$am_sleep_pid"; then 11018 # Hide warnings about reused PIDs. 11019 wait $am_sleep_pid 2>/dev/null 11020 fi 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11022$as_echo "done" >&6; } 11023 if test -n "$EXEEXT"; then 11024 am__EXEEXT_TRUE= 11025 am__EXEEXT_FALSE='#' 11026else 11027 am__EXEEXT_TRUE='#' 11028 am__EXEEXT_FALSE= 11029fi 11030 11031if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11032 as_fn_error $? "conditional \"AMDEP\" was never defined. 11033Usually this means the macro was only invoked conditionally." "$LINENO" 5 11034fi 11035if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11036 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11037Usually this means the macro was only invoked conditionally." "$LINENO" 5 11038fi 11039 11040: "${CONFIG_STATUS=./config.status}" 11041ac_write_fail=0 11042ac_clean_files_save=$ac_clean_files 11043ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11044{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11045$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11046as_write_fail=0 11047cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11048#! $SHELL 11049# Generated by $as_me. 11050# Run this file to recreate the current configuration. 11051# Compiler output produced by configure, useful for debugging 11052# configure, is in config.log if it exists. 11053 11054debug=false 11055ac_cs_recheck=false 11056ac_cs_silent=false 11057 11058SHELL=\${CONFIG_SHELL-$SHELL} 11059export SHELL 11060_ASEOF 11061cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11062## -------------------- ## 11063## M4sh Initialization. ## 11064## -------------------- ## 11065 11066# Be more Bourne compatible 11067DUALCASE=1; export DUALCASE # for MKS sh 11068if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11069 emulate sh 11070 NULLCMD=: 11071 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11072 # is contrary to our usage. Disable this feature. 11073 alias -g '${1+"$@"}'='"$@"' 11074 setopt NO_GLOB_SUBST 11075else 11076 case `(set -o) 2>/dev/null` in #( 11077 *posix*) : 11078 set -o posix ;; #( 11079 *) : 11080 ;; 11081esac 11082fi 11083 11084 11085as_nl=' 11086' 11087export as_nl 11088# Printing a long string crashes Solaris 7 /usr/bin/printf. 11089as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11090as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11092# Prefer a ksh shell builtin over an external printf program on Solaris, 11093# but without wasting forks for bash or zsh. 11094if test -z "$BASH_VERSION$ZSH_VERSION" \ 11095 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11096 as_echo='print -r --' 11097 as_echo_n='print -rn --' 11098elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11099 as_echo='printf %s\n' 11100 as_echo_n='printf %s' 11101else 11102 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11103 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11104 as_echo_n='/usr/ucb/echo -n' 11105 else 11106 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11107 as_echo_n_body='eval 11108 arg=$1; 11109 case $arg in #( 11110 *"$as_nl"*) 11111 expr "X$arg" : "X\\(.*\\)$as_nl"; 11112 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11113 esac; 11114 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11115 ' 11116 export as_echo_n_body 11117 as_echo_n='sh -c $as_echo_n_body as_echo' 11118 fi 11119 export as_echo_body 11120 as_echo='sh -c $as_echo_body as_echo' 11121fi 11122 11123# The user is always right. 11124if test "${PATH_SEPARATOR+set}" != set; then 11125 PATH_SEPARATOR=: 11126 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11127 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11128 PATH_SEPARATOR=';' 11129 } 11130fi 11131 11132 11133# IFS 11134# We need space, tab and new line, in precisely that order. Quoting is 11135# there to prevent editors from complaining about space-tab. 11136# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11137# splitting by setting IFS to empty value.) 11138IFS=" "" $as_nl" 11139 11140# Find who we are. Look in the path if we contain no directory separator. 11141as_myself= 11142case $0 in #(( 11143 *[\\/]* ) as_myself=$0 ;; 11144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11145for as_dir in $PATH 11146do 11147 IFS=$as_save_IFS 11148 test -z "$as_dir" && as_dir=. 11149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11150 done 11151IFS=$as_save_IFS 11152 11153 ;; 11154esac 11155# We did not find ourselves, most probably we were run as `sh COMMAND' 11156# in which case we are not to be found in the path. 11157if test "x$as_myself" = x; then 11158 as_myself=$0 11159fi 11160if test ! -f "$as_myself"; then 11161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11162 exit 1 11163fi 11164 11165# Unset variables that we do not need and which cause bugs (e.g. in 11166# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11167# suppresses any "Segmentation fault" message there. '((' could 11168# trigger a bug in pdksh 5.2.14. 11169for as_var in BASH_ENV ENV MAIL MAILPATH 11170do eval test x\${$as_var+set} = xset \ 11171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11172done 11173PS1='$ ' 11174PS2='> ' 11175PS4='+ ' 11176 11177# NLS nuisances. 11178LC_ALL=C 11179export LC_ALL 11180LANGUAGE=C 11181export LANGUAGE 11182 11183# CDPATH. 11184(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11185 11186 11187# as_fn_error STATUS ERROR [LINENO LOG_FD] 11188# ---------------------------------------- 11189# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11190# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11191# script with STATUS, using 1 if that was 0. 11192as_fn_error () 11193{ 11194 as_status=$1; test $as_status -eq 0 && as_status=1 11195 if test "$4"; then 11196 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11198 fi 11199 $as_echo "$as_me: error: $2" >&2 11200 as_fn_exit $as_status 11201} # as_fn_error 11202 11203 11204# as_fn_set_status STATUS 11205# ----------------------- 11206# Set $? to STATUS, without forking. 11207as_fn_set_status () 11208{ 11209 return $1 11210} # as_fn_set_status 11211 11212# as_fn_exit STATUS 11213# ----------------- 11214# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11215as_fn_exit () 11216{ 11217 set +e 11218 as_fn_set_status $1 11219 exit $1 11220} # as_fn_exit 11221 11222# as_fn_unset VAR 11223# --------------- 11224# Portably unset VAR. 11225as_fn_unset () 11226{ 11227 { eval $1=; unset $1;} 11228} 11229as_unset=as_fn_unset 11230# as_fn_append VAR VALUE 11231# ---------------------- 11232# Append the text in VALUE to the end of the definition contained in VAR. Take 11233# advantage of any shell optimizations that allow amortized linear growth over 11234# repeated appends, instead of the typical quadratic growth present in naive 11235# implementations. 11236if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11237 eval 'as_fn_append () 11238 { 11239 eval $1+=\$2 11240 }' 11241else 11242 as_fn_append () 11243 { 11244 eval $1=\$$1\$2 11245 } 11246fi # as_fn_append 11247 11248# as_fn_arith ARG... 11249# ------------------ 11250# Perform arithmetic evaluation on the ARGs, and store the result in the 11251# global $as_val. Take advantage of shells that can avoid forks. The arguments 11252# must be portable across $(()) and expr. 11253if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11254 eval 'as_fn_arith () 11255 { 11256 as_val=$(( $* )) 11257 }' 11258else 11259 as_fn_arith () 11260 { 11261 as_val=`expr "$@" || test $? -eq 1` 11262 } 11263fi # as_fn_arith 11264 11265 11266if expr a : '\(a\)' >/dev/null 2>&1 && 11267 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11268 as_expr=expr 11269else 11270 as_expr=false 11271fi 11272 11273if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11274 as_basename=basename 11275else 11276 as_basename=false 11277fi 11278 11279if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11280 as_dirname=dirname 11281else 11282 as_dirname=false 11283fi 11284 11285as_me=`$as_basename -- "$0" || 11286$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11287 X"$0" : 'X\(//\)$' \| \ 11288 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11289$as_echo X/"$0" | 11290 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11291 s//\1/ 11292 q 11293 } 11294 /^X\/\(\/\/\)$/{ 11295 s//\1/ 11296 q 11297 } 11298 /^X\/\(\/\).*/{ 11299 s//\1/ 11300 q 11301 } 11302 s/.*/./; q'` 11303 11304# Avoid depending upon Character Ranges. 11305as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11306as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11307as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11308as_cr_digits='0123456789' 11309as_cr_alnum=$as_cr_Letters$as_cr_digits 11310 11311ECHO_C= ECHO_N= ECHO_T= 11312case `echo -n x` in #((((( 11313-n*) 11314 case `echo 'xy\c'` in 11315 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11316 xy) ECHO_C='\c';; 11317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11318 ECHO_T=' ';; 11319 esac;; 11320*) 11321 ECHO_N='-n';; 11322esac 11323 11324rm -f conf$$ conf$$.exe conf$$.file 11325if test -d conf$$.dir; then 11326 rm -f conf$$.dir/conf$$.file 11327else 11328 rm -f conf$$.dir 11329 mkdir conf$$.dir 2>/dev/null 11330fi 11331if (echo >conf$$.file) 2>/dev/null; then 11332 if ln -s conf$$.file conf$$ 2>/dev/null; then 11333 as_ln_s='ln -s' 11334 # ... but there are two gotchas: 11335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11337 # In both cases, we have to default to `cp -pR'. 11338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11339 as_ln_s='cp -pR' 11340 elif ln conf$$.file conf$$ 2>/dev/null; then 11341 as_ln_s=ln 11342 else 11343 as_ln_s='cp -pR' 11344 fi 11345else 11346 as_ln_s='cp -pR' 11347fi 11348rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11349rmdir conf$$.dir 2>/dev/null 11350 11351 11352# as_fn_mkdir_p 11353# ------------- 11354# Create "$as_dir" as a directory, including parents if necessary. 11355as_fn_mkdir_p () 11356{ 11357 11358 case $as_dir in #( 11359 -*) as_dir=./$as_dir;; 11360 esac 11361 test -d "$as_dir" || eval $as_mkdir_p || { 11362 as_dirs= 11363 while :; do 11364 case $as_dir in #( 11365 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11366 *) as_qdir=$as_dir;; 11367 esac 11368 as_dirs="'$as_qdir' $as_dirs" 11369 as_dir=`$as_dirname -- "$as_dir" || 11370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11371 X"$as_dir" : 'X\(//\)[^/]' \| \ 11372 X"$as_dir" : 'X\(//\)$' \| \ 11373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11374$as_echo X"$as_dir" | 11375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11376 s//\1/ 11377 q 11378 } 11379 /^X\(\/\/\)[^/].*/{ 11380 s//\1/ 11381 q 11382 } 11383 /^X\(\/\/\)$/{ 11384 s//\1/ 11385 q 11386 } 11387 /^X\(\/\).*/{ 11388 s//\1/ 11389 q 11390 } 11391 s/.*/./; q'` 11392 test -d "$as_dir" && break 11393 done 11394 test -z "$as_dirs" || eval "mkdir $as_dirs" 11395 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11396 11397 11398} # as_fn_mkdir_p 11399if mkdir -p . 2>/dev/null; then 11400 as_mkdir_p='mkdir -p "$as_dir"' 11401else 11402 test -d ./-p && rmdir ./-p 11403 as_mkdir_p=false 11404fi 11405 11406 11407# as_fn_executable_p FILE 11408# ----------------------- 11409# Test if FILE is an executable regular file. 11410as_fn_executable_p () 11411{ 11412 test -f "$1" && test -x "$1" 11413} # as_fn_executable_p 11414as_test_x='test -x' 11415as_executable_p=as_fn_executable_p 11416 11417# Sed expression to map a string onto a valid CPP name. 11418as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11419 11420# Sed expression to map a string onto a valid variable name. 11421as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11422 11423 11424exec 6>&1 11425## ----------------------------------- ## 11426## Main body of $CONFIG_STATUS script. ## 11427## ----------------------------------- ## 11428_ASEOF 11429test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11430 11431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11432# Save the log message, to keep $0 and so on meaningful, and to 11433# report actual input values of CONFIG_FILES etc. instead of their 11434# values after options handling. 11435ac_log=" 11436This file was extended by xmag $as_me 1.0.6, which was 11437generated by GNU Autoconf 2.69. Invocation command line was 11438 11439 CONFIG_FILES = $CONFIG_FILES 11440 CONFIG_HEADERS = $CONFIG_HEADERS 11441 CONFIG_LINKS = $CONFIG_LINKS 11442 CONFIG_COMMANDS = $CONFIG_COMMANDS 11443 $ $0 $@ 11444 11445on `(hostname || uname -n) 2>/dev/null | sed 1q` 11446" 11447 11448_ACEOF 11449 11450case $ac_config_files in *" 11451"*) set x $ac_config_files; shift; ac_config_files=$*;; 11452esac 11453 11454case $ac_config_headers in *" 11455"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11456esac 11457 11458 11459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11460# Files that config.status was made for. 11461config_files="$ac_config_files" 11462config_headers="$ac_config_headers" 11463config_commands="$ac_config_commands" 11464 11465_ACEOF 11466 11467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11468ac_cs_usage="\ 11469\`$as_me' instantiates files and other configuration actions 11470from templates according to the current configuration. Unless the files 11471and actions are specified as TAGs, all are instantiated by default. 11472 11473Usage: $0 [OPTION]... [TAG]... 11474 11475 -h, --help print this help, then exit 11476 -V, --version print version number and configuration settings, then exit 11477 --config print configuration, then exit 11478 -q, --quiet, --silent 11479 do not print progress messages 11480 -d, --debug don't remove temporary files 11481 --recheck update $as_me by reconfiguring in the same conditions 11482 --file=FILE[:TEMPLATE] 11483 instantiate the configuration file FILE 11484 --header=FILE[:TEMPLATE] 11485 instantiate the configuration header FILE 11486 11487Configuration files: 11488$config_files 11489 11490Configuration headers: 11491$config_headers 11492 11493Configuration commands: 11494$config_commands 11495 11496Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11497 11498_ACEOF 11499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11500ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11501ac_cs_version="\\ 11502xmag config.status 1.0.6 11503configured by $0, generated by GNU Autoconf 2.69, 11504 with options \\"\$ac_cs_config\\" 11505 11506Copyright (C) 2012 Free Software Foundation, Inc. 11507This config.status script is free software; the Free Software Foundation 11508gives unlimited permission to copy, distribute and modify it." 11509 11510ac_pwd='$ac_pwd' 11511srcdir='$srcdir' 11512INSTALL='$INSTALL' 11513MKDIR_P='$MKDIR_P' 11514AWK='$AWK' 11515test -n "\$AWK" || AWK=awk 11516_ACEOF 11517 11518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11519# The default lists apply if the user does not specify any file. 11520ac_need_defaults=: 11521while test $# != 0 11522do 11523 case $1 in 11524 --*=?*) 11525 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11526 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11527 ac_shift=: 11528 ;; 11529 --*=) 11530 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11531 ac_optarg= 11532 ac_shift=: 11533 ;; 11534 *) 11535 ac_option=$1 11536 ac_optarg=$2 11537 ac_shift=shift 11538 ;; 11539 esac 11540 11541 case $ac_option in 11542 # Handling of the options. 11543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11544 ac_cs_recheck=: ;; 11545 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11546 $as_echo "$ac_cs_version"; exit ;; 11547 --config | --confi | --conf | --con | --co | --c ) 11548 $as_echo "$ac_cs_config"; exit ;; 11549 --debug | --debu | --deb | --de | --d | -d ) 11550 debug=: ;; 11551 --file | --fil | --fi | --f ) 11552 $ac_shift 11553 case $ac_optarg in 11554 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11555 '') as_fn_error $? "missing file argument" ;; 11556 esac 11557 as_fn_append CONFIG_FILES " '$ac_optarg'" 11558 ac_need_defaults=false;; 11559 --header | --heade | --head | --hea ) 11560 $ac_shift 11561 case $ac_optarg in 11562 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11563 esac 11564 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11565 ac_need_defaults=false;; 11566 --he | --h) 11567 # Conflict between --help and --header 11568 as_fn_error $? "ambiguous option: \`$1' 11569Try \`$0 --help' for more information.";; 11570 --help | --hel | -h ) 11571 $as_echo "$ac_cs_usage"; exit ;; 11572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11573 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11574 ac_cs_silent=: ;; 11575 11576 # This is an error. 11577 -*) as_fn_error $? "unrecognized option: \`$1' 11578Try \`$0 --help' for more information." ;; 11579 11580 *) as_fn_append ac_config_targets " $1" 11581 ac_need_defaults=false ;; 11582 11583 esac 11584 shift 11585done 11586 11587ac_configure_extra_args= 11588 11589if $ac_cs_silent; then 11590 exec 6>/dev/null 11591 ac_configure_extra_args="$ac_configure_extra_args --silent" 11592fi 11593 11594_ACEOF 11595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11596if \$ac_cs_recheck; then 11597 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11598 shift 11599 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11600 CONFIG_SHELL='$SHELL' 11601 export CONFIG_SHELL 11602 exec "\$@" 11603fi 11604 11605_ACEOF 11606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11607exec 5>>config.log 11608{ 11609 echo 11610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11611## Running $as_me. ## 11612_ASBOX 11613 $as_echo "$ac_log" 11614} >&5 11615 11616_ACEOF 11617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11618# 11619# INIT-COMMANDS 11620# 11621AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11622 11623_ACEOF 11624 11625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11626 11627# Handling of arguments. 11628for ac_config_target in $ac_config_targets 11629do 11630 case $ac_config_target in 11631 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11632 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11633 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11634 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11635 11636 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11637 esac 11638done 11639 11640 11641# If the user did not use the arguments to specify the items to instantiate, 11642# then the envvar interface is used. Set only those that are not. 11643# We use the long form for the default assignment because of an extremely 11644# bizarre bug on SunOS 4.1.3. 11645if $ac_need_defaults; then 11646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11649fi 11650 11651# Have a temporary directory for convenience. Make it in the build tree 11652# simply because there is no reason against having it here, and in addition, 11653# creating and moving files from /tmp can sometimes cause problems. 11654# Hook for its removal unless debugging. 11655# Note that there is a small window in which the directory will not be cleaned: 11656# after its creation but before its name has been assigned to `$tmp'. 11657$debug || 11658{ 11659 tmp= ac_tmp= 11660 trap 'exit_status=$? 11661 : "${ac_tmp:=$tmp}" 11662 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11663' 0 11664 trap 'as_fn_exit 1' 1 2 13 15 11665} 11666# Create a (secure) tmp directory for tmp files. 11667 11668{ 11669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11670 test -d "$tmp" 11671} || 11672{ 11673 tmp=./conf$$-$RANDOM 11674 (umask 077 && mkdir "$tmp") 11675} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11676ac_tmp=$tmp 11677 11678# Set up the scripts for CONFIG_FILES section. 11679# No need to generate them if there are no CONFIG_FILES. 11680# This happens for instance with `./config.status config.h'. 11681if test -n "$CONFIG_FILES"; then 11682 11683 11684ac_cr=`echo X | tr X '\015'` 11685# On cygwin, bash can eat \r inside `` if the user requested igncr. 11686# But we know of no other shell where ac_cr would be empty at this 11687# point, so we can use a bashism as a fallback. 11688if test "x$ac_cr" = x; then 11689 eval ac_cr=\$\'\\r\' 11690fi 11691ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11692if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11693 ac_cs_awk_cr='\\r' 11694else 11695 ac_cs_awk_cr=$ac_cr 11696fi 11697 11698echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11699_ACEOF 11700 11701 11702{ 11703 echo "cat >conf$$subs.awk <<_ACEOF" && 11704 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11705 echo "_ACEOF" 11706} >conf$$subs.sh || 11707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11708ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11709ac_delim='%!_!# ' 11710for ac_last_try in false false false false false :; do 11711 . ./conf$$subs.sh || 11712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11713 11714 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11715 if test $ac_delim_n = $ac_delim_num; then 11716 break 11717 elif $ac_last_try; then 11718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11719 else 11720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11721 fi 11722done 11723rm -f conf$$subs.sh 11724 11725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11726cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11727_ACEOF 11728sed -n ' 11729h 11730s/^/S["/; s/!.*/"]=/ 11731p 11732g 11733s/^[^!]*!// 11734:repl 11735t repl 11736s/'"$ac_delim"'$// 11737t delim 11738:nl 11739h 11740s/\(.\{148\}\)..*/\1/ 11741t more1 11742s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11743p 11744n 11745b repl 11746:more1 11747s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11748p 11749g 11750s/.\{148\}// 11751t nl 11752:delim 11753h 11754s/\(.\{148\}\)..*/\1/ 11755t more2 11756s/["\\]/\\&/g; s/^/"/; s/$/"/ 11757p 11758b 11759:more2 11760s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11761p 11762g 11763s/.\{148\}// 11764t delim 11765' <conf$$subs.awk | sed ' 11766/^[^""]/{ 11767 N 11768 s/\n// 11769} 11770' >>$CONFIG_STATUS || ac_write_fail=1 11771rm -f conf$$subs.awk 11772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11773_ACAWK 11774cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11775 for (key in S) S_is_set[key] = 1 11776 FS = "" 11777 11778} 11779{ 11780 line = $ 0 11781 nfields = split(line, field, "@") 11782 substed = 0 11783 len = length(field[1]) 11784 for (i = 2; i < nfields; i++) { 11785 key = field[i] 11786 keylen = length(key) 11787 if (S_is_set[key]) { 11788 value = S[key] 11789 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11790 len += length(value) + length(field[++i]) 11791 substed = 1 11792 } else 11793 len += 1 + keylen 11794 } 11795 11796 print line 11797} 11798 11799_ACAWK 11800_ACEOF 11801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11802if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11803 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11804else 11805 cat 11806fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11807 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11808_ACEOF 11809 11810# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11811# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11812# trailing colons and then remove the whole line if VPATH becomes empty 11813# (actually we leave an empty line to preserve line numbers). 11814if test "x$srcdir" = x.; then 11815 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11816h 11817s/// 11818s/^/:/ 11819s/[ ]*$/:/ 11820s/:\$(srcdir):/:/g 11821s/:\${srcdir}:/:/g 11822s/:@srcdir@:/:/g 11823s/^:*// 11824s/:*$// 11825x 11826s/\(=[ ]*\).*/\1/ 11827G 11828s/\n// 11829s/^[^=]*=[ ]*$// 11830}' 11831fi 11832 11833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11834fi # test -n "$CONFIG_FILES" 11835 11836# Set up the scripts for CONFIG_HEADERS section. 11837# No need to generate them if there are no CONFIG_HEADERS. 11838# This happens for instance with `./config.status Makefile'. 11839if test -n "$CONFIG_HEADERS"; then 11840cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11841BEGIN { 11842_ACEOF 11843 11844# Transform confdefs.h into an awk script `defines.awk', embedded as 11845# here-document in config.status, that substitutes the proper values into 11846# config.h.in to produce config.h. 11847 11848# Create a delimiter string that does not exist in confdefs.h, to ease 11849# handling of long lines. 11850ac_delim='%!_!# ' 11851for ac_last_try in false false :; do 11852 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11853 if test -z "$ac_tt"; then 11854 break 11855 elif $ac_last_try; then 11856 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11857 else 11858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11859 fi 11860done 11861 11862# For the awk script, D is an array of macro values keyed by name, 11863# likewise P contains macro parameters if any. Preserve backslash 11864# newline sequences. 11865 11866ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11867sed -n ' 11868s/.\{148\}/&'"$ac_delim"'/g 11869t rset 11870:rset 11871s/^[ ]*#[ ]*define[ ][ ]*/ / 11872t def 11873d 11874:def 11875s/\\$// 11876t bsnl 11877s/["\\]/\\&/g 11878s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11879D["\1"]=" \3"/p 11880s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11881d 11882:bsnl 11883s/["\\]/\\&/g 11884s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11885D["\1"]=" \3\\\\\\n"\\/p 11886t cont 11887s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11888t cont 11889d 11890:cont 11891n 11892s/.\{148\}/&'"$ac_delim"'/g 11893t clear 11894:clear 11895s/\\$// 11896t bsnlc 11897s/["\\]/\\&/g; s/^/"/; s/$/"/p 11898d 11899:bsnlc 11900s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11901b cont 11902' <confdefs.h | sed ' 11903s/'"$ac_delim"'/"\\\ 11904"/g' >>$CONFIG_STATUS || ac_write_fail=1 11905 11906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11907 for (key in D) D_is_set[key] = 1 11908 FS = "" 11909} 11910/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11911 line = \$ 0 11912 split(line, arg, " ") 11913 if (arg[1] == "#") { 11914 defundef = arg[2] 11915 mac1 = arg[3] 11916 } else { 11917 defundef = substr(arg[1], 2) 11918 mac1 = arg[2] 11919 } 11920 split(mac1, mac2, "(") #) 11921 macro = mac2[1] 11922 prefix = substr(line, 1, index(line, defundef) - 1) 11923 if (D_is_set[macro]) { 11924 # Preserve the white space surrounding the "#". 11925 print prefix "define", macro P[macro] D[macro] 11926 next 11927 } else { 11928 # Replace #undef with comments. This is necessary, for example, 11929 # in the case of _POSIX_SOURCE, which is predefined and required 11930 # on some systems where configure will not decide to define it. 11931 if (defundef == "undef") { 11932 print "/*", prefix defundef, macro, "*/" 11933 next 11934 } 11935 } 11936} 11937{ print } 11938_ACAWK 11939_ACEOF 11940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11941 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11942fi # test -n "$CONFIG_HEADERS" 11943 11944 11945eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11946shift 11947for ac_tag 11948do 11949 case $ac_tag in 11950 :[FHLC]) ac_mode=$ac_tag; continue;; 11951 esac 11952 case $ac_mode$ac_tag in 11953 :[FHL]*:*);; 11954 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11955 :[FH]-) ac_tag=-:-;; 11956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11957 esac 11958 ac_save_IFS=$IFS 11959 IFS=: 11960 set x $ac_tag 11961 IFS=$ac_save_IFS 11962 shift 11963 ac_file=$1 11964 shift 11965 11966 case $ac_mode in 11967 :L) ac_source=$1;; 11968 :[FH]) 11969 ac_file_inputs= 11970 for ac_f 11971 do 11972 case $ac_f in 11973 -) ac_f="$ac_tmp/stdin";; 11974 *) # Look for the file first in the build tree, then in the source tree 11975 # (if the path is not absolute). The absolute path cannot be DOS-style, 11976 # because $ac_f cannot contain `:'. 11977 test -f "$ac_f" || 11978 case $ac_f in 11979 [\\/$]*) false;; 11980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11981 esac || 11982 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11983 esac 11984 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11985 as_fn_append ac_file_inputs " '$ac_f'" 11986 done 11987 11988 # Let's still pretend it is `configure' which instantiates (i.e., don't 11989 # use $as_me), people would be surprised to read: 11990 # /* config.h. Generated by config.status. */ 11991 configure_input='Generated from '` 11992 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11993 `' by configure.' 11994 if test x"$ac_file" != x-; then 11995 configure_input="$ac_file. $configure_input" 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11997$as_echo "$as_me: creating $ac_file" >&6;} 11998 fi 11999 # Neutralize special characters interpreted by sed in replacement strings. 12000 case $configure_input in #( 12001 *\&* | *\|* | *\\* ) 12002 ac_sed_conf_input=`$as_echo "$configure_input" | 12003 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12004 *) ac_sed_conf_input=$configure_input;; 12005 esac 12006 12007 case $ac_tag in 12008 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12010 esac 12011 ;; 12012 esac 12013 12014 ac_dir=`$as_dirname -- "$ac_file" || 12015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12016 X"$ac_file" : 'X\(//\)[^/]' \| \ 12017 X"$ac_file" : 'X\(//\)$' \| \ 12018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12019$as_echo X"$ac_file" | 12020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12021 s//\1/ 12022 q 12023 } 12024 /^X\(\/\/\)[^/].*/{ 12025 s//\1/ 12026 q 12027 } 12028 /^X\(\/\/\)$/{ 12029 s//\1/ 12030 q 12031 } 12032 /^X\(\/\).*/{ 12033 s//\1/ 12034 q 12035 } 12036 s/.*/./; q'` 12037 as_dir="$ac_dir"; as_fn_mkdir_p 12038 ac_builddir=. 12039 12040case "$ac_dir" in 12041.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12042*) 12043 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12044 # A ".." for each directory in $ac_dir_suffix. 12045 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12046 case $ac_top_builddir_sub in 12047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12049 esac ;; 12050esac 12051ac_abs_top_builddir=$ac_pwd 12052ac_abs_builddir=$ac_pwd$ac_dir_suffix 12053# for backward compatibility: 12054ac_top_builddir=$ac_top_build_prefix 12055 12056case $srcdir in 12057 .) # We are building in place. 12058 ac_srcdir=. 12059 ac_top_srcdir=$ac_top_builddir_sub 12060 ac_abs_top_srcdir=$ac_pwd ;; 12061 [\\/]* | ?:[\\/]* ) # Absolute name. 12062 ac_srcdir=$srcdir$ac_dir_suffix; 12063 ac_top_srcdir=$srcdir 12064 ac_abs_top_srcdir=$srcdir ;; 12065 *) # Relative name. 12066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12067 ac_top_srcdir=$ac_top_build_prefix$srcdir 12068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12069esac 12070ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12071 12072 12073 case $ac_mode in 12074 :F) 12075 # 12076 # CONFIG_FILE 12077 # 12078 12079 case $INSTALL in 12080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12081 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12082 esac 12083 ac_MKDIR_P=$MKDIR_P 12084 case $MKDIR_P in 12085 [\\/$]* | ?:[\\/]* ) ;; 12086 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12087 esac 12088_ACEOF 12089 12090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12091# If the template does not know about datarootdir, expand it. 12092# FIXME: This hack should be removed a few years after 2.60. 12093ac_datarootdir_hack=; ac_datarootdir_seen= 12094ac_sed_dataroot=' 12095/datarootdir/ { 12096 p 12097 q 12098} 12099/@datadir@/p 12100/@docdir@/p 12101/@infodir@/p 12102/@localedir@/p 12103/@mandir@/p' 12104case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12105*datarootdir*) ac_datarootdir_seen=yes;; 12106*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12108$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12109_ACEOF 12110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12111 ac_datarootdir_hack=' 12112 s&@datadir@&$datadir&g 12113 s&@docdir@&$docdir&g 12114 s&@infodir@&$infodir&g 12115 s&@localedir@&$localedir&g 12116 s&@mandir@&$mandir&g 12117 s&\\\${datarootdir}&$datarootdir&g' ;; 12118esac 12119_ACEOF 12120 12121# Neutralize VPATH when `$srcdir' = `.'. 12122# Shell code in configure.ac might set extrasub. 12123# FIXME: do we really want to maintain this feature? 12124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12125ac_sed_extra="$ac_vpsub 12126$extrasub 12127_ACEOF 12128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12129:t 12130/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12131s|@configure_input@|$ac_sed_conf_input|;t t 12132s&@top_builddir@&$ac_top_builddir_sub&;t t 12133s&@top_build_prefix@&$ac_top_build_prefix&;t t 12134s&@srcdir@&$ac_srcdir&;t t 12135s&@abs_srcdir@&$ac_abs_srcdir&;t t 12136s&@top_srcdir@&$ac_top_srcdir&;t t 12137s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12138s&@builddir@&$ac_builddir&;t t 12139s&@abs_builddir@&$ac_abs_builddir&;t t 12140s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12141s&@INSTALL@&$ac_INSTALL&;t t 12142s&@MKDIR_P@&$ac_MKDIR_P&;t t 12143$ac_datarootdir_hack 12144" 12145eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12146 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12147 12148test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12149 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12151 "$ac_tmp/out"`; test -z "$ac_out"; } && 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12153which seems to be undefined. Please make sure it is defined" >&5 12154$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12155which seems to be undefined. Please make sure it is defined" >&2;} 12156 12157 rm -f "$ac_tmp/stdin" 12158 case $ac_file in 12159 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12160 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12161 esac \ 12162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12163 ;; 12164 :H) 12165 # 12166 # CONFIG_HEADER 12167 # 12168 if test x"$ac_file" != x-; then 12169 { 12170 $as_echo "/* $configure_input */" \ 12171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12172 } >"$ac_tmp/config.h" \ 12173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12174 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12176$as_echo "$as_me: $ac_file is unchanged" >&6;} 12177 else 12178 rm -f "$ac_file" 12179 mv "$ac_tmp/config.h" "$ac_file" \ 12180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12181 fi 12182 else 12183 $as_echo "/* $configure_input */" \ 12184 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12185 || as_fn_error $? "could not create -" "$LINENO" 5 12186 fi 12187# Compute "$ac_file"'s index in $config_headers. 12188_am_arg="$ac_file" 12189_am_stamp_count=1 12190for _am_header in $config_headers :; do 12191 case $_am_header in 12192 $_am_arg | $_am_arg:* ) 12193 break ;; 12194 * ) 12195 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12196 esac 12197done 12198echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12199$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12200 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12201 X"$_am_arg" : 'X\(//\)$' \| \ 12202 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12203$as_echo X"$_am_arg" | 12204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12205 s//\1/ 12206 q 12207 } 12208 /^X\(\/\/\)[^/].*/{ 12209 s//\1/ 12210 q 12211 } 12212 /^X\(\/\/\)$/{ 12213 s//\1/ 12214 q 12215 } 12216 /^X\(\/\).*/{ 12217 s//\1/ 12218 q 12219 } 12220 s/.*/./; q'`/stamp-h$_am_stamp_count 12221 ;; 12222 12223 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12224$as_echo "$as_me: executing $ac_file commands" >&6;} 12225 ;; 12226 esac 12227 12228 12229 case $ac_file$ac_mode in 12230 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12231 # Older Autoconf quotes --file arguments for eval, but not when files 12232 # are listed without --file. Let's play safe and only enable the eval 12233 # if we detect the quoting. 12234 case $CONFIG_FILES in 12235 *\'*) eval set x "$CONFIG_FILES" ;; 12236 *) set x $CONFIG_FILES ;; 12237 esac 12238 shift 12239 for mf 12240 do 12241 # Strip MF so we end up with the name of the file. 12242 mf=`echo "$mf" | sed -e 's/:.*$//'` 12243 # Check whether this is an Automake generated Makefile or not. 12244 # We used to match only the files named 'Makefile.in', but 12245 # some people rename them; so instead we look at the file content. 12246 # Grep'ing the first line is not enough: some people post-process 12247 # each Makefile.in and add a new line on top of each file to say so. 12248 # Grep'ing the whole file is not good either: AIX grep has a line 12249 # limit of 2048, but all sed's we know have understand at least 4000. 12250 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12251 dirpart=`$as_dirname -- "$mf" || 12252$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12253 X"$mf" : 'X\(//\)[^/]' \| \ 12254 X"$mf" : 'X\(//\)$' \| \ 12255 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12256$as_echo X"$mf" | 12257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12258 s//\1/ 12259 q 12260 } 12261 /^X\(\/\/\)[^/].*/{ 12262 s//\1/ 12263 q 12264 } 12265 /^X\(\/\/\)$/{ 12266 s//\1/ 12267 q 12268 } 12269 /^X\(\/\).*/{ 12270 s//\1/ 12271 q 12272 } 12273 s/.*/./; q'` 12274 else 12275 continue 12276 fi 12277 # Extract the definition of DEPDIR, am__include, and am__quote 12278 # from the Makefile without running 'make'. 12279 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12280 test -z "$DEPDIR" && continue 12281 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12282 test -z "$am__include" && continue 12283 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12284 # Find all dependency output files, they are included files with 12285 # $(DEPDIR) in their names. We invoke sed twice because it is the 12286 # simplest approach to changing $(DEPDIR) to its actual value in the 12287 # expansion. 12288 for file in `sed -n " 12289 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12290 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12291 # Make sure the directory exists. 12292 test -f "$dirpart/$file" && continue 12293 fdir=`$as_dirname -- "$file" || 12294$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12295 X"$file" : 'X\(//\)[^/]' \| \ 12296 X"$file" : 'X\(//\)$' \| \ 12297 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12298$as_echo X"$file" | 12299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12300 s//\1/ 12301 q 12302 } 12303 /^X\(\/\/\)[^/].*/{ 12304 s//\1/ 12305 q 12306 } 12307 /^X\(\/\/\)$/{ 12308 s//\1/ 12309 q 12310 } 12311 /^X\(\/\).*/{ 12312 s//\1/ 12313 q 12314 } 12315 s/.*/./; q'` 12316 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12317 # echo "creating $dirpart/$file" 12318 echo '# dummy' > "$dirpart/$file" 12319 done 12320 done 12321} 12322 ;; 12323 12324 esac 12325done # for ac_tag 12326 12327 12328as_fn_exit 0 12329_ACEOF 12330ac_clean_files=$ac_clean_files_save 12331 12332test $ac_write_fail = 0 || 12333 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12334 12335 12336# configure is writing to config.log, and then calls config.status. 12337# config.status does its own redirection, appending to config.log. 12338# Unfortunately, on DOS this fails, as config.log is still kept open 12339# by configure, so config.status won't be able to write to it; its 12340# output is simply discarded. So we exec the FD to /dev/null, 12341# effectively closing config.log, so it can be properly (re)opened and 12342# appended to by config.status. When coming back to configure, we 12343# need to make the FD available again. 12344if test "$no_create" != yes; then 12345 ac_cs_success=: 12346 ac_config_status_args= 12347 test "$silent" = yes && 12348 ac_config_status_args="$ac_config_status_args --quiet" 12349 exec 5>/dev/null 12350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12351 exec 5>>config.log 12352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12353 # would make configure fail if this is the last instruction. 12354 $ac_cs_success || as_fn_exit 1 12355fi 12356if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12358$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12359fi 12360 12361