configure revision da4a0041
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xman 1.1.4. 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='xman' 583PACKAGE_TARNAME='xman' 584PACKAGE_VERSION='1.1.4' 585PACKAGE_STRING='xman 1.1.4' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630appdefaultdir 631APPDEFS_LIBS 632APPDEFS_CFLAGS 633XMAN_LIBS 634XMAN_CFLAGS 635HELPDIR 636GROFF 637MAN_SUBSTS 638XORG_MAN_PAGE 639ADMIN_MAN_DIR 640DRIVER_MAN_DIR 641MISC_MAN_DIR 642FILE_MAN_DIR 643LIB_MAN_DIR 644APP_MAN_DIR 645ADMIN_MAN_SUFFIX 646DRIVER_MAN_SUFFIX 647MISC_MAN_SUFFIX 648FILE_MAN_SUFFIX 649LIB_MAN_SUFFIX 650APP_MAN_SUFFIX 651SED 652host_os 653host_vendor 654host_cpu 655host 656build_os 657build_vendor 658build_cpu 659build 660INSTALL_CMD 661PKG_CONFIG 662CHANGELOG_CMD 663STRICT_CFLAGS 664CWARNFLAGS 665BASE_CFLAGS 666EGREP 667GREP 668CPP 669am__fastdepCC_FALSE 670am__fastdepCC_TRUE 671CCDEPMODE 672am__nodep 673AMDEPBACKSLASH 674AMDEP_FALSE 675AMDEP_TRUE 676am__quote 677am__include 678DEPDIR 679OBJEXT 680EXEEXT 681ac_ct_CC 682CPPFLAGS 683LDFLAGS 684CFLAGS 685CC 686AM_BACKSLASH 687AM_DEFAULT_VERBOSITY 688AM_DEFAULT_V 689AM_V 690am__untar 691am__tar 692AMTAR 693am__leading_dot 694SET_MAKE 695AWK 696mkdir_p 697MKDIR_P 698INSTALL_STRIP_PROGRAM 699STRIP 700install_sh 701MAKEINFO 702AUTOHEADER 703AUTOMAKE 704AUTOCONF 705ACLOCAL 706VERSION 707PACKAGE 708CYGPATH_W 709am__isrc 710INSTALL_DATA 711INSTALL_SCRIPT 712INSTALL_PROGRAM 713target_alias 714host_alias 715build_alias 716LIBS 717ECHO_T 718ECHO_N 719ECHO_C 720DEFS 721mandir 722localedir 723libdir 724psdir 725pdfdir 726dvidir 727htmldir 728infodir 729docdir 730oldincludedir 731includedir 732localstatedir 733sharedstatedir 734sysconfdir 735datadir 736datarootdir 737libexecdir 738sbindir 739bindir 740program_transform_name 741prefix 742exec_prefix 743PACKAGE_URL 744PACKAGE_BUGREPORT 745PACKAGE_STRING 746PACKAGE_VERSION 747PACKAGE_TARNAME 748PACKAGE_NAME 749PATH_SEPARATOR 750SHELL' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754enable_silent_rules 755enable_dependency_tracking 756enable_selective_werror 757enable_strict_compilation 758with_helpdir 759with_sysmanpath 760with_localmanpath 761with_manconfig 762with_appdefaultdir 763' 764 ac_precious_vars='build_alias 765host_alias 766target_alias 767CC 768CFLAGS 769LDFLAGS 770LIBS 771CPPFLAGS 772CPP 773PKG_CONFIG 774XMAN_CFLAGS 775XMAN_LIBS 776APPDEFS_CFLAGS 777APPDEFS_LIBS' 778 779 780# Initialize some variables set by options. 781ac_init_help= 782ac_init_version=false 783ac_unrecognized_opts= 784ac_unrecognized_sep= 785# The variables have the same names as the options, with 786# dashes changed to underlines. 787cache_file=/dev/null 788exec_prefix=NONE 789no_create= 790no_recursion= 791prefix=NONE 792program_prefix=NONE 793program_suffix=NONE 794program_transform_name=s,x,x, 795silent= 796site= 797srcdir= 798verbose= 799x_includes=NONE 800x_libraries=NONE 801 802# Installation directory options. 803# These are left unexpanded so users can "make install exec_prefix=/foo" 804# and all the variables that are supposed to be based on exec_prefix 805# by default will actually change. 806# Use braces instead of parens because sh, perl, etc. also accept them. 807# (The list follows the same order as the GNU Coding Standards.) 808bindir='${exec_prefix}/bin' 809sbindir='${exec_prefix}/sbin' 810libexecdir='${exec_prefix}/libexec' 811datarootdir='${prefix}/share' 812datadir='${datarootdir}' 813sysconfdir='${prefix}/etc' 814sharedstatedir='${prefix}/com' 815localstatedir='${prefix}/var' 816includedir='${prefix}/include' 817oldincludedir='/usr/include' 818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 819infodir='${datarootdir}/info' 820htmldir='${docdir}' 821dvidir='${docdir}' 822pdfdir='${docdir}' 823psdir='${docdir}' 824libdir='${exec_prefix}/lib' 825localedir='${datarootdir}/locale' 826mandir='${datarootdir}/man' 827 828ac_prev= 829ac_dashdash= 830for ac_option 831do 832 # If the previous option needs an argument, assign it. 833 if test -n "$ac_prev"; then 834 eval $ac_prev=\$ac_option 835 ac_prev= 836 continue 837 fi 838 839 case $ac_option in 840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 841 *=) ac_optarg= ;; 842 *) ac_optarg=yes ;; 843 esac 844 845 # Accept the important Cygnus configure options, so we can diagnose typos. 846 847 case $ac_dashdash$ac_option in 848 --) 849 ac_dashdash=yes ;; 850 851 -bindir | --bindir | --bindi | --bind | --bin | --bi) 852 ac_prev=bindir ;; 853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 854 bindir=$ac_optarg ;; 855 856 -build | --build | --buil | --bui | --bu) 857 ac_prev=build_alias ;; 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 859 build_alias=$ac_optarg ;; 860 861 -cache-file | --cache-file | --cache-fil | --cache-fi \ 862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 863 ac_prev=cache_file ;; 864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 866 cache_file=$ac_optarg ;; 867 868 --config-cache | -C) 869 cache_file=config.cache ;; 870 871 -datadir | --datadir | --datadi | --datad) 872 ac_prev=datadir ;; 873 -datadir=* | --datadir=* | --datadi=* | --datad=*) 874 datadir=$ac_optarg ;; 875 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 877 | --dataroo | --dataro | --datar) 878 ac_prev=datarootdir ;; 879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 881 datarootdir=$ac_optarg ;; 882 883 -disable-* | --disable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error $? "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892"enable_$ac_useropt" 893"*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=no ;; 898 899 -docdir | --docdir | --docdi | --doc | --do) 900 ac_prev=docdir ;; 901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 902 docdir=$ac_optarg ;; 903 904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 905 ac_prev=dvidir ;; 906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 907 dvidir=$ac_optarg ;; 908 909 -enable-* | --enable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=\$ac_optarg ;; 924 925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 927 | --exec | --exe | --ex) 928 ac_prev=exec_prefix ;; 929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 931 | --exec=* | --exe=* | --ex=*) 932 exec_prefix=$ac_optarg ;; 933 934 -gas | --gas | --ga | --g) 935 # Obsolete; use --with-gas. 936 with_gas=yes ;; 937 938 -help | --help | --hel | --he | -h) 939 ac_init_help=long ;; 940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 941 ac_init_help=recursive ;; 942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 943 ac_init_help=short ;; 944 945 -host | --host | --hos | --ho) 946 ac_prev=host_alias ;; 947 -host=* | --host=* | --hos=* | --ho=*) 948 host_alias=$ac_optarg ;; 949 950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 951 ac_prev=htmldir ;; 952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 953 | --ht=*) 954 htmldir=$ac_optarg ;; 955 956 -includedir | --includedir | --includedi | --included | --include \ 957 | --includ | --inclu | --incl | --inc) 958 ac_prev=includedir ;; 959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 960 | --includ=* | --inclu=* | --incl=* | --inc=*) 961 includedir=$ac_optarg ;; 962 963 -infodir | --infodir | --infodi | --infod | --info | --inf) 964 ac_prev=infodir ;; 965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 966 infodir=$ac_optarg ;; 967 968 -libdir | --libdir | --libdi | --libd) 969 ac_prev=libdir ;; 970 -libdir=* | --libdir=* | --libdi=* | --libd=*) 971 libdir=$ac_optarg ;; 972 973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 974 | --libexe | --libex | --libe) 975 ac_prev=libexecdir ;; 976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 977 | --libexe=* | --libex=* | --libe=*) 978 libexecdir=$ac_optarg ;; 979 980 -localedir | --localedir | --localedi | --localed | --locale) 981 ac_prev=localedir ;; 982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 983 localedir=$ac_optarg ;; 984 985 -localstatedir | --localstatedir | --localstatedi | --localstated \ 986 | --localstate | --localstat | --localsta | --localst | --locals) 987 ac_prev=localstatedir ;; 988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 990 localstatedir=$ac_optarg ;; 991 992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 993 ac_prev=mandir ;; 994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 995 mandir=$ac_optarg ;; 996 997 -nfp | --nfp | --nf) 998 # Obsolete; use --without-fp. 999 with_fp=no ;; 1000 1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1002 | --no-cr | --no-c | -n) 1003 no_create=yes ;; 1004 1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1007 no_recursion=yes ;; 1008 1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1011 | --oldin | --oldi | --old | --ol | --o) 1012 ac_prev=oldincludedir ;; 1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1016 oldincludedir=$ac_optarg ;; 1017 1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1019 ac_prev=prefix ;; 1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1021 prefix=$ac_optarg ;; 1022 1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1024 | --program-pre | --program-pr | --program-p) 1025 ac_prev=program_prefix ;; 1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1028 program_prefix=$ac_optarg ;; 1029 1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1031 | --program-suf | --program-su | --program-s) 1032 ac_prev=program_suffix ;; 1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1035 program_suffix=$ac_optarg ;; 1036 1037 -program-transform-name | --program-transform-name \ 1038 | --program-transform-nam | --program-transform-na \ 1039 | --program-transform-n | --program-transform- \ 1040 | --program-transform | --program-transfor \ 1041 | --program-transfo | --program-transf \ 1042 | --program-trans | --program-tran \ 1043 | --progr-tra | --program-tr | --program-t) 1044 ac_prev=program_transform_name ;; 1045 -program-transform-name=* | --program-transform-name=* \ 1046 | --program-transform-nam=* | --program-transform-na=* \ 1047 | --program-transform-n=* | --program-transform-=* \ 1048 | --program-transform=* | --program-transfor=* \ 1049 | --program-transfo=* | --program-transf=* \ 1050 | --program-trans=* | --program-tran=* \ 1051 | --progr-tra=* | --program-tr=* | --program-t=*) 1052 program_transform_name=$ac_optarg ;; 1053 1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1055 ac_prev=pdfdir ;; 1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1057 pdfdir=$ac_optarg ;; 1058 1059 -psdir | --psdir | --psdi | --psd | --ps) 1060 ac_prev=psdir ;; 1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1062 psdir=$ac_optarg ;; 1063 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 silent=yes ;; 1067 1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1069 ac_prev=sbindir ;; 1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1071 | --sbi=* | --sb=*) 1072 sbindir=$ac_optarg ;; 1073 1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1076 | --sharedst | --shareds | --shared | --share | --shar \ 1077 | --sha | --sh) 1078 ac_prev=sharedstatedir ;; 1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1082 | --sha=* | --sh=*) 1083 sharedstatedir=$ac_optarg ;; 1084 1085 -site | --site | --sit) 1086 ac_prev=site ;; 1087 -site=* | --site=* | --sit=*) 1088 site=$ac_optarg ;; 1089 1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1091 ac_prev=srcdir ;; 1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1093 srcdir=$ac_optarg ;; 1094 1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1096 | --syscon | --sysco | --sysc | --sys | --sy) 1097 ac_prev=sysconfdir ;; 1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1100 sysconfdir=$ac_optarg ;; 1101 1102 -target | --target | --targe | --targ | --tar | --ta | --t) 1103 ac_prev=target_alias ;; 1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1105 target_alias=$ac_optarg ;; 1106 1107 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1108 verbose=yes ;; 1109 1110 -version | --version | --versio | --versi | --vers | -V) 1111 ac_init_version=: ;; 1112 1113 -with-* | --with-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error $? "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=\$ac_optarg ;; 1128 1129 -without-* | --without-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error $? "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138"with_$ac_useropt" 1139"*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=no ;; 1144 1145 --x) 1146 # Obsolete; use --with-x. 1147 with_x=yes ;; 1148 1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1150 | --x-incl | --x-inc | --x-in | --x-i) 1151 ac_prev=x_includes ;; 1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1154 x_includes=$ac_optarg ;; 1155 1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1158 ac_prev=x_libraries ;; 1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1161 x_libraries=$ac_optarg ;; 1162 1163 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1164Try \`$0 --help' for more information" 1165 ;; 1166 1167 *=*) 1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1169 # Reject names that are not valid shell variable names. 1170 case $ac_envvar in #( 1171 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1173 esac 1174 eval $ac_envvar=\$ac_optarg 1175 export $ac_envvar ;; 1176 1177 *) 1178 # FIXME: should be removed in autoconf 3.0. 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1183 ;; 1184 1185 esac 1186done 1187 1188if test -n "$ac_prev"; then 1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1190 as_fn_error $? "missing argument to $ac_option" 1191fi 1192 1193if test -n "$ac_unrecognized_opts"; then 1194 case $enable_option_checking in 1195 no) ;; 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1198 esac 1199fi 1200 1201# Check all directory arguments for consistency. 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206do 1207 eval ac_val=\$$ac_var 1208 # Remove trailing slashes. 1209 case $ac_val in 1210 */ ) 1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1212 eval $ac_var=\$ac_val;; 1213 esac 1214 # Be sure to have absolute directory names. 1215 case $ac_val in 1216 [\\/$]* | ?:[\\/]* ) continue;; 1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1218 esac 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1220done 1221 1222# There might be people who depend on the old broken behavior: `$host' 1223# used to hold the argument of --host etc. 1224# FIXME: To remove some day. 1225build=$build_alias 1226host=$host_alias 1227target=$target_alias 1228 1229# FIXME: To remove some day. 1230if test "x$host_alias" != x; then 1231 if test "x$build_alias" = x; then 1232 cross_compiling=maybe 1233 elif test "x$build_alias" != "x$host_alias"; then 1234 cross_compiling=yes 1235 fi 1236fi 1237 1238ac_tool_prefix= 1239test -n "$host_alias" && ac_tool_prefix=$host_alias- 1240 1241test "$silent" = yes && exec 6>/dev/null 1242 1243 1244ac_pwd=`pwd` && test -n "$ac_pwd" && 1245ac_ls_di=`ls -di .` && 1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1247 as_fn_error $? "working directory cannot be determined" 1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1249 as_fn_error $? "pwd does not report name of working directory" 1250 1251 1252# Find the source files, if location was not specified. 1253if test -z "$srcdir"; then 1254 ac_srcdir_defaulted=yes 1255 # Try the directory containing this script, then the parent directory. 1256 ac_confdir=`$as_dirname -- "$as_myself" || 1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1258 X"$as_myself" : 'X\(//\)[^/]' \| \ 1259 X"$as_myself" : 'X\(//\)$' \| \ 1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1261$as_echo X"$as_myself" | 1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\/\)[^/].*/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)$/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\).*/{ 1275 s//\1/ 1276 q 1277 } 1278 s/.*/./; q'` 1279 srcdir=$ac_confdir 1280 if test ! -r "$srcdir/$ac_unique_file"; then 1281 srcdir=.. 1282 fi 1283else 1284 ac_srcdir_defaulted=no 1285fi 1286if test ! -r "$srcdir/$ac_unique_file"; then 1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1289fi 1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1291ac_abs_confdir=`( 1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1293 pwd)` 1294# When building in place, set srcdir=. 1295if test "$ac_abs_confdir" = "$ac_pwd"; then 1296 srcdir=. 1297fi 1298# Remove unnecessary trailing slashes from srcdir. 1299# Double slashes in file names in object file debugging info 1300# mess up M-x gdb in Emacs. 1301case $srcdir in 1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1303esac 1304for ac_var in $ac_precious_vars; do 1305 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_env_${ac_var}_value=\$${ac_var} 1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1309done 1310 1311# 1312# Report the --help message. 1313# 1314if test "$ac_init_help" = "long"; then 1315 # Omit some internal or obsolete options to make the list less imposing. 1316 # This message is too long to be a string in the A/UX 3.1 sh. 1317 cat <<_ACEOF 1318\`configure' configures xman 1.1.4 to adapt to many kinds of systems. 1319 1320Usage: $0 [OPTION]... [VAR=VALUE]... 1321 1322To assign environment variables (e.g., CC, CFLAGS...), specify them as 1323VAR=VALUE. See below for descriptions of some of the useful variables. 1324 1325Defaults for the options are specified in brackets. 1326 1327Configuration: 1328 -h, --help display this help and exit 1329 --help=short display options specific to this package 1330 --help=recursive display the short help of all the included packages 1331 -V, --version display version information and exit 1332 -q, --quiet, --silent do not print \`checking ...' messages 1333 --cache-file=FILE cache test results in FILE [disabled] 1334 -C, --config-cache alias for \`--cache-file=config.cache' 1335 -n, --no-create do not create output files 1336 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1337 1338Installation directories: 1339 --prefix=PREFIX install architecture-independent files in PREFIX 1340 [$ac_default_prefix] 1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1342 [PREFIX] 1343 1344By default, \`make install' will install all the files in 1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1346an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1347for instance \`--prefix=\$HOME'. 1348 1349For better control, use the options below. 1350 1351Fine tuning of the installation directories: 1352 --bindir=DIR user executables [EPREFIX/bin] 1353 --sbindir=DIR system admin executables [EPREFIX/sbin] 1354 --libexecdir=DIR program executables [EPREFIX/libexec] 1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1358 --libdir=DIR object code libraries [EPREFIX/lib] 1359 --includedir=DIR C header files [PREFIX/include] 1360 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1363 --infodir=DIR info documentation [DATAROOTDIR/info] 1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1365 --mandir=DIR man documentation [DATAROOTDIR/man] 1366 --docdir=DIR documentation root [DATAROOTDIR/doc/xman] 1367 --htmldir=DIR html documentation [DOCDIR] 1368 --dvidir=DIR dvi documentation [DOCDIR] 1369 --pdfdir=DIR pdf documentation [DOCDIR] 1370 --psdir=DIR ps documentation [DOCDIR] 1371_ACEOF 1372 1373 cat <<\_ACEOF 1374 1375Program names: 1376 --program-prefix=PREFIX prepend PREFIX to installed program names 1377 --program-suffix=SUFFIX append SUFFIX to installed program names 1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1379 1380System types: 1381 --build=BUILD configure for building on BUILD [guessed] 1382 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1383_ACEOF 1384fi 1385 1386if test -n "$ac_init_help"; then 1387 case $ac_init_help in 1388 short | recursive ) echo "Configuration of xman 1.1.4:";; 1389 esac 1390 cat <<\_ACEOF 1391 1392Optional Features: 1393 --disable-option-checking ignore unrecognized --enable/--with options 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1396 --enable-silent-rules less verbose build output (undo: "make V=1") 1397 --disable-silent-rules verbose build output (undo: "make V=0") 1398 --enable-dependency-tracking 1399 do not reject slow dependency extractors 1400 --disable-dependency-tracking 1401 speeds up one-time build 1402 --disable-selective-werror 1403 Turn off selective compiler errors. (default: 1404 enabled) 1405 --enable-strict-compilation 1406 Enable all warnings from compiler and make them 1407 errors (default: disabled) 1408 1409Optional Packages: 1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1412 --with-helpdir=<path> Set default directory for xman.help (default: 1413 ${datadir}/X11) 1414 --with-sysmanpath=<path> 1415 Set default system man page search path 1416 --with-localmanpath=<path> 1417 Set default local man page search path 1418 --with-manconfig=<filename> 1419 Set default system man configuration file 1420 --with-appdefaultdir=<pathname> 1421 specify directory for app-defaults files (default is 1422 autodetected) 1423 1424Some influential environment variables: 1425 CC C compiler command 1426 CFLAGS C compiler flags 1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1428 nonstandard directory <lib dir> 1429 LIBS libraries to pass to the linker, e.g. -l<library> 1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1431 you have headers in a nonstandard directory <include dir> 1432 CPP C preprocessor 1433 PKG_CONFIG path to pkg-config utility 1434 XMAN_CFLAGS C compiler flags for XMAN, overriding pkg-config 1435 XMAN_LIBS linker flags for XMAN, overriding pkg-config 1436 APPDEFS_CFLAGS 1437 C compiler flags for APPDEFS, overriding pkg-config 1438 APPDEFS_LIBS 1439 linker flags for APPDEFS, overriding pkg-config 1440 1441Use these variables to override the choices made by `configure' or to help 1442it to find libraries and programs with nonstandard names/locations. 1443 1444Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1445_ACEOF 1446ac_status=$? 1447fi 1448 1449if test "$ac_init_help" = "recursive"; then 1450 # If there are subdirs, report their specific --help. 1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1452 test -d "$ac_dir" || 1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1454 continue 1455 ac_builddir=. 1456 1457case "$ac_dir" in 1458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1459*) 1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1461 # A ".." for each directory in $ac_dir_suffix. 1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1463 case $ac_top_builddir_sub in 1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1466 esac ;; 1467esac 1468ac_abs_top_builddir=$ac_pwd 1469ac_abs_builddir=$ac_pwd$ac_dir_suffix 1470# for backward compatibility: 1471ac_top_builddir=$ac_top_build_prefix 1472 1473case $srcdir in 1474 .) # We are building in place. 1475 ac_srcdir=. 1476 ac_top_srcdir=$ac_top_builddir_sub 1477 ac_abs_top_srcdir=$ac_pwd ;; 1478 [\\/]* | ?:[\\/]* ) # Absolute name. 1479 ac_srcdir=$srcdir$ac_dir_suffix; 1480 ac_top_srcdir=$srcdir 1481 ac_abs_top_srcdir=$srcdir ;; 1482 *) # Relative name. 1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1484 ac_top_srcdir=$ac_top_build_prefix$srcdir 1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1486esac 1487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1488 1489 cd "$ac_dir" || { ac_status=$?; continue; } 1490 # Check for guested configure. 1491 if test -f "$ac_srcdir/configure.gnu"; then 1492 echo && 1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1494 elif test -f "$ac_srcdir/configure"; then 1495 echo && 1496 $SHELL "$ac_srcdir/configure" --help=recursive 1497 else 1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1499 fi || ac_status=$? 1500 cd "$ac_pwd" || { ac_status=$?; break; } 1501 done 1502fi 1503 1504test -n "$ac_init_help" && exit $ac_status 1505if $ac_init_version; then 1506 cat <<\_ACEOF 1507xman configure 1.1.4 1508generated by GNU Autoconf 2.69 1509 1510Copyright (C) 2012 Free Software Foundation, Inc. 1511This configure script is free software; the Free Software Foundation 1512gives unlimited permission to copy, distribute and modify it. 1513_ACEOF 1514 exit 1515fi 1516 1517## ------------------------ ## 1518## Autoconf initialization. ## 1519## ------------------------ ## 1520 1521# ac_fn_c_try_compile LINENO 1522# -------------------------- 1523# Try to compile conftest.$ac_ext, and return whether this succeeded. 1524ac_fn_c_try_compile () 1525{ 1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1527 rm -f conftest.$ac_objext 1528 if { { ac_try="$ac_compile" 1529case "(($ac_try" in 1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1531 *) ac_try_echo=$ac_try;; 1532esac 1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1534$as_echo "$ac_try_echo"; } >&5 1535 (eval "$ac_compile") 2>conftest.err 1536 ac_status=$? 1537 if test -s conftest.err; then 1538 grep -v '^ *+' conftest.err >conftest.er1 1539 cat conftest.er1 >&5 1540 mv -f conftest.er1 conftest.err 1541 fi 1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1543 test $ac_status = 0; } && { 1544 test -z "$ac_c_werror_flag" || 1545 test ! -s conftest.err 1546 } && test -s conftest.$ac_objext; then : 1547 ac_retval=0 1548else 1549 $as_echo "$as_me: failed program was:" >&5 1550sed 's/^/| /' conftest.$ac_ext >&5 1551 1552 ac_retval=1 1553fi 1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1555 as_fn_set_status $ac_retval 1556 1557} # ac_fn_c_try_compile 1558 1559# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1560# --------------------------------------------- 1561# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1562# accordingly. 1563ac_fn_c_check_decl () 1564{ 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 as_decl_name=`echo $2|sed 's/ *(.*//'` 1567 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1569$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1570if eval \${$3+:} false; then : 1571 $as_echo_n "(cached) " >&6 1572else 1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1574/* end confdefs.h. */ 1575$4 1576int 1577main () 1578{ 1579#ifndef $as_decl_name 1580#ifdef __cplusplus 1581 (void) $as_decl_use; 1582#else 1583 (void) $as_decl_name; 1584#endif 1585#endif 1586 1587 ; 1588 return 0; 1589} 1590_ACEOF 1591if ac_fn_c_try_compile "$LINENO"; then : 1592 eval "$3=yes" 1593else 1594 eval "$3=no" 1595fi 1596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1597fi 1598eval ac_res=\$$3 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1600$as_echo "$ac_res" >&6; } 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 1603} # ac_fn_c_check_decl 1604 1605# ac_fn_c_try_cpp LINENO 1606# ---------------------- 1607# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1608ac_fn_c_try_cpp () 1609{ 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 if { { ac_try="$ac_cpp conftest.$ac_ext" 1612case "(($ac_try" in 1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1614 *) ac_try_echo=$ac_try;; 1615esac 1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1617$as_echo "$ac_try_echo"; } >&5 1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1619 ac_status=$? 1620 if test -s conftest.err; then 1621 grep -v '^ *+' conftest.err >conftest.er1 1622 cat conftest.er1 >&5 1623 mv -f conftest.er1 conftest.err 1624 fi 1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1626 test $ac_status = 0; } > conftest.i && { 1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1628 test ! -s conftest.err 1629 }; then : 1630 ac_retval=0 1631else 1632 $as_echo "$as_me: failed program was:" >&5 1633sed 's/^/| /' conftest.$ac_ext >&5 1634 1635 ac_retval=1 1636fi 1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1638 as_fn_set_status $ac_retval 1639 1640} # ac_fn_c_try_cpp 1641 1642# ac_fn_c_try_run LINENO 1643# ---------------------- 1644# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1645# that executables *can* be run. 1646ac_fn_c_try_run () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 if { { ac_try="$ac_link" 1650case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653esac 1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655$as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_link") 2>&5 1657 ac_status=$? 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1660 { { case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_try") 2>&5 1667 ac_status=$? 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; }; }; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: program exited with status $ac_status" >&5 1673 $as_echo "$as_me: failed program was:" >&5 1674sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=$ac_status 1677fi 1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_c_try_run 1683 1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1685# ------------------------------------------------------- 1686# Tests whether HEADER exists and can be compiled using the include files in 1687# INCLUDES, setting the cache variable VAR accordingly. 1688ac_fn_c_check_header_compile () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692$as_echo_n "checking for $2... " >&6; } 1693if eval \${$3+:} false; then : 1694 $as_echo_n "(cached) " >&6 1695else 1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1697/* end confdefs.h. */ 1698$4 1699#include <$2> 1700_ACEOF 1701if ac_fn_c_try_compile "$LINENO"; then : 1702 eval "$3=yes" 1703else 1704 eval "$3=no" 1705fi 1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1707fi 1708eval ac_res=\$$3 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1710$as_echo "$ac_res" >&6; } 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 1713} # ac_fn_c_check_header_compile 1714 1715# ac_fn_c_try_link LINENO 1716# ----------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. 1718ac_fn_c_try_link () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 rm -f conftest.$ac_objext conftest$ac_exeext 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { 1738 test -z "$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 } && test -s conftest$ac_exeext && { 1741 test "$cross_compiling" = yes || 1742 test -x conftest$ac_exeext 1743 }; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1753 # interfere with the next link command; also delete a directory that is 1754 # left behind by Apple's compiler. We do this before executing the actions. 1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1757 as_fn_set_status $ac_retval 1758 1759} # ac_fn_c_try_link 1760 1761# ac_fn_c_check_func LINENO FUNC VAR 1762# ---------------------------------- 1763# Tests whether FUNC exists, setting the cache variable VAR accordingly 1764ac_fn_c_check_func () 1765{ 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1768$as_echo_n "checking for $2... " >&6; } 1769if eval \${$3+:} false; then : 1770 $as_echo_n "(cached) " >&6 1771else 1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1773/* end confdefs.h. */ 1774/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1775 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1776#define $2 innocuous_$2 1777 1778/* System header to define __stub macros and hopefully few prototypes, 1779 which can conflict with char $2 (); below. 1780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1781 <limits.h> exists even on freestanding compilers. */ 1782 1783#ifdef __STDC__ 1784# include <limits.h> 1785#else 1786# include <assert.h> 1787#endif 1788 1789#undef $2 1790 1791/* Override any GCC internal prototype to avoid an error. 1792 Use char because int might match the return type of a GCC 1793 builtin and then its argument prototype would still apply. */ 1794#ifdef __cplusplus 1795extern "C" 1796#endif 1797char $2 (); 1798/* The GNU C library defines this for functions which it implements 1799 to always fail with ENOSYS. Some functions are actually named 1800 something starting with __ and the normal name is an alias. */ 1801#if defined __stub_$2 || defined __stub___$2 1802choke me 1803#endif 1804 1805int 1806main () 1807{ 1808return $2 (); 1809 ; 1810 return 0; 1811} 1812_ACEOF 1813if ac_fn_c_try_link "$LINENO"; then : 1814 eval "$3=yes" 1815else 1816 eval "$3=no" 1817fi 1818rm -f core conftest.err conftest.$ac_objext \ 1819 conftest$ac_exeext conftest.$ac_ext 1820fi 1821eval ac_res=\$$3 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1823$as_echo "$ac_res" >&6; } 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1825 1826} # ac_fn_c_check_func 1827cat >config.log <<_ACEOF 1828This file contains any messages produced by compilers while 1829running configure, to aid debugging if configure makes a mistake. 1830 1831It was created by xman $as_me 1.1.4, which was 1832generated by GNU Autoconf 2.69. Invocation command line was 1833 1834 $ $0 $@ 1835 1836_ACEOF 1837exec 5>>config.log 1838{ 1839cat <<_ASUNAME 1840## --------- ## 1841## Platform. ## 1842## --------- ## 1843 1844hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1845uname -m = `(uname -m) 2>/dev/null || echo unknown` 1846uname -r = `(uname -r) 2>/dev/null || echo unknown` 1847uname -s = `(uname -s) 2>/dev/null || echo unknown` 1848uname -v = `(uname -v) 2>/dev/null || echo unknown` 1849 1850/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1851/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1852 1853/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1854/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1855/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1856/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1857/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1858/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1859/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1860 1861_ASUNAME 1862 1863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1864for as_dir in $PATH 1865do 1866 IFS=$as_save_IFS 1867 test -z "$as_dir" && as_dir=. 1868 $as_echo "PATH: $as_dir" 1869 done 1870IFS=$as_save_IFS 1871 1872} >&5 1873 1874cat >&5 <<_ACEOF 1875 1876 1877## ----------- ## 1878## Core tests. ## 1879## ----------- ## 1880 1881_ACEOF 1882 1883 1884# Keep a trace of the command line. 1885# Strip out --no-create and --no-recursion so they do not pile up. 1886# Strip out --silent because we don't want to record it for future runs. 1887# Also quote any args containing shell meta-characters. 1888# Make two passes to allow for proper duplicate-argument suppression. 1889ac_configure_args= 1890ac_configure_args0= 1891ac_configure_args1= 1892ac_must_keep_next=false 1893for ac_pass in 1 2 1894do 1895 for ac_arg 1896 do 1897 case $ac_arg in 1898 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1900 | -silent | --silent | --silen | --sile | --sil) 1901 continue ;; 1902 *\'*) 1903 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1904 esac 1905 case $ac_pass in 1906 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1907 2) 1908 as_fn_append ac_configure_args1 " '$ac_arg'" 1909 if test $ac_must_keep_next = true; then 1910 ac_must_keep_next=false # Got value, back to normal. 1911 else 1912 case $ac_arg in 1913 *=* | --config-cache | -C | -disable-* | --disable-* \ 1914 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1915 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1916 | -with-* | --with-* | -without-* | --without-* | --x) 1917 case "$ac_configure_args0 " in 1918 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1919 esac 1920 ;; 1921 -* ) ac_must_keep_next=true ;; 1922 esac 1923 fi 1924 as_fn_append ac_configure_args " '$ac_arg'" 1925 ;; 1926 esac 1927 done 1928done 1929{ ac_configure_args0=; unset ac_configure_args0;} 1930{ ac_configure_args1=; unset ac_configure_args1;} 1931 1932# When interrupted or exit'd, cleanup temporary files, and complete 1933# config.log. We remove comments because anyway the quotes in there 1934# would cause problems or look ugly. 1935# WARNING: Use '\'' to represent an apostrophe within the trap. 1936# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1937trap 'exit_status=$? 1938 # Save into config.log some information that might help in debugging. 1939 { 1940 echo 1941 1942 $as_echo "## ---------------- ## 1943## Cache variables. ## 1944## ---------------- ##" 1945 echo 1946 # The following way of writing the cache mishandles newlines in values, 1947( 1948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1949 eval ac_val=\$$ac_var 1950 case $ac_val in #( 1951 *${as_nl}*) 1952 case $ac_var in #( 1953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1954$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1955 esac 1956 case $ac_var in #( 1957 _ | IFS | as_nl) ;; #( 1958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1959 *) { eval $ac_var=; unset $ac_var;} ;; 1960 esac ;; 1961 esac 1962 done 1963 (set) 2>&1 | 1964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1965 *${as_nl}ac_space=\ *) 1966 sed -n \ 1967 "s/'\''/'\''\\\\'\'''\''/g; 1968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1969 ;; #( 1970 *) 1971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1972 ;; 1973 esac | 1974 sort 1975) 1976 echo 1977 1978 $as_echo "## ----------------- ## 1979## Output variables. ## 1980## ----------------- ##" 1981 echo 1982 for ac_var in $ac_subst_vars 1983 do 1984 eval ac_val=\$$ac_var 1985 case $ac_val in 1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1987 esac 1988 $as_echo "$ac_var='\''$ac_val'\''" 1989 done | sort 1990 echo 1991 1992 if test -n "$ac_subst_files"; then 1993 $as_echo "## ------------------- ## 1994## File substitutions. ## 1995## ------------------- ##" 1996 echo 1997 for ac_var in $ac_subst_files 1998 do 1999 eval ac_val=\$$ac_var 2000 case $ac_val in 2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2002 esac 2003 $as_echo "$ac_var='\''$ac_val'\''" 2004 done | sort 2005 echo 2006 fi 2007 2008 if test -s confdefs.h; then 2009 $as_echo "## ----------- ## 2010## confdefs.h. ## 2011## ----------- ##" 2012 echo 2013 cat confdefs.h 2014 echo 2015 fi 2016 test "$ac_signal" != 0 && 2017 $as_echo "$as_me: caught signal $ac_signal" 2018 $as_echo "$as_me: exit $exit_status" 2019 } >&5 2020 rm -f core *.core core.conftest.* && 2021 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2022 exit $exit_status 2023' 0 2024for ac_signal in 1 2 13 15; do 2025 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2026done 2027ac_signal=0 2028 2029# confdefs.h avoids OS command line length limits that DEFS can exceed. 2030rm -f -r conftest* confdefs.h 2031 2032$as_echo "/* confdefs.h */" > confdefs.h 2033 2034# Predefined preprocessor variables. 2035 2036cat >>confdefs.h <<_ACEOF 2037#define PACKAGE_NAME "$PACKAGE_NAME" 2038_ACEOF 2039 2040cat >>confdefs.h <<_ACEOF 2041#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2042_ACEOF 2043 2044cat >>confdefs.h <<_ACEOF 2045#define PACKAGE_VERSION "$PACKAGE_VERSION" 2046_ACEOF 2047 2048cat >>confdefs.h <<_ACEOF 2049#define PACKAGE_STRING "$PACKAGE_STRING" 2050_ACEOF 2051 2052cat >>confdefs.h <<_ACEOF 2053#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2054_ACEOF 2055 2056cat >>confdefs.h <<_ACEOF 2057#define PACKAGE_URL "$PACKAGE_URL" 2058_ACEOF 2059 2060 2061# Let the site file select an alternate cache file if it wants to. 2062# Prefer an explicitly selected file to automatically selected ones. 2063ac_site_file1=NONE 2064ac_site_file2=NONE 2065if test -n "$CONFIG_SITE"; then 2066 # We do not want a PATH search for config.site. 2067 case $CONFIG_SITE in #(( 2068 -*) ac_site_file1=./$CONFIG_SITE;; 2069 */*) ac_site_file1=$CONFIG_SITE;; 2070 *) ac_site_file1=./$CONFIG_SITE;; 2071 esac 2072elif test "x$prefix" != xNONE; then 2073 ac_site_file1=$prefix/share/config.site 2074 ac_site_file2=$prefix/etc/config.site 2075else 2076 ac_site_file1=$ac_default_prefix/share/config.site 2077 ac_site_file2=$ac_default_prefix/etc/config.site 2078fi 2079for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2080do 2081 test "x$ac_site_file" = xNONE && continue 2082 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2084$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2085 sed 's/^/| /' "$ac_site_file" >&5 2086 . "$ac_site_file" \ 2087 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2089as_fn_error $? "failed to load site script $ac_site_file 2090See \`config.log' for more details" "$LINENO" 5; } 2091 fi 2092done 2093 2094if test -r "$cache_file"; then 2095 # Some versions of bash will fail to source /dev/null (special files 2096 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2097 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2099$as_echo "$as_me: loading cache $cache_file" >&6;} 2100 case $cache_file in 2101 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2102 *) . "./$cache_file";; 2103 esac 2104 fi 2105else 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2107$as_echo "$as_me: creating cache $cache_file" >&6;} 2108 >$cache_file 2109fi 2110 2111# Check that the precious variables saved in the cache have kept the same 2112# value. 2113ac_cache_corrupted=false 2114for ac_var in $ac_precious_vars; do 2115 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2116 eval ac_new_set=\$ac_env_${ac_var}_set 2117 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2118 eval ac_new_val=\$ac_env_${ac_var}_value 2119 case $ac_old_set,$ac_new_set in 2120 set,) 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2122$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2123 ac_cache_corrupted=: ;; 2124 ,set) 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2126$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2127 ac_cache_corrupted=: ;; 2128 ,);; 2129 *) 2130 if test "x$ac_old_val" != "x$ac_new_val"; then 2131 # differences in whitespace do not lead to failure. 2132 ac_old_val_w=`echo x $ac_old_val` 2133 ac_new_val_w=`echo x $ac_new_val` 2134 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2136$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2137 ac_cache_corrupted=: 2138 else 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2140$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2141 eval $ac_var=\$ac_old_val 2142 fi 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2144$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2146$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2147 fi;; 2148 esac 2149 # Pass precious variables to config.status. 2150 if test "$ac_new_set" = set; then 2151 case $ac_new_val in 2152 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2153 *) ac_arg=$ac_var=$ac_new_val ;; 2154 esac 2155 case " $ac_configure_args " in 2156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2157 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2158 esac 2159 fi 2160done 2161if $ac_cache_corrupted; then 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2165$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2166 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2167fi 2168## -------------------- ## 2169## Main body of script. ## 2170## -------------------- ## 2171 2172ac_ext=c 2173ac_cpp='$CPP $CPPFLAGS' 2174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2176ac_compiler_gnu=$ac_cv_c_compiler_gnu 2177 2178 2179 2180ac_config_headers="$ac_config_headers config.h" 2181 2182 2183# Initialize Automake 2184am__api_version='1.15' 2185 2186ac_aux_dir= 2187for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2188 if test -f "$ac_dir/install-sh"; then 2189 ac_aux_dir=$ac_dir 2190 ac_install_sh="$ac_aux_dir/install-sh -c" 2191 break 2192 elif test -f "$ac_dir/install.sh"; then 2193 ac_aux_dir=$ac_dir 2194 ac_install_sh="$ac_aux_dir/install.sh -c" 2195 break 2196 elif test -f "$ac_dir/shtool"; then 2197 ac_aux_dir=$ac_dir 2198 ac_install_sh="$ac_aux_dir/shtool install -c" 2199 break 2200 fi 2201done 2202if test -z "$ac_aux_dir"; then 2203 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2204fi 2205 2206# These three variables are undocumented and unsupported, 2207# and are intended to be withdrawn in a future Autoconf release. 2208# They can cause serious problems if a builder's source tree is in a directory 2209# whose full name contains unusual characters. 2210ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2211ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2212ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2213 2214 2215# Find a good install program. We prefer a C program (faster), 2216# so one script is as good as another. But avoid the broken or 2217# incompatible versions: 2218# SysV /etc/install, /usr/sbin/install 2219# SunOS /usr/etc/install 2220# IRIX /sbin/install 2221# AIX /bin/install 2222# AmigaOS /C/install, which installs bootblocks on floppy discs 2223# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2224# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2225# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2226# OS/2's system install, which has a completely different semantic 2227# ./install, which can be erroneously created by make from ./install.sh. 2228# Reject install programs that cannot install multiple files. 2229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2230$as_echo_n "checking for a BSD-compatible install... " >&6; } 2231if test -z "$INSTALL"; then 2232if ${ac_cv_path_install+:} false; then : 2233 $as_echo_n "(cached) " >&6 2234else 2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2236for as_dir in $PATH 2237do 2238 IFS=$as_save_IFS 2239 test -z "$as_dir" && as_dir=. 2240 # Account for people who put trailing slashes in PATH elements. 2241case $as_dir/ in #(( 2242 ./ | .// | /[cC]/* | \ 2243 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2244 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2245 /usr/ucb/* ) ;; 2246 *) 2247 # OSF1 and SCO ODT 3.0 have their own names for install. 2248 # Don't use installbsd from OSF since it installs stuff as root 2249 # by default. 2250 for ac_prog in ginstall scoinst install; do 2251 for ac_exec_ext in '' $ac_executable_extensions; do 2252 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2253 if test $ac_prog = install && 2254 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2255 # AIX install. It has an incompatible calling convention. 2256 : 2257 elif test $ac_prog = install && 2258 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2259 # program-specific install script used by HP pwplus--don't use. 2260 : 2261 else 2262 rm -rf conftest.one conftest.two conftest.dir 2263 echo one > conftest.one 2264 echo two > conftest.two 2265 mkdir conftest.dir 2266 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2267 test -s conftest.one && test -s conftest.two && 2268 test -s conftest.dir/conftest.one && 2269 test -s conftest.dir/conftest.two 2270 then 2271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2272 break 3 2273 fi 2274 fi 2275 fi 2276 done 2277 done 2278 ;; 2279esac 2280 2281 done 2282IFS=$as_save_IFS 2283 2284rm -rf conftest.one conftest.two conftest.dir 2285 2286fi 2287 if test "${ac_cv_path_install+set}" = set; then 2288 INSTALL=$ac_cv_path_install 2289 else 2290 # As a last resort, use the slow shell script. Don't cache a 2291 # value for INSTALL within a source directory, because that will 2292 # break other packages using the cache if that directory is 2293 # removed, or if the value is a relative name. 2294 INSTALL=$ac_install_sh 2295 fi 2296fi 2297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2298$as_echo "$INSTALL" >&6; } 2299 2300# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2301# It thinks the first close brace ends the variable substitution. 2302test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2303 2304test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2305 2306test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2307 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2309$as_echo_n "checking whether build environment is sane... " >&6; } 2310# Reject unsafe characters in $srcdir or the absolute working directory 2311# name. Accept space and tab only in the latter. 2312am_lf=' 2313' 2314case `pwd` in 2315 *[\\\"\#\$\&\'\`$am_lf]*) 2316 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2317esac 2318case $srcdir in 2319 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2320 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2321esac 2322 2323# Do 'set' in a subshell so we don't clobber the current shell's 2324# arguments. Must try -L first in case configure is actually a 2325# symlink; some systems play weird games with the mod time of symlinks 2326# (eg FreeBSD returns the mod time of the symlink's containing 2327# directory). 2328if ( 2329 am_has_slept=no 2330 for am_try in 1 2; do 2331 echo "timestamp, slept: $am_has_slept" > conftest.file 2332 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2333 if test "$*" = "X"; then 2334 # -L didn't work. 2335 set X `ls -t "$srcdir/configure" conftest.file` 2336 fi 2337 if test "$*" != "X $srcdir/configure conftest.file" \ 2338 && test "$*" != "X conftest.file $srcdir/configure"; then 2339 2340 # If neither matched, then we have a broken ls. This can happen 2341 # if, for instance, CONFIG_SHELL is bash and it inherits a 2342 # broken ls alias from the environment. This has actually 2343 # happened. Such a system could not be considered "sane". 2344 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2345 alias in your environment" "$LINENO" 5 2346 fi 2347 if test "$2" = conftest.file || test $am_try -eq 2; then 2348 break 2349 fi 2350 # Just in case. 2351 sleep 1 2352 am_has_slept=yes 2353 done 2354 test "$2" = conftest.file 2355 ) 2356then 2357 # Ok. 2358 : 2359else 2360 as_fn_error $? "newly created file is older than distributed files! 2361Check your system clock" "$LINENO" 5 2362fi 2363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2364$as_echo "yes" >&6; } 2365# If we didn't sleep, we still need to ensure time stamps of config.status and 2366# generated files are strictly newer. 2367am_sleep_pid= 2368if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2369 ( sleep 1 ) & 2370 am_sleep_pid=$! 2371fi 2372 2373rm -f conftest.file 2374 2375test "$program_prefix" != NONE && 2376 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2377# Use a double $ so make ignores it. 2378test "$program_suffix" != NONE && 2379 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2380# Double any \ or $. 2381# By default was `s,x,x', remove it if useless. 2382ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2383program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2384 2385# Expand $ac_aux_dir to an absolute path. 2386am_aux_dir=`cd "$ac_aux_dir" && pwd` 2387 2388if test x"${MISSING+set}" != xset; then 2389 case $am_aux_dir in 2390 *\ * | *\ *) 2391 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2392 *) 2393 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2394 esac 2395fi 2396# Use eval to expand $SHELL 2397if eval "$MISSING --is-lightweight"; then 2398 am_missing_run="$MISSING " 2399else 2400 am_missing_run= 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2402$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2403fi 2404 2405if test x"${install_sh+set}" != xset; then 2406 case $am_aux_dir in 2407 *\ * | *\ *) 2408 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2409 *) 2410 install_sh="\${SHELL} $am_aux_dir/install-sh" 2411 esac 2412fi 2413 2414# Installed binaries are usually stripped using 'strip' when the user 2415# run "make install-strip". However 'strip' might not be the right 2416# tool to use in cross-compilation environments, therefore Automake 2417# will honor the 'STRIP' environment variable to overrule this program. 2418if test "$cross_compiling" != no; then 2419 if test -n "$ac_tool_prefix"; then 2420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2421set dummy ${ac_tool_prefix}strip; ac_word=$2 2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2423$as_echo_n "checking for $ac_word... " >&6; } 2424if ${ac_cv_prog_STRIP+:} false; then : 2425 $as_echo_n "(cached) " >&6 2426else 2427 if test -n "$STRIP"; then 2428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2429else 2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2431for as_dir in $PATH 2432do 2433 IFS=$as_save_IFS 2434 test -z "$as_dir" && as_dir=. 2435 for ac_exec_ext in '' $ac_executable_extensions; do 2436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2437 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2439 break 2 2440 fi 2441done 2442 done 2443IFS=$as_save_IFS 2444 2445fi 2446fi 2447STRIP=$ac_cv_prog_STRIP 2448if test -n "$STRIP"; then 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2450$as_echo "$STRIP" >&6; } 2451else 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2453$as_echo "no" >&6; } 2454fi 2455 2456 2457fi 2458if test -z "$ac_cv_prog_STRIP"; then 2459 ac_ct_STRIP=$STRIP 2460 # Extract the first word of "strip", so it can be a program name with args. 2461set dummy strip; ac_word=$2 2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2463$as_echo_n "checking for $ac_word... " >&6; } 2464if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2465 $as_echo_n "(cached) " >&6 2466else 2467 if test -n "$ac_ct_STRIP"; then 2468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2469else 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471for as_dir in $PATH 2472do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2477 ac_cv_prog_ac_ct_STRIP="strip" 2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482 done 2483IFS=$as_save_IFS 2484 2485fi 2486fi 2487ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2488if test -n "$ac_ct_STRIP"; then 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2490$as_echo "$ac_ct_STRIP" >&6; } 2491else 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2493$as_echo "no" >&6; } 2494fi 2495 2496 if test "x$ac_ct_STRIP" = x; then 2497 STRIP=":" 2498 else 2499 case $cross_compiling:$ac_tool_warned in 2500yes:) 2501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2503ac_tool_warned=yes ;; 2504esac 2505 STRIP=$ac_ct_STRIP 2506 fi 2507else 2508 STRIP="$ac_cv_prog_STRIP" 2509fi 2510 2511fi 2512INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2513 2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2515$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2516if test -z "$MKDIR_P"; then 2517 if ${ac_cv_path_mkdir+:} false; then : 2518 $as_echo_n "(cached) " >&6 2519else 2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2522do 2523 IFS=$as_save_IFS 2524 test -z "$as_dir" && as_dir=. 2525 for ac_prog in mkdir gmkdir; do 2526 for ac_exec_ext in '' $ac_executable_extensions; do 2527 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2528 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2529 'mkdir (GNU coreutils) '* | \ 2530 'mkdir (coreutils) '* | \ 2531 'mkdir (fileutils) '4.1*) 2532 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2533 break 3;; 2534 esac 2535 done 2536 done 2537 done 2538IFS=$as_save_IFS 2539 2540fi 2541 2542 test -d ./--version && rmdir ./--version 2543 if test "${ac_cv_path_mkdir+set}" = set; then 2544 MKDIR_P="$ac_cv_path_mkdir -p" 2545 else 2546 # As a last resort, use the slow shell script. Don't cache a 2547 # value for MKDIR_P within a source directory, because that will 2548 # break other packages using the cache if that directory is 2549 # removed, or if the value is a relative name. 2550 MKDIR_P="$ac_install_sh -d" 2551 fi 2552fi 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2554$as_echo "$MKDIR_P" >&6; } 2555 2556for ac_prog in gawk mawk nawk awk 2557do 2558 # Extract the first word of "$ac_prog", so it can be a program name with args. 2559set dummy $ac_prog; ac_word=$2 2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2561$as_echo_n "checking for $ac_word... " >&6; } 2562if ${ac_cv_prog_AWK+:} false; then : 2563 $as_echo_n "(cached) " >&6 2564else 2565 if test -n "$AWK"; then 2566 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2567else 2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2569for as_dir in $PATH 2570do 2571 IFS=$as_save_IFS 2572 test -z "$as_dir" && as_dir=. 2573 for ac_exec_ext in '' $ac_executable_extensions; do 2574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2575 ac_cv_prog_AWK="$ac_prog" 2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2577 break 2 2578 fi 2579done 2580 done 2581IFS=$as_save_IFS 2582 2583fi 2584fi 2585AWK=$ac_cv_prog_AWK 2586if test -n "$AWK"; then 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2588$as_echo "$AWK" >&6; } 2589else 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2591$as_echo "no" >&6; } 2592fi 2593 2594 2595 test -n "$AWK" && break 2596done 2597 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2599$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2600set x ${MAKE-make} 2601ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2602if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2603 $as_echo_n "(cached) " >&6 2604else 2605 cat >conftest.make <<\_ACEOF 2606SHELL = /bin/sh 2607all: 2608 @echo '@@@%%%=$(MAKE)=@@@%%%' 2609_ACEOF 2610# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2611case `${MAKE-make} -f conftest.make 2>/dev/null` in 2612 *@@@%%%=?*=@@@%%%*) 2613 eval ac_cv_prog_make_${ac_make}_set=yes;; 2614 *) 2615 eval ac_cv_prog_make_${ac_make}_set=no;; 2616esac 2617rm -f conftest.make 2618fi 2619if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2621$as_echo "yes" >&6; } 2622 SET_MAKE= 2623else 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2625$as_echo "no" >&6; } 2626 SET_MAKE="MAKE=${MAKE-make}" 2627fi 2628 2629rm -rf .tst 2>/dev/null 2630mkdir .tst 2>/dev/null 2631if test -d .tst; then 2632 am__leading_dot=. 2633else 2634 am__leading_dot=_ 2635fi 2636rmdir .tst 2>/dev/null 2637 2638# Check whether --enable-silent-rules was given. 2639if test "${enable_silent_rules+set}" = set; then : 2640 enableval=$enable_silent_rules; 2641fi 2642 2643case $enable_silent_rules in # ((( 2644 yes) AM_DEFAULT_VERBOSITY=0;; 2645 no) AM_DEFAULT_VERBOSITY=1;; 2646 *) AM_DEFAULT_VERBOSITY=1;; 2647esac 2648am_make=${MAKE-make} 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2650$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2651if ${am_cv_make_support_nested_variables+:} false; then : 2652 $as_echo_n "(cached) " >&6 2653else 2654 if $as_echo 'TRUE=$(BAR$(V)) 2655BAR0=false 2656BAR1=true 2657V=1 2658am__doit: 2659 @$(TRUE) 2660.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2661 am_cv_make_support_nested_variables=yes 2662else 2663 am_cv_make_support_nested_variables=no 2664fi 2665fi 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2667$as_echo "$am_cv_make_support_nested_variables" >&6; } 2668if test $am_cv_make_support_nested_variables = yes; then 2669 AM_V='$(V)' 2670 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2671else 2672 AM_V=$AM_DEFAULT_VERBOSITY 2673 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2674fi 2675AM_BACKSLASH='\' 2676 2677if test "`cd $srcdir && pwd`" != "`pwd`"; then 2678 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2679 # is not polluted with repeated "-I." 2680 am__isrc=' -I$(srcdir)' 2681 # test to see if srcdir already configured 2682 if test -f $srcdir/config.status; then 2683 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2684 fi 2685fi 2686 2687# test whether we have cygpath 2688if test -z "$CYGPATH_W"; then 2689 if (cygpath --version) >/dev/null 2>/dev/null; then 2690 CYGPATH_W='cygpath -w' 2691 else 2692 CYGPATH_W=echo 2693 fi 2694fi 2695 2696 2697# Define the identity of the package. 2698 PACKAGE='xman' 2699 VERSION='1.1.4' 2700 2701 2702cat >>confdefs.h <<_ACEOF 2703#define PACKAGE "$PACKAGE" 2704_ACEOF 2705 2706 2707cat >>confdefs.h <<_ACEOF 2708#define VERSION "$VERSION" 2709_ACEOF 2710 2711# Some tools Automake needs. 2712 2713ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2714 2715 2716AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2717 2718 2719AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2720 2721 2722AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2723 2724 2725MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2726 2727# For better backward compatibility. To be removed once Automake 1.9.x 2728# dies out for good. For more background, see: 2729# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2730# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2731mkdir_p='$(MKDIR_P)' 2732 2733# We need awk for the "check" target (and possibly the TAP driver). The 2734# system "awk" is bad on some platforms. 2735# Always define AMTAR for backward compatibility. Yes, it's still used 2736# in the wild :-( We should find a proper way to deprecate it ... 2737AMTAR='$${TAR-tar}' 2738 2739 2740# We'll loop over all known methods to create a tar archive until one works. 2741_am_tools='gnutar pax cpio none' 2742 2743am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2744 2745 2746 2747 2748 2749 2750# POSIX will say in a future version that running "rm -f" with no argument 2751# is OK; and we want to be able to make that assumption in our Makefile 2752# recipes. So use an aggressive probe to check that the usage we want is 2753# actually supported "in the wild" to an acceptable degree. 2754# See automake bug#10828. 2755# To make any issue more visible, cause the running configure to be aborted 2756# by default if the 'rm' program in use doesn't match our expectations; the 2757# user can still override this though. 2758if rm -f && rm -fr && rm -rf; then : OK; else 2759 cat >&2 <<'END' 2760Oops! 2761 2762Your 'rm' program seems unable to run without file operands specified 2763on the command line, even when the '-f' option is present. This is contrary 2764to the behaviour of most rm programs out there, and not conforming with 2765the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2766 2767Please tell bug-automake@gnu.org about your system, including the value 2768of your $PATH and any error possibly output before this message. This 2769can help us improve future automake versions. 2770 2771END 2772 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2773 echo 'Configuration will proceed anyway, since you have set the' >&2 2774 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2775 echo >&2 2776 else 2777 cat >&2 <<'END' 2778Aborting the configuration process, to ensure you take notice of the issue. 2779 2780You can download and install GNU coreutils to get an 'rm' implementation 2781that behaves properly: <http://www.gnu.org/software/coreutils/>. 2782 2783If you want to complete the configuration process using your problematic 2784'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2785to "yes", and re-run configure. 2786 2787END 2788 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2789 fi 2790fi 2791 2792 2793# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805DEPDIR="${am__leading_dot}deps" 2806 2807ac_config_commands="$ac_config_commands depfiles" 2808 2809 2810am_make=${MAKE-make} 2811cat > confinc << 'END' 2812am__doit: 2813 @echo this is the am__doit target 2814.PHONY: am__doit 2815END 2816# If we don't find an include directive, just comment out the code. 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2818$as_echo_n "checking for style of include used by $am_make... " >&6; } 2819am__include="#" 2820am__quote= 2821_am_result=none 2822# First try GNU make style include. 2823echo "include confinc" > confmf 2824# Ignore all kinds of additional output from 'make'. 2825case `$am_make -s -f confmf 2> /dev/null` in #( 2826*the\ am__doit\ target*) 2827 am__include=include 2828 am__quote= 2829 _am_result=GNU 2830 ;; 2831esac 2832# Now try BSD make style include. 2833if test "$am__include" = "#"; then 2834 echo '.include "confinc"' > confmf 2835 case `$am_make -s -f confmf 2> /dev/null` in #( 2836 *the\ am__doit\ target*) 2837 am__include=.include 2838 am__quote="\"" 2839 _am_result=BSD 2840 ;; 2841 esac 2842fi 2843 2844 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2846$as_echo "$_am_result" >&6; } 2847rm -f confinc confmf 2848 2849# Check whether --enable-dependency-tracking was given. 2850if test "${enable_dependency_tracking+set}" = set; then : 2851 enableval=$enable_dependency_tracking; 2852fi 2853 2854if test "x$enable_dependency_tracking" != xno; then 2855 am_depcomp="$ac_aux_dir/depcomp" 2856 AMDEPBACKSLASH='\' 2857 am__nodep='_no' 2858fi 2859 if test "x$enable_dependency_tracking" != xno; then 2860 AMDEP_TRUE= 2861 AMDEP_FALSE='#' 2862else 2863 AMDEP_TRUE='#' 2864 AMDEP_FALSE= 2865fi 2866 2867 2868ac_ext=c 2869ac_cpp='$CPP $CPPFLAGS' 2870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2872ac_compiler_gnu=$ac_cv_c_compiler_gnu 2873if test -n "$ac_tool_prefix"; then 2874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2875set dummy ${ac_tool_prefix}gcc; ac_word=$2 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2877$as_echo_n "checking for $ac_word... " >&6; } 2878if ${ac_cv_prog_CC+:} false; then : 2879 $as_echo_n "(cached) " >&6 2880else 2881 if test -n "$CC"; then 2882 ac_cv_prog_CC="$CC" # Let the user override the test. 2883else 2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885for as_dir in $PATH 2886do 2887 IFS=$as_save_IFS 2888 test -z "$as_dir" && as_dir=. 2889 for ac_exec_ext in '' $ac_executable_extensions; do 2890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2891 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2893 break 2 2894 fi 2895done 2896 done 2897IFS=$as_save_IFS 2898 2899fi 2900fi 2901CC=$ac_cv_prog_CC 2902if test -n "$CC"; then 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2904$as_echo "$CC" >&6; } 2905else 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2907$as_echo "no" >&6; } 2908fi 2909 2910 2911fi 2912if test -z "$ac_cv_prog_CC"; then 2913 ac_ct_CC=$CC 2914 # Extract the first word of "gcc", so it can be a program name with args. 2915set dummy gcc; ac_word=$2 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2917$as_echo_n "checking for $ac_word... " >&6; } 2918if ${ac_cv_prog_ac_ct_CC+:} false; then : 2919 $as_echo_n "(cached) " >&6 2920else 2921 if test -n "$ac_ct_CC"; then 2922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2923else 2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2925for as_dir in $PATH 2926do 2927 IFS=$as_save_IFS 2928 test -z "$as_dir" && as_dir=. 2929 for ac_exec_ext in '' $ac_executable_extensions; do 2930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2931 ac_cv_prog_ac_ct_CC="gcc" 2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2933 break 2 2934 fi 2935done 2936 done 2937IFS=$as_save_IFS 2938 2939fi 2940fi 2941ac_ct_CC=$ac_cv_prog_ac_ct_CC 2942if test -n "$ac_ct_CC"; then 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2944$as_echo "$ac_ct_CC" >&6; } 2945else 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2947$as_echo "no" >&6; } 2948fi 2949 2950 if test "x$ac_ct_CC" = x; then 2951 CC="" 2952 else 2953 case $cross_compiling:$ac_tool_warned in 2954yes:) 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2957ac_tool_warned=yes ;; 2958esac 2959 CC=$ac_ct_CC 2960 fi 2961else 2962 CC="$ac_cv_prog_CC" 2963fi 2964 2965if test -z "$CC"; then 2966 if test -n "$ac_tool_prefix"; then 2967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2968set dummy ${ac_tool_prefix}cc; ac_word=$2 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970$as_echo_n "checking for $ac_word... " >&6; } 2971if ${ac_cv_prog_CC+:} false; then : 2972 $as_echo_n "(cached) " >&6 2973else 2974 if test -n "$CC"; then 2975 ac_cv_prog_CC="$CC" # Let the user override the test. 2976else 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2984 ac_cv_prog_CC="${ac_tool_prefix}cc" 2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988done 2989 done 2990IFS=$as_save_IFS 2991 2992fi 2993fi 2994CC=$ac_cv_prog_CC 2995if test -n "$CC"; then 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2997$as_echo "$CC" >&6; } 2998else 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000$as_echo "no" >&6; } 3001fi 3002 3003 3004 fi 3005fi 3006if test -z "$CC"; then 3007 # Extract the first word of "cc", so it can be a program name with args. 3008set dummy cc; ac_word=$2 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3010$as_echo_n "checking for $ac_word... " >&6; } 3011if ${ac_cv_prog_CC+:} false; then : 3012 $as_echo_n "(cached) " >&6 3013else 3014 if test -n "$CC"; then 3015 ac_cv_prog_CC="$CC" # Let the user override the test. 3016else 3017 ac_prog_rejected=no 3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3019for as_dir in $PATH 3020do 3021 IFS=$as_save_IFS 3022 test -z "$as_dir" && as_dir=. 3023 for ac_exec_ext in '' $ac_executable_extensions; do 3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3026 ac_prog_rejected=yes 3027 continue 3028 fi 3029 ac_cv_prog_CC="cc" 3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3031 break 2 3032 fi 3033done 3034 done 3035IFS=$as_save_IFS 3036 3037if test $ac_prog_rejected = yes; then 3038 # We found a bogon in the path, so make sure we never use it. 3039 set dummy $ac_cv_prog_CC 3040 shift 3041 if test $# != 0; then 3042 # We chose a different compiler from the bogus one. 3043 # However, it has the same basename, so the bogon will be chosen 3044 # first if we set CC to just the basename; use the full file name. 3045 shift 3046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3047 fi 3048fi 3049fi 3050fi 3051CC=$ac_cv_prog_CC 3052if test -n "$CC"; then 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3054$as_echo "$CC" >&6; } 3055else 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3057$as_echo "no" >&6; } 3058fi 3059 3060 3061fi 3062if test -z "$CC"; then 3063 if test -n "$ac_tool_prefix"; then 3064 for ac_prog in cl.exe 3065 do 3066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3067set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3069$as_echo_n "checking for $ac_word... " >&6; } 3070if ${ac_cv_prog_CC+:} false; then : 3071 $as_echo_n "(cached) " >&6 3072else 3073 if test -n "$CC"; then 3074 ac_cv_prog_CC="$CC" # Let the user override the test. 3075else 3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077for as_dir in $PATH 3078do 3079 IFS=$as_save_IFS 3080 test -z "$as_dir" && as_dir=. 3081 for ac_exec_ext in '' $ac_executable_extensions; do 3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3085 break 2 3086 fi 3087done 3088 done 3089IFS=$as_save_IFS 3090 3091fi 3092fi 3093CC=$ac_cv_prog_CC 3094if test -n "$CC"; then 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3096$as_echo "$CC" >&6; } 3097else 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3099$as_echo "no" >&6; } 3100fi 3101 3102 3103 test -n "$CC" && break 3104 done 3105fi 3106if test -z "$CC"; then 3107 ac_ct_CC=$CC 3108 for ac_prog in cl.exe 3109do 3110 # Extract the first word of "$ac_prog", so it can be a program name with args. 3111set dummy $ac_prog; ac_word=$2 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3113$as_echo_n "checking for $ac_word... " >&6; } 3114if ${ac_cv_prog_ac_ct_CC+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 if test -n "$ac_ct_CC"; then 3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3119else 3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3121for as_dir in $PATH 3122do 3123 IFS=$as_save_IFS 3124 test -z "$as_dir" && as_dir=. 3125 for ac_exec_ext in '' $ac_executable_extensions; do 3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3127 ac_cv_prog_ac_ct_CC="$ac_prog" 3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3129 break 2 3130 fi 3131done 3132 done 3133IFS=$as_save_IFS 3134 3135fi 3136fi 3137ac_ct_CC=$ac_cv_prog_ac_ct_CC 3138if test -n "$ac_ct_CC"; then 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3140$as_echo "$ac_ct_CC" >&6; } 3141else 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3143$as_echo "no" >&6; } 3144fi 3145 3146 3147 test -n "$ac_ct_CC" && break 3148done 3149 3150 if test "x$ac_ct_CC" = x; then 3151 CC="" 3152 else 3153 case $cross_compiling:$ac_tool_warned in 3154yes:) 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3157ac_tool_warned=yes ;; 3158esac 3159 CC=$ac_ct_CC 3160 fi 3161fi 3162 3163fi 3164 3165 3166test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3168as_fn_error $? "no acceptable C compiler found in \$PATH 3169See \`config.log' for more details" "$LINENO" 5; } 3170 3171# Provide some information about the compiler. 3172$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3173set X $ac_compile 3174ac_compiler=$2 3175for ac_option in --version -v -V -qversion; do 3176 { { ac_try="$ac_compiler $ac_option >&5" 3177case "(($ac_try" in 3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3179 *) ac_try_echo=$ac_try;; 3180esac 3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3182$as_echo "$ac_try_echo"; } >&5 3183 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3184 ac_status=$? 3185 if test -s conftest.err; then 3186 sed '10a\ 3187... rest of stderr output deleted ... 3188 10q' conftest.err >conftest.er1 3189 cat conftest.er1 >&5 3190 fi 3191 rm -f conftest.er1 conftest.err 3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3193 test $ac_status = 0; } 3194done 3195 3196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3197/* end confdefs.h. */ 3198 3199int 3200main () 3201{ 3202 3203 ; 3204 return 0; 3205} 3206_ACEOF 3207ac_clean_files_save=$ac_clean_files 3208ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3209# Try to create an executable without -o first, disregard a.out. 3210# It will help us diagnose broken compilers, and finding out an intuition 3211# of exeext. 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3213$as_echo_n "checking whether the C compiler works... " >&6; } 3214ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3215 3216# The possible output files: 3217ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3218 3219ac_rmfiles= 3220for ac_file in $ac_files 3221do 3222 case $ac_file in 3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3224 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3225 esac 3226done 3227rm -f $ac_rmfiles 3228 3229if { { ac_try="$ac_link_default" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3235$as_echo "$ac_try_echo"; } >&5 3236 (eval "$ac_link_default") 2>&5 3237 ac_status=$? 3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3239 test $ac_status = 0; }; then : 3240 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3241# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3242# in a Makefile. We should not override ac_cv_exeext if it was cached, 3243# so that the user can short-circuit this test for compilers unknown to 3244# Autoconf. 3245for ac_file in $ac_files '' 3246do 3247 test -f "$ac_file" || continue 3248 case $ac_file in 3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3250 ;; 3251 [ab].out ) 3252 # We found the default executable, but exeext='' is most 3253 # certainly right. 3254 break;; 3255 *.* ) 3256 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3257 then :; else 3258 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3259 fi 3260 # We set ac_cv_exeext here because the later test for it is not 3261 # safe: cross compilers may not add the suffix if given an `-o' 3262 # argument, so we may need to know it at that point already. 3263 # Even if this section looks crufty: it has the advantage of 3264 # actually working. 3265 break;; 3266 * ) 3267 break;; 3268 esac 3269done 3270test "$ac_cv_exeext" = no && ac_cv_exeext= 3271 3272else 3273 ac_file='' 3274fi 3275if test -z "$ac_file"; then : 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277$as_echo "no" >&6; } 3278$as_echo "$as_me: failed program was:" >&5 3279sed 's/^/| /' conftest.$ac_ext >&5 3280 3281{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3283as_fn_error 77 "C compiler cannot create executables 3284See \`config.log' for more details" "$LINENO" 5; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3287$as_echo "yes" >&6; } 3288fi 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3290$as_echo_n "checking for C compiler default output file name... " >&6; } 3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3292$as_echo "$ac_file" >&6; } 3293ac_exeext=$ac_cv_exeext 3294 3295rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3296ac_clean_files=$ac_clean_files_save 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3298$as_echo_n "checking for suffix of executables... " >&6; } 3299if { { ac_try="$ac_link" 3300case "(($ac_try" in 3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3302 *) ac_try_echo=$ac_try;; 3303esac 3304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3305$as_echo "$ac_try_echo"; } >&5 3306 (eval "$ac_link") 2>&5 3307 ac_status=$? 3308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3309 test $ac_status = 0; }; then : 3310 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3311# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3312# work properly (i.e., refer to `conftest.exe'), while it won't with 3313# `rm'. 3314for ac_file in conftest.exe conftest conftest.*; do 3315 test -f "$ac_file" || continue 3316 case $ac_file in 3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3318 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3319 break;; 3320 * ) break;; 3321 esac 3322done 3323else 3324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3326as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3327See \`config.log' for more details" "$LINENO" 5; } 3328fi 3329rm -f conftest conftest$ac_cv_exeext 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3331$as_echo "$ac_cv_exeext" >&6; } 3332 3333rm -f conftest.$ac_ext 3334EXEEXT=$ac_cv_exeext 3335ac_exeext=$EXEEXT 3336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3337/* end confdefs.h. */ 3338#include <stdio.h> 3339int 3340main () 3341{ 3342FILE *f = fopen ("conftest.out", "w"); 3343 return ferror (f) || fclose (f) != 0; 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349ac_clean_files="$ac_clean_files conftest.out" 3350# Check that the compiler produces executables we can run. If not, either 3351# the compiler is broken, or we cross compile. 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3353$as_echo_n "checking whether we are cross compiling... " >&6; } 3354if test "$cross_compiling" != yes; then 3355 { { ac_try="$ac_link" 3356case "(($ac_try" in 3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3358 *) ac_try_echo=$ac_try;; 3359esac 3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3361$as_echo "$ac_try_echo"; } >&5 3362 (eval "$ac_link") 2>&5 3363 ac_status=$? 3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3365 test $ac_status = 0; } 3366 if { ac_try='./conftest$ac_cv_exeext' 3367 { { case "(($ac_try" in 3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3369 *) ac_try_echo=$ac_try;; 3370esac 3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3372$as_echo "$ac_try_echo"; } >&5 3373 (eval "$ac_try") 2>&5 3374 ac_status=$? 3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3376 test $ac_status = 0; }; }; then 3377 cross_compiling=no 3378 else 3379 if test "$cross_compiling" = maybe; then 3380 cross_compiling=yes 3381 else 3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3384as_fn_error $? "cannot run C compiled programs. 3385If you meant to cross compile, use \`--host'. 3386See \`config.log' for more details" "$LINENO" 5; } 3387 fi 3388 fi 3389fi 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3391$as_echo "$cross_compiling" >&6; } 3392 3393rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3394ac_clean_files=$ac_clean_files_save 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3396$as_echo_n "checking for suffix of object files... " >&6; } 3397if ${ac_cv_objext+:} false; then : 3398 $as_echo_n "(cached) " >&6 3399else 3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401/* end confdefs.h. */ 3402 3403int 3404main () 3405{ 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411rm -f conftest.o conftest.obj 3412if { { ac_try="$ac_compile" 3413case "(($ac_try" in 3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3415 *) ac_try_echo=$ac_try;; 3416esac 3417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3418$as_echo "$ac_try_echo"; } >&5 3419 (eval "$ac_compile") 2>&5 3420 ac_status=$? 3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3422 test $ac_status = 0; }; then : 3423 for ac_file in conftest.o conftest.obj conftest.*; do 3424 test -f "$ac_file" || continue; 3425 case $ac_file in 3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3428 break;; 3429 esac 3430done 3431else 3432 $as_echo "$as_me: failed program was:" >&5 3433sed 's/^/| /' conftest.$ac_ext >&5 3434 3435{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3437as_fn_error $? "cannot compute suffix of object files: cannot compile 3438See \`config.log' for more details" "$LINENO" 5; } 3439fi 3440rm -f conftest.$ac_cv_objext conftest.$ac_ext 3441fi 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3443$as_echo "$ac_cv_objext" >&6; } 3444OBJEXT=$ac_cv_objext 3445ac_objext=$OBJEXT 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3447$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3448if ${ac_cv_c_compiler_gnu+:} false; then : 3449 $as_echo_n "(cached) " >&6 3450else 3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453 3454int 3455main () 3456{ 3457#ifndef __GNUC__ 3458 choke me 3459#endif 3460 3461 ; 3462 return 0; 3463} 3464_ACEOF 3465if ac_fn_c_try_compile "$LINENO"; then : 3466 ac_compiler_gnu=yes 3467else 3468 ac_compiler_gnu=no 3469fi 3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3471ac_cv_c_compiler_gnu=$ac_compiler_gnu 3472 3473fi 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3475$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3476if test $ac_compiler_gnu = yes; then 3477 GCC=yes 3478else 3479 GCC= 3480fi 3481ac_test_CFLAGS=${CFLAGS+set} 3482ac_save_CFLAGS=$CFLAGS 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3484$as_echo_n "checking whether $CC accepts -g... " >&6; } 3485if ${ac_cv_prog_cc_g+:} false; then : 3486 $as_echo_n "(cached) " >&6 3487else 3488 ac_save_c_werror_flag=$ac_c_werror_flag 3489 ac_c_werror_flag=yes 3490 ac_cv_prog_cc_g=no 3491 CFLAGS="-g" 3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3493/* end confdefs.h. */ 3494 3495int 3496main () 3497{ 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503if ac_fn_c_try_compile "$LINENO"; then : 3504 ac_cv_prog_cc_g=yes 3505else 3506 CFLAGS="" 3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3508/* end confdefs.h. */ 3509 3510int 3511main () 3512{ 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518if ac_fn_c_try_compile "$LINENO"; then : 3519 3520else 3521 ac_c_werror_flag=$ac_save_c_werror_flag 3522 CFLAGS="-g" 3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3524/* end confdefs.h. */ 3525 3526int 3527main () 3528{ 3529 3530 ; 3531 return 0; 3532} 3533_ACEOF 3534if ac_fn_c_try_compile "$LINENO"; then : 3535 ac_cv_prog_cc_g=yes 3536fi 3537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3538fi 3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542 ac_c_werror_flag=$ac_save_c_werror_flag 3543fi 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3545$as_echo "$ac_cv_prog_cc_g" >&6; } 3546if test "$ac_test_CFLAGS" = set; then 3547 CFLAGS=$ac_save_CFLAGS 3548elif test $ac_cv_prog_cc_g = yes; then 3549 if test "$GCC" = yes; then 3550 CFLAGS="-g -O2" 3551 else 3552 CFLAGS="-g" 3553 fi 3554else 3555 if test "$GCC" = yes; then 3556 CFLAGS="-O2" 3557 else 3558 CFLAGS= 3559 fi 3560fi 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3562$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3563if ${ac_cv_prog_cc_c89+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 ac_cv_prog_cc_c89=no 3567ac_save_CC=$CC 3568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3569/* end confdefs.h. */ 3570#include <stdarg.h> 3571#include <stdio.h> 3572struct stat; 3573/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3574struct buf { int x; }; 3575FILE * (*rcsopen) (struct buf *, struct stat *, int); 3576static char *e (p, i) 3577 char **p; 3578 int i; 3579{ 3580 return p[i]; 3581} 3582static char *f (char * (*g) (char **, int), char **p, ...) 3583{ 3584 char *s; 3585 va_list v; 3586 va_start (v,p); 3587 s = g (p, va_arg (v,int)); 3588 va_end (v); 3589 return s; 3590} 3591 3592/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3593 function prototypes and stuff, but not '\xHH' hex character constants. 3594 These don't provoke an error unfortunately, instead are silently treated 3595 as 'x'. The following induces an error, until -std is added to get 3596 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3597 array size at least. It's necessary to write '\x00'==0 to get something 3598 that's true only with -std. */ 3599int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3600 3601/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3602 inside strings and character constants. */ 3603#define FOO(x) 'x' 3604int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3605 3606int test (int i, double x); 3607struct s1 {int (*f) (int a);}; 3608struct s2 {int (*f) (double a);}; 3609int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3610int argc; 3611char **argv; 3612int 3613main () 3614{ 3615return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3616 ; 3617 return 0; 3618} 3619_ACEOF 3620for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3621 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3622do 3623 CC="$ac_save_CC $ac_arg" 3624 if ac_fn_c_try_compile "$LINENO"; then : 3625 ac_cv_prog_cc_c89=$ac_arg 3626fi 3627rm -f core conftest.err conftest.$ac_objext 3628 test "x$ac_cv_prog_cc_c89" != "xno" && break 3629done 3630rm -f conftest.$ac_ext 3631CC=$ac_save_CC 3632 3633fi 3634# AC_CACHE_VAL 3635case "x$ac_cv_prog_cc_c89" in 3636 x) 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3638$as_echo "none needed" >&6; } ;; 3639 xno) 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3641$as_echo "unsupported" >&6; } ;; 3642 *) 3643 CC="$CC $ac_cv_prog_cc_c89" 3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3645$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3646esac 3647if test "x$ac_cv_prog_cc_c89" != xno; then : 3648 3649fi 3650 3651ac_ext=c 3652ac_cpp='$CPP $CPPFLAGS' 3653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3655ac_compiler_gnu=$ac_cv_c_compiler_gnu 3656 3657ac_ext=c 3658ac_cpp='$CPP $CPPFLAGS' 3659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3661ac_compiler_gnu=$ac_cv_c_compiler_gnu 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3663$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3664if ${am_cv_prog_cc_c_o+:} false; then : 3665 $as_echo_n "(cached) " >&6 3666else 3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3668/* end confdefs.h. */ 3669 3670int 3671main () 3672{ 3673 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678 # Make sure it works both with $CC and with simple cc. 3679 # Following AC_PROG_CC_C_O, we do the test twice because some 3680 # compilers refuse to overwrite an existing .o file with -o, 3681 # though they will create one. 3682 am_cv_prog_cc_c_o=yes 3683 for am_i in 1 2; do 3684 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3685 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3686 ac_status=$? 3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3688 (exit $ac_status); } \ 3689 && test -f conftest2.$ac_objext; then 3690 : OK 3691 else 3692 am_cv_prog_cc_c_o=no 3693 break 3694 fi 3695 done 3696 rm -f core conftest* 3697 unset am_i 3698fi 3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3700$as_echo "$am_cv_prog_cc_c_o" >&6; } 3701if test "$am_cv_prog_cc_c_o" != yes; then 3702 # Losing compiler, so override with the script. 3703 # FIXME: It is wrong to rewrite CC. 3704 # But if we don't then we get into trouble of one sort or another. 3705 # A longer-term fix would be to have automake use am__CC in this case, 3706 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3707 CC="$am_aux_dir/compile $CC" 3708fi 3709ac_ext=c 3710ac_cpp='$CPP $CPPFLAGS' 3711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3713ac_compiler_gnu=$ac_cv_c_compiler_gnu 3714 3715 3716depcc="$CC" am_compiler_list= 3717 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3719$as_echo_n "checking dependency style of $depcc... " >&6; } 3720if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3724 # We make a subdir and do the tests there. Otherwise we can end up 3725 # making bogus files that we don't know about and never remove. For 3726 # instance it was reported that on HP-UX the gcc test will end up 3727 # making a dummy file named 'D' -- because '-MD' means "put the output 3728 # in D". 3729 rm -rf conftest.dir 3730 mkdir conftest.dir 3731 # Copy depcomp to subdir because otherwise we won't find it if we're 3732 # using a relative directory. 3733 cp "$am_depcomp" conftest.dir 3734 cd conftest.dir 3735 # We will build objects and dependencies in a subdirectory because 3736 # it helps to detect inapplicable dependency modes. For instance 3737 # both Tru64's cc and ICC support -MD to output dependencies as a 3738 # side effect of compilation, but ICC will put the dependencies in 3739 # the current directory while Tru64 will put them in the object 3740 # directory. 3741 mkdir sub 3742 3743 am_cv_CC_dependencies_compiler_type=none 3744 if test "$am_compiler_list" = ""; then 3745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3746 fi 3747 am__universal=false 3748 case " $depcc " in #( 3749 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3750 esac 3751 3752 for depmode in $am_compiler_list; do 3753 # Setup a source with many dependencies, because some compilers 3754 # like to wrap large dependency lists on column 80 (with \), and 3755 # we should not choose a depcomp mode which is confused by this. 3756 # 3757 # We need to recreate these files for each test, as the compiler may 3758 # overwrite some of them when testing with obscure command lines. 3759 # This happens at least with the AIX C compiler. 3760 : > sub/conftest.c 3761 for i in 1 2 3 4 5 6; do 3762 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3763 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3764 # Solaris 10 /bin/sh. 3765 echo '/* dummy */' > sub/conftst$i.h 3766 done 3767 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3768 3769 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3770 # mode. It turns out that the SunPro C++ compiler does not properly 3771 # handle '-M -o', and we need to detect this. Also, some Intel 3772 # versions had trouble with output in subdirs. 3773 am__obj=sub/conftest.${OBJEXT-o} 3774 am__minus_obj="-o $am__obj" 3775 case $depmode in 3776 gcc) 3777 # This depmode causes a compiler race in universal mode. 3778 test "$am__universal" = false || continue 3779 ;; 3780 nosideeffect) 3781 # After this tag, mechanisms are not by side-effect, so they'll 3782 # only be used when explicitly requested. 3783 if test "x$enable_dependency_tracking" = xyes; then 3784 continue 3785 else 3786 break 3787 fi 3788 ;; 3789 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3790 # This compiler won't grok '-c -o', but also, the minuso test has 3791 # not run yet. These depmodes are late enough in the game, and 3792 # so weak that their functioning should not be impacted. 3793 am__obj=conftest.${OBJEXT-o} 3794 am__minus_obj= 3795 ;; 3796 none) break ;; 3797 esac 3798 if depmode=$depmode \ 3799 source=sub/conftest.c object=$am__obj \ 3800 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3801 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3802 >/dev/null 2>conftest.err && 3803 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3804 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3805 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3806 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3807 # icc doesn't choke on unknown options, it will just issue warnings 3808 # or remarks (even with -Werror). So we grep stderr for any message 3809 # that says an option was ignored or not supported. 3810 # When given -MP, icc 7.0 and 7.1 complain thusly: 3811 # icc: Command line warning: ignoring option '-M'; no argument required 3812 # The diagnosis changed in icc 8.0: 3813 # icc: Command line remark: option '-MP' not supported 3814 if (grep 'ignoring option' conftest.err || 3815 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3816 am_cv_CC_dependencies_compiler_type=$depmode 3817 break 3818 fi 3819 fi 3820 done 3821 3822 cd .. 3823 rm -rf conftest.dir 3824else 3825 am_cv_CC_dependencies_compiler_type=none 3826fi 3827 3828fi 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3830$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3831CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3832 3833 if 3834 test "x$enable_dependency_tracking" != xno \ 3835 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3836 am__fastdepCC_TRUE= 3837 am__fastdepCC_FALSE='#' 3838else 3839 am__fastdepCC_TRUE='#' 3840 am__fastdepCC_FALSE= 3841fi 3842 3843 3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3845$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3846if ${ac_cv_prog_cc_c99+:} false; then : 3847 $as_echo_n "(cached) " >&6 3848else 3849 ac_cv_prog_cc_c99=no 3850ac_save_CC=$CC 3851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3852/* end confdefs.h. */ 3853#include <stdarg.h> 3854#include <stdbool.h> 3855#include <stdlib.h> 3856#include <wchar.h> 3857#include <stdio.h> 3858 3859// Check varargs macros. These examples are taken from C99 6.10.3.5. 3860#define debug(...) fprintf (stderr, __VA_ARGS__) 3861#define showlist(...) puts (#__VA_ARGS__) 3862#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3863static void 3864test_varargs_macros (void) 3865{ 3866 int x = 1234; 3867 int y = 5678; 3868 debug ("Flag"); 3869 debug ("X = %d\n", x); 3870 showlist (The first, second, and third items.); 3871 report (x>y, "x is %d but y is %d", x, y); 3872} 3873 3874// Check long long types. 3875#define BIG64 18446744073709551615ull 3876#define BIG32 4294967295ul 3877#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3878#if !BIG_OK 3879 your preprocessor is broken; 3880#endif 3881#if BIG_OK 3882#else 3883 your preprocessor is broken; 3884#endif 3885static long long int bignum = -9223372036854775807LL; 3886static unsigned long long int ubignum = BIG64; 3887 3888struct incomplete_array 3889{ 3890 int datasize; 3891 double data[]; 3892}; 3893 3894struct named_init { 3895 int number; 3896 const wchar_t *name; 3897 double average; 3898}; 3899 3900typedef const char *ccp; 3901 3902static inline int 3903test_restrict (ccp restrict text) 3904{ 3905 // See if C++-style comments work. 3906 // Iterate through items via the restricted pointer. 3907 // Also check for declarations in for loops. 3908 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3909 continue; 3910 return 0; 3911} 3912 3913// Check varargs and va_copy. 3914static void 3915test_varargs (const char *format, ...) 3916{ 3917 va_list args; 3918 va_start (args, format); 3919 va_list args_copy; 3920 va_copy (args_copy, args); 3921 3922 const char *str; 3923 int number; 3924 float fnumber; 3925 3926 while (*format) 3927 { 3928 switch (*format++) 3929 { 3930 case 's': // string 3931 str = va_arg (args_copy, const char *); 3932 break; 3933 case 'd': // int 3934 number = va_arg (args_copy, int); 3935 break; 3936 case 'f': // float 3937 fnumber = va_arg (args_copy, double); 3938 break; 3939 default: 3940 break; 3941 } 3942 } 3943 va_end (args_copy); 3944 va_end (args); 3945} 3946 3947int 3948main () 3949{ 3950 3951 // Check bool. 3952 _Bool success = false; 3953 3954 // Check restrict. 3955 if (test_restrict ("String literal") == 0) 3956 success = true; 3957 char *restrict newvar = "Another string"; 3958 3959 // Check varargs. 3960 test_varargs ("s, d' f .", "string", 65, 34.234); 3961 test_varargs_macros (); 3962 3963 // Check flexible array members. 3964 struct incomplete_array *ia = 3965 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3966 ia->datasize = 10; 3967 for (int i = 0; i < ia->datasize; ++i) 3968 ia->data[i] = i * 1.234; 3969 3970 // Check named initializers. 3971 struct named_init ni = { 3972 .number = 34, 3973 .name = L"Test wide string", 3974 .average = 543.34343, 3975 }; 3976 3977 ni.number = 58; 3978 3979 int dynamic_array[ni.number]; 3980 dynamic_array[ni.number - 1] = 543; 3981 3982 // work around unused variable warnings 3983 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3984 || dynamic_array[ni.number - 1] != 543); 3985 3986 ; 3987 return 0; 3988} 3989_ACEOF 3990for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3991do 3992 CC="$ac_save_CC $ac_arg" 3993 if ac_fn_c_try_compile "$LINENO"; then : 3994 ac_cv_prog_cc_c99=$ac_arg 3995fi 3996rm -f core conftest.err conftest.$ac_objext 3997 test "x$ac_cv_prog_cc_c99" != "xno" && break 3998done 3999rm -f conftest.$ac_ext 4000CC=$ac_save_CC 4001 4002fi 4003# AC_CACHE_VAL 4004case "x$ac_cv_prog_cc_c99" in 4005 x) 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4007$as_echo "none needed" >&6; } ;; 4008 xno) 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4010$as_echo "unsupported" >&6; } ;; 4011 *) 4012 CC="$CC $ac_cv_prog_cc_c99" 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4014$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4015esac 4016if test "x$ac_cv_prog_cc_c99" != xno; then : 4017 4018fi 4019 4020 4021 4022ac_ext=c 4023ac_cpp='$CPP $CPPFLAGS' 4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4026ac_compiler_gnu=$ac_cv_c_compiler_gnu 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4028$as_echo_n "checking how to run the C preprocessor... " >&6; } 4029# On Suns, sometimes $CPP names a directory. 4030if test -n "$CPP" && test -d "$CPP"; then 4031 CPP= 4032fi 4033if test -z "$CPP"; then 4034 if ${ac_cv_prog_CPP+:} false; then : 4035 $as_echo_n "(cached) " >&6 4036else 4037 # Double quotes because CPP needs to be expanded 4038 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4039 do 4040 ac_preproc_ok=false 4041for ac_c_preproc_warn_flag in '' yes 4042do 4043 # Use a header file that comes with gcc, so configuring glibc 4044 # with a fresh cross-compiler works. 4045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4046 # <limits.h> exists even on freestanding compilers. 4047 # On the NeXT, cc -E runs the code through the compiler's parser, 4048 # not just through cpp. "Syntax error" is here to catch this case. 4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4050/* end confdefs.h. */ 4051#ifdef __STDC__ 4052# include <limits.h> 4053#else 4054# include <assert.h> 4055#endif 4056 Syntax error 4057_ACEOF 4058if ac_fn_c_try_cpp "$LINENO"; then : 4059 4060else 4061 # Broken: fails on valid input. 4062continue 4063fi 4064rm -f conftest.err conftest.i conftest.$ac_ext 4065 4066 # OK, works on sane cases. Now check whether nonexistent headers 4067 # can be detected and how. 4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069/* end confdefs.h. */ 4070#include <ac_nonexistent.h> 4071_ACEOF 4072if ac_fn_c_try_cpp "$LINENO"; then : 4073 # Broken: success on invalid input. 4074continue 4075else 4076 # Passes both tests. 4077ac_preproc_ok=: 4078break 4079fi 4080rm -f conftest.err conftest.i conftest.$ac_ext 4081 4082done 4083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4084rm -f conftest.i conftest.err conftest.$ac_ext 4085if $ac_preproc_ok; then : 4086 break 4087fi 4088 4089 done 4090 ac_cv_prog_CPP=$CPP 4091 4092fi 4093 CPP=$ac_cv_prog_CPP 4094else 4095 ac_cv_prog_CPP=$CPP 4096fi 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4098$as_echo "$CPP" >&6; } 4099ac_preproc_ok=false 4100for ac_c_preproc_warn_flag in '' yes 4101do 4102 # Use a header file that comes with gcc, so configuring glibc 4103 # with a fresh cross-compiler works. 4104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4105 # <limits.h> exists even on freestanding compilers. 4106 # On the NeXT, cc -E runs the code through the compiler's parser, 4107 # not just through cpp. "Syntax error" is here to catch this case. 4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4109/* end confdefs.h. */ 4110#ifdef __STDC__ 4111# include <limits.h> 4112#else 4113# include <assert.h> 4114#endif 4115 Syntax error 4116_ACEOF 4117if ac_fn_c_try_cpp "$LINENO"; then : 4118 4119else 4120 # Broken: fails on valid input. 4121continue 4122fi 4123rm -f conftest.err conftest.i conftest.$ac_ext 4124 4125 # OK, works on sane cases. Now check whether nonexistent headers 4126 # can be detected and how. 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128/* end confdefs.h. */ 4129#include <ac_nonexistent.h> 4130_ACEOF 4131if ac_fn_c_try_cpp "$LINENO"; then : 4132 # Broken: success on invalid input. 4133continue 4134else 4135 # Passes both tests. 4136ac_preproc_ok=: 4137break 4138fi 4139rm -f conftest.err conftest.i conftest.$ac_ext 4140 4141done 4142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4143rm -f conftest.i conftest.err conftest.$ac_ext 4144if $ac_preproc_ok; then : 4145 4146else 4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4149as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4150See \`config.log' for more details" "$LINENO" 5; } 4151fi 4152 4153ac_ext=c 4154ac_cpp='$CPP $CPPFLAGS' 4155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4157ac_compiler_gnu=$ac_cv_c_compiler_gnu 4158 4159 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4161$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4162if ${ac_cv_path_GREP+:} false; then : 4163 $as_echo_n "(cached) " >&6 4164else 4165 if test -z "$GREP"; then 4166 ac_path_GREP_found=false 4167 # Loop through the user's path and test for each of PROGNAME-LIST 4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4169for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4170do 4171 IFS=$as_save_IFS 4172 test -z "$as_dir" && as_dir=. 4173 for ac_prog in grep ggrep; do 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4176 as_fn_executable_p "$ac_path_GREP" || continue 4177# Check for GNU ac_path_GREP and select it if it is found. 4178 # Check for GNU $ac_path_GREP 4179case `"$ac_path_GREP" --version 2>&1` in 4180*GNU*) 4181 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4182*) 4183 ac_count=0 4184 $as_echo_n 0123456789 >"conftest.in" 4185 while : 4186 do 4187 cat "conftest.in" "conftest.in" >"conftest.tmp" 4188 mv "conftest.tmp" "conftest.in" 4189 cp "conftest.in" "conftest.nl" 4190 $as_echo 'GREP' >> "conftest.nl" 4191 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4193 as_fn_arith $ac_count + 1 && ac_count=$as_val 4194 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4195 # Best one so far, save it but keep looking for a better one 4196 ac_cv_path_GREP="$ac_path_GREP" 4197 ac_path_GREP_max=$ac_count 4198 fi 4199 # 10*(2^10) chars as input seems more than enough 4200 test $ac_count -gt 10 && break 4201 done 4202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4203esac 4204 4205 $ac_path_GREP_found && break 3 4206 done 4207 done 4208 done 4209IFS=$as_save_IFS 4210 if test -z "$ac_cv_path_GREP"; then 4211 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4212 fi 4213else 4214 ac_cv_path_GREP=$GREP 4215fi 4216 4217fi 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4219$as_echo "$ac_cv_path_GREP" >&6; } 4220 GREP="$ac_cv_path_GREP" 4221 4222 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4224$as_echo_n "checking for egrep... " >&6; } 4225if ${ac_cv_path_EGREP+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4229 then ac_cv_path_EGREP="$GREP -E" 4230 else 4231 if test -z "$EGREP"; then 4232 ac_path_EGREP_found=false 4233 # Loop through the user's path and test for each of PROGNAME-LIST 4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4235for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4236do 4237 IFS=$as_save_IFS 4238 test -z "$as_dir" && as_dir=. 4239 for ac_prog in egrep; do 4240 for ac_exec_ext in '' $ac_executable_extensions; do 4241 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4242 as_fn_executable_p "$ac_path_EGREP" || continue 4243# Check for GNU ac_path_EGREP and select it if it is found. 4244 # Check for GNU $ac_path_EGREP 4245case `"$ac_path_EGREP" --version 2>&1` in 4246*GNU*) 4247 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4248*) 4249 ac_count=0 4250 $as_echo_n 0123456789 >"conftest.in" 4251 while : 4252 do 4253 cat "conftest.in" "conftest.in" >"conftest.tmp" 4254 mv "conftest.tmp" "conftest.in" 4255 cp "conftest.in" "conftest.nl" 4256 $as_echo 'EGREP' >> "conftest.nl" 4257 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4259 as_fn_arith $ac_count + 1 && ac_count=$as_val 4260 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4261 # Best one so far, save it but keep looking for a better one 4262 ac_cv_path_EGREP="$ac_path_EGREP" 4263 ac_path_EGREP_max=$ac_count 4264 fi 4265 # 10*(2^10) chars as input seems more than enough 4266 test $ac_count -gt 10 && break 4267 done 4268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4269esac 4270 4271 $ac_path_EGREP_found && break 3 4272 done 4273 done 4274 done 4275IFS=$as_save_IFS 4276 if test -z "$ac_cv_path_EGREP"; then 4277 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4278 fi 4279else 4280 ac_cv_path_EGREP=$EGREP 4281fi 4282 4283 fi 4284fi 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4286$as_echo "$ac_cv_path_EGREP" >&6; } 4287 EGREP="$ac_cv_path_EGREP" 4288 4289 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4291$as_echo_n "checking for ANSI C header files... " >&6; } 4292if ${ac_cv_header_stdc+:} false; then : 4293 $as_echo_n "(cached) " >&6 4294else 4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296/* end confdefs.h. */ 4297#include <stdlib.h> 4298#include <stdarg.h> 4299#include <string.h> 4300#include <float.h> 4301 4302int 4303main () 4304{ 4305 4306 ; 4307 return 0; 4308} 4309_ACEOF 4310if ac_fn_c_try_compile "$LINENO"; then : 4311 ac_cv_header_stdc=yes 4312else 4313 ac_cv_header_stdc=no 4314fi 4315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4316 4317if test $ac_cv_header_stdc = yes; then 4318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4320/* end confdefs.h. */ 4321#include <string.h> 4322 4323_ACEOF 4324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4325 $EGREP "memchr" >/dev/null 2>&1; then : 4326 4327else 4328 ac_cv_header_stdc=no 4329fi 4330rm -f conftest* 4331 4332fi 4333 4334if test $ac_cv_header_stdc = yes; then 4335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337/* end confdefs.h. */ 4338#include <stdlib.h> 4339 4340_ACEOF 4341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4342 $EGREP "free" >/dev/null 2>&1; then : 4343 4344else 4345 ac_cv_header_stdc=no 4346fi 4347rm -f conftest* 4348 4349fi 4350 4351if test $ac_cv_header_stdc = yes; then 4352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4353 if test "$cross_compiling" = yes; then : 4354 : 4355else 4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4357/* end confdefs.h. */ 4358#include <ctype.h> 4359#include <stdlib.h> 4360#if ((' ' & 0x0FF) == 0x020) 4361# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4362# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4363#else 4364# define ISLOWER(c) \ 4365 (('a' <= (c) && (c) <= 'i') \ 4366 || ('j' <= (c) && (c) <= 'r') \ 4367 || ('s' <= (c) && (c) <= 'z')) 4368# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4369#endif 4370 4371#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4372int 4373main () 4374{ 4375 int i; 4376 for (i = 0; i < 256; i++) 4377 if (XOR (islower (i), ISLOWER (i)) 4378 || toupper (i) != TOUPPER (i)) 4379 return 2; 4380 return 0; 4381} 4382_ACEOF 4383if ac_fn_c_try_run "$LINENO"; then : 4384 4385else 4386 ac_cv_header_stdc=no 4387fi 4388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4389 conftest.$ac_objext conftest.beam conftest.$ac_ext 4390fi 4391 4392fi 4393fi 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4395$as_echo "$ac_cv_header_stdc" >&6; } 4396if test $ac_cv_header_stdc = yes; then 4397 4398$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4399 4400fi 4401 4402# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4403for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4404 inttypes.h stdint.h unistd.h 4405do : 4406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4407ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4408" 4409if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4410 cat >>confdefs.h <<_ACEOF 4411#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4412_ACEOF 4413 4414fi 4415 4416done 4417 4418 4419 4420 4421 4422 4423ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4424if test "x$ac_cv_have_decl___clang__" = xyes; then : 4425 CLANGCC="yes" 4426else 4427 CLANGCC="no" 4428fi 4429 4430ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4431if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4432 INTELCC="yes" 4433else 4434 INTELCC="no" 4435fi 4436 4437ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4438if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4439 SUNCC="yes" 4440else 4441 SUNCC="no" 4442fi 4443 4444 4445 4446 4447if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4448 if test -n "$ac_tool_prefix"; then 4449 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4450set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4452$as_echo_n "checking for $ac_word... " >&6; } 4453if ${ac_cv_path_PKG_CONFIG+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 case $PKG_CONFIG in 4457 [\\/]* | ?:[\\/]*) 4458 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4459 ;; 4460 *) 4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4462for as_dir in $PATH 4463do 4464 IFS=$as_save_IFS 4465 test -z "$as_dir" && as_dir=. 4466 for ac_exec_ext in '' $ac_executable_extensions; do 4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4468 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4470 break 2 4471 fi 4472done 4473 done 4474IFS=$as_save_IFS 4475 4476 ;; 4477esac 4478fi 4479PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4480if test -n "$PKG_CONFIG"; then 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4482$as_echo "$PKG_CONFIG" >&6; } 4483else 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4485$as_echo "no" >&6; } 4486fi 4487 4488 4489fi 4490if test -z "$ac_cv_path_PKG_CONFIG"; then 4491 ac_pt_PKG_CONFIG=$PKG_CONFIG 4492 # Extract the first word of "pkg-config", so it can be a program name with args. 4493set dummy pkg-config; ac_word=$2 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4495$as_echo_n "checking for $ac_word... " >&6; } 4496if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4497 $as_echo_n "(cached) " >&6 4498else 4499 case $ac_pt_PKG_CONFIG in 4500 [\\/]* | ?:[\\/]*) 4501 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4502 ;; 4503 *) 4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4505for as_dir in $PATH 4506do 4507 IFS=$as_save_IFS 4508 test -z "$as_dir" && as_dir=. 4509 for ac_exec_ext in '' $ac_executable_extensions; do 4510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4511 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4513 break 2 4514 fi 4515done 4516 done 4517IFS=$as_save_IFS 4518 4519 ;; 4520esac 4521fi 4522ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4523if test -n "$ac_pt_PKG_CONFIG"; then 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4525$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4526else 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4528$as_echo "no" >&6; } 4529fi 4530 4531 if test "x$ac_pt_PKG_CONFIG" = x; then 4532 PKG_CONFIG="" 4533 else 4534 case $cross_compiling:$ac_tool_warned in 4535yes:) 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4538ac_tool_warned=yes ;; 4539esac 4540 PKG_CONFIG=$ac_pt_PKG_CONFIG 4541 fi 4542else 4543 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4544fi 4545 4546fi 4547if test -n "$PKG_CONFIG"; then 4548 _pkg_min_version=0.9.0 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4550$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4551 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4553$as_echo "yes" >&6; } 4554 else 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4556$as_echo "no" >&6; } 4557 PKG_CONFIG="" 4558 fi 4559 4560fi 4561# Make sure we can run config.sub. 4562$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4563 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4564 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4566$as_echo_n "checking build system type... " >&6; } 4567if ${ac_cv_build+:} false; then : 4568 $as_echo_n "(cached) " >&6 4569else 4570 ac_build_alias=$build_alias 4571test "x$ac_build_alias" = x && 4572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4573test "x$ac_build_alias" = x && 4574 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4575ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4577 4578fi 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4580$as_echo "$ac_cv_build" >&6; } 4581case $ac_cv_build in 4582*-*-*) ;; 4583*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4584esac 4585build=$ac_cv_build 4586ac_save_IFS=$IFS; IFS='-' 4587set x $ac_cv_build 4588shift 4589build_cpu=$1 4590build_vendor=$2 4591shift; shift 4592# Remember, the first character of IFS is used to create $*, 4593# except with old shells: 4594build_os=$* 4595IFS=$ac_save_IFS 4596case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4597 4598 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4600$as_echo_n "checking host system type... " >&6; } 4601if ${ac_cv_host+:} false; then : 4602 $as_echo_n "(cached) " >&6 4603else 4604 if test "x$host_alias" = x; then 4605 ac_cv_host=$ac_cv_build 4606else 4607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4608 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4609fi 4610 4611fi 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4613$as_echo "$ac_cv_host" >&6; } 4614case $ac_cv_host in 4615*-*-*) ;; 4616*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4617esac 4618host=$ac_cv_host 4619ac_save_IFS=$IFS; IFS='-' 4620set x $ac_cv_host 4621shift 4622host_cpu=$1 4623host_vendor=$2 4624shift; shift 4625# Remember, the first character of IFS is used to create $*, 4626# except with old shells: 4627host_os=$* 4628IFS=$ac_save_IFS 4629case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4630 4631 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4633$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4634if ${ac_cv_path_SED+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4638 for ac_i in 1 2 3 4 5 6 7; do 4639 ac_script="$ac_script$as_nl$ac_script" 4640 done 4641 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4642 { ac_script=; unset ac_script;} 4643 if test -z "$SED"; then 4644 ac_path_SED_found=false 4645 # Loop through the user's path and test for each of PROGNAME-LIST 4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4647for as_dir in $PATH 4648do 4649 IFS=$as_save_IFS 4650 test -z "$as_dir" && as_dir=. 4651 for ac_prog in sed gsed; do 4652 for ac_exec_ext in '' $ac_executable_extensions; do 4653 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4654 as_fn_executable_p "$ac_path_SED" || continue 4655# Check for GNU ac_path_SED and select it if it is found. 4656 # Check for GNU $ac_path_SED 4657case `"$ac_path_SED" --version 2>&1` in 4658*GNU*) 4659 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4660*) 4661 ac_count=0 4662 $as_echo_n 0123456789 >"conftest.in" 4663 while : 4664 do 4665 cat "conftest.in" "conftest.in" >"conftest.tmp" 4666 mv "conftest.tmp" "conftest.in" 4667 cp "conftest.in" "conftest.nl" 4668 $as_echo '' >> "conftest.nl" 4669 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4671 as_fn_arith $ac_count + 1 && ac_count=$as_val 4672 if test $ac_count -gt ${ac_path_SED_max-0}; then 4673 # Best one so far, save it but keep looking for a better one 4674 ac_cv_path_SED="$ac_path_SED" 4675 ac_path_SED_max=$ac_count 4676 fi 4677 # 10*(2^10) chars as input seems more than enough 4678 test $ac_count -gt 10 && break 4679 done 4680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4681esac 4682 4683 $ac_path_SED_found && break 3 4684 done 4685 done 4686 done 4687IFS=$as_save_IFS 4688 if test -z "$ac_cv_path_SED"; then 4689 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4690 fi 4691else 4692 ac_cv_path_SED=$SED 4693fi 4694 4695fi 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4697$as_echo "$ac_cv_path_SED" >&6; } 4698 SED="$ac_cv_path_SED" 4699 rm -f conftest.sed 4700 4701 4702 4703 4704 4705 4706# Check whether --enable-selective-werror was given. 4707if test "${enable_selective_werror+set}" = set; then : 4708 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4709else 4710 SELECTIVE_WERROR=yes 4711fi 4712 4713 4714 4715 4716 4717# -v is too short to test reliably with XORG_TESTSET_CFLAG 4718if test "x$SUNCC" = "xyes"; then 4719 BASE_CFLAGS="-v" 4720else 4721 BASE_CFLAGS="" 4722fi 4723 4724# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738xorg_testset_save_CFLAGS="$CFLAGS" 4739 4740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4745 $as_echo_n "(cached) " >&6 4746else 4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748/* end confdefs.h. */ 4749int i; 4750_ACEOF 4751if ac_fn_c_try_compile "$LINENO"; then : 4752 xorg_cv_cc_flag_unknown_warning_option=yes 4753else 4754 xorg_cv_cc_flag_unknown_warning_option=no 4755fi 4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4757fi 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4761 CFLAGS="$xorg_testset_save_CFLAGS" 4762fi 4763 4764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4767 fi 4768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4772 $as_echo_n "(cached) " >&6 4773else 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4775/* end confdefs.h. */ 4776int i; 4777_ACEOF 4778if ac_fn_c_try_compile "$LINENO"; then : 4779 xorg_cv_cc_flag_unused_command_line_argument=yes 4780else 4781 xorg_cv_cc_flag_unused_command_line_argument=no 4782fi 4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4784fi 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4788 CFLAGS="$xorg_testset_save_CFLAGS" 4789fi 4790 4791found="no" 4792 4793 if test $found = "no" ; then 4794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4796 fi 4797 4798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4800 fi 4801 4802 CFLAGS="$CFLAGS -Wall" 4803 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4805$as_echo_n "checking if $CC supports -Wall... " >&6; } 4806 cacheid=xorg_cv_cc_flag__Wall 4807 if eval \${$cacheid+:} false; then : 4808 $as_echo_n "(cached) " >&6 4809else 4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4811/* end confdefs.h. */ 4812int i; 4813int 4814main () 4815{ 4816 4817 ; 4818 return 0; 4819} 4820_ACEOF 4821if ac_fn_c_try_link "$LINENO"; then : 4822 eval $cacheid=yes 4823else 4824 eval $cacheid=no 4825fi 4826rm -f core conftest.err conftest.$ac_objext \ 4827 conftest$ac_exeext conftest.$ac_ext 4828fi 4829 4830 4831 CFLAGS="$xorg_testset_save_CFLAGS" 4832 4833 eval supported=\$$cacheid 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4835$as_echo "$supported" >&6; } 4836 if test "$supported" = "yes" ; then 4837 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4838 found="yes" 4839 fi 4840 fi 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856xorg_testset_save_CFLAGS="$CFLAGS" 4857 4858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4863 $as_echo_n "(cached) " >&6 4864else 4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4866/* end confdefs.h. */ 4867int i; 4868_ACEOF 4869if ac_fn_c_try_compile "$LINENO"; then : 4870 xorg_cv_cc_flag_unknown_warning_option=yes 4871else 4872 xorg_cv_cc_flag_unknown_warning_option=no 4873fi 4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4879 CFLAGS="$xorg_testset_save_CFLAGS" 4880fi 4881 4882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4885 fi 4886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4890 $as_echo_n "(cached) " >&6 4891else 4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4893/* end confdefs.h. */ 4894int i; 4895_ACEOF 4896if ac_fn_c_try_compile "$LINENO"; then : 4897 xorg_cv_cc_flag_unused_command_line_argument=yes 4898else 4899 xorg_cv_cc_flag_unused_command_line_argument=no 4900fi 4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4902fi 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4906 CFLAGS="$xorg_testset_save_CFLAGS" 4907fi 4908 4909found="no" 4910 4911 if test $found = "no" ; then 4912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4914 fi 4915 4916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4918 fi 4919 4920 CFLAGS="$CFLAGS -Wpointer-arith" 4921 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4923$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4924 cacheid=xorg_cv_cc_flag__Wpointer_arith 4925 if eval \${$cacheid+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927else 4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4929/* end confdefs.h. */ 4930int i; 4931int 4932main () 4933{ 4934 4935 ; 4936 return 0; 4937} 4938_ACEOF 4939if ac_fn_c_try_link "$LINENO"; then : 4940 eval $cacheid=yes 4941else 4942 eval $cacheid=no 4943fi 4944rm -f core conftest.err conftest.$ac_objext \ 4945 conftest$ac_exeext conftest.$ac_ext 4946fi 4947 4948 4949 CFLAGS="$xorg_testset_save_CFLAGS" 4950 4951 eval supported=\$$cacheid 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4953$as_echo "$supported" >&6; } 4954 if test "$supported" = "yes" ; then 4955 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4956 found="yes" 4957 fi 4958 fi 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974xorg_testset_save_CFLAGS="$CFLAGS" 4975 4976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4981 $as_echo_n "(cached) " >&6 4982else 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985int i; 4986_ACEOF 4987if ac_fn_c_try_compile "$LINENO"; then : 4988 xorg_cv_cc_flag_unknown_warning_option=yes 4989else 4990 xorg_cv_cc_flag_unknown_warning_option=no 4991fi 4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4993fi 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4997 CFLAGS="$xorg_testset_save_CFLAGS" 4998fi 4999 5000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5003 fi 5004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5008 $as_echo_n "(cached) " >&6 5009else 5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5011/* end confdefs.h. */ 5012int i; 5013_ACEOF 5014if ac_fn_c_try_compile "$LINENO"; then : 5015 xorg_cv_cc_flag_unused_command_line_argument=yes 5016else 5017 xorg_cv_cc_flag_unused_command_line_argument=no 5018fi 5019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5020fi 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5024 CFLAGS="$xorg_testset_save_CFLAGS" 5025fi 5026 5027found="no" 5028 5029 if test $found = "no" ; then 5030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5032 fi 5033 5034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5036 fi 5037 5038 CFLAGS="$CFLAGS -Wmissing-declarations" 5039 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5041$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5042 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5043 if eval \${$cacheid+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045else 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047/* end confdefs.h. */ 5048int i; 5049int 5050main () 5051{ 5052 5053 ; 5054 return 0; 5055} 5056_ACEOF 5057if ac_fn_c_try_link "$LINENO"; then : 5058 eval $cacheid=yes 5059else 5060 eval $cacheid=no 5061fi 5062rm -f core conftest.err conftest.$ac_objext \ 5063 conftest$ac_exeext conftest.$ac_ext 5064fi 5065 5066 5067 CFLAGS="$xorg_testset_save_CFLAGS" 5068 5069 eval supported=\$$cacheid 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5071$as_echo "$supported" >&6; } 5072 if test "$supported" = "yes" ; then 5073 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5074 found="yes" 5075 fi 5076 fi 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092xorg_testset_save_CFLAGS="$CFLAGS" 5093 5094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100else 5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102/* end confdefs.h. */ 5103int i; 5104_ACEOF 5105if ac_fn_c_try_compile "$LINENO"; then : 5106 xorg_cv_cc_flag_unknown_warning_option=yes 5107else 5108 xorg_cv_cc_flag_unknown_warning_option=no 5109fi 5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5111fi 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5115 CFLAGS="$xorg_testset_save_CFLAGS" 5116fi 5117 5118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5121 fi 5122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5126 $as_echo_n "(cached) " >&6 5127else 5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5129/* end confdefs.h. */ 5130int i; 5131_ACEOF 5132if ac_fn_c_try_compile "$LINENO"; then : 5133 xorg_cv_cc_flag_unused_command_line_argument=yes 5134else 5135 xorg_cv_cc_flag_unused_command_line_argument=no 5136fi 5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5138fi 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5142 CFLAGS="$xorg_testset_save_CFLAGS" 5143fi 5144 5145found="no" 5146 5147 if test $found = "no" ; then 5148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5150 fi 5151 5152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5154 fi 5155 5156 CFLAGS="$CFLAGS -Wformat=2" 5157 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5159$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5160 cacheid=xorg_cv_cc_flag__Wformat_2 5161 if eval \${$cacheid+:} false; then : 5162 $as_echo_n "(cached) " >&6 5163else 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165/* end confdefs.h. */ 5166int i; 5167int 5168main () 5169{ 5170 5171 ; 5172 return 0; 5173} 5174_ACEOF 5175if ac_fn_c_try_link "$LINENO"; then : 5176 eval $cacheid=yes 5177else 5178 eval $cacheid=no 5179fi 5180rm -f core conftest.err conftest.$ac_objext \ 5181 conftest$ac_exeext conftest.$ac_ext 5182fi 5183 5184 5185 CFLAGS="$xorg_testset_save_CFLAGS" 5186 5187 eval supported=\$$cacheid 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5189$as_echo "$supported" >&6; } 5190 if test "$supported" = "yes" ; then 5191 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5192 found="yes" 5193 fi 5194 fi 5195 5196 if test $found = "no" ; then 5197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5199 fi 5200 5201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5203 fi 5204 5205 CFLAGS="$CFLAGS -Wformat" 5206 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5208$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5209 cacheid=xorg_cv_cc_flag__Wformat 5210 if eval \${$cacheid+:} false; then : 5211 $as_echo_n "(cached) " >&6 5212else 5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5214/* end confdefs.h. */ 5215int i; 5216int 5217main () 5218{ 5219 5220 ; 5221 return 0; 5222} 5223_ACEOF 5224if ac_fn_c_try_link "$LINENO"; then : 5225 eval $cacheid=yes 5226else 5227 eval $cacheid=no 5228fi 5229rm -f core conftest.err conftest.$ac_objext \ 5230 conftest$ac_exeext conftest.$ac_ext 5231fi 5232 5233 5234 CFLAGS="$xorg_testset_save_CFLAGS" 5235 5236 eval supported=\$$cacheid 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5238$as_echo "$supported" >&6; } 5239 if test "$supported" = "yes" ; then 5240 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5241 found="yes" 5242 fi 5243 fi 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261xorg_testset_save_CFLAGS="$CFLAGS" 5262 5263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5271/* end confdefs.h. */ 5272int i; 5273_ACEOF 5274if ac_fn_c_try_compile "$LINENO"; then : 5275 xorg_cv_cc_flag_unknown_warning_option=yes 5276else 5277 xorg_cv_cc_flag_unknown_warning_option=no 5278fi 5279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5280fi 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5284 CFLAGS="$xorg_testset_save_CFLAGS" 5285fi 5286 5287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5290 fi 5291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299int i; 5300_ACEOF 5301if ac_fn_c_try_compile "$LINENO"; then : 5302 xorg_cv_cc_flag_unused_command_line_argument=yes 5303else 5304 xorg_cv_cc_flag_unused_command_line_argument=no 5305fi 5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5307fi 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5311 CFLAGS="$xorg_testset_save_CFLAGS" 5312fi 5313 5314found="no" 5315 5316 if test $found = "no" ; then 5317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5319 fi 5320 5321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5323 fi 5324 5325 CFLAGS="$CFLAGS -Wstrict-prototypes" 5326 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5328$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5329 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5330 if eval \${$cacheid+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332else 5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5334/* end confdefs.h. */ 5335int i; 5336int 5337main () 5338{ 5339 5340 ; 5341 return 0; 5342} 5343_ACEOF 5344if ac_fn_c_try_link "$LINENO"; then : 5345 eval $cacheid=yes 5346else 5347 eval $cacheid=no 5348fi 5349rm -f core conftest.err conftest.$ac_objext \ 5350 conftest$ac_exeext conftest.$ac_ext 5351fi 5352 5353 5354 CFLAGS="$xorg_testset_save_CFLAGS" 5355 5356 eval supported=\$$cacheid 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5358$as_echo "$supported" >&6; } 5359 if test "$supported" = "yes" ; then 5360 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5361 found="yes" 5362 fi 5363 fi 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379xorg_testset_save_CFLAGS="$CFLAGS" 5380 5381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5389/* end confdefs.h. */ 5390int i; 5391_ACEOF 5392if ac_fn_c_try_compile "$LINENO"; then : 5393 xorg_cv_cc_flag_unknown_warning_option=yes 5394else 5395 xorg_cv_cc_flag_unknown_warning_option=no 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5398fi 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5402 CFLAGS="$xorg_testset_save_CFLAGS" 5403fi 5404 5405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408 fi 5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5413 $as_echo_n "(cached) " >&6 5414else 5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5416/* end confdefs.h. */ 5417int i; 5418_ACEOF 5419if ac_fn_c_try_compile "$LINENO"; then : 5420 xorg_cv_cc_flag_unused_command_line_argument=yes 5421else 5422 xorg_cv_cc_flag_unused_command_line_argument=no 5423fi 5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5425fi 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5429 CFLAGS="$xorg_testset_save_CFLAGS" 5430fi 5431 5432found="no" 5433 5434 if test $found = "no" ; then 5435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5437 fi 5438 5439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5441 fi 5442 5443 CFLAGS="$CFLAGS -Wmissing-prototypes" 5444 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5446$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5447 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5448 if eval \${$cacheid+:} false; then : 5449 $as_echo_n "(cached) " >&6 5450else 5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5452/* end confdefs.h. */ 5453int i; 5454int 5455main () 5456{ 5457 5458 ; 5459 return 0; 5460} 5461_ACEOF 5462if ac_fn_c_try_link "$LINENO"; then : 5463 eval $cacheid=yes 5464else 5465 eval $cacheid=no 5466fi 5467rm -f core conftest.err conftest.$ac_objext \ 5468 conftest$ac_exeext conftest.$ac_ext 5469fi 5470 5471 5472 CFLAGS="$xorg_testset_save_CFLAGS" 5473 5474 eval supported=\$$cacheid 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5476$as_echo "$supported" >&6; } 5477 if test "$supported" = "yes" ; then 5478 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5479 found="yes" 5480 fi 5481 fi 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497xorg_testset_save_CFLAGS="$CFLAGS" 5498 5499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508int i; 5509_ACEOF 5510if ac_fn_c_try_compile "$LINENO"; then : 5511 xorg_cv_cc_flag_unknown_warning_option=yes 5512else 5513 xorg_cv_cc_flag_unknown_warning_option=no 5514fi 5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5516fi 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5520 CFLAGS="$xorg_testset_save_CFLAGS" 5521fi 5522 5523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5526 fi 5527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5531 $as_echo_n "(cached) " >&6 5532else 5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5534/* end confdefs.h. */ 5535int i; 5536_ACEOF 5537if ac_fn_c_try_compile "$LINENO"; then : 5538 xorg_cv_cc_flag_unused_command_line_argument=yes 5539else 5540 xorg_cv_cc_flag_unused_command_line_argument=no 5541fi 5542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5543fi 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5547 CFLAGS="$xorg_testset_save_CFLAGS" 5548fi 5549 5550found="no" 5551 5552 if test $found = "no" ; then 5553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 fi 5556 5557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5559 fi 5560 5561 CFLAGS="$CFLAGS -Wnested-externs" 5562 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5564$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5565 cacheid=xorg_cv_cc_flag__Wnested_externs 5566 if eval \${$cacheid+:} false; then : 5567 $as_echo_n "(cached) " >&6 5568else 5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570/* end confdefs.h. */ 5571int i; 5572int 5573main () 5574{ 5575 5576 ; 5577 return 0; 5578} 5579_ACEOF 5580if ac_fn_c_try_link "$LINENO"; then : 5581 eval $cacheid=yes 5582else 5583 eval $cacheid=no 5584fi 5585rm -f core conftest.err conftest.$ac_objext \ 5586 conftest$ac_exeext conftest.$ac_ext 5587fi 5588 5589 5590 CFLAGS="$xorg_testset_save_CFLAGS" 5591 5592 eval supported=\$$cacheid 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5594$as_echo "$supported" >&6; } 5595 if test "$supported" = "yes" ; then 5596 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5597 found="yes" 5598 fi 5599 fi 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615xorg_testset_save_CFLAGS="$CFLAGS" 5616 5617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626int i; 5627_ACEOF 5628if ac_fn_c_try_compile "$LINENO"; then : 5629 xorg_cv_cc_flag_unknown_warning_option=yes 5630else 5631 xorg_cv_cc_flag_unknown_warning_option=no 5632fi 5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5634fi 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5638 CFLAGS="$xorg_testset_save_CFLAGS" 5639fi 5640 5641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5644 fi 5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5649 $as_echo_n "(cached) " >&6 5650else 5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5652/* end confdefs.h. */ 5653int i; 5654_ACEOF 5655if ac_fn_c_try_compile "$LINENO"; then : 5656 xorg_cv_cc_flag_unused_command_line_argument=yes 5657else 5658 xorg_cv_cc_flag_unused_command_line_argument=no 5659fi 5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5661fi 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5665 CFLAGS="$xorg_testset_save_CFLAGS" 5666fi 5667 5668found="no" 5669 5670 if test $found = "no" ; then 5671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5673 fi 5674 5675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5677 fi 5678 5679 CFLAGS="$CFLAGS -Wbad-function-cast" 5680 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5682$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5683 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5684 if eval \${$cacheid+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686else 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689int i; 5690int 5691main () 5692{ 5693 5694 ; 5695 return 0; 5696} 5697_ACEOF 5698if ac_fn_c_try_link "$LINENO"; then : 5699 eval $cacheid=yes 5700else 5701 eval $cacheid=no 5702fi 5703rm -f core conftest.err conftest.$ac_objext \ 5704 conftest$ac_exeext conftest.$ac_ext 5705fi 5706 5707 5708 CFLAGS="$xorg_testset_save_CFLAGS" 5709 5710 eval supported=\$$cacheid 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5712$as_echo "$supported" >&6; } 5713 if test "$supported" = "yes" ; then 5714 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5715 found="yes" 5716 fi 5717 fi 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733xorg_testset_save_CFLAGS="$CFLAGS" 5734 5735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743/* end confdefs.h. */ 5744int i; 5745_ACEOF 5746if ac_fn_c_try_compile "$LINENO"; then : 5747 xorg_cv_cc_flag_unknown_warning_option=yes 5748else 5749 xorg_cv_cc_flag_unknown_warning_option=no 5750fi 5751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5752fi 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5756 CFLAGS="$xorg_testset_save_CFLAGS" 5757fi 5758 5759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5762 fi 5763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5770/* end confdefs.h. */ 5771int i; 5772_ACEOF 5773if ac_fn_c_try_compile "$LINENO"; then : 5774 xorg_cv_cc_flag_unused_command_line_argument=yes 5775else 5776 xorg_cv_cc_flag_unused_command_line_argument=no 5777fi 5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5779fi 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5783 CFLAGS="$xorg_testset_save_CFLAGS" 5784fi 5785 5786found="no" 5787 5788 if test $found = "no" ; then 5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5791 fi 5792 5793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5795 fi 5796 5797 CFLAGS="$CFLAGS -Wold-style-definition" 5798 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5800$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5801 cacheid=xorg_cv_cc_flag__Wold_style_definition 5802 if eval \${$cacheid+:} false; then : 5803 $as_echo_n "(cached) " >&6 5804else 5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5806/* end confdefs.h. */ 5807int i; 5808int 5809main () 5810{ 5811 5812 ; 5813 return 0; 5814} 5815_ACEOF 5816if ac_fn_c_try_link "$LINENO"; then : 5817 eval $cacheid=yes 5818else 5819 eval $cacheid=no 5820fi 5821rm -f core conftest.err conftest.$ac_objext \ 5822 conftest$ac_exeext conftest.$ac_ext 5823fi 5824 5825 5826 CFLAGS="$xorg_testset_save_CFLAGS" 5827 5828 eval supported=\$$cacheid 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5830$as_echo "$supported" >&6; } 5831 if test "$supported" = "yes" ; then 5832 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5833 found="yes" 5834 fi 5835 fi 5836 5837 if test $found = "no" ; then 5838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5840 fi 5841 5842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5844 fi 5845 5846 CFLAGS="$CFLAGS -fd" 5847 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5849$as_echo_n "checking if $CC supports -fd... " >&6; } 5850 cacheid=xorg_cv_cc_flag__fd 5851 if eval \${$cacheid+:} false; then : 5852 $as_echo_n "(cached) " >&6 5853else 5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5855/* end confdefs.h. */ 5856int i; 5857int 5858main () 5859{ 5860 5861 ; 5862 return 0; 5863} 5864_ACEOF 5865if ac_fn_c_try_link "$LINENO"; then : 5866 eval $cacheid=yes 5867else 5868 eval $cacheid=no 5869fi 5870rm -f core conftest.err conftest.$ac_objext \ 5871 conftest$ac_exeext conftest.$ac_ext 5872fi 5873 5874 5875 CFLAGS="$xorg_testset_save_CFLAGS" 5876 5877 eval supported=\$$cacheid 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5879$as_echo "$supported" >&6; } 5880 if test "$supported" = "yes" ; then 5881 BASE_CFLAGS="$BASE_CFLAGS -fd" 5882 found="yes" 5883 fi 5884 fi 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900xorg_testset_save_CFLAGS="$CFLAGS" 5901 5902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5907 $as_echo_n "(cached) " >&6 5908else 5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5910/* end confdefs.h. */ 5911int i; 5912_ACEOF 5913if ac_fn_c_try_compile "$LINENO"; then : 5914 xorg_cv_cc_flag_unknown_warning_option=yes 5915else 5916 xorg_cv_cc_flag_unknown_warning_option=no 5917fi 5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5919fi 5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5923 CFLAGS="$xorg_testset_save_CFLAGS" 5924fi 5925 5926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5929 fi 5930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5937/* end confdefs.h. */ 5938int i; 5939_ACEOF 5940if ac_fn_c_try_compile "$LINENO"; then : 5941 xorg_cv_cc_flag_unused_command_line_argument=yes 5942else 5943 xorg_cv_cc_flag_unused_command_line_argument=no 5944fi 5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5946fi 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5950 CFLAGS="$xorg_testset_save_CFLAGS" 5951fi 5952 5953found="no" 5954 5955 if test $found = "no" ; then 5956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5958 fi 5959 5960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5962 fi 5963 5964 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5965 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5967$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5968 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5969 if eval \${$cacheid+:} false; then : 5970 $as_echo_n "(cached) " >&6 5971else 5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5973/* end confdefs.h. */ 5974int i; 5975int 5976main () 5977{ 5978 5979 ; 5980 return 0; 5981} 5982_ACEOF 5983if ac_fn_c_try_link "$LINENO"; then : 5984 eval $cacheid=yes 5985else 5986 eval $cacheid=no 5987fi 5988rm -f core conftest.err conftest.$ac_objext \ 5989 conftest$ac_exeext conftest.$ac_ext 5990fi 5991 5992 5993 CFLAGS="$xorg_testset_save_CFLAGS" 5994 5995 eval supported=\$$cacheid 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5997$as_echo "$supported" >&6; } 5998 if test "$supported" = "yes" ; then 5999 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6000 found="yes" 6001 fi 6002 fi 6003 6004 6005 6006 6007 6008# This chunk adds additional warnings that could catch undesired effects. 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022xorg_testset_save_CFLAGS="$CFLAGS" 6023 6024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6029 $as_echo_n "(cached) " >&6 6030else 6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6032/* end confdefs.h. */ 6033int i; 6034_ACEOF 6035if ac_fn_c_try_compile "$LINENO"; then : 6036 xorg_cv_cc_flag_unknown_warning_option=yes 6037else 6038 xorg_cv_cc_flag_unknown_warning_option=no 6039fi 6040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6041fi 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6045 CFLAGS="$xorg_testset_save_CFLAGS" 6046fi 6047 6048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6051 fi 6052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6056 $as_echo_n "(cached) " >&6 6057else 6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6059/* end confdefs.h. */ 6060int i; 6061_ACEOF 6062if ac_fn_c_try_compile "$LINENO"; then : 6063 xorg_cv_cc_flag_unused_command_line_argument=yes 6064else 6065 xorg_cv_cc_flag_unused_command_line_argument=no 6066fi 6067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6068fi 6069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6072 CFLAGS="$xorg_testset_save_CFLAGS" 6073fi 6074 6075found="no" 6076 6077 if test $found = "no" ; then 6078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 fi 6081 6082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6084 fi 6085 6086 CFLAGS="$CFLAGS -Wunused" 6087 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6089$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6090 cacheid=xorg_cv_cc_flag__Wunused 6091 if eval \${$cacheid+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096int i; 6097int 6098main () 6099{ 6100 6101 ; 6102 return 0; 6103} 6104_ACEOF 6105if ac_fn_c_try_link "$LINENO"; then : 6106 eval $cacheid=yes 6107else 6108 eval $cacheid=no 6109fi 6110rm -f core conftest.err conftest.$ac_objext \ 6111 conftest$ac_exeext conftest.$ac_ext 6112fi 6113 6114 6115 CFLAGS="$xorg_testset_save_CFLAGS" 6116 6117 eval supported=\$$cacheid 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6119$as_echo "$supported" >&6; } 6120 if test "$supported" = "yes" ; then 6121 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6122 found="yes" 6123 fi 6124 fi 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140xorg_testset_save_CFLAGS="$CFLAGS" 6141 6142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6147 $as_echo_n "(cached) " >&6 6148else 6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6150/* end confdefs.h. */ 6151int i; 6152_ACEOF 6153if ac_fn_c_try_compile "$LINENO"; then : 6154 xorg_cv_cc_flag_unknown_warning_option=yes 6155else 6156 xorg_cv_cc_flag_unknown_warning_option=no 6157fi 6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6159fi 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6163 CFLAGS="$xorg_testset_save_CFLAGS" 6164fi 6165 6166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6169 fi 6170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6174 $as_echo_n "(cached) " >&6 6175else 6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6177/* end confdefs.h. */ 6178int i; 6179_ACEOF 6180if ac_fn_c_try_compile "$LINENO"; then : 6181 xorg_cv_cc_flag_unused_command_line_argument=yes 6182else 6183 xorg_cv_cc_flag_unused_command_line_argument=no 6184fi 6185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6186fi 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6190 CFLAGS="$xorg_testset_save_CFLAGS" 6191fi 6192 6193found="no" 6194 6195 if test $found = "no" ; then 6196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6198 fi 6199 6200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6202 fi 6203 6204 CFLAGS="$CFLAGS -Wuninitialized" 6205 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6207$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6208 cacheid=xorg_cv_cc_flag__Wuninitialized 6209 if eval \${$cacheid+:} false; then : 6210 $as_echo_n "(cached) " >&6 6211else 6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213/* end confdefs.h. */ 6214int i; 6215int 6216main () 6217{ 6218 6219 ; 6220 return 0; 6221} 6222_ACEOF 6223if ac_fn_c_try_link "$LINENO"; then : 6224 eval $cacheid=yes 6225else 6226 eval $cacheid=no 6227fi 6228rm -f core conftest.err conftest.$ac_objext \ 6229 conftest$ac_exeext conftest.$ac_ext 6230fi 6231 6232 6233 CFLAGS="$xorg_testset_save_CFLAGS" 6234 6235 eval supported=\$$cacheid 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6237$as_echo "$supported" >&6; } 6238 if test "$supported" = "yes" ; then 6239 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6240 found="yes" 6241 fi 6242 fi 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258xorg_testset_save_CFLAGS="$CFLAGS" 6259 6260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6265 $as_echo_n "(cached) " >&6 6266else 6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6268/* end confdefs.h. */ 6269int i; 6270_ACEOF 6271if ac_fn_c_try_compile "$LINENO"; then : 6272 xorg_cv_cc_flag_unknown_warning_option=yes 6273else 6274 xorg_cv_cc_flag_unknown_warning_option=no 6275fi 6276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6277fi 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6281 CFLAGS="$xorg_testset_save_CFLAGS" 6282fi 6283 6284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6287 fi 6288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6295/* end confdefs.h. */ 6296int i; 6297_ACEOF 6298if ac_fn_c_try_compile "$LINENO"; then : 6299 xorg_cv_cc_flag_unused_command_line_argument=yes 6300else 6301 xorg_cv_cc_flag_unused_command_line_argument=no 6302fi 6303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6304fi 6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6308 CFLAGS="$xorg_testset_save_CFLAGS" 6309fi 6310 6311found="no" 6312 6313 if test $found = "no" ; then 6314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6316 fi 6317 6318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6320 fi 6321 6322 CFLAGS="$CFLAGS -Wshadow" 6323 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6325$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6326 cacheid=xorg_cv_cc_flag__Wshadow 6327 if eval \${$cacheid+:} false; then : 6328 $as_echo_n "(cached) " >&6 6329else 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332int i; 6333int 6334main () 6335{ 6336 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341if ac_fn_c_try_link "$LINENO"; then : 6342 eval $cacheid=yes 6343else 6344 eval $cacheid=no 6345fi 6346rm -f core conftest.err conftest.$ac_objext \ 6347 conftest$ac_exeext conftest.$ac_ext 6348fi 6349 6350 6351 CFLAGS="$xorg_testset_save_CFLAGS" 6352 6353 eval supported=\$$cacheid 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6355$as_echo "$supported" >&6; } 6356 if test "$supported" = "yes" ; then 6357 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6358 found="yes" 6359 fi 6360 fi 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376xorg_testset_save_CFLAGS="$CFLAGS" 6377 6378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386/* end confdefs.h. */ 6387int i; 6388_ACEOF 6389if ac_fn_c_try_compile "$LINENO"; then : 6390 xorg_cv_cc_flag_unknown_warning_option=yes 6391else 6392 xorg_cv_cc_flag_unknown_warning_option=no 6393fi 6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6395fi 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6399 CFLAGS="$xorg_testset_save_CFLAGS" 6400fi 6401 6402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6405 fi 6406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414int i; 6415_ACEOF 6416if ac_fn_c_try_compile "$LINENO"; then : 6417 xorg_cv_cc_flag_unused_command_line_argument=yes 6418else 6419 xorg_cv_cc_flag_unused_command_line_argument=no 6420fi 6421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6422fi 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6426 CFLAGS="$xorg_testset_save_CFLAGS" 6427fi 6428 6429found="no" 6430 6431 if test $found = "no" ; then 6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6434 fi 6435 6436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6438 fi 6439 6440 CFLAGS="$CFLAGS -Wmissing-noreturn" 6441 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6443$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6444 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6445 if eval \${$cacheid+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450int i; 6451int 6452main () 6453{ 6454 6455 ; 6456 return 0; 6457} 6458_ACEOF 6459if ac_fn_c_try_link "$LINENO"; then : 6460 eval $cacheid=yes 6461else 6462 eval $cacheid=no 6463fi 6464rm -f core conftest.err conftest.$ac_objext \ 6465 conftest$ac_exeext conftest.$ac_ext 6466fi 6467 6468 6469 CFLAGS="$xorg_testset_save_CFLAGS" 6470 6471 eval supported=\$$cacheid 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6473$as_echo "$supported" >&6; } 6474 if test "$supported" = "yes" ; then 6475 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6476 found="yes" 6477 fi 6478 fi 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494xorg_testset_save_CFLAGS="$CFLAGS" 6495 6496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6501 $as_echo_n "(cached) " >&6 6502else 6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505int i; 6506_ACEOF 6507if ac_fn_c_try_compile "$LINENO"; then : 6508 xorg_cv_cc_flag_unknown_warning_option=yes 6509else 6510 xorg_cv_cc_flag_unknown_warning_option=no 6511fi 6512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6513fi 6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6517 CFLAGS="$xorg_testset_save_CFLAGS" 6518fi 6519 6520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6523 fi 6524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6528 $as_echo_n "(cached) " >&6 6529else 6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6531/* end confdefs.h. */ 6532int i; 6533_ACEOF 6534if ac_fn_c_try_compile "$LINENO"; then : 6535 xorg_cv_cc_flag_unused_command_line_argument=yes 6536else 6537 xorg_cv_cc_flag_unused_command_line_argument=no 6538fi 6539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6540fi 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6544 CFLAGS="$xorg_testset_save_CFLAGS" 6545fi 6546 6547found="no" 6548 6549 if test $found = "no" ; then 6550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6552 fi 6553 6554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6556 fi 6557 6558 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6559 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6561$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6562 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6563 if eval \${$cacheid+:} false; then : 6564 $as_echo_n "(cached) " >&6 6565else 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567/* end confdefs.h. */ 6568int i; 6569int 6570main () 6571{ 6572 6573 ; 6574 return 0; 6575} 6576_ACEOF 6577if ac_fn_c_try_link "$LINENO"; then : 6578 eval $cacheid=yes 6579else 6580 eval $cacheid=no 6581fi 6582rm -f core conftest.err conftest.$ac_objext \ 6583 conftest$ac_exeext conftest.$ac_ext 6584fi 6585 6586 6587 CFLAGS="$xorg_testset_save_CFLAGS" 6588 6589 eval supported=\$$cacheid 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6591$as_echo "$supported" >&6; } 6592 if test "$supported" = "yes" ; then 6593 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6594 found="yes" 6595 fi 6596 fi 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612xorg_testset_save_CFLAGS="$CFLAGS" 6613 6614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6619 $as_echo_n "(cached) " >&6 6620else 6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622/* end confdefs.h. */ 6623int i; 6624_ACEOF 6625if ac_fn_c_try_compile "$LINENO"; then : 6626 xorg_cv_cc_flag_unknown_warning_option=yes 6627else 6628 xorg_cv_cc_flag_unknown_warning_option=no 6629fi 6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6631fi 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6635 CFLAGS="$xorg_testset_save_CFLAGS" 6636fi 6637 6638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6641 fi 6642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6646 $as_echo_n "(cached) " >&6 6647else 6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6649/* end confdefs.h. */ 6650int i; 6651_ACEOF 6652if ac_fn_c_try_compile "$LINENO"; then : 6653 xorg_cv_cc_flag_unused_command_line_argument=yes 6654else 6655 xorg_cv_cc_flag_unused_command_line_argument=no 6656fi 6657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6658fi 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6662 CFLAGS="$xorg_testset_save_CFLAGS" 6663fi 6664 6665found="no" 6666 6667 if test $found = "no" ; then 6668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6670 fi 6671 6672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6674 fi 6675 6676 CFLAGS="$CFLAGS -Wredundant-decls" 6677 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6679$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6680 cacheid=xorg_cv_cc_flag__Wredundant_decls 6681 if eval \${$cacheid+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685/* end confdefs.h. */ 6686int i; 6687int 6688main () 6689{ 6690 6691 ; 6692 return 0; 6693} 6694_ACEOF 6695if ac_fn_c_try_link "$LINENO"; then : 6696 eval $cacheid=yes 6697else 6698 eval $cacheid=no 6699fi 6700rm -f core conftest.err conftest.$ac_objext \ 6701 conftest$ac_exeext conftest.$ac_ext 6702fi 6703 6704 6705 CFLAGS="$xorg_testset_save_CFLAGS" 6706 6707 eval supported=\$$cacheid 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6709$as_echo "$supported" >&6; } 6710 if test "$supported" = "yes" ; then 6711 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6712 found="yes" 6713 fi 6714 fi 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730xorg_testset_save_CFLAGS="$CFLAGS" 6731 6732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6740/* end confdefs.h. */ 6741int i; 6742_ACEOF 6743if ac_fn_c_try_compile "$LINENO"; then : 6744 xorg_cv_cc_flag_unknown_warning_option=yes 6745else 6746 xorg_cv_cc_flag_unknown_warning_option=no 6747fi 6748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6749fi 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6753 CFLAGS="$xorg_testset_save_CFLAGS" 6754fi 6755 6756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6759 fi 6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767/* end confdefs.h. */ 6768int i; 6769_ACEOF 6770if ac_fn_c_try_compile "$LINENO"; then : 6771 xorg_cv_cc_flag_unused_command_line_argument=yes 6772else 6773 xorg_cv_cc_flag_unused_command_line_argument=no 6774fi 6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6776fi 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6780 CFLAGS="$xorg_testset_save_CFLAGS" 6781fi 6782 6783found="no" 6784 6785 if test $found = "no" ; then 6786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6788 fi 6789 6790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6792 fi 6793 6794 CFLAGS="$CFLAGS -Wlogical-op" 6795 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6797$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6798 cacheid=xorg_cv_cc_flag__Wlogical_op 6799 if eval \${$cacheid+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804int i; 6805int 6806main () 6807{ 6808 6809 ; 6810 return 0; 6811} 6812_ACEOF 6813if ac_fn_c_try_link "$LINENO"; then : 6814 eval $cacheid=yes 6815else 6816 eval $cacheid=no 6817fi 6818rm -f core conftest.err conftest.$ac_objext \ 6819 conftest$ac_exeext conftest.$ac_ext 6820fi 6821 6822 6823 CFLAGS="$xorg_testset_save_CFLAGS" 6824 6825 eval supported=\$$cacheid 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6827$as_echo "$supported" >&6; } 6828 if test "$supported" = "yes" ; then 6829 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6830 found="yes" 6831 fi 6832 fi 6833 6834 6835 6836# These are currently disabled because they are noisy. They will be enabled 6837# in the future once the codebase is sufficiently modernized to silence 6838# them. For now, I don't want them to drown out the other warnings. 6839# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6840# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6841# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6842 6843# Turn some warnings into errors, so we don't accidently get successful builds 6844# when there are problems that should be fixed. 6845 6846if test "x$SELECTIVE_WERROR" = "xyes" ; then 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860xorg_testset_save_CFLAGS="$CFLAGS" 6861 6862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6867 $as_echo_n "(cached) " >&6 6868else 6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6870/* end confdefs.h. */ 6871int i; 6872_ACEOF 6873if ac_fn_c_try_compile "$LINENO"; then : 6874 xorg_cv_cc_flag_unknown_warning_option=yes 6875else 6876 xorg_cv_cc_flag_unknown_warning_option=no 6877fi 6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6879fi 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6883 CFLAGS="$xorg_testset_save_CFLAGS" 6884fi 6885 6886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6889 fi 6890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895else 6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897/* end confdefs.h. */ 6898int i; 6899_ACEOF 6900if ac_fn_c_try_compile "$LINENO"; then : 6901 xorg_cv_cc_flag_unused_command_line_argument=yes 6902else 6903 xorg_cv_cc_flag_unused_command_line_argument=no 6904fi 6905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6906fi 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6910 CFLAGS="$xorg_testset_save_CFLAGS" 6911fi 6912 6913found="no" 6914 6915 if test $found = "no" ; then 6916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6918 fi 6919 6920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6922 fi 6923 6924 CFLAGS="$CFLAGS -Werror=implicit" 6925 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6927$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6928 cacheid=xorg_cv_cc_flag__Werror_implicit 6929 if eval \${$cacheid+:} false; then : 6930 $as_echo_n "(cached) " >&6 6931else 6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934int i; 6935int 6936main () 6937{ 6938 6939 ; 6940 return 0; 6941} 6942_ACEOF 6943if ac_fn_c_try_link "$LINENO"; then : 6944 eval $cacheid=yes 6945else 6946 eval $cacheid=no 6947fi 6948rm -f core conftest.err conftest.$ac_objext \ 6949 conftest$ac_exeext conftest.$ac_ext 6950fi 6951 6952 6953 CFLAGS="$xorg_testset_save_CFLAGS" 6954 6955 eval supported=\$$cacheid 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6957$as_echo "$supported" >&6; } 6958 if test "$supported" = "yes" ; then 6959 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6960 found="yes" 6961 fi 6962 fi 6963 6964 if test $found = "no" ; then 6965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6967 fi 6968 6969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6971 fi 6972 6973 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6974 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6976$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6977 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6978 if eval \${$cacheid+:} false; then : 6979 $as_echo_n "(cached) " >&6 6980else 6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982/* end confdefs.h. */ 6983int i; 6984int 6985main () 6986{ 6987 6988 ; 6989 return 0; 6990} 6991_ACEOF 6992if ac_fn_c_try_link "$LINENO"; then : 6993 eval $cacheid=yes 6994else 6995 eval $cacheid=no 6996fi 6997rm -f core conftest.err conftest.$ac_objext \ 6998 conftest$ac_exeext conftest.$ac_ext 6999fi 7000 7001 7002 CFLAGS="$xorg_testset_save_CFLAGS" 7003 7004 eval supported=\$$cacheid 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7006$as_echo "$supported" >&6; } 7007 if test "$supported" = "yes" ; then 7008 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7009 found="yes" 7010 fi 7011 fi 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027xorg_testset_save_CFLAGS="$CFLAGS" 7028 7029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7037/* end confdefs.h. */ 7038int i; 7039_ACEOF 7040if ac_fn_c_try_compile "$LINENO"; then : 7041 xorg_cv_cc_flag_unknown_warning_option=yes 7042else 7043 xorg_cv_cc_flag_unknown_warning_option=no 7044fi 7045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7046fi 7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7050 CFLAGS="$xorg_testset_save_CFLAGS" 7051fi 7052 7053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7056 fi 7057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062else 7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7064/* end confdefs.h. */ 7065int i; 7066_ACEOF 7067if ac_fn_c_try_compile "$LINENO"; then : 7068 xorg_cv_cc_flag_unused_command_line_argument=yes 7069else 7070 xorg_cv_cc_flag_unused_command_line_argument=no 7071fi 7072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7073fi 7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7077 CFLAGS="$xorg_testset_save_CFLAGS" 7078fi 7079 7080found="no" 7081 7082 if test $found = "no" ; then 7083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7085 fi 7086 7087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7089 fi 7090 7091 CFLAGS="$CFLAGS -Werror=nonnull" 7092 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7094$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7095 cacheid=xorg_cv_cc_flag__Werror_nonnull 7096 if eval \${$cacheid+:} false; then : 7097 $as_echo_n "(cached) " >&6 7098else 7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7100/* end confdefs.h. */ 7101int i; 7102int 7103main () 7104{ 7105 7106 ; 7107 return 0; 7108} 7109_ACEOF 7110if ac_fn_c_try_link "$LINENO"; then : 7111 eval $cacheid=yes 7112else 7113 eval $cacheid=no 7114fi 7115rm -f core conftest.err conftest.$ac_objext \ 7116 conftest$ac_exeext conftest.$ac_ext 7117fi 7118 7119 7120 CFLAGS="$xorg_testset_save_CFLAGS" 7121 7122 eval supported=\$$cacheid 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7124$as_echo "$supported" >&6; } 7125 if test "$supported" = "yes" ; then 7126 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7127 found="yes" 7128 fi 7129 fi 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145xorg_testset_save_CFLAGS="$CFLAGS" 7146 7147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7155/* end confdefs.h. */ 7156int i; 7157_ACEOF 7158if ac_fn_c_try_compile "$LINENO"; then : 7159 xorg_cv_cc_flag_unknown_warning_option=yes 7160else 7161 xorg_cv_cc_flag_unknown_warning_option=no 7162fi 7163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7164fi 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7168 CFLAGS="$xorg_testset_save_CFLAGS" 7169fi 7170 7171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7174 fi 7175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7179 $as_echo_n "(cached) " >&6 7180else 7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7182/* end confdefs.h. */ 7183int i; 7184_ACEOF 7185if ac_fn_c_try_compile "$LINENO"; then : 7186 xorg_cv_cc_flag_unused_command_line_argument=yes 7187else 7188 xorg_cv_cc_flag_unused_command_line_argument=no 7189fi 7190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7191fi 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7195 CFLAGS="$xorg_testset_save_CFLAGS" 7196fi 7197 7198found="no" 7199 7200 if test $found = "no" ; then 7201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7203 fi 7204 7205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7207 fi 7208 7209 CFLAGS="$CFLAGS -Werror=init-self" 7210 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7212$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7213 cacheid=xorg_cv_cc_flag__Werror_init_self 7214 if eval \${$cacheid+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219int i; 7220int 7221main () 7222{ 7223 7224 ; 7225 return 0; 7226} 7227_ACEOF 7228if ac_fn_c_try_link "$LINENO"; then : 7229 eval $cacheid=yes 7230else 7231 eval $cacheid=no 7232fi 7233rm -f core conftest.err conftest.$ac_objext \ 7234 conftest$ac_exeext conftest.$ac_ext 7235fi 7236 7237 7238 CFLAGS="$xorg_testset_save_CFLAGS" 7239 7240 eval supported=\$$cacheid 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7242$as_echo "$supported" >&6; } 7243 if test "$supported" = "yes" ; then 7244 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7245 found="yes" 7246 fi 7247 fi 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263xorg_testset_save_CFLAGS="$CFLAGS" 7264 7265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7270 $as_echo_n "(cached) " >&6 7271else 7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273/* end confdefs.h. */ 7274int i; 7275_ACEOF 7276if ac_fn_c_try_compile "$LINENO"; then : 7277 xorg_cv_cc_flag_unknown_warning_option=yes 7278else 7279 xorg_cv_cc_flag_unknown_warning_option=no 7280fi 7281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7282fi 7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287fi 7288 7289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7292 fi 7293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7297 $as_echo_n "(cached) " >&6 7298else 7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7300/* end confdefs.h. */ 7301int i; 7302_ACEOF 7303if ac_fn_c_try_compile "$LINENO"; then : 7304 xorg_cv_cc_flag_unused_command_line_argument=yes 7305else 7306 xorg_cv_cc_flag_unused_command_line_argument=no 7307fi 7308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7309fi 7310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7313 CFLAGS="$xorg_testset_save_CFLAGS" 7314fi 7315 7316found="no" 7317 7318 if test $found = "no" ; then 7319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7321 fi 7322 7323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7325 fi 7326 7327 CFLAGS="$CFLAGS -Werror=main" 7328 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7330$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7331 cacheid=xorg_cv_cc_flag__Werror_main 7332 if eval \${$cacheid+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334else 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336/* end confdefs.h. */ 7337int i; 7338int 7339main () 7340{ 7341 7342 ; 7343 return 0; 7344} 7345_ACEOF 7346if ac_fn_c_try_link "$LINENO"; then : 7347 eval $cacheid=yes 7348else 7349 eval $cacheid=no 7350fi 7351rm -f core conftest.err conftest.$ac_objext \ 7352 conftest$ac_exeext conftest.$ac_ext 7353fi 7354 7355 7356 CFLAGS="$xorg_testset_save_CFLAGS" 7357 7358 eval supported=\$$cacheid 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7360$as_echo "$supported" >&6; } 7361 if test "$supported" = "yes" ; then 7362 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7363 found="yes" 7364 fi 7365 fi 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381xorg_testset_save_CFLAGS="$CFLAGS" 7382 7383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7386$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7387if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7388 $as_echo_n "(cached) " >&6 7389else 7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7391/* end confdefs.h. */ 7392int i; 7393_ACEOF 7394if ac_fn_c_try_compile "$LINENO"; then : 7395 xorg_cv_cc_flag_unknown_warning_option=yes 7396else 7397 xorg_cv_cc_flag_unknown_warning_option=no 7398fi 7399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7400fi 7401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7402$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7404 CFLAGS="$xorg_testset_save_CFLAGS" 7405fi 7406 7407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7410 fi 7411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7413$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7414if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7415 $as_echo_n "(cached) " >&6 7416else 7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7418/* end confdefs.h. */ 7419int i; 7420_ACEOF 7421if ac_fn_c_try_compile "$LINENO"; then : 7422 xorg_cv_cc_flag_unused_command_line_argument=yes 7423else 7424 xorg_cv_cc_flag_unused_command_line_argument=no 7425fi 7426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7427fi 7428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7429$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7431 CFLAGS="$xorg_testset_save_CFLAGS" 7432fi 7433 7434found="no" 7435 7436 if test $found = "no" ; then 7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 fi 7440 7441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7443 fi 7444 7445 CFLAGS="$CFLAGS -Werror=missing-braces" 7446 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7448$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7449 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7450 if eval \${$cacheid+:} false; then : 7451 $as_echo_n "(cached) " >&6 7452else 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455int i; 7456int 7457main () 7458{ 7459 7460 ; 7461 return 0; 7462} 7463_ACEOF 7464if ac_fn_c_try_link "$LINENO"; then : 7465 eval $cacheid=yes 7466else 7467 eval $cacheid=no 7468fi 7469rm -f core conftest.err conftest.$ac_objext \ 7470 conftest$ac_exeext conftest.$ac_ext 7471fi 7472 7473 7474 CFLAGS="$xorg_testset_save_CFLAGS" 7475 7476 eval supported=\$$cacheid 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7478$as_echo "$supported" >&6; } 7479 if test "$supported" = "yes" ; then 7480 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7481 found="yes" 7482 fi 7483 fi 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499xorg_testset_save_CFLAGS="$CFLAGS" 7500 7501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7506 $as_echo_n "(cached) " >&6 7507else 7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7509/* end confdefs.h. */ 7510int i; 7511_ACEOF 7512if ac_fn_c_try_compile "$LINENO"; then : 7513 xorg_cv_cc_flag_unknown_warning_option=yes 7514else 7515 xorg_cv_cc_flag_unknown_warning_option=no 7516fi 7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7518fi 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7522 CFLAGS="$xorg_testset_save_CFLAGS" 7523fi 7524 7525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7528 fi 7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7533 $as_echo_n "(cached) " >&6 7534else 7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7536/* end confdefs.h. */ 7537int i; 7538_ACEOF 7539if ac_fn_c_try_compile "$LINENO"; then : 7540 xorg_cv_cc_flag_unused_command_line_argument=yes 7541else 7542 xorg_cv_cc_flag_unused_command_line_argument=no 7543fi 7544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7545fi 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7549 CFLAGS="$xorg_testset_save_CFLAGS" 7550fi 7551 7552found="no" 7553 7554 if test $found = "no" ; then 7555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7557 fi 7558 7559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7561 fi 7562 7563 CFLAGS="$CFLAGS -Werror=sequence-point" 7564 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7566$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7567 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7568 if eval \${$cacheid+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573int i; 7574int 7575main () 7576{ 7577 7578 ; 7579 return 0; 7580} 7581_ACEOF 7582if ac_fn_c_try_link "$LINENO"; then : 7583 eval $cacheid=yes 7584else 7585 eval $cacheid=no 7586fi 7587rm -f core conftest.err conftest.$ac_objext \ 7588 conftest$ac_exeext conftest.$ac_ext 7589fi 7590 7591 7592 CFLAGS="$xorg_testset_save_CFLAGS" 7593 7594 eval supported=\$$cacheid 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7596$as_echo "$supported" >&6; } 7597 if test "$supported" = "yes" ; then 7598 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7599 found="yes" 7600 fi 7601 fi 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617xorg_testset_save_CFLAGS="$CFLAGS" 7618 7619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7624 $as_echo_n "(cached) " >&6 7625else 7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7627/* end confdefs.h. */ 7628int i; 7629_ACEOF 7630if ac_fn_c_try_compile "$LINENO"; then : 7631 xorg_cv_cc_flag_unknown_warning_option=yes 7632else 7633 xorg_cv_cc_flag_unknown_warning_option=no 7634fi 7635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7636fi 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7640 CFLAGS="$xorg_testset_save_CFLAGS" 7641fi 7642 7643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7646 fi 7647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654/* end confdefs.h. */ 7655int i; 7656_ACEOF 7657if ac_fn_c_try_compile "$LINENO"; then : 7658 xorg_cv_cc_flag_unused_command_line_argument=yes 7659else 7660 xorg_cv_cc_flag_unused_command_line_argument=no 7661fi 7662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7663fi 7664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7667 CFLAGS="$xorg_testset_save_CFLAGS" 7668fi 7669 7670found="no" 7671 7672 if test $found = "no" ; then 7673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7675 fi 7676 7677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7679 fi 7680 7681 CFLAGS="$CFLAGS -Werror=return-type" 7682 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7684$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7685 cacheid=xorg_cv_cc_flag__Werror_return_type 7686 if eval \${$cacheid+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688else 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690/* end confdefs.h. */ 7691int i; 7692int 7693main () 7694{ 7695 7696 ; 7697 return 0; 7698} 7699_ACEOF 7700if ac_fn_c_try_link "$LINENO"; then : 7701 eval $cacheid=yes 7702else 7703 eval $cacheid=no 7704fi 7705rm -f core conftest.err conftest.$ac_objext \ 7706 conftest$ac_exeext conftest.$ac_ext 7707fi 7708 7709 7710 CFLAGS="$xorg_testset_save_CFLAGS" 7711 7712 eval supported=\$$cacheid 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7714$as_echo "$supported" >&6; } 7715 if test "$supported" = "yes" ; then 7716 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7717 found="yes" 7718 fi 7719 fi 7720 7721 if test $found = "no" ; then 7722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7724 fi 7725 7726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7728 fi 7729 7730 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7731 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7733$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7734 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7735 if eval \${$cacheid+:} false; then : 7736 $as_echo_n "(cached) " >&6 7737else 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740int i; 7741int 7742main () 7743{ 7744 7745 ; 7746 return 0; 7747} 7748_ACEOF 7749if ac_fn_c_try_link "$LINENO"; then : 7750 eval $cacheid=yes 7751else 7752 eval $cacheid=no 7753fi 7754rm -f core conftest.err conftest.$ac_objext \ 7755 conftest$ac_exeext conftest.$ac_ext 7756fi 7757 7758 7759 CFLAGS="$xorg_testset_save_CFLAGS" 7760 7761 eval supported=\$$cacheid 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7763$as_echo "$supported" >&6; } 7764 if test "$supported" = "yes" ; then 7765 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7766 found="yes" 7767 fi 7768 fi 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784xorg_testset_save_CFLAGS="$CFLAGS" 7785 7786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7791 $as_echo_n "(cached) " >&6 7792else 7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7794/* end confdefs.h. */ 7795int i; 7796_ACEOF 7797if ac_fn_c_try_compile "$LINENO"; then : 7798 xorg_cv_cc_flag_unknown_warning_option=yes 7799else 7800 xorg_cv_cc_flag_unknown_warning_option=no 7801fi 7802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7803fi 7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7807 CFLAGS="$xorg_testset_save_CFLAGS" 7808fi 7809 7810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7813 fi 7814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7818 $as_echo_n "(cached) " >&6 7819else 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7821/* end confdefs.h. */ 7822int i; 7823_ACEOF 7824if ac_fn_c_try_compile "$LINENO"; then : 7825 xorg_cv_cc_flag_unused_command_line_argument=yes 7826else 7827 xorg_cv_cc_flag_unused_command_line_argument=no 7828fi 7829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7830fi 7831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7834 CFLAGS="$xorg_testset_save_CFLAGS" 7835fi 7836 7837found="no" 7838 7839 if test $found = "no" ; then 7840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7842 fi 7843 7844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7846 fi 7847 7848 CFLAGS="$CFLAGS -Werror=trigraphs" 7849 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7851$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7852 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7853 if eval \${$cacheid+:} false; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858int i; 7859int 7860main () 7861{ 7862 7863 ; 7864 return 0; 7865} 7866_ACEOF 7867if ac_fn_c_try_link "$LINENO"; then : 7868 eval $cacheid=yes 7869else 7870 eval $cacheid=no 7871fi 7872rm -f core conftest.err conftest.$ac_objext \ 7873 conftest$ac_exeext conftest.$ac_ext 7874fi 7875 7876 7877 CFLAGS="$xorg_testset_save_CFLAGS" 7878 7879 eval supported=\$$cacheid 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7881$as_echo "$supported" >&6; } 7882 if test "$supported" = "yes" ; then 7883 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7884 found="yes" 7885 fi 7886 fi 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902xorg_testset_save_CFLAGS="$CFLAGS" 7903 7904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7909 $as_echo_n "(cached) " >&6 7910else 7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7912/* end confdefs.h. */ 7913int i; 7914_ACEOF 7915if ac_fn_c_try_compile "$LINENO"; then : 7916 xorg_cv_cc_flag_unknown_warning_option=yes 7917else 7918 xorg_cv_cc_flag_unknown_warning_option=no 7919fi 7920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7921fi 7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7925 CFLAGS="$xorg_testset_save_CFLAGS" 7926fi 7927 7928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7931 fi 7932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7936 $as_echo_n "(cached) " >&6 7937else 7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7939/* end confdefs.h. */ 7940int i; 7941_ACEOF 7942if ac_fn_c_try_compile "$LINENO"; then : 7943 xorg_cv_cc_flag_unused_command_line_argument=yes 7944else 7945 xorg_cv_cc_flag_unused_command_line_argument=no 7946fi 7947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7948fi 7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7952 CFLAGS="$xorg_testset_save_CFLAGS" 7953fi 7954 7955found="no" 7956 7957 if test $found = "no" ; then 7958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7960 fi 7961 7962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7964 fi 7965 7966 CFLAGS="$CFLAGS -Werror=array-bounds" 7967 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7969$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7970 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7971 if eval \${$cacheid+:} false; then : 7972 $as_echo_n "(cached) " >&6 7973else 7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7975/* end confdefs.h. */ 7976int i; 7977int 7978main () 7979{ 7980 7981 ; 7982 return 0; 7983} 7984_ACEOF 7985if ac_fn_c_try_link "$LINENO"; then : 7986 eval $cacheid=yes 7987else 7988 eval $cacheid=no 7989fi 7990rm -f core conftest.err conftest.$ac_objext \ 7991 conftest$ac_exeext conftest.$ac_ext 7992fi 7993 7994 7995 CFLAGS="$xorg_testset_save_CFLAGS" 7996 7997 eval supported=\$$cacheid 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7999$as_echo "$supported" >&6; } 8000 if test "$supported" = "yes" ; then 8001 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8002 found="yes" 8003 fi 8004 fi 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020xorg_testset_save_CFLAGS="$CFLAGS" 8021 8022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8030/* end confdefs.h. */ 8031int i; 8032_ACEOF 8033if ac_fn_c_try_compile "$LINENO"; then : 8034 xorg_cv_cc_flag_unknown_warning_option=yes 8035else 8036 xorg_cv_cc_flag_unknown_warning_option=no 8037fi 8038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8039fi 8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8043 CFLAGS="$xorg_testset_save_CFLAGS" 8044fi 8045 8046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8049 fi 8050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8054 $as_echo_n "(cached) " >&6 8055else 8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8057/* end confdefs.h. */ 8058int i; 8059_ACEOF 8060if ac_fn_c_try_compile "$LINENO"; then : 8061 xorg_cv_cc_flag_unused_command_line_argument=yes 8062else 8063 xorg_cv_cc_flag_unused_command_line_argument=no 8064fi 8065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8066fi 8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8070 CFLAGS="$xorg_testset_save_CFLAGS" 8071fi 8072 8073found="no" 8074 8075 if test $found = "no" ; then 8076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8078 fi 8079 8080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8082 fi 8083 8084 CFLAGS="$CFLAGS -Werror=write-strings" 8085 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8087$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8088 cacheid=xorg_cv_cc_flag__Werror_write_strings 8089 if eval \${$cacheid+:} false; then : 8090 $as_echo_n "(cached) " >&6 8091else 8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093/* end confdefs.h. */ 8094int i; 8095int 8096main () 8097{ 8098 8099 ; 8100 return 0; 8101} 8102_ACEOF 8103if ac_fn_c_try_link "$LINENO"; then : 8104 eval $cacheid=yes 8105else 8106 eval $cacheid=no 8107fi 8108rm -f core conftest.err conftest.$ac_objext \ 8109 conftest$ac_exeext conftest.$ac_ext 8110fi 8111 8112 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114 8115 eval supported=\$$cacheid 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8117$as_echo "$supported" >&6; } 8118 if test "$supported" = "yes" ; then 8119 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8120 found="yes" 8121 fi 8122 fi 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138xorg_testset_save_CFLAGS="$CFLAGS" 8139 8140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8148/* end confdefs.h. */ 8149int i; 8150_ACEOF 8151if ac_fn_c_try_compile "$LINENO"; then : 8152 xorg_cv_cc_flag_unknown_warning_option=yes 8153else 8154 xorg_cv_cc_flag_unknown_warning_option=no 8155fi 8156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8157fi 8158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8161 CFLAGS="$xorg_testset_save_CFLAGS" 8162fi 8163 8164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8167 fi 8168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8172 $as_echo_n "(cached) " >&6 8173else 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176int i; 8177_ACEOF 8178if ac_fn_c_try_compile "$LINENO"; then : 8179 xorg_cv_cc_flag_unused_command_line_argument=yes 8180else 8181 xorg_cv_cc_flag_unused_command_line_argument=no 8182fi 8183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8184fi 8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8188 CFLAGS="$xorg_testset_save_CFLAGS" 8189fi 8190 8191found="no" 8192 8193 if test $found = "no" ; then 8194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8196 fi 8197 8198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8200 fi 8201 8202 CFLAGS="$CFLAGS -Werror=address" 8203 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8205$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8206 cacheid=xorg_cv_cc_flag__Werror_address 8207 if eval \${$cacheid+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8211/* end confdefs.h. */ 8212int i; 8213int 8214main () 8215{ 8216 8217 ; 8218 return 0; 8219} 8220_ACEOF 8221if ac_fn_c_try_link "$LINENO"; then : 8222 eval $cacheid=yes 8223else 8224 eval $cacheid=no 8225fi 8226rm -f core conftest.err conftest.$ac_objext \ 8227 conftest$ac_exeext conftest.$ac_ext 8228fi 8229 8230 8231 CFLAGS="$xorg_testset_save_CFLAGS" 8232 8233 eval supported=\$$cacheid 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8235$as_echo "$supported" >&6; } 8236 if test "$supported" = "yes" ; then 8237 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8238 found="yes" 8239 fi 8240 fi 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256xorg_testset_save_CFLAGS="$CFLAGS" 8257 8258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8263 $as_echo_n "(cached) " >&6 8264else 8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8266/* end confdefs.h. */ 8267int i; 8268_ACEOF 8269if ac_fn_c_try_compile "$LINENO"; then : 8270 xorg_cv_cc_flag_unknown_warning_option=yes 8271else 8272 xorg_cv_cc_flag_unknown_warning_option=no 8273fi 8274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8275fi 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8279 CFLAGS="$xorg_testset_save_CFLAGS" 8280fi 8281 8282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8285 fi 8286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8290 $as_echo_n "(cached) " >&6 8291else 8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8293/* end confdefs.h. */ 8294int i; 8295_ACEOF 8296if ac_fn_c_try_compile "$LINENO"; then : 8297 xorg_cv_cc_flag_unused_command_line_argument=yes 8298else 8299 xorg_cv_cc_flag_unused_command_line_argument=no 8300fi 8301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8302fi 8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8306 CFLAGS="$xorg_testset_save_CFLAGS" 8307fi 8308 8309found="no" 8310 8311 if test $found = "no" ; then 8312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8314 fi 8315 8316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8318 fi 8319 8320 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8321 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8323$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8324 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8325 if eval \${$cacheid+:} false; then : 8326 $as_echo_n "(cached) " >&6 8327else 8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8329/* end confdefs.h. */ 8330int i; 8331int 8332main () 8333{ 8334 8335 ; 8336 return 0; 8337} 8338_ACEOF 8339if ac_fn_c_try_link "$LINENO"; then : 8340 eval $cacheid=yes 8341else 8342 eval $cacheid=no 8343fi 8344rm -f core conftest.err conftest.$ac_objext \ 8345 conftest$ac_exeext conftest.$ac_ext 8346fi 8347 8348 8349 CFLAGS="$xorg_testset_save_CFLAGS" 8350 8351 eval supported=\$$cacheid 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8353$as_echo "$supported" >&6; } 8354 if test "$supported" = "yes" ; then 8355 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8356 found="yes" 8357 fi 8358 fi 8359 8360 if test $found = "no" ; then 8361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8363 fi 8364 8365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8367 fi 8368 8369 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8370 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8372$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8373 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8374 if eval \${$cacheid+:} false; then : 8375 $as_echo_n "(cached) " >&6 8376else 8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8378/* end confdefs.h. */ 8379int i; 8380int 8381main () 8382{ 8383 8384 ; 8385 return 0; 8386} 8387_ACEOF 8388if ac_fn_c_try_link "$LINENO"; then : 8389 eval $cacheid=yes 8390else 8391 eval $cacheid=no 8392fi 8393rm -f core conftest.err conftest.$ac_objext \ 8394 conftest$ac_exeext conftest.$ac_ext 8395fi 8396 8397 8398 CFLAGS="$xorg_testset_save_CFLAGS" 8399 8400 eval supported=\$$cacheid 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8402$as_echo "$supported" >&6; } 8403 if test "$supported" = "yes" ; then 8404 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8405 found="yes" 8406 fi 8407 fi 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423xorg_testset_save_CFLAGS="$CFLAGS" 8424 8425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8430 $as_echo_n "(cached) " >&6 8431else 8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8433/* end confdefs.h. */ 8434int i; 8435_ACEOF 8436if ac_fn_c_try_compile "$LINENO"; then : 8437 xorg_cv_cc_flag_unknown_warning_option=yes 8438else 8439 xorg_cv_cc_flag_unknown_warning_option=no 8440fi 8441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8442fi 8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8446 CFLAGS="$xorg_testset_save_CFLAGS" 8447fi 8448 8449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8452 fi 8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8457 $as_echo_n "(cached) " >&6 8458else 8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8460/* end confdefs.h. */ 8461int i; 8462_ACEOF 8463if ac_fn_c_try_compile "$LINENO"; then : 8464 xorg_cv_cc_flag_unused_command_line_argument=yes 8465else 8466 xorg_cv_cc_flag_unused_command_line_argument=no 8467fi 8468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8469fi 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8473 CFLAGS="$xorg_testset_save_CFLAGS" 8474fi 8475 8476found="no" 8477 8478 if test $found = "no" ; then 8479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8481 fi 8482 8483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8485 fi 8486 8487 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8488 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8490$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8491 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8492 if eval \${$cacheid+:} false; then : 8493 $as_echo_n "(cached) " >&6 8494else 8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8496/* end confdefs.h. */ 8497int i; 8498int 8499main () 8500{ 8501 8502 ; 8503 return 0; 8504} 8505_ACEOF 8506if ac_fn_c_try_link "$LINENO"; then : 8507 eval $cacheid=yes 8508else 8509 eval $cacheid=no 8510fi 8511rm -f core conftest.err conftest.$ac_objext \ 8512 conftest$ac_exeext conftest.$ac_ext 8513fi 8514 8515 8516 CFLAGS="$xorg_testset_save_CFLAGS" 8517 8518 eval supported=\$$cacheid 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8520$as_echo "$supported" >&6; } 8521 if test "$supported" = "yes" ; then 8522 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8523 found="yes" 8524 fi 8525 fi 8526 8527 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8528else 8529{ $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 8530$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;} 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544xorg_testset_save_CFLAGS="$CFLAGS" 8545 8546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8549$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8550if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8551 $as_echo_n "(cached) " >&6 8552else 8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8554/* end confdefs.h. */ 8555int i; 8556_ACEOF 8557if ac_fn_c_try_compile "$LINENO"; then : 8558 xorg_cv_cc_flag_unknown_warning_option=yes 8559else 8560 xorg_cv_cc_flag_unknown_warning_option=no 8561fi 8562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8563fi 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8565$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8567 CFLAGS="$xorg_testset_save_CFLAGS" 8568fi 8569 8570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8573 fi 8574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8576$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8577if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8578 $as_echo_n "(cached) " >&6 8579else 8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8581/* end confdefs.h. */ 8582int i; 8583_ACEOF 8584if ac_fn_c_try_compile "$LINENO"; then : 8585 xorg_cv_cc_flag_unused_command_line_argument=yes 8586else 8587 xorg_cv_cc_flag_unused_command_line_argument=no 8588fi 8589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8590fi 8591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8592$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8594 CFLAGS="$xorg_testset_save_CFLAGS" 8595fi 8596 8597found="no" 8598 8599 if test $found = "no" ; then 8600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8602 fi 8603 8604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8606 fi 8607 8608 CFLAGS="$CFLAGS -Wimplicit" 8609 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8611$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8612 cacheid=xorg_cv_cc_flag__Wimplicit 8613 if eval \${$cacheid+:} false; then : 8614 $as_echo_n "(cached) " >&6 8615else 8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8617/* end confdefs.h. */ 8618int i; 8619int 8620main () 8621{ 8622 8623 ; 8624 return 0; 8625} 8626_ACEOF 8627if ac_fn_c_try_link "$LINENO"; then : 8628 eval $cacheid=yes 8629else 8630 eval $cacheid=no 8631fi 8632rm -f core conftest.err conftest.$ac_objext \ 8633 conftest$ac_exeext conftest.$ac_ext 8634fi 8635 8636 8637 CFLAGS="$xorg_testset_save_CFLAGS" 8638 8639 eval supported=\$$cacheid 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8641$as_echo "$supported" >&6; } 8642 if test "$supported" = "yes" ; then 8643 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8644 found="yes" 8645 fi 8646 fi 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662xorg_testset_save_CFLAGS="$CFLAGS" 8663 8664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8667$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8668if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8669 $as_echo_n "(cached) " >&6 8670else 8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8672/* end confdefs.h. */ 8673int i; 8674_ACEOF 8675if ac_fn_c_try_compile "$LINENO"; then : 8676 xorg_cv_cc_flag_unknown_warning_option=yes 8677else 8678 xorg_cv_cc_flag_unknown_warning_option=no 8679fi 8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8681fi 8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8683$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8685 CFLAGS="$xorg_testset_save_CFLAGS" 8686fi 8687 8688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8691 fi 8692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8694$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8695if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8696 $as_echo_n "(cached) " >&6 8697else 8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8699/* end confdefs.h. */ 8700int i; 8701_ACEOF 8702if ac_fn_c_try_compile "$LINENO"; then : 8703 xorg_cv_cc_flag_unused_command_line_argument=yes 8704else 8705 xorg_cv_cc_flag_unused_command_line_argument=no 8706fi 8707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8708fi 8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8710$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8712 CFLAGS="$xorg_testset_save_CFLAGS" 8713fi 8714 8715found="no" 8716 8717 if test $found = "no" ; then 8718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8720 fi 8721 8722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8724 fi 8725 8726 CFLAGS="$CFLAGS -Wnonnull" 8727 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8729$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8730 cacheid=xorg_cv_cc_flag__Wnonnull 8731 if eval \${$cacheid+:} false; then : 8732 $as_echo_n "(cached) " >&6 8733else 8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8735/* end confdefs.h. */ 8736int i; 8737int 8738main () 8739{ 8740 8741 ; 8742 return 0; 8743} 8744_ACEOF 8745if ac_fn_c_try_link "$LINENO"; then : 8746 eval $cacheid=yes 8747else 8748 eval $cacheid=no 8749fi 8750rm -f core conftest.err conftest.$ac_objext \ 8751 conftest$ac_exeext conftest.$ac_ext 8752fi 8753 8754 8755 CFLAGS="$xorg_testset_save_CFLAGS" 8756 8757 eval supported=\$$cacheid 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8759$as_echo "$supported" >&6; } 8760 if test "$supported" = "yes" ; then 8761 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8762 found="yes" 8763 fi 8764 fi 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780xorg_testset_save_CFLAGS="$CFLAGS" 8781 8782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8787 $as_echo_n "(cached) " >&6 8788else 8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8790/* end confdefs.h. */ 8791int i; 8792_ACEOF 8793if ac_fn_c_try_compile "$LINENO"; then : 8794 xorg_cv_cc_flag_unknown_warning_option=yes 8795else 8796 xorg_cv_cc_flag_unknown_warning_option=no 8797fi 8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8799fi 8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8803 CFLAGS="$xorg_testset_save_CFLAGS" 8804fi 8805 8806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8809 fi 8810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8814 $as_echo_n "(cached) " >&6 8815else 8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8817/* end confdefs.h. */ 8818int i; 8819_ACEOF 8820if ac_fn_c_try_compile "$LINENO"; then : 8821 xorg_cv_cc_flag_unused_command_line_argument=yes 8822else 8823 xorg_cv_cc_flag_unused_command_line_argument=no 8824fi 8825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8826fi 8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8830 CFLAGS="$xorg_testset_save_CFLAGS" 8831fi 8832 8833found="no" 8834 8835 if test $found = "no" ; then 8836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8838 fi 8839 8840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8842 fi 8843 8844 CFLAGS="$CFLAGS -Winit-self" 8845 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8847$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8848 cacheid=xorg_cv_cc_flag__Winit_self 8849 if eval \${$cacheid+:} false; then : 8850 $as_echo_n "(cached) " >&6 8851else 8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8853/* end confdefs.h. */ 8854int i; 8855int 8856main () 8857{ 8858 8859 ; 8860 return 0; 8861} 8862_ACEOF 8863if ac_fn_c_try_link "$LINENO"; then : 8864 eval $cacheid=yes 8865else 8866 eval $cacheid=no 8867fi 8868rm -f core conftest.err conftest.$ac_objext \ 8869 conftest$ac_exeext conftest.$ac_ext 8870fi 8871 8872 8873 CFLAGS="$xorg_testset_save_CFLAGS" 8874 8875 eval supported=\$$cacheid 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8877$as_echo "$supported" >&6; } 8878 if test "$supported" = "yes" ; then 8879 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8880 found="yes" 8881 fi 8882 fi 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898xorg_testset_save_CFLAGS="$CFLAGS" 8899 8900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8904if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8905 $as_echo_n "(cached) " >&6 8906else 8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8908/* end confdefs.h. */ 8909int i; 8910_ACEOF 8911if ac_fn_c_try_compile "$LINENO"; then : 8912 xorg_cv_cc_flag_unknown_warning_option=yes 8913else 8914 xorg_cv_cc_flag_unknown_warning_option=no 8915fi 8916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8917fi 8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8919$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8921 CFLAGS="$xorg_testset_save_CFLAGS" 8922fi 8923 8924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8927 fi 8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8930$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8931if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8932 $as_echo_n "(cached) " >&6 8933else 8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8935/* end confdefs.h. */ 8936int i; 8937_ACEOF 8938if ac_fn_c_try_compile "$LINENO"; then : 8939 xorg_cv_cc_flag_unused_command_line_argument=yes 8940else 8941 xorg_cv_cc_flag_unused_command_line_argument=no 8942fi 8943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8944fi 8945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8946$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8948 CFLAGS="$xorg_testset_save_CFLAGS" 8949fi 8950 8951found="no" 8952 8953 if test $found = "no" ; then 8954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8956 fi 8957 8958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8960 fi 8961 8962 CFLAGS="$CFLAGS -Wmain" 8963 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8965$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8966 cacheid=xorg_cv_cc_flag__Wmain 8967 if eval \${$cacheid+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969else 8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8971/* end confdefs.h. */ 8972int i; 8973int 8974main () 8975{ 8976 8977 ; 8978 return 0; 8979} 8980_ACEOF 8981if ac_fn_c_try_link "$LINENO"; then : 8982 eval $cacheid=yes 8983else 8984 eval $cacheid=no 8985fi 8986rm -f core conftest.err conftest.$ac_objext \ 8987 conftest$ac_exeext conftest.$ac_ext 8988fi 8989 8990 8991 CFLAGS="$xorg_testset_save_CFLAGS" 8992 8993 eval supported=\$$cacheid 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8995$as_echo "$supported" >&6; } 8996 if test "$supported" = "yes" ; then 8997 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8998 found="yes" 8999 fi 9000 fi 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016xorg_testset_save_CFLAGS="$CFLAGS" 9017 9018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9023 $as_echo_n "(cached) " >&6 9024else 9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9026/* end confdefs.h. */ 9027int i; 9028_ACEOF 9029if ac_fn_c_try_compile "$LINENO"; then : 9030 xorg_cv_cc_flag_unknown_warning_option=yes 9031else 9032 xorg_cv_cc_flag_unknown_warning_option=no 9033fi 9034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9035fi 9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9039 CFLAGS="$xorg_testset_save_CFLAGS" 9040fi 9041 9042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9045 fi 9046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9050 $as_echo_n "(cached) " >&6 9051else 9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054int i; 9055_ACEOF 9056if ac_fn_c_try_compile "$LINENO"; then : 9057 xorg_cv_cc_flag_unused_command_line_argument=yes 9058else 9059 xorg_cv_cc_flag_unused_command_line_argument=no 9060fi 9061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9062fi 9063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9066 CFLAGS="$xorg_testset_save_CFLAGS" 9067fi 9068 9069found="no" 9070 9071 if test $found = "no" ; then 9072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9074 fi 9075 9076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9078 fi 9079 9080 CFLAGS="$CFLAGS -Wmissing-braces" 9081 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9083$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9084 cacheid=xorg_cv_cc_flag__Wmissing_braces 9085 if eval \${$cacheid+:} false; then : 9086 $as_echo_n "(cached) " >&6 9087else 9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9089/* end confdefs.h. */ 9090int i; 9091int 9092main () 9093{ 9094 9095 ; 9096 return 0; 9097} 9098_ACEOF 9099if ac_fn_c_try_link "$LINENO"; then : 9100 eval $cacheid=yes 9101else 9102 eval $cacheid=no 9103fi 9104rm -f core conftest.err conftest.$ac_objext \ 9105 conftest$ac_exeext conftest.$ac_ext 9106fi 9107 9108 9109 CFLAGS="$xorg_testset_save_CFLAGS" 9110 9111 eval supported=\$$cacheid 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9113$as_echo "$supported" >&6; } 9114 if test "$supported" = "yes" ; then 9115 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9116 found="yes" 9117 fi 9118 fi 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134xorg_testset_save_CFLAGS="$CFLAGS" 9135 9136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9141 $as_echo_n "(cached) " >&6 9142else 9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9144/* end confdefs.h. */ 9145int i; 9146_ACEOF 9147if ac_fn_c_try_compile "$LINENO"; then : 9148 xorg_cv_cc_flag_unknown_warning_option=yes 9149else 9150 xorg_cv_cc_flag_unknown_warning_option=no 9151fi 9152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9153fi 9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9157 CFLAGS="$xorg_testset_save_CFLAGS" 9158fi 9159 9160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9163 fi 9164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9168 $as_echo_n "(cached) " >&6 9169else 9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9171/* end confdefs.h. */ 9172int i; 9173_ACEOF 9174if ac_fn_c_try_compile "$LINENO"; then : 9175 xorg_cv_cc_flag_unused_command_line_argument=yes 9176else 9177 xorg_cv_cc_flag_unused_command_line_argument=no 9178fi 9179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9180fi 9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9184 CFLAGS="$xorg_testset_save_CFLAGS" 9185fi 9186 9187found="no" 9188 9189 if test $found = "no" ; then 9190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9192 fi 9193 9194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9196 fi 9197 9198 CFLAGS="$CFLAGS -Wsequence-point" 9199 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9201$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9202 cacheid=xorg_cv_cc_flag__Wsequence_point 9203 if eval \${$cacheid+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205else 9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207/* end confdefs.h. */ 9208int i; 9209int 9210main () 9211{ 9212 9213 ; 9214 return 0; 9215} 9216_ACEOF 9217if ac_fn_c_try_link "$LINENO"; then : 9218 eval $cacheid=yes 9219else 9220 eval $cacheid=no 9221fi 9222rm -f core conftest.err conftest.$ac_objext \ 9223 conftest$ac_exeext conftest.$ac_ext 9224fi 9225 9226 9227 CFLAGS="$xorg_testset_save_CFLAGS" 9228 9229 eval supported=\$$cacheid 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9231$as_echo "$supported" >&6; } 9232 if test "$supported" = "yes" ; then 9233 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9234 found="yes" 9235 fi 9236 fi 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252xorg_testset_save_CFLAGS="$CFLAGS" 9253 9254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9259 $as_echo_n "(cached) " >&6 9260else 9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262/* end confdefs.h. */ 9263int i; 9264_ACEOF 9265if ac_fn_c_try_compile "$LINENO"; then : 9266 xorg_cv_cc_flag_unknown_warning_option=yes 9267else 9268 xorg_cv_cc_flag_unknown_warning_option=no 9269fi 9270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9271fi 9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9275 CFLAGS="$xorg_testset_save_CFLAGS" 9276fi 9277 9278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9281 fi 9282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9286 $as_echo_n "(cached) " >&6 9287else 9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9289/* end confdefs.h. */ 9290int i; 9291_ACEOF 9292if ac_fn_c_try_compile "$LINENO"; then : 9293 xorg_cv_cc_flag_unused_command_line_argument=yes 9294else 9295 xorg_cv_cc_flag_unused_command_line_argument=no 9296fi 9297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9298fi 9299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9302 CFLAGS="$xorg_testset_save_CFLAGS" 9303fi 9304 9305found="no" 9306 9307 if test $found = "no" ; then 9308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9310 fi 9311 9312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9314 fi 9315 9316 CFLAGS="$CFLAGS -Wreturn-type" 9317 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9319$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9320 cacheid=xorg_cv_cc_flag__Wreturn_type 9321 if eval \${$cacheid+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323else 9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9325/* end confdefs.h. */ 9326int i; 9327int 9328main () 9329{ 9330 9331 ; 9332 return 0; 9333} 9334_ACEOF 9335if ac_fn_c_try_link "$LINENO"; then : 9336 eval $cacheid=yes 9337else 9338 eval $cacheid=no 9339fi 9340rm -f core conftest.err conftest.$ac_objext \ 9341 conftest$ac_exeext conftest.$ac_ext 9342fi 9343 9344 9345 CFLAGS="$xorg_testset_save_CFLAGS" 9346 9347 eval supported=\$$cacheid 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9349$as_echo "$supported" >&6; } 9350 if test "$supported" = "yes" ; then 9351 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9352 found="yes" 9353 fi 9354 fi 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370xorg_testset_save_CFLAGS="$CFLAGS" 9371 9372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9377 $as_echo_n "(cached) " >&6 9378else 9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9380/* end confdefs.h. */ 9381int i; 9382_ACEOF 9383if ac_fn_c_try_compile "$LINENO"; then : 9384 xorg_cv_cc_flag_unknown_warning_option=yes 9385else 9386 xorg_cv_cc_flag_unknown_warning_option=no 9387fi 9388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9389fi 9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9393 CFLAGS="$xorg_testset_save_CFLAGS" 9394fi 9395 9396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9399 fi 9400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9404 $as_echo_n "(cached) " >&6 9405else 9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9407/* end confdefs.h. */ 9408int i; 9409_ACEOF 9410if ac_fn_c_try_compile "$LINENO"; then : 9411 xorg_cv_cc_flag_unused_command_line_argument=yes 9412else 9413 xorg_cv_cc_flag_unused_command_line_argument=no 9414fi 9415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9416fi 9417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9420 CFLAGS="$xorg_testset_save_CFLAGS" 9421fi 9422 9423found="no" 9424 9425 if test $found = "no" ; then 9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 fi 9429 9430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9432 fi 9433 9434 CFLAGS="$CFLAGS -Wtrigraphs" 9435 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9437$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9438 cacheid=xorg_cv_cc_flag__Wtrigraphs 9439 if eval \${$cacheid+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443/* end confdefs.h. */ 9444int i; 9445int 9446main () 9447{ 9448 9449 ; 9450 return 0; 9451} 9452_ACEOF 9453if ac_fn_c_try_link "$LINENO"; then : 9454 eval $cacheid=yes 9455else 9456 eval $cacheid=no 9457fi 9458rm -f core conftest.err conftest.$ac_objext \ 9459 conftest$ac_exeext conftest.$ac_ext 9460fi 9461 9462 9463 CFLAGS="$xorg_testset_save_CFLAGS" 9464 9465 eval supported=\$$cacheid 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9467$as_echo "$supported" >&6; } 9468 if test "$supported" = "yes" ; then 9469 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9470 found="yes" 9471 fi 9472 fi 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488xorg_testset_save_CFLAGS="$CFLAGS" 9489 9490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9495 $as_echo_n "(cached) " >&6 9496else 9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9498/* end confdefs.h. */ 9499int i; 9500_ACEOF 9501if ac_fn_c_try_compile "$LINENO"; then : 9502 xorg_cv_cc_flag_unknown_warning_option=yes 9503else 9504 xorg_cv_cc_flag_unknown_warning_option=no 9505fi 9506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9507fi 9508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9511 CFLAGS="$xorg_testset_save_CFLAGS" 9512fi 9513 9514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9517 fi 9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9522 $as_echo_n "(cached) " >&6 9523else 9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9525/* end confdefs.h. */ 9526int i; 9527_ACEOF 9528if ac_fn_c_try_compile "$LINENO"; then : 9529 xorg_cv_cc_flag_unused_command_line_argument=yes 9530else 9531 xorg_cv_cc_flag_unused_command_line_argument=no 9532fi 9533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9534fi 9535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9538 CFLAGS="$xorg_testset_save_CFLAGS" 9539fi 9540 9541found="no" 9542 9543 if test $found = "no" ; then 9544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9546 fi 9547 9548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9550 fi 9551 9552 CFLAGS="$CFLAGS -Warray-bounds" 9553 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9555$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9556 cacheid=xorg_cv_cc_flag__Warray_bounds 9557 if eval \${$cacheid+:} false; then : 9558 $as_echo_n "(cached) " >&6 9559else 9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9561/* end confdefs.h. */ 9562int i; 9563int 9564main () 9565{ 9566 9567 ; 9568 return 0; 9569} 9570_ACEOF 9571if ac_fn_c_try_link "$LINENO"; then : 9572 eval $cacheid=yes 9573else 9574 eval $cacheid=no 9575fi 9576rm -f core conftest.err conftest.$ac_objext \ 9577 conftest$ac_exeext conftest.$ac_ext 9578fi 9579 9580 9581 CFLAGS="$xorg_testset_save_CFLAGS" 9582 9583 eval supported=\$$cacheid 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9585$as_echo "$supported" >&6; } 9586 if test "$supported" = "yes" ; then 9587 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9588 found="yes" 9589 fi 9590 fi 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606xorg_testset_save_CFLAGS="$CFLAGS" 9607 9608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9613 $as_echo_n "(cached) " >&6 9614else 9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9616/* end confdefs.h. */ 9617int i; 9618_ACEOF 9619if ac_fn_c_try_compile "$LINENO"; then : 9620 xorg_cv_cc_flag_unknown_warning_option=yes 9621else 9622 xorg_cv_cc_flag_unknown_warning_option=no 9623fi 9624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9625fi 9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9629 CFLAGS="$xorg_testset_save_CFLAGS" 9630fi 9631 9632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9635 fi 9636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9640 $as_echo_n "(cached) " >&6 9641else 9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9643/* end confdefs.h. */ 9644int i; 9645_ACEOF 9646if ac_fn_c_try_compile "$LINENO"; then : 9647 xorg_cv_cc_flag_unused_command_line_argument=yes 9648else 9649 xorg_cv_cc_flag_unused_command_line_argument=no 9650fi 9651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9652fi 9653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9656 CFLAGS="$xorg_testset_save_CFLAGS" 9657fi 9658 9659found="no" 9660 9661 if test $found = "no" ; then 9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 fi 9665 9666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9668 fi 9669 9670 CFLAGS="$CFLAGS -Wwrite-strings" 9671 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9673$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9674 cacheid=xorg_cv_cc_flag__Wwrite_strings 9675 if eval \${$cacheid+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677else 9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9679/* end confdefs.h. */ 9680int i; 9681int 9682main () 9683{ 9684 9685 ; 9686 return 0; 9687} 9688_ACEOF 9689if ac_fn_c_try_link "$LINENO"; then : 9690 eval $cacheid=yes 9691else 9692 eval $cacheid=no 9693fi 9694rm -f core conftest.err conftest.$ac_objext \ 9695 conftest$ac_exeext conftest.$ac_ext 9696fi 9697 9698 9699 CFLAGS="$xorg_testset_save_CFLAGS" 9700 9701 eval supported=\$$cacheid 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9703$as_echo "$supported" >&6; } 9704 if test "$supported" = "yes" ; then 9705 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9706 found="yes" 9707 fi 9708 fi 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724xorg_testset_save_CFLAGS="$CFLAGS" 9725 9726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9731 $as_echo_n "(cached) " >&6 9732else 9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734/* end confdefs.h. */ 9735int i; 9736_ACEOF 9737if ac_fn_c_try_compile "$LINENO"; then : 9738 xorg_cv_cc_flag_unknown_warning_option=yes 9739else 9740 xorg_cv_cc_flag_unknown_warning_option=no 9741fi 9742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9743fi 9744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9747 CFLAGS="$xorg_testset_save_CFLAGS" 9748fi 9749 9750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9753 fi 9754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9758 $as_echo_n "(cached) " >&6 9759else 9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9761/* end confdefs.h. */ 9762int i; 9763_ACEOF 9764if ac_fn_c_try_compile "$LINENO"; then : 9765 xorg_cv_cc_flag_unused_command_line_argument=yes 9766else 9767 xorg_cv_cc_flag_unused_command_line_argument=no 9768fi 9769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9770fi 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9774 CFLAGS="$xorg_testset_save_CFLAGS" 9775fi 9776 9777found="no" 9778 9779 if test $found = "no" ; then 9780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9782 fi 9783 9784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9786 fi 9787 9788 CFLAGS="$CFLAGS -Waddress" 9789 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9791$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9792 cacheid=xorg_cv_cc_flag__Waddress 9793 if eval \${$cacheid+:} false; then : 9794 $as_echo_n "(cached) " >&6 9795else 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798int i; 9799int 9800main () 9801{ 9802 9803 ; 9804 return 0; 9805} 9806_ACEOF 9807if ac_fn_c_try_link "$LINENO"; then : 9808 eval $cacheid=yes 9809else 9810 eval $cacheid=no 9811fi 9812rm -f core conftest.err conftest.$ac_objext \ 9813 conftest$ac_exeext conftest.$ac_ext 9814fi 9815 9816 9817 CFLAGS="$xorg_testset_save_CFLAGS" 9818 9819 eval supported=\$$cacheid 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9821$as_echo "$supported" >&6; } 9822 if test "$supported" = "yes" ; then 9823 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9824 found="yes" 9825 fi 9826 fi 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842xorg_testset_save_CFLAGS="$CFLAGS" 9843 9844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9849 $as_echo_n "(cached) " >&6 9850else 9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853int i; 9854_ACEOF 9855if ac_fn_c_try_compile "$LINENO"; then : 9856 xorg_cv_cc_flag_unknown_warning_option=yes 9857else 9858 xorg_cv_cc_flag_unknown_warning_option=no 9859fi 9860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9861fi 9862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9865 CFLAGS="$xorg_testset_save_CFLAGS" 9866fi 9867 9868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9871 fi 9872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9876 $as_echo_n "(cached) " >&6 9877else 9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9879/* end confdefs.h. */ 9880int i; 9881_ACEOF 9882if ac_fn_c_try_compile "$LINENO"; then : 9883 xorg_cv_cc_flag_unused_command_line_argument=yes 9884else 9885 xorg_cv_cc_flag_unused_command_line_argument=no 9886fi 9887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9888fi 9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9892 CFLAGS="$xorg_testset_save_CFLAGS" 9893fi 9894 9895found="no" 9896 9897 if test $found = "no" ; then 9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 fi 9901 9902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9904 fi 9905 9906 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9907 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9909$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9910 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9911 if eval \${$cacheid+:} false; then : 9912 $as_echo_n "(cached) " >&6 9913else 9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9915/* end confdefs.h. */ 9916int i; 9917int 9918main () 9919{ 9920 9921 ; 9922 return 0; 9923} 9924_ACEOF 9925if ac_fn_c_try_link "$LINENO"; then : 9926 eval $cacheid=yes 9927else 9928 eval $cacheid=no 9929fi 9930rm -f core conftest.err conftest.$ac_objext \ 9931 conftest$ac_exeext conftest.$ac_ext 9932fi 9933 9934 9935 CFLAGS="$xorg_testset_save_CFLAGS" 9936 9937 eval supported=\$$cacheid 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9939$as_echo "$supported" >&6; } 9940 if test "$supported" = "yes" ; then 9941 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9942 found="yes" 9943 fi 9944 fi 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960xorg_testset_save_CFLAGS="$CFLAGS" 9961 9962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9967 $as_echo_n "(cached) " >&6 9968else 9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9970/* end confdefs.h. */ 9971int i; 9972_ACEOF 9973if ac_fn_c_try_compile "$LINENO"; then : 9974 xorg_cv_cc_flag_unknown_warning_option=yes 9975else 9976 xorg_cv_cc_flag_unknown_warning_option=no 9977fi 9978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9979fi 9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9983 CFLAGS="$xorg_testset_save_CFLAGS" 9984fi 9985 9986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9989 fi 9990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9994 $as_echo_n "(cached) " >&6 9995else 9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9997/* end confdefs.h. */ 9998int i; 9999_ACEOF 10000if ac_fn_c_try_compile "$LINENO"; then : 10001 xorg_cv_cc_flag_unused_command_line_argument=yes 10002else 10003 xorg_cv_cc_flag_unused_command_line_argument=no 10004fi 10005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10006fi 10007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10010 CFLAGS="$xorg_testset_save_CFLAGS" 10011fi 10012 10013found="no" 10014 10015 if test $found = "no" ; then 10016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10018 fi 10019 10020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10022 fi 10023 10024 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10025 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10027$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10028 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10029 if eval \${$cacheid+:} false; then : 10030 $as_echo_n "(cached) " >&6 10031else 10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10033/* end confdefs.h. */ 10034int i; 10035int 10036main () 10037{ 10038 10039 ; 10040 return 0; 10041} 10042_ACEOF 10043if ac_fn_c_try_link "$LINENO"; then : 10044 eval $cacheid=yes 10045else 10046 eval $cacheid=no 10047fi 10048rm -f core conftest.err conftest.$ac_objext \ 10049 conftest$ac_exeext conftest.$ac_ext 10050fi 10051 10052 10053 CFLAGS="$xorg_testset_save_CFLAGS" 10054 10055 eval supported=\$$cacheid 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10057$as_echo "$supported" >&6; } 10058 if test "$supported" = "yes" ; then 10059 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10060 found="yes" 10061 fi 10062 fi 10063 10064 10065fi 10066 10067 10068 10069 10070 10071 10072 10073 CWARNFLAGS="$BASE_CFLAGS" 10074 if test "x$GCC" = xyes ; then 10075 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10076 fi 10077 10078 10079 10080 10081 10082 10083 10084 10085# Check whether --enable-strict-compilation was given. 10086if test "${enable_strict_compilation+set}" = set; then : 10087 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10088else 10089 STRICT_COMPILE=no 10090fi 10091 10092 10093 10094 10095 10096 10097STRICT_CFLAGS="" 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111xorg_testset_save_CFLAGS="$CFLAGS" 10112 10113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10118 $as_echo_n "(cached) " >&6 10119else 10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10121/* end confdefs.h. */ 10122int i; 10123_ACEOF 10124if ac_fn_c_try_compile "$LINENO"; then : 10125 xorg_cv_cc_flag_unknown_warning_option=yes 10126else 10127 xorg_cv_cc_flag_unknown_warning_option=no 10128fi 10129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10130fi 10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10134 CFLAGS="$xorg_testset_save_CFLAGS" 10135fi 10136 10137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10140 fi 10141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10145 $as_echo_n "(cached) " >&6 10146else 10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10148/* end confdefs.h. */ 10149int i; 10150_ACEOF 10151if ac_fn_c_try_compile "$LINENO"; then : 10152 xorg_cv_cc_flag_unused_command_line_argument=yes 10153else 10154 xorg_cv_cc_flag_unused_command_line_argument=no 10155fi 10156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10157fi 10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10161 CFLAGS="$xorg_testset_save_CFLAGS" 10162fi 10163 10164found="no" 10165 10166 if test $found = "no" ; then 10167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 fi 10170 10171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10173 fi 10174 10175 CFLAGS="$CFLAGS -pedantic" 10176 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10178$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10179 cacheid=xorg_cv_cc_flag__pedantic 10180 if eval \${$cacheid+:} false; then : 10181 $as_echo_n "(cached) " >&6 10182else 10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184/* end confdefs.h. */ 10185int i; 10186int 10187main () 10188{ 10189 10190 ; 10191 return 0; 10192} 10193_ACEOF 10194if ac_fn_c_try_link "$LINENO"; then : 10195 eval $cacheid=yes 10196else 10197 eval $cacheid=no 10198fi 10199rm -f core conftest.err conftest.$ac_objext \ 10200 conftest$ac_exeext conftest.$ac_ext 10201fi 10202 10203 10204 CFLAGS="$xorg_testset_save_CFLAGS" 10205 10206 eval supported=\$$cacheid 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10208$as_echo "$supported" >&6; } 10209 if test "$supported" = "yes" ; then 10210 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10211 found="yes" 10212 fi 10213 fi 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229xorg_testset_save_CFLAGS="$CFLAGS" 10230 10231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10234$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10235if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10236 $as_echo_n "(cached) " >&6 10237else 10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239/* end confdefs.h. */ 10240int i; 10241_ACEOF 10242if ac_fn_c_try_compile "$LINENO"; then : 10243 xorg_cv_cc_flag_unknown_warning_option=yes 10244else 10245 xorg_cv_cc_flag_unknown_warning_option=no 10246fi 10247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10248fi 10249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10250$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10252 CFLAGS="$xorg_testset_save_CFLAGS" 10253fi 10254 10255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10258 fi 10259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10261$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10262if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10263 $as_echo_n "(cached) " >&6 10264else 10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10266/* end confdefs.h. */ 10267int i; 10268_ACEOF 10269if ac_fn_c_try_compile "$LINENO"; then : 10270 xorg_cv_cc_flag_unused_command_line_argument=yes 10271else 10272 xorg_cv_cc_flag_unused_command_line_argument=no 10273fi 10274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10275fi 10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10277$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10279 CFLAGS="$xorg_testset_save_CFLAGS" 10280fi 10281 10282found="no" 10283 10284 if test $found = "no" ; then 10285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10287 fi 10288 10289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10291 fi 10292 10293 CFLAGS="$CFLAGS -Werror" 10294 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10296$as_echo_n "checking if $CC supports -Werror... " >&6; } 10297 cacheid=xorg_cv_cc_flag__Werror 10298 if eval \${$cacheid+:} false; then : 10299 $as_echo_n "(cached) " >&6 10300else 10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10302/* end confdefs.h. */ 10303int i; 10304int 10305main () 10306{ 10307 10308 ; 10309 return 0; 10310} 10311_ACEOF 10312if ac_fn_c_try_link "$LINENO"; then : 10313 eval $cacheid=yes 10314else 10315 eval $cacheid=no 10316fi 10317rm -f core conftest.err conftest.$ac_objext \ 10318 conftest$ac_exeext conftest.$ac_ext 10319fi 10320 10321 10322 CFLAGS="$xorg_testset_save_CFLAGS" 10323 10324 eval supported=\$$cacheid 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10326$as_echo "$supported" >&6; } 10327 if test "$supported" = "yes" ; then 10328 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10329 found="yes" 10330 fi 10331 fi 10332 10333 if test $found = "no" ; then 10334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10336 fi 10337 10338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10340 fi 10341 10342 CFLAGS="$CFLAGS -errwarn" 10343 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10345$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10346 cacheid=xorg_cv_cc_flag__errwarn 10347 if eval \${$cacheid+:} false; then : 10348 $as_echo_n "(cached) " >&6 10349else 10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10351/* end confdefs.h. */ 10352int i; 10353int 10354main () 10355{ 10356 10357 ; 10358 return 0; 10359} 10360_ACEOF 10361if ac_fn_c_try_link "$LINENO"; then : 10362 eval $cacheid=yes 10363else 10364 eval $cacheid=no 10365fi 10366rm -f core conftest.err conftest.$ac_objext \ 10367 conftest$ac_exeext conftest.$ac_ext 10368fi 10369 10370 10371 CFLAGS="$xorg_testset_save_CFLAGS" 10372 10373 eval supported=\$$cacheid 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10375$as_echo "$supported" >&6; } 10376 if test "$supported" = "yes" ; then 10377 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10378 found="yes" 10379 fi 10380 fi 10381 10382 10383 10384# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10385# activate it with -Werror, so we add it here explicitly. 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399xorg_testset_save_CFLAGS="$CFLAGS" 10400 10401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10406 $as_echo_n "(cached) " >&6 10407else 10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409/* end confdefs.h. */ 10410int i; 10411_ACEOF 10412if ac_fn_c_try_compile "$LINENO"; then : 10413 xorg_cv_cc_flag_unknown_warning_option=yes 10414else 10415 xorg_cv_cc_flag_unknown_warning_option=no 10416fi 10417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10418fi 10419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10422 CFLAGS="$xorg_testset_save_CFLAGS" 10423fi 10424 10425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10428 fi 10429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10433 $as_echo_n "(cached) " >&6 10434else 10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10436/* end confdefs.h. */ 10437int i; 10438_ACEOF 10439if ac_fn_c_try_compile "$LINENO"; then : 10440 xorg_cv_cc_flag_unused_command_line_argument=yes 10441else 10442 xorg_cv_cc_flag_unused_command_line_argument=no 10443fi 10444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10445fi 10446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10449 CFLAGS="$xorg_testset_save_CFLAGS" 10450fi 10451 10452found="no" 10453 10454 if test $found = "no" ; then 10455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10457 fi 10458 10459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10461 fi 10462 10463 CFLAGS="$CFLAGS -Werror=attributes" 10464 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10466$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10467 cacheid=xorg_cv_cc_flag__Werror_attributes 10468 if eval \${$cacheid+:} false; then : 10469 $as_echo_n "(cached) " >&6 10470else 10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10472/* end confdefs.h. */ 10473int i; 10474int 10475main () 10476{ 10477 10478 ; 10479 return 0; 10480} 10481_ACEOF 10482if ac_fn_c_try_link "$LINENO"; then : 10483 eval $cacheid=yes 10484else 10485 eval $cacheid=no 10486fi 10487rm -f core conftest.err conftest.$ac_objext \ 10488 conftest$ac_exeext conftest.$ac_ext 10489fi 10490 10491 10492 CFLAGS="$xorg_testset_save_CFLAGS" 10493 10494 eval supported=\$$cacheid 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10496$as_echo "$supported" >&6; } 10497 if test "$supported" = "yes" ; then 10498 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10499 found="yes" 10500 fi 10501 fi 10502 10503 10504 10505if test "x$STRICT_COMPILE" = "xyes"; then 10506 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10507 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10508fi 10509 10510 10511 10512 10513 10514 10515cat >>confdefs.h <<_ACEOF 10516#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10517_ACEOF 10518 10519 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10520 if test "x$PVM" = "x"; then 10521 PVM="0" 10522 fi 10523 10524cat >>confdefs.h <<_ACEOF 10525#define PACKAGE_VERSION_MINOR $PVM 10526_ACEOF 10527 10528 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10529 if test "x$PVP" = "x"; then 10530 PVP="0" 10531 fi 10532 10533cat >>confdefs.h <<_ACEOF 10534#define PACKAGE_VERSION_PATCHLEVEL $PVP 10535_ACEOF 10536 10537 10538 10539CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10540mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10541|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10542echo 'git directory not found: installing possibly empty changelog.' >&2)" 10543 10544 10545 10546 10547macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10548INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10549mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10550|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10551echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10552 10553 10554 10555 10556 10557 10558if test x$APP_MAN_SUFFIX = x ; then 10559 APP_MAN_SUFFIX=1 10560fi 10561if test x$APP_MAN_DIR = x ; then 10562 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10563fi 10564 10565if test x$LIB_MAN_SUFFIX = x ; then 10566 LIB_MAN_SUFFIX=3 10567fi 10568if test x$LIB_MAN_DIR = x ; then 10569 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10570fi 10571 10572if test x$FILE_MAN_SUFFIX = x ; then 10573 case $host_os in 10574 solaris*) FILE_MAN_SUFFIX=4 ;; 10575 *) FILE_MAN_SUFFIX=5 ;; 10576 esac 10577fi 10578if test x$FILE_MAN_DIR = x ; then 10579 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10580fi 10581 10582if test x$MISC_MAN_SUFFIX = x ; then 10583 case $host_os in 10584 solaris*) MISC_MAN_SUFFIX=5 ;; 10585 *) MISC_MAN_SUFFIX=7 ;; 10586 esac 10587fi 10588if test x$MISC_MAN_DIR = x ; then 10589 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10590fi 10591 10592if test x$DRIVER_MAN_SUFFIX = x ; then 10593 case $host_os in 10594 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10595 *) DRIVER_MAN_SUFFIX=4 ;; 10596 esac 10597fi 10598if test x$DRIVER_MAN_DIR = x ; then 10599 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10600fi 10601 10602if test x$ADMIN_MAN_SUFFIX = x ; then 10603 case $host_os in 10604 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10605 *) ADMIN_MAN_SUFFIX=8 ;; 10606 esac 10607fi 10608if test x$ADMIN_MAN_DIR = x ; then 10609 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10610fi 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626XORG_MAN_PAGE="X Version 11" 10627 10628MAN_SUBSTS="\ 10629 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10630 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10631 -e 's|__xservername__|Xorg|g' \ 10632 -e 's|__xconfigfile__|xorg.conf|g' \ 10633 -e 's|__projectroot__|\$(prefix)|g' \ 10634 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10635 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10636 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10637 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10638 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10639 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10640 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10641 10642 10643 10644# Check whether --enable-silent-rules was given. 10645if test "${enable_silent_rules+set}" = set; then : 10646 enableval=$enable_silent_rules; 10647fi 10648 10649case $enable_silent_rules in # ((( 10650 yes) AM_DEFAULT_VERBOSITY=0;; 10651 no) AM_DEFAULT_VERBOSITY=1;; 10652 *) AM_DEFAULT_VERBOSITY=0;; 10653esac 10654am_make=${MAKE-make} 10655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10656$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10657if ${am_cv_make_support_nested_variables+:} false; then : 10658 $as_echo_n "(cached) " >&6 10659else 10660 if $as_echo 'TRUE=$(BAR$(V)) 10661BAR0=false 10662BAR1=true 10663V=1 10664am__doit: 10665 @$(TRUE) 10666.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10667 am_cv_make_support_nested_variables=yes 10668else 10669 am_cv_make_support_nested_variables=no 10670fi 10671fi 10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10673$as_echo "$am_cv_make_support_nested_variables" >&6; } 10674if test $am_cv_make_support_nested_variables = yes; then 10675 AM_V='$(V)' 10676 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10677else 10678 AM_V=$AM_DEFAULT_VERBOSITY 10679 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10680fi 10681AM_BACKSLASH='\' 10682 10683 10684 10685 10686 10687# Extract the first word of "groff", so it can be a program name with args. 10688set dummy groff; ac_word=$2 10689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10690$as_echo_n "checking for $ac_word... " >&6; } 10691if ${ac_cv_prog_GROFF+:} false; then : 10692 $as_echo_n "(cached) " >&6 10693else 10694 if test -n "$GROFF"; then 10695 ac_cv_prog_GROFF="$GROFF" # Let the user override the test. 10696else 10697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10698for as_dir in $PATH 10699do 10700 IFS=$as_save_IFS 10701 test -z "$as_dir" && as_dir=. 10702 for ac_exec_ext in '' $ac_executable_extensions; do 10703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10704 ac_cv_prog_GROFF="found" 10705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10706 break 2 10707 fi 10708done 10709 done 10710IFS=$as_save_IFS 10711 10712 test -z "$ac_cv_prog_GROFF" && ac_cv_prog_GROFF="missing" 10713fi 10714fi 10715GROFF=$ac_cv_prog_GROFF 10716if test -n "$GROFF"; then 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 10718$as_echo "$GROFF" >&6; } 10719else 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10721$as_echo "no" >&6; } 10722fi 10723 10724 10725if test "x$GROFF" = "xfound" ; then 10726 10727$as_echo "#define HAS_GROFF 1" >>confdefs.h 10728 10729fi 10730 10731for ac_func in mkstemp 10732do : 10733 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 10734if test "x$ac_cv_func_mkstemp" = xyes; then : 10735 cat >>confdefs.h <<_ACEOF 10736#define HAVE_MKSTEMP 1 10737_ACEOF 10738 10739fi 10740done 10741 10742 10743 10744# Check whether --with-helpdir was given. 10745if test "${with_helpdir+set}" = set; then : 10746 withval=$with_helpdir; HELPDIR="$withval" 10747else 10748 HELPDIR=${datadir}/X11 10749fi 10750 10751 10752 10753 10754# Check whether --with-sysmanpath was given. 10755if test "${with_sysmanpath+set}" = set; then : 10756 withval=$with_sysmanpath; SYSMANPATH="$withval" 10757fi 10758 10759if test x$SYSMANPATH != x; then 10760 10761cat >>confdefs.h <<_ACEOF 10762#define SYSMANPATH "$SYSMANPATH" 10763_ACEOF 10764 10765fi 10766 10767 10768# Check whether --with-localmanpath was given. 10769if test "${with_localmanpath+set}" = set; then : 10770 withval=$with_localmanpath; LOCALMANPATH="$withval" 10771fi 10772 10773if test x$LOCALMANPATH != x; then 10774 10775cat >>confdefs.h <<_ACEOF 10776#define LOCALMANPATH "$LOCALMANPATH" 10777_ACEOF 10778 10779fi 10780 10781# Obtain compiler/linker options from depedencies 10782 10783pkg_failed=no 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMAN" >&5 10785$as_echo_n "checking for XMAN... " >&6; } 10786 10787if test -n "$XMAN_CFLAGS"; then 10788 pkg_cv_XMAN_CFLAGS="$XMAN_CFLAGS" 10789 elif test -n "$PKG_CONFIG"; then 10790 if test -n "$PKG_CONFIG" && \ 10791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5 10792 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5 10793 ac_status=$? 10794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10795 test $ac_status = 0; }; then 10796 pkg_cv_XMAN_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt" 2>/dev/null` 10797else 10798 pkg_failed=yes 10799fi 10800 else 10801 pkg_failed=untried 10802fi 10803if test -n "$XMAN_LIBS"; then 10804 pkg_cv_XMAN_LIBS="$XMAN_LIBS" 10805 elif test -n "$PKG_CONFIG"; then 10806 if test -n "$PKG_CONFIG" && \ 10807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5 10808 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5 10809 ac_status=$? 10810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10811 test $ac_status = 0; }; then 10812 pkg_cv_XMAN_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt" 2>/dev/null` 10813else 10814 pkg_failed=yes 10815fi 10816 else 10817 pkg_failed=untried 10818fi 10819 10820 10821 10822if test $pkg_failed = yes; then 10823 10824if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10825 _pkg_short_errors_supported=yes 10826else 10827 _pkg_short_errors_supported=no 10828fi 10829 if test $_pkg_short_errors_supported = yes; then 10830 XMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xaw7 xt" 2>&1` 10831 else 10832 XMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xaw7 xt" 2>&1` 10833 fi 10834 # Put the nasty error message in config.log where it belongs 10835 echo "$XMAN_PKG_ERRORS" >&5 10836 10837 as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt) were not met: 10838 10839$XMAN_PKG_ERRORS 10840 10841Consider adjusting the PKG_CONFIG_PATH environment variable if you 10842installed software in a non-standard prefix. 10843 10844Alternatively, you may set the environment variables XMAN_CFLAGS 10845and XMAN_LIBS to avoid the need to call pkg-config. 10846See the pkg-config man page for more details. 10847" "$LINENO" 5 10848elif test $pkg_failed = untried; then 10849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10851as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10852is in your PATH or set the PKG_CONFIG environment variable to the full 10853path to pkg-config. 10854 10855Alternatively, you may set the environment variables XMAN_CFLAGS 10856and XMAN_LIBS to avoid the need to call pkg-config. 10857See the pkg-config man page for more details. 10858 10859To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10860See \`config.log' for more details" "$LINENO" 5; } 10861else 10862 XMAN_CFLAGS=$pkg_cv_XMAN_CFLAGS 10863 XMAN_LIBS=$pkg_cv_XMAN_LIBS 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10865$as_echo "yes" >&6; } 10866 : 10867fi 10868 10869 10870# Check whether --with-manconfig was given. 10871if test "${with_manconfig+set}" = set; then : 10872 withval=$with_manconfig; MANCONF="$withval" 10873fi 10874 10875if test x$MANCONF = x; then 10876# Check for man page config files 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.conf" >&5 10878$as_echo_n "checking for /etc/man.conf... " >&6; } 10879if ${ac_cv_file__etc_man_conf+:} false; then : 10880 $as_echo_n "(cached) " >&6 10881else 10882 test "$cross_compiling" = yes && 10883 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10884if test -r "/etc/man.conf"; then 10885 ac_cv_file__etc_man_conf=yes 10886else 10887 ac_cv_file__etc_man_conf=no 10888fi 10889fi 10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_conf" >&5 10891$as_echo "$ac_cv_file__etc_man_conf" >&6; } 10892if test "x$ac_cv_file__etc_man_conf" = xyes; then : 10893 MANCONF="/etc/man.conf" 10894else 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.config" >&5 10896$as_echo_n "checking for /etc/man.config... " >&6; } 10897if ${ac_cv_file__etc_man_config+:} false; then : 10898 $as_echo_n "(cached) " >&6 10899else 10900 test "$cross_compiling" = yes && 10901 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10902if test -r "/etc/man.config"; then 10903 ac_cv_file__etc_man_config=yes 10904else 10905 ac_cv_file__etc_man_config=no 10906fi 10907fi 10908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_config" >&5 10909$as_echo "$ac_cv_file__etc_man_config" >&6; } 10910if test "x$ac_cv_file__etc_man_config" = xyes; then : 10911 MANCONF="/etc/man.config" 10912else 10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/manpath.config" >&5 10914$as_echo_n "checking for /etc/manpath.config... " >&6; } 10915if ${ac_cv_file__etc_manpath_config+:} false; then : 10916 $as_echo_n "(cached) " >&6 10917else 10918 test "$cross_compiling" = yes && 10919 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10920if test -r "/etc/manpath.config"; then 10921 ac_cv_file__etc_manpath_config=yes 10922else 10923 ac_cv_file__etc_manpath_config=no 10924fi 10925fi 10926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_manpath_config" >&5 10927$as_echo "$ac_cv_file__etc_manpath_config" >&6; } 10928if test "x$ac_cv_file__etc_manpath_config" = xyes; then : 10929 MANCONF="/etc/manpath.config" 10930else 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/misc/man.conf" >&5 10932$as_echo_n "checking for /usr/share/misc/man.conf... " >&6; } 10933if ${ac_cv_file__usr_share_misc_man_conf+:} false; then : 10934 $as_echo_n "(cached) " >&6 10935else 10936 test "$cross_compiling" = yes && 10937 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10938if test -r "/usr/share/misc/man.conf"; then 10939 ac_cv_file__usr_share_misc_man_conf=yes 10940else 10941 ac_cv_file__usr_share_misc_man_conf=no 10942fi 10943fi 10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_misc_man_conf" >&5 10945$as_echo "$ac_cv_file__usr_share_misc_man_conf" >&6; } 10946if test "x$ac_cv_file__usr_share_misc_man_conf" = xyes; then : 10947 MANCONF="/usr/share/misc/man.conf" 10948fi 10949 10950fi 10951 10952fi 10953 10954fi 10955 10956fi 10957 10958if test x$MANCONF != x ; then 10959 10960cat >>confdefs.h <<_ACEOF 10961#define MANCONF "$MANCONF" 10962_ACEOF 10963 10964 10965 # Try to determine format of config file 10966 # would be better to somehow determine from the files themselves, but 10967 # we'll guess based on pathname and OS for now (mirrors old Imake tests) 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking man config file format" >&5 10969$as_echo_n "checking man config file format... " >&6; } 10970 if test x$MANCONF = x/etc/manpath.config ; then 10971 MAN_CONFIG_STYLE="FreeBSD" 10972 else 10973 case $host_os in 10974 *darwin* | *openbsd* | *netbsd* ) 10975 MAN_CONFIG_STYLE="OpenBSD" 10976 ;; 10977 *linux* | cygwin* ) 10978 MAN_CONFIG_STYLE="Linux" 10979 ;; 10980 *bsd* ) 10981 MAN_CONFIG_STYLE="BSD" 10982 ;; 10983 *) 10984 ;; 10985 esac 10986 fi 10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_CONFIG_STYLE" >&5 10988$as_echo "$MAN_CONFIG_STYLE" >&6; } 10989 10990 case $MAN_CONFIG_STYLE in 10991 FreeBSD) 10992 10993$as_echo "#define MANCONFIGSTYLE_FreeBSD 1" >>confdefs.h 10994 10995 ;; 10996 OpenBSD) 10997 10998$as_echo "#define MANCONFIGSTYLE_OpenBSD 1" >>confdefs.h 10999 11000 ;; 11001 BSD) 11002 11003$as_echo "#define MANCONFIGSTYLE_BSD 1" >>confdefs.h 11004 11005 ;; 11006 Linux) 11007 11008$as_echo "#define MANCONFIGSTYLE_Linux 1" >>confdefs.h 11009 11010 ;; 11011 *) 11012 as_fn_error $? "Could not determine man page file config format." "$LINENO" 5 11013 esac 11014fi 11015 11016 11017pkg_failed=no 11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11019$as_echo_n "checking for APPDEFS... " >&6; } 11020 11021if test -n "$APPDEFS_CFLAGS"; then 11022 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11023 elif test -n "$PKG_CONFIG"; then 11024 if test -n "$PKG_CONFIG" && \ 11025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11026 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11027 ac_status=$? 11028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11029 test $ac_status = 0; }; then 11030 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11031else 11032 pkg_failed=yes 11033fi 11034 else 11035 pkg_failed=untried 11036fi 11037if test -n "$APPDEFS_LIBS"; then 11038 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11039 elif test -n "$PKG_CONFIG"; then 11040 if test -n "$PKG_CONFIG" && \ 11041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11042 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11043 ac_status=$? 11044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11045 test $ac_status = 0; }; then 11046 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11047else 11048 pkg_failed=yes 11049fi 11050 else 11051 pkg_failed=untried 11052fi 11053 11054 11055 11056if test $pkg_failed = yes; then 11057 11058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11059 _pkg_short_errors_supported=yes 11060else 11061 _pkg_short_errors_supported=no 11062fi 11063 if test $_pkg_short_errors_supported = yes; then 11064 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 11065 else 11066 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 11067 fi 11068 # Put the nasty error message in config.log where it belongs 11069 echo "$APPDEFS_PKG_ERRORS" >&5 11070 11071 as_fn_error $? "Package requirements (xt) were not met: 11072 11073$APPDEFS_PKG_ERRORS 11074 11075Consider adjusting the PKG_CONFIG_PATH environment variable if you 11076installed software in a non-standard prefix. 11077 11078Alternatively, you may set the environment variables APPDEFS_CFLAGS 11079and APPDEFS_LIBS to avoid the need to call pkg-config. 11080See the pkg-config man page for more details. 11081" "$LINENO" 5 11082elif test $pkg_failed = untried; then 11083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11085as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11086is in your PATH or set the PKG_CONFIG environment variable to the full 11087path to pkg-config. 11088 11089Alternatively, you may set the environment variables APPDEFS_CFLAGS 11090and APPDEFS_LIBS to avoid the need to call pkg-config. 11091See the pkg-config man page for more details. 11092 11093To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11094See \`config.log' for more details" "$LINENO" 5; } 11095else 11096 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11097 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11099$as_echo "yes" >&6; } 11100 : 11101fi 11102xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11103 11104# Check whether --with-appdefaultdir was given. 11105if test "${with_appdefaultdir+set}" = set; then : 11106 withval=$with_appdefaultdir; appdefaultdir="$withval" 11107else 11108 appdefaultdir="${xt_appdefaultdir}" 11109fi 11110 11111 11112 11113if test "x$RELEASE_VERSION" != "x"; then 11114 11115cat >>confdefs.h <<_ACEOF 11116#define RELEASE_VERSION "$RELEASE_VERSION" 11117_ACEOF 11118 11119fi 11120 11121ac_config_files="$ac_config_files Makefile man/Makefile" 11122 11123cat >confcache <<\_ACEOF 11124# This file is a shell script that caches the results of configure 11125# tests run on this system so they can be shared between configure 11126# scripts and configure runs, see configure's option --config-cache. 11127# It is not useful on other systems. If it contains results you don't 11128# want to keep, you may remove or edit it. 11129# 11130# config.status only pays attention to the cache file if you give it 11131# the --recheck option to rerun configure. 11132# 11133# `ac_cv_env_foo' variables (set or unset) will be overridden when 11134# loading this file, other *unset* `ac_cv_foo' will be assigned the 11135# following values. 11136 11137_ACEOF 11138 11139# The following way of writing the cache mishandles newlines in values, 11140# but we know of no workaround that is simple, portable, and efficient. 11141# So, we kill variables containing newlines. 11142# Ultrix sh set writes to stderr and can't be redirected directly, 11143# and sets the high bit in the cache file unless we assign to the vars. 11144( 11145 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11146 eval ac_val=\$$ac_var 11147 case $ac_val in #( 11148 *${as_nl}*) 11149 case $ac_var in #( 11150 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11151$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11152 esac 11153 case $ac_var in #( 11154 _ | IFS | as_nl) ;; #( 11155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11156 *) { eval $ac_var=; unset $ac_var;} ;; 11157 esac ;; 11158 esac 11159 done 11160 11161 (set) 2>&1 | 11162 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11163 *${as_nl}ac_space=\ *) 11164 # `set' does not quote correctly, so add quotes: double-quote 11165 # substitution turns \\\\ into \\, and sed turns \\ into \. 11166 sed -n \ 11167 "s/'/'\\\\''/g; 11168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11169 ;; #( 11170 *) 11171 # `set' quotes correctly as required by POSIX, so do not add quotes. 11172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11173 ;; 11174 esac | 11175 sort 11176) | 11177 sed ' 11178 /^ac_cv_env_/b end 11179 t clear 11180 :clear 11181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11182 t end 11183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11184 :end' >>confcache 11185if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11186 if test -w "$cache_file"; then 11187 if test "x$cache_file" != "x/dev/null"; then 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11189$as_echo "$as_me: updating cache $cache_file" >&6;} 11190 if test ! -f "$cache_file" || test -h "$cache_file"; then 11191 cat confcache >"$cache_file" 11192 else 11193 case $cache_file in #( 11194 */* | ?:*) 11195 mv -f confcache "$cache_file"$$ && 11196 mv -f "$cache_file"$$ "$cache_file" ;; #( 11197 *) 11198 mv -f confcache "$cache_file" ;; 11199 esac 11200 fi 11201 fi 11202 else 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11204$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11205 fi 11206fi 11207rm -f confcache 11208 11209test "x$prefix" = xNONE && prefix=$ac_default_prefix 11210# Let make expand exec_prefix. 11211test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11212 11213DEFS=-DHAVE_CONFIG_H 11214 11215ac_libobjs= 11216ac_ltlibobjs= 11217U= 11218for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11219 # 1. Remove the extension, and $U if already installed. 11220 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11221 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11222 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11223 # will be set to the directory where LIBOBJS objects are built. 11224 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11225 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11226done 11227LIBOBJS=$ac_libobjs 11228 11229LTLIBOBJS=$ac_ltlibobjs 11230 11231 11232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11233$as_echo_n "checking that generated files are newer than configure... " >&6; } 11234 if test -n "$am_sleep_pid"; then 11235 # Hide warnings about reused PIDs. 11236 wait $am_sleep_pid 2>/dev/null 11237 fi 11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11239$as_echo "done" >&6; } 11240 if test -n "$EXEEXT"; then 11241 am__EXEEXT_TRUE= 11242 am__EXEEXT_FALSE='#' 11243else 11244 am__EXEEXT_TRUE='#' 11245 am__EXEEXT_FALSE= 11246fi 11247 11248if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11249 as_fn_error $? "conditional \"AMDEP\" was never defined. 11250Usually this means the macro was only invoked conditionally." "$LINENO" 5 11251fi 11252if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11253 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11254Usually this means the macro was only invoked conditionally." "$LINENO" 5 11255fi 11256 11257: "${CONFIG_STATUS=./config.status}" 11258ac_write_fail=0 11259ac_clean_files_save=$ac_clean_files 11260ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11261{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11262$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11263as_write_fail=0 11264cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11265#! $SHELL 11266# Generated by $as_me. 11267# Run this file to recreate the current configuration. 11268# Compiler output produced by configure, useful for debugging 11269# configure, is in config.log if it exists. 11270 11271debug=false 11272ac_cs_recheck=false 11273ac_cs_silent=false 11274 11275SHELL=\${CONFIG_SHELL-$SHELL} 11276export SHELL 11277_ASEOF 11278cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11279## -------------------- ## 11280## M4sh Initialization. ## 11281## -------------------- ## 11282 11283# Be more Bourne compatible 11284DUALCASE=1; export DUALCASE # for MKS sh 11285if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11286 emulate sh 11287 NULLCMD=: 11288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11289 # is contrary to our usage. Disable this feature. 11290 alias -g '${1+"$@"}'='"$@"' 11291 setopt NO_GLOB_SUBST 11292else 11293 case `(set -o) 2>/dev/null` in #( 11294 *posix*) : 11295 set -o posix ;; #( 11296 *) : 11297 ;; 11298esac 11299fi 11300 11301 11302as_nl=' 11303' 11304export as_nl 11305# Printing a long string crashes Solaris 7 /usr/bin/printf. 11306as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11307as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11308as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11309# Prefer a ksh shell builtin over an external printf program on Solaris, 11310# but without wasting forks for bash or zsh. 11311if test -z "$BASH_VERSION$ZSH_VERSION" \ 11312 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11313 as_echo='print -r --' 11314 as_echo_n='print -rn --' 11315elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11316 as_echo='printf %s\n' 11317 as_echo_n='printf %s' 11318else 11319 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11320 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11321 as_echo_n='/usr/ucb/echo -n' 11322 else 11323 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11324 as_echo_n_body='eval 11325 arg=$1; 11326 case $arg in #( 11327 *"$as_nl"*) 11328 expr "X$arg" : "X\\(.*\\)$as_nl"; 11329 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11330 esac; 11331 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11332 ' 11333 export as_echo_n_body 11334 as_echo_n='sh -c $as_echo_n_body as_echo' 11335 fi 11336 export as_echo_body 11337 as_echo='sh -c $as_echo_body as_echo' 11338fi 11339 11340# The user is always right. 11341if test "${PATH_SEPARATOR+set}" != set; then 11342 PATH_SEPARATOR=: 11343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11344 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11345 PATH_SEPARATOR=';' 11346 } 11347fi 11348 11349 11350# IFS 11351# We need space, tab and new line, in precisely that order. Quoting is 11352# there to prevent editors from complaining about space-tab. 11353# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11354# splitting by setting IFS to empty value.) 11355IFS=" "" $as_nl" 11356 11357# Find who we are. Look in the path if we contain no directory separator. 11358as_myself= 11359case $0 in #(( 11360 *[\\/]* ) as_myself=$0 ;; 11361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11362for as_dir in $PATH 11363do 11364 IFS=$as_save_IFS 11365 test -z "$as_dir" && as_dir=. 11366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11367 done 11368IFS=$as_save_IFS 11369 11370 ;; 11371esac 11372# We did not find ourselves, most probably we were run as `sh COMMAND' 11373# in which case we are not to be found in the path. 11374if test "x$as_myself" = x; then 11375 as_myself=$0 11376fi 11377if test ! -f "$as_myself"; then 11378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11379 exit 1 11380fi 11381 11382# Unset variables that we do not need and which cause bugs (e.g. in 11383# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11384# suppresses any "Segmentation fault" message there. '((' could 11385# trigger a bug in pdksh 5.2.14. 11386for as_var in BASH_ENV ENV MAIL MAILPATH 11387do eval test x\${$as_var+set} = xset \ 11388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11389done 11390PS1='$ ' 11391PS2='> ' 11392PS4='+ ' 11393 11394# NLS nuisances. 11395LC_ALL=C 11396export LC_ALL 11397LANGUAGE=C 11398export LANGUAGE 11399 11400# CDPATH. 11401(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11402 11403 11404# as_fn_error STATUS ERROR [LINENO LOG_FD] 11405# ---------------------------------------- 11406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11408# script with STATUS, using 1 if that was 0. 11409as_fn_error () 11410{ 11411 as_status=$1; test $as_status -eq 0 && as_status=1 11412 if test "$4"; then 11413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11415 fi 11416 $as_echo "$as_me: error: $2" >&2 11417 as_fn_exit $as_status 11418} # as_fn_error 11419 11420 11421# as_fn_set_status STATUS 11422# ----------------------- 11423# Set $? to STATUS, without forking. 11424as_fn_set_status () 11425{ 11426 return $1 11427} # as_fn_set_status 11428 11429# as_fn_exit STATUS 11430# ----------------- 11431# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11432as_fn_exit () 11433{ 11434 set +e 11435 as_fn_set_status $1 11436 exit $1 11437} # as_fn_exit 11438 11439# as_fn_unset VAR 11440# --------------- 11441# Portably unset VAR. 11442as_fn_unset () 11443{ 11444 { eval $1=; unset $1;} 11445} 11446as_unset=as_fn_unset 11447# as_fn_append VAR VALUE 11448# ---------------------- 11449# Append the text in VALUE to the end of the definition contained in VAR. Take 11450# advantage of any shell optimizations that allow amortized linear growth over 11451# repeated appends, instead of the typical quadratic growth present in naive 11452# implementations. 11453if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11454 eval 'as_fn_append () 11455 { 11456 eval $1+=\$2 11457 }' 11458else 11459 as_fn_append () 11460 { 11461 eval $1=\$$1\$2 11462 } 11463fi # as_fn_append 11464 11465# as_fn_arith ARG... 11466# ------------------ 11467# Perform arithmetic evaluation on the ARGs, and store the result in the 11468# global $as_val. Take advantage of shells that can avoid forks. The arguments 11469# must be portable across $(()) and expr. 11470if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11471 eval 'as_fn_arith () 11472 { 11473 as_val=$(( $* )) 11474 }' 11475else 11476 as_fn_arith () 11477 { 11478 as_val=`expr "$@" || test $? -eq 1` 11479 } 11480fi # as_fn_arith 11481 11482 11483if expr a : '\(a\)' >/dev/null 2>&1 && 11484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11485 as_expr=expr 11486else 11487 as_expr=false 11488fi 11489 11490if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11491 as_basename=basename 11492else 11493 as_basename=false 11494fi 11495 11496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11497 as_dirname=dirname 11498else 11499 as_dirname=false 11500fi 11501 11502as_me=`$as_basename -- "$0" || 11503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11504 X"$0" : 'X\(//\)$' \| \ 11505 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11506$as_echo X/"$0" | 11507 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11508 s//\1/ 11509 q 11510 } 11511 /^X\/\(\/\/\)$/{ 11512 s//\1/ 11513 q 11514 } 11515 /^X\/\(\/\).*/{ 11516 s//\1/ 11517 q 11518 } 11519 s/.*/./; q'` 11520 11521# Avoid depending upon Character Ranges. 11522as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11524as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11525as_cr_digits='0123456789' 11526as_cr_alnum=$as_cr_Letters$as_cr_digits 11527 11528ECHO_C= ECHO_N= ECHO_T= 11529case `echo -n x` in #((((( 11530-n*) 11531 case `echo 'xy\c'` in 11532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11533 xy) ECHO_C='\c';; 11534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11535 ECHO_T=' ';; 11536 esac;; 11537*) 11538 ECHO_N='-n';; 11539esac 11540 11541rm -f conf$$ conf$$.exe conf$$.file 11542if test -d conf$$.dir; then 11543 rm -f conf$$.dir/conf$$.file 11544else 11545 rm -f conf$$.dir 11546 mkdir conf$$.dir 2>/dev/null 11547fi 11548if (echo >conf$$.file) 2>/dev/null; then 11549 if ln -s conf$$.file conf$$ 2>/dev/null; then 11550 as_ln_s='ln -s' 11551 # ... but there are two gotchas: 11552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11554 # In both cases, we have to default to `cp -pR'. 11555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11556 as_ln_s='cp -pR' 11557 elif ln conf$$.file conf$$ 2>/dev/null; then 11558 as_ln_s=ln 11559 else 11560 as_ln_s='cp -pR' 11561 fi 11562else 11563 as_ln_s='cp -pR' 11564fi 11565rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11566rmdir conf$$.dir 2>/dev/null 11567 11568 11569# as_fn_mkdir_p 11570# ------------- 11571# Create "$as_dir" as a directory, including parents if necessary. 11572as_fn_mkdir_p () 11573{ 11574 11575 case $as_dir in #( 11576 -*) as_dir=./$as_dir;; 11577 esac 11578 test -d "$as_dir" || eval $as_mkdir_p || { 11579 as_dirs= 11580 while :; do 11581 case $as_dir in #( 11582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11583 *) as_qdir=$as_dir;; 11584 esac 11585 as_dirs="'$as_qdir' $as_dirs" 11586 as_dir=`$as_dirname -- "$as_dir" || 11587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11588 X"$as_dir" : 'X\(//\)[^/]' \| \ 11589 X"$as_dir" : 'X\(//\)$' \| \ 11590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11591$as_echo X"$as_dir" | 11592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11593 s//\1/ 11594 q 11595 } 11596 /^X\(\/\/\)[^/].*/{ 11597 s//\1/ 11598 q 11599 } 11600 /^X\(\/\/\)$/{ 11601 s//\1/ 11602 q 11603 } 11604 /^X\(\/\).*/{ 11605 s//\1/ 11606 q 11607 } 11608 s/.*/./; q'` 11609 test -d "$as_dir" && break 11610 done 11611 test -z "$as_dirs" || eval "mkdir $as_dirs" 11612 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11613 11614 11615} # as_fn_mkdir_p 11616if mkdir -p . 2>/dev/null; then 11617 as_mkdir_p='mkdir -p "$as_dir"' 11618else 11619 test -d ./-p && rmdir ./-p 11620 as_mkdir_p=false 11621fi 11622 11623 11624# as_fn_executable_p FILE 11625# ----------------------- 11626# Test if FILE is an executable regular file. 11627as_fn_executable_p () 11628{ 11629 test -f "$1" && test -x "$1" 11630} # as_fn_executable_p 11631as_test_x='test -x' 11632as_executable_p=as_fn_executable_p 11633 11634# Sed expression to map a string onto a valid CPP name. 11635as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11636 11637# Sed expression to map a string onto a valid variable name. 11638as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11639 11640 11641exec 6>&1 11642## ----------------------------------- ## 11643## Main body of $CONFIG_STATUS script. ## 11644## ----------------------------------- ## 11645_ASEOF 11646test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11647 11648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11649# Save the log message, to keep $0 and so on meaningful, and to 11650# report actual input values of CONFIG_FILES etc. instead of their 11651# values after options handling. 11652ac_log=" 11653This file was extended by xman $as_me 1.1.4, which was 11654generated by GNU Autoconf 2.69. Invocation command line was 11655 11656 CONFIG_FILES = $CONFIG_FILES 11657 CONFIG_HEADERS = $CONFIG_HEADERS 11658 CONFIG_LINKS = $CONFIG_LINKS 11659 CONFIG_COMMANDS = $CONFIG_COMMANDS 11660 $ $0 $@ 11661 11662on `(hostname || uname -n) 2>/dev/null | sed 1q` 11663" 11664 11665_ACEOF 11666 11667case $ac_config_files in *" 11668"*) set x $ac_config_files; shift; ac_config_files=$*;; 11669esac 11670 11671case $ac_config_headers in *" 11672"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11673esac 11674 11675 11676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11677# Files that config.status was made for. 11678config_files="$ac_config_files" 11679config_headers="$ac_config_headers" 11680config_commands="$ac_config_commands" 11681 11682_ACEOF 11683 11684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11685ac_cs_usage="\ 11686\`$as_me' instantiates files and other configuration actions 11687from templates according to the current configuration. Unless the files 11688and actions are specified as TAGs, all are instantiated by default. 11689 11690Usage: $0 [OPTION]... [TAG]... 11691 11692 -h, --help print this help, then exit 11693 -V, --version print version number and configuration settings, then exit 11694 --config print configuration, then exit 11695 -q, --quiet, --silent 11696 do not print progress messages 11697 -d, --debug don't remove temporary files 11698 --recheck update $as_me by reconfiguring in the same conditions 11699 --file=FILE[:TEMPLATE] 11700 instantiate the configuration file FILE 11701 --header=FILE[:TEMPLATE] 11702 instantiate the configuration header FILE 11703 11704Configuration files: 11705$config_files 11706 11707Configuration headers: 11708$config_headers 11709 11710Configuration commands: 11711$config_commands 11712 11713Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11714 11715_ACEOF 11716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11717ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11718ac_cs_version="\\ 11719xman config.status 1.1.4 11720configured by $0, generated by GNU Autoconf 2.69, 11721 with options \\"\$ac_cs_config\\" 11722 11723Copyright (C) 2012 Free Software Foundation, Inc. 11724This config.status script is free software; the Free Software Foundation 11725gives unlimited permission to copy, distribute and modify it." 11726 11727ac_pwd='$ac_pwd' 11728srcdir='$srcdir' 11729INSTALL='$INSTALL' 11730MKDIR_P='$MKDIR_P' 11731AWK='$AWK' 11732test -n "\$AWK" || AWK=awk 11733_ACEOF 11734 11735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11736# The default lists apply if the user does not specify any file. 11737ac_need_defaults=: 11738while test $# != 0 11739do 11740 case $1 in 11741 --*=?*) 11742 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11743 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11744 ac_shift=: 11745 ;; 11746 --*=) 11747 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11748 ac_optarg= 11749 ac_shift=: 11750 ;; 11751 *) 11752 ac_option=$1 11753 ac_optarg=$2 11754 ac_shift=shift 11755 ;; 11756 esac 11757 11758 case $ac_option in 11759 # Handling of the options. 11760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11761 ac_cs_recheck=: ;; 11762 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11763 $as_echo "$ac_cs_version"; exit ;; 11764 --config | --confi | --conf | --con | --co | --c ) 11765 $as_echo "$ac_cs_config"; exit ;; 11766 --debug | --debu | --deb | --de | --d | -d ) 11767 debug=: ;; 11768 --file | --fil | --fi | --f ) 11769 $ac_shift 11770 case $ac_optarg in 11771 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11772 '') as_fn_error $? "missing file argument" ;; 11773 esac 11774 as_fn_append CONFIG_FILES " '$ac_optarg'" 11775 ac_need_defaults=false;; 11776 --header | --heade | --head | --hea ) 11777 $ac_shift 11778 case $ac_optarg in 11779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11780 esac 11781 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11782 ac_need_defaults=false;; 11783 --he | --h) 11784 # Conflict between --help and --header 11785 as_fn_error $? "ambiguous option: \`$1' 11786Try \`$0 --help' for more information.";; 11787 --help | --hel | -h ) 11788 $as_echo "$ac_cs_usage"; exit ;; 11789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11790 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11791 ac_cs_silent=: ;; 11792 11793 # This is an error. 11794 -*) as_fn_error $? "unrecognized option: \`$1' 11795Try \`$0 --help' for more information." ;; 11796 11797 *) as_fn_append ac_config_targets " $1" 11798 ac_need_defaults=false ;; 11799 11800 esac 11801 shift 11802done 11803 11804ac_configure_extra_args= 11805 11806if $ac_cs_silent; then 11807 exec 6>/dev/null 11808 ac_configure_extra_args="$ac_configure_extra_args --silent" 11809fi 11810 11811_ACEOF 11812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11813if \$ac_cs_recheck; then 11814 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11815 shift 11816 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11817 CONFIG_SHELL='$SHELL' 11818 export CONFIG_SHELL 11819 exec "\$@" 11820fi 11821 11822_ACEOF 11823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11824exec 5>>config.log 11825{ 11826 echo 11827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11828## Running $as_me. ## 11829_ASBOX 11830 $as_echo "$ac_log" 11831} >&5 11832 11833_ACEOF 11834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11835# 11836# INIT-COMMANDS 11837# 11838AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11839 11840_ACEOF 11841 11842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11843 11844# Handling of arguments. 11845for ac_config_target in $ac_config_targets 11846do 11847 case $ac_config_target in 11848 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11849 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11850 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11851 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11852 11853 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11854 esac 11855done 11856 11857 11858# If the user did not use the arguments to specify the items to instantiate, 11859# then the envvar interface is used. Set only those that are not. 11860# We use the long form for the default assignment because of an extremely 11861# bizarre bug on SunOS 4.1.3. 11862if $ac_need_defaults; then 11863 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11864 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11865 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11866fi 11867 11868# Have a temporary directory for convenience. Make it in the build tree 11869# simply because there is no reason against having it here, and in addition, 11870# creating and moving files from /tmp can sometimes cause problems. 11871# Hook for its removal unless debugging. 11872# Note that there is a small window in which the directory will not be cleaned: 11873# after its creation but before its name has been assigned to `$tmp'. 11874$debug || 11875{ 11876 tmp= ac_tmp= 11877 trap 'exit_status=$? 11878 : "${ac_tmp:=$tmp}" 11879 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11880' 0 11881 trap 'as_fn_exit 1' 1 2 13 15 11882} 11883# Create a (secure) tmp directory for tmp files. 11884 11885{ 11886 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11887 test -d "$tmp" 11888} || 11889{ 11890 tmp=./conf$$-$RANDOM 11891 (umask 077 && mkdir "$tmp") 11892} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11893ac_tmp=$tmp 11894 11895# Set up the scripts for CONFIG_FILES section. 11896# No need to generate them if there are no CONFIG_FILES. 11897# This happens for instance with `./config.status config.h'. 11898if test -n "$CONFIG_FILES"; then 11899 11900 11901ac_cr=`echo X | tr X '\015'` 11902# On cygwin, bash can eat \r inside `` if the user requested igncr. 11903# But we know of no other shell where ac_cr would be empty at this 11904# point, so we can use a bashism as a fallback. 11905if test "x$ac_cr" = x; then 11906 eval ac_cr=\$\'\\r\' 11907fi 11908ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11909if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11910 ac_cs_awk_cr='\\r' 11911else 11912 ac_cs_awk_cr=$ac_cr 11913fi 11914 11915echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11916_ACEOF 11917 11918 11919{ 11920 echo "cat >conf$$subs.awk <<_ACEOF" && 11921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11922 echo "_ACEOF" 11923} >conf$$subs.sh || 11924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11925ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11926ac_delim='%!_!# ' 11927for ac_last_try in false false false false false :; do 11928 . ./conf$$subs.sh || 11929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11930 11931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11932 if test $ac_delim_n = $ac_delim_num; then 11933 break 11934 elif $ac_last_try; then 11935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11936 else 11937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11938 fi 11939done 11940rm -f conf$$subs.sh 11941 11942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11943cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11944_ACEOF 11945sed -n ' 11946h 11947s/^/S["/; s/!.*/"]=/ 11948p 11949g 11950s/^[^!]*!// 11951:repl 11952t repl 11953s/'"$ac_delim"'$// 11954t delim 11955:nl 11956h 11957s/\(.\{148\}\)..*/\1/ 11958t more1 11959s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11960p 11961n 11962b repl 11963:more1 11964s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11965p 11966g 11967s/.\{148\}// 11968t nl 11969:delim 11970h 11971s/\(.\{148\}\)..*/\1/ 11972t more2 11973s/["\\]/\\&/g; s/^/"/; s/$/"/ 11974p 11975b 11976:more2 11977s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11978p 11979g 11980s/.\{148\}// 11981t delim 11982' <conf$$subs.awk | sed ' 11983/^[^""]/{ 11984 N 11985 s/\n// 11986} 11987' >>$CONFIG_STATUS || ac_write_fail=1 11988rm -f conf$$subs.awk 11989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11990_ACAWK 11991cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11992 for (key in S) S_is_set[key] = 1 11993 FS = "" 11994 11995} 11996{ 11997 line = $ 0 11998 nfields = split(line, field, "@") 11999 substed = 0 12000 len = length(field[1]) 12001 for (i = 2; i < nfields; i++) { 12002 key = field[i] 12003 keylen = length(key) 12004 if (S_is_set[key]) { 12005 value = S[key] 12006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12007 len += length(value) + length(field[++i]) 12008 substed = 1 12009 } else 12010 len += 1 + keylen 12011 } 12012 12013 print line 12014} 12015 12016_ACAWK 12017_ACEOF 12018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12019if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12020 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12021else 12022 cat 12023fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12024 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12025_ACEOF 12026 12027# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12028# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12029# trailing colons and then remove the whole line if VPATH becomes empty 12030# (actually we leave an empty line to preserve line numbers). 12031if test "x$srcdir" = x.; then 12032 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12033h 12034s/// 12035s/^/:/ 12036s/[ ]*$/:/ 12037s/:\$(srcdir):/:/g 12038s/:\${srcdir}:/:/g 12039s/:@srcdir@:/:/g 12040s/^:*// 12041s/:*$// 12042x 12043s/\(=[ ]*\).*/\1/ 12044G 12045s/\n// 12046s/^[^=]*=[ ]*$// 12047}' 12048fi 12049 12050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12051fi # test -n "$CONFIG_FILES" 12052 12053# Set up the scripts for CONFIG_HEADERS section. 12054# No need to generate them if there are no CONFIG_HEADERS. 12055# This happens for instance with `./config.status Makefile'. 12056if test -n "$CONFIG_HEADERS"; then 12057cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12058BEGIN { 12059_ACEOF 12060 12061# Transform confdefs.h into an awk script `defines.awk', embedded as 12062# here-document in config.status, that substitutes the proper values into 12063# config.h.in to produce config.h. 12064 12065# Create a delimiter string that does not exist in confdefs.h, to ease 12066# handling of long lines. 12067ac_delim='%!_!# ' 12068for ac_last_try in false false :; do 12069 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12070 if test -z "$ac_tt"; then 12071 break 12072 elif $ac_last_try; then 12073 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12074 else 12075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12076 fi 12077done 12078 12079# For the awk script, D is an array of macro values keyed by name, 12080# likewise P contains macro parameters if any. Preserve backslash 12081# newline sequences. 12082 12083ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12084sed -n ' 12085s/.\{148\}/&'"$ac_delim"'/g 12086t rset 12087:rset 12088s/^[ ]*#[ ]*define[ ][ ]*/ / 12089t def 12090d 12091:def 12092s/\\$// 12093t bsnl 12094s/["\\]/\\&/g 12095s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12096D["\1"]=" \3"/p 12097s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12098d 12099:bsnl 12100s/["\\]/\\&/g 12101s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12102D["\1"]=" \3\\\\\\n"\\/p 12103t cont 12104s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12105t cont 12106d 12107:cont 12108n 12109s/.\{148\}/&'"$ac_delim"'/g 12110t clear 12111:clear 12112s/\\$// 12113t bsnlc 12114s/["\\]/\\&/g; s/^/"/; s/$/"/p 12115d 12116:bsnlc 12117s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12118b cont 12119' <confdefs.h | sed ' 12120s/'"$ac_delim"'/"\\\ 12121"/g' >>$CONFIG_STATUS || ac_write_fail=1 12122 12123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12124 for (key in D) D_is_set[key] = 1 12125 FS = "" 12126} 12127/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12128 line = \$ 0 12129 split(line, arg, " ") 12130 if (arg[1] == "#") { 12131 defundef = arg[2] 12132 mac1 = arg[3] 12133 } else { 12134 defundef = substr(arg[1], 2) 12135 mac1 = arg[2] 12136 } 12137 split(mac1, mac2, "(") #) 12138 macro = mac2[1] 12139 prefix = substr(line, 1, index(line, defundef) - 1) 12140 if (D_is_set[macro]) { 12141 # Preserve the white space surrounding the "#". 12142 print prefix "define", macro P[macro] D[macro] 12143 next 12144 } else { 12145 # Replace #undef with comments. This is necessary, for example, 12146 # in the case of _POSIX_SOURCE, which is predefined and required 12147 # on some systems where configure will not decide to define it. 12148 if (defundef == "undef") { 12149 print "/*", prefix defundef, macro, "*/" 12150 next 12151 } 12152 } 12153} 12154{ print } 12155_ACAWK 12156_ACEOF 12157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12158 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12159fi # test -n "$CONFIG_HEADERS" 12160 12161 12162eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12163shift 12164for ac_tag 12165do 12166 case $ac_tag in 12167 :[FHLC]) ac_mode=$ac_tag; continue;; 12168 esac 12169 case $ac_mode$ac_tag in 12170 :[FHL]*:*);; 12171 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12172 :[FH]-) ac_tag=-:-;; 12173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12174 esac 12175 ac_save_IFS=$IFS 12176 IFS=: 12177 set x $ac_tag 12178 IFS=$ac_save_IFS 12179 shift 12180 ac_file=$1 12181 shift 12182 12183 case $ac_mode in 12184 :L) ac_source=$1;; 12185 :[FH]) 12186 ac_file_inputs= 12187 for ac_f 12188 do 12189 case $ac_f in 12190 -) ac_f="$ac_tmp/stdin";; 12191 *) # Look for the file first in the build tree, then in the source tree 12192 # (if the path is not absolute). The absolute path cannot be DOS-style, 12193 # because $ac_f cannot contain `:'. 12194 test -f "$ac_f" || 12195 case $ac_f in 12196 [\\/$]*) false;; 12197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12198 esac || 12199 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12200 esac 12201 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12202 as_fn_append ac_file_inputs " '$ac_f'" 12203 done 12204 12205 # Let's still pretend it is `configure' which instantiates (i.e., don't 12206 # use $as_me), people would be surprised to read: 12207 # /* config.h. Generated by config.status. */ 12208 configure_input='Generated from '` 12209 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12210 `' by configure.' 12211 if test x"$ac_file" != x-; then 12212 configure_input="$ac_file. $configure_input" 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12214$as_echo "$as_me: creating $ac_file" >&6;} 12215 fi 12216 # Neutralize special characters interpreted by sed in replacement strings. 12217 case $configure_input in #( 12218 *\&* | *\|* | *\\* ) 12219 ac_sed_conf_input=`$as_echo "$configure_input" | 12220 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12221 *) ac_sed_conf_input=$configure_input;; 12222 esac 12223 12224 case $ac_tag in 12225 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12227 esac 12228 ;; 12229 esac 12230 12231 ac_dir=`$as_dirname -- "$ac_file" || 12232$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12233 X"$ac_file" : 'X\(//\)[^/]' \| \ 12234 X"$ac_file" : 'X\(//\)$' \| \ 12235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12236$as_echo X"$ac_file" | 12237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12238 s//\1/ 12239 q 12240 } 12241 /^X\(\/\/\)[^/].*/{ 12242 s//\1/ 12243 q 12244 } 12245 /^X\(\/\/\)$/{ 12246 s//\1/ 12247 q 12248 } 12249 /^X\(\/\).*/{ 12250 s//\1/ 12251 q 12252 } 12253 s/.*/./; q'` 12254 as_dir="$ac_dir"; as_fn_mkdir_p 12255 ac_builddir=. 12256 12257case "$ac_dir" in 12258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12259*) 12260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12261 # A ".." for each directory in $ac_dir_suffix. 12262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12263 case $ac_top_builddir_sub in 12264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12266 esac ;; 12267esac 12268ac_abs_top_builddir=$ac_pwd 12269ac_abs_builddir=$ac_pwd$ac_dir_suffix 12270# for backward compatibility: 12271ac_top_builddir=$ac_top_build_prefix 12272 12273case $srcdir in 12274 .) # We are building in place. 12275 ac_srcdir=. 12276 ac_top_srcdir=$ac_top_builddir_sub 12277 ac_abs_top_srcdir=$ac_pwd ;; 12278 [\\/]* | ?:[\\/]* ) # Absolute name. 12279 ac_srcdir=$srcdir$ac_dir_suffix; 12280 ac_top_srcdir=$srcdir 12281 ac_abs_top_srcdir=$srcdir ;; 12282 *) # Relative name. 12283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12284 ac_top_srcdir=$ac_top_build_prefix$srcdir 12285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12286esac 12287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12288 12289 12290 case $ac_mode in 12291 :F) 12292 # 12293 # CONFIG_FILE 12294 # 12295 12296 case $INSTALL in 12297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12299 esac 12300 ac_MKDIR_P=$MKDIR_P 12301 case $MKDIR_P in 12302 [\\/$]* | ?:[\\/]* ) ;; 12303 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12304 esac 12305_ACEOF 12306 12307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12308# If the template does not know about datarootdir, expand it. 12309# FIXME: This hack should be removed a few years after 2.60. 12310ac_datarootdir_hack=; ac_datarootdir_seen= 12311ac_sed_dataroot=' 12312/datarootdir/ { 12313 p 12314 q 12315} 12316/@datadir@/p 12317/@docdir@/p 12318/@infodir@/p 12319/@localedir@/p 12320/@mandir@/p' 12321case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12322*datarootdir*) ac_datarootdir_seen=yes;; 12323*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12325$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12326_ACEOF 12327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12328 ac_datarootdir_hack=' 12329 s&@datadir@&$datadir&g 12330 s&@docdir@&$docdir&g 12331 s&@infodir@&$infodir&g 12332 s&@localedir@&$localedir&g 12333 s&@mandir@&$mandir&g 12334 s&\\\${datarootdir}&$datarootdir&g' ;; 12335esac 12336_ACEOF 12337 12338# Neutralize VPATH when `$srcdir' = `.'. 12339# Shell code in configure.ac might set extrasub. 12340# FIXME: do we really want to maintain this feature? 12341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12342ac_sed_extra="$ac_vpsub 12343$extrasub 12344_ACEOF 12345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12346:t 12347/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12348s|@configure_input@|$ac_sed_conf_input|;t t 12349s&@top_builddir@&$ac_top_builddir_sub&;t t 12350s&@top_build_prefix@&$ac_top_build_prefix&;t t 12351s&@srcdir@&$ac_srcdir&;t t 12352s&@abs_srcdir@&$ac_abs_srcdir&;t t 12353s&@top_srcdir@&$ac_top_srcdir&;t t 12354s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12355s&@builddir@&$ac_builddir&;t t 12356s&@abs_builddir@&$ac_abs_builddir&;t t 12357s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12358s&@INSTALL@&$ac_INSTALL&;t t 12359s&@MKDIR_P@&$ac_MKDIR_P&;t t 12360$ac_datarootdir_hack 12361" 12362eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12363 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12364 12365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12366 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12368 "$ac_tmp/out"`; test -z "$ac_out"; } && 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12370which seems to be undefined. Please make sure it is defined" >&5 12371$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12372which seems to be undefined. Please make sure it is defined" >&2;} 12373 12374 rm -f "$ac_tmp/stdin" 12375 case $ac_file in 12376 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12377 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12378 esac \ 12379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12380 ;; 12381 :H) 12382 # 12383 # CONFIG_HEADER 12384 # 12385 if test x"$ac_file" != x-; then 12386 { 12387 $as_echo "/* $configure_input */" \ 12388 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12389 } >"$ac_tmp/config.h" \ 12390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12391 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12393$as_echo "$as_me: $ac_file is unchanged" >&6;} 12394 else 12395 rm -f "$ac_file" 12396 mv "$ac_tmp/config.h" "$ac_file" \ 12397 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12398 fi 12399 else 12400 $as_echo "/* $configure_input */" \ 12401 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12402 || as_fn_error $? "could not create -" "$LINENO" 5 12403 fi 12404# Compute "$ac_file"'s index in $config_headers. 12405_am_arg="$ac_file" 12406_am_stamp_count=1 12407for _am_header in $config_headers :; do 12408 case $_am_header in 12409 $_am_arg | $_am_arg:* ) 12410 break ;; 12411 * ) 12412 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12413 esac 12414done 12415echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12416$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12417 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12418 X"$_am_arg" : 'X\(//\)$' \| \ 12419 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12420$as_echo X"$_am_arg" | 12421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12422 s//\1/ 12423 q 12424 } 12425 /^X\(\/\/\)[^/].*/{ 12426 s//\1/ 12427 q 12428 } 12429 /^X\(\/\/\)$/{ 12430 s//\1/ 12431 q 12432 } 12433 /^X\(\/\).*/{ 12434 s//\1/ 12435 q 12436 } 12437 s/.*/./; q'`/stamp-h$_am_stamp_count 12438 ;; 12439 12440 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12441$as_echo "$as_me: executing $ac_file commands" >&6;} 12442 ;; 12443 esac 12444 12445 12446 case $ac_file$ac_mode in 12447 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12448 # Older Autoconf quotes --file arguments for eval, but not when files 12449 # are listed without --file. Let's play safe and only enable the eval 12450 # if we detect the quoting. 12451 case $CONFIG_FILES in 12452 *\'*) eval set x "$CONFIG_FILES" ;; 12453 *) set x $CONFIG_FILES ;; 12454 esac 12455 shift 12456 for mf 12457 do 12458 # Strip MF so we end up with the name of the file. 12459 mf=`echo "$mf" | sed -e 's/:.*$//'` 12460 # Check whether this is an Automake generated Makefile or not. 12461 # We used to match only the files named 'Makefile.in', but 12462 # some people rename them; so instead we look at the file content. 12463 # Grep'ing the first line is not enough: some people post-process 12464 # each Makefile.in and add a new line on top of each file to say so. 12465 # Grep'ing the whole file is not good either: AIX grep has a line 12466 # limit of 2048, but all sed's we know have understand at least 4000. 12467 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12468 dirpart=`$as_dirname -- "$mf" || 12469$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12470 X"$mf" : 'X\(//\)[^/]' \| \ 12471 X"$mf" : 'X\(//\)$' \| \ 12472 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12473$as_echo X"$mf" | 12474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12475 s//\1/ 12476 q 12477 } 12478 /^X\(\/\/\)[^/].*/{ 12479 s//\1/ 12480 q 12481 } 12482 /^X\(\/\/\)$/{ 12483 s//\1/ 12484 q 12485 } 12486 /^X\(\/\).*/{ 12487 s//\1/ 12488 q 12489 } 12490 s/.*/./; q'` 12491 else 12492 continue 12493 fi 12494 # Extract the definition of DEPDIR, am__include, and am__quote 12495 # from the Makefile without running 'make'. 12496 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12497 test -z "$DEPDIR" && continue 12498 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12499 test -z "$am__include" && continue 12500 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12501 # Find all dependency output files, they are included files with 12502 # $(DEPDIR) in their names. We invoke sed twice because it is the 12503 # simplest approach to changing $(DEPDIR) to its actual value in the 12504 # expansion. 12505 for file in `sed -n " 12506 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12507 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12508 # Make sure the directory exists. 12509 test -f "$dirpart/$file" && continue 12510 fdir=`$as_dirname -- "$file" || 12511$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12512 X"$file" : 'X\(//\)[^/]' \| \ 12513 X"$file" : 'X\(//\)$' \| \ 12514 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12515$as_echo X"$file" | 12516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12517 s//\1/ 12518 q 12519 } 12520 /^X\(\/\/\)[^/].*/{ 12521 s//\1/ 12522 q 12523 } 12524 /^X\(\/\/\)$/{ 12525 s//\1/ 12526 q 12527 } 12528 /^X\(\/\).*/{ 12529 s//\1/ 12530 q 12531 } 12532 s/.*/./; q'` 12533 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12534 # echo "creating $dirpart/$file" 12535 echo '# dummy' > "$dirpart/$file" 12536 done 12537 done 12538} 12539 ;; 12540 12541 esac 12542done # for ac_tag 12543 12544 12545as_fn_exit 0 12546_ACEOF 12547ac_clean_files=$ac_clean_files_save 12548 12549test $ac_write_fail = 0 || 12550 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12551 12552 12553# configure is writing to config.log, and then calls config.status. 12554# config.status does its own redirection, appending to config.log. 12555# Unfortunately, on DOS this fails, as config.log is still kept open 12556# by configure, so config.status won't be able to write to it; its 12557# output is simply discarded. So we exec the FD to /dev/null, 12558# effectively closing config.log, so it can be properly (re)opened and 12559# appended to by config.status. When coming back to configure, we 12560# need to make the FD available again. 12561if test "$no_create" != yes; then 12562 ac_cs_success=: 12563 ac_config_status_args= 12564 test "$silent" = yes && 12565 ac_config_status_args="$ac_config_status_args --quiet" 12566 exec 5>/dev/null 12567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12568 exec 5>>config.log 12569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12570 # would make configure fail if this is the last instruction. 12571 $ac_cs_success || as_fn_exit 1 12572fi 12573if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12575$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12576fi 12577 12578