configure revision ae5a67ad
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xman 1.1.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://gitlab.freedesktop.org/xorg/app/xman/issues 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xman' 583PACKAGE_TARNAME='xman' 584PACKAGE_VERSION='1.1.5' 585PACKAGE_STRING='xman 1.1.5' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xman/issues' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630appdefaultdir 631APPDEFS_LIBS 632APPDEFS_CFLAGS 633XMAN_LIBS 634XMAN_CFLAGS 635HELPDIR 636MANDB 637GROFF 638MAN_SUBSTS 639XORG_MAN_PAGE 640ADMIN_MAN_DIR 641DRIVER_MAN_DIR 642MISC_MAN_DIR 643FILE_MAN_DIR 644LIB_MAN_DIR 645APP_MAN_DIR 646ADMIN_MAN_SUFFIX 647DRIVER_MAN_SUFFIX 648MISC_MAN_SUFFIX 649FILE_MAN_SUFFIX 650LIB_MAN_SUFFIX 651APP_MAN_SUFFIX 652SED 653host_os 654host_vendor 655host_cpu 656host 657build_os 658build_vendor 659build_cpu 660build 661INSTALL_CMD 662PKG_CONFIG_LIBDIR 663PKG_CONFIG_PATH 664PKG_CONFIG 665CHANGELOG_CMD 666STRICT_CFLAGS 667CWARNFLAGS 668BASE_CFLAGS 669EGREP 670GREP 671CPP 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__quote 680am__include 681DEPDIR 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689AM_BACKSLASH 690AM_DEFAULT_VERBOSITY 691AM_DEFAULT_V 692AM_V 693am__untar 694am__tar 695AMTAR 696am__leading_dot 697SET_MAKE 698AWK 699mkdir_p 700MKDIR_P 701INSTALL_STRIP_PROGRAM 702STRIP 703install_sh 704MAKEINFO 705AUTOHEADER 706AUTOMAKE 707AUTOCONF 708ACLOCAL 709VERSION 710PACKAGE 711CYGPATH_W 712am__isrc 713INSTALL_DATA 714INSTALL_SCRIPT 715INSTALL_PROGRAM 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_silent_rules 758enable_dependency_tracking 759enable_selective_werror 760enable_strict_compilation 761with_helpdir 762with_sysmanpath 763with_localmanpath 764with_manconfig 765with_appdefaultdir 766' 767 ac_precious_vars='build_alias 768host_alias 769target_alias 770CC 771CFLAGS 772LDFLAGS 773LIBS 774CPPFLAGS 775CPP 776PKG_CONFIG 777PKG_CONFIG_PATH 778PKG_CONFIG_LIBDIR 779XMAN_CFLAGS 780XMAN_LIBS 781APPDEFS_CFLAGS 782APPDEFS_LIBS' 783 784 785# Initialize some variables set by options. 786ac_init_help= 787ac_init_version=false 788ac_unrecognized_opts= 789ac_unrecognized_sep= 790# The variables have the same names as the options, with 791# dashes changed to underlines. 792cache_file=/dev/null 793exec_prefix=NONE 794no_create= 795no_recursion= 796prefix=NONE 797program_prefix=NONE 798program_suffix=NONE 799program_transform_name=s,x,x, 800silent= 801site= 802srcdir= 803verbose= 804x_includes=NONE 805x_libraries=NONE 806 807# Installation directory options. 808# These are left unexpanded so users can "make install exec_prefix=/foo" 809# and all the variables that are supposed to be based on exec_prefix 810# by default will actually change. 811# Use braces instead of parens because sh, perl, etc. also accept them. 812# (The list follows the same order as the GNU Coding Standards.) 813bindir='${exec_prefix}/bin' 814sbindir='${exec_prefix}/sbin' 815libexecdir='${exec_prefix}/libexec' 816datarootdir='${prefix}/share' 817datadir='${datarootdir}' 818sysconfdir='${prefix}/etc' 819sharedstatedir='${prefix}/com' 820localstatedir='${prefix}/var' 821includedir='${prefix}/include' 822oldincludedir='/usr/include' 823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 824infodir='${datarootdir}/info' 825htmldir='${docdir}' 826dvidir='${docdir}' 827pdfdir='${docdir}' 828psdir='${docdir}' 829libdir='${exec_prefix}/lib' 830localedir='${datarootdir}/locale' 831mandir='${datarootdir}/man' 832 833ac_prev= 834ac_dashdash= 835for ac_option 836do 837 # If the previous option needs an argument, assign it. 838 if test -n "$ac_prev"; then 839 eval $ac_prev=\$ac_option 840 ac_prev= 841 continue 842 fi 843 844 case $ac_option in 845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 846 *=) ac_optarg= ;; 847 *) ac_optarg=yes ;; 848 esac 849 850 # Accept the important Cygnus configure options, so we can diagnose typos. 851 852 case $ac_dashdash$ac_option in 853 --) 854 ac_dashdash=yes ;; 855 856 -bindir | --bindir | --bindi | --bind | --bin | --bi) 857 ac_prev=bindir ;; 858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 859 bindir=$ac_optarg ;; 860 861 -build | --build | --buil | --bui | --bu) 862 ac_prev=build_alias ;; 863 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 864 build_alias=$ac_optarg ;; 865 866 -cache-file | --cache-file | --cache-fil | --cache-fi \ 867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 868 ac_prev=cache_file ;; 869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 871 cache_file=$ac_optarg ;; 872 873 --config-cache | -C) 874 cache_file=config.cache ;; 875 876 -datadir | --datadir | --datadi | --datad) 877 ac_prev=datadir ;; 878 -datadir=* | --datadir=* | --datadi=* | --datad=*) 879 datadir=$ac_optarg ;; 880 881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 882 | --dataroo | --dataro | --datar) 883 ac_prev=datarootdir ;; 884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 886 datarootdir=$ac_optarg ;; 887 888 -disable-* | --disable-*) 889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 890 # Reject names that are not valid shell variable names. 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892 as_fn_error $? "invalid feature name: $ac_useropt" 893 ac_useropt_orig=$ac_useropt 894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895 case $ac_user_opts in 896 *" 897"enable_$ac_useropt" 898"*) ;; 899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=no ;; 903 904 -docdir | --docdir | --docdi | --doc | --do) 905 ac_prev=docdir ;; 906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 907 docdir=$ac_optarg ;; 908 909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 910 ac_prev=dvidir ;; 911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 912 dvidir=$ac_optarg ;; 913 914 -enable-* | --enable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 as_fn_error $? "invalid feature name: $ac_useropt" 919 ac_useropt_orig=$ac_useropt 920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 921 case $ac_user_opts in 922 *" 923"enable_$ac_useropt" 924"*) ;; 925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 926 ac_unrecognized_sep=', ';; 927 esac 928 eval enable_$ac_useropt=\$ac_optarg ;; 929 930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 932 | --exec | --exe | --ex) 933 ac_prev=exec_prefix ;; 934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 936 | --exec=* | --exe=* | --ex=*) 937 exec_prefix=$ac_optarg ;; 938 939 -gas | --gas | --ga | --g) 940 # Obsolete; use --with-gas. 941 with_gas=yes ;; 942 943 -help | --help | --hel | --he | -h) 944 ac_init_help=long ;; 945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 946 ac_init_help=recursive ;; 947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 948 ac_init_help=short ;; 949 950 -host | --host | --hos | --ho) 951 ac_prev=host_alias ;; 952 -host=* | --host=* | --hos=* | --ho=*) 953 host_alias=$ac_optarg ;; 954 955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 956 ac_prev=htmldir ;; 957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 958 | --ht=*) 959 htmldir=$ac_optarg ;; 960 961 -includedir | --includedir | --includedi | --included | --include \ 962 | --includ | --inclu | --incl | --inc) 963 ac_prev=includedir ;; 964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 965 | --includ=* | --inclu=* | --incl=* | --inc=*) 966 includedir=$ac_optarg ;; 967 968 -infodir | --infodir | --infodi | --infod | --info | --inf) 969 ac_prev=infodir ;; 970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 971 infodir=$ac_optarg ;; 972 973 -libdir | --libdir | --libdi | --libd) 974 ac_prev=libdir ;; 975 -libdir=* | --libdir=* | --libdi=* | --libd=*) 976 libdir=$ac_optarg ;; 977 978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 979 | --libexe | --libex | --libe) 980 ac_prev=libexecdir ;; 981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 982 | --libexe=* | --libex=* | --libe=*) 983 libexecdir=$ac_optarg ;; 984 985 -localedir | --localedir | --localedi | --localed | --locale) 986 ac_prev=localedir ;; 987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 988 localedir=$ac_optarg ;; 989 990 -localstatedir | --localstatedir | --localstatedi | --localstated \ 991 | --localstate | --localstat | --localsta | --localst | --locals) 992 ac_prev=localstatedir ;; 993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 995 localstatedir=$ac_optarg ;; 996 997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 998 ac_prev=mandir ;; 999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1000 mandir=$ac_optarg ;; 1001 1002 -nfp | --nfp | --nf) 1003 # Obsolete; use --without-fp. 1004 with_fp=no ;; 1005 1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1007 | --no-cr | --no-c | -n) 1008 no_create=yes ;; 1009 1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1012 no_recursion=yes ;; 1013 1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1016 | --oldin | --oldi | --old | --ol | --o) 1017 ac_prev=oldincludedir ;; 1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1021 oldincludedir=$ac_optarg ;; 1022 1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1024 ac_prev=prefix ;; 1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1026 prefix=$ac_optarg ;; 1027 1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1029 | --program-pre | --program-pr | --program-p) 1030 ac_prev=program_prefix ;; 1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1033 program_prefix=$ac_optarg ;; 1034 1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1036 | --program-suf | --program-su | --program-s) 1037 ac_prev=program_suffix ;; 1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1040 program_suffix=$ac_optarg ;; 1041 1042 -program-transform-name | --program-transform-name \ 1043 | --program-transform-nam | --program-transform-na \ 1044 | --program-transform-n | --program-transform- \ 1045 | --program-transform | --program-transfor \ 1046 | --program-transfo | --program-transf \ 1047 | --program-trans | --program-tran \ 1048 | --progr-tra | --program-tr | --program-t) 1049 ac_prev=program_transform_name ;; 1050 -program-transform-name=* | --program-transform-name=* \ 1051 | --program-transform-nam=* | --program-transform-na=* \ 1052 | --program-transform-n=* | --program-transform-=* \ 1053 | --program-transform=* | --program-transfor=* \ 1054 | --program-transfo=* | --program-transf=* \ 1055 | --program-trans=* | --program-tran=* \ 1056 | --progr-tra=* | --program-tr=* | --program-t=*) 1057 program_transform_name=$ac_optarg ;; 1058 1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1060 ac_prev=pdfdir ;; 1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1062 pdfdir=$ac_optarg ;; 1063 1064 -psdir | --psdir | --psdi | --psd | --ps) 1065 ac_prev=psdir ;; 1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1067 psdir=$ac_optarg ;; 1068 1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1070 | -silent | --silent | --silen | --sile | --sil) 1071 silent=yes ;; 1072 1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1074 ac_prev=sbindir ;; 1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1076 | --sbi=* | --sb=*) 1077 sbindir=$ac_optarg ;; 1078 1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1081 | --sharedst | --shareds | --shared | --share | --shar \ 1082 | --sha | --sh) 1083 ac_prev=sharedstatedir ;; 1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1087 | --sha=* | --sh=*) 1088 sharedstatedir=$ac_optarg ;; 1089 1090 -site | --site | --sit) 1091 ac_prev=site ;; 1092 -site=* | --site=* | --sit=*) 1093 site=$ac_optarg ;; 1094 1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1096 ac_prev=srcdir ;; 1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1098 srcdir=$ac_optarg ;; 1099 1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1101 | --syscon | --sysco | --sysc | --sys | --sy) 1102 ac_prev=sysconfdir ;; 1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1105 sysconfdir=$ac_optarg ;; 1106 1107 -target | --target | --targe | --targ | --tar | --ta | --t) 1108 ac_prev=target_alias ;; 1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1110 target_alias=$ac_optarg ;; 1111 1112 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1113 verbose=yes ;; 1114 1115 -version | --version | --versio | --versi | --vers | -V) 1116 ac_init_version=: ;; 1117 1118 -with-* | --with-*) 1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1122 as_fn_error $? "invalid package name: $ac_useropt" 1123 ac_useropt_orig=$ac_useropt 1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1125 case $ac_user_opts in 1126 *" 1127"with_$ac_useropt" 1128"*) ;; 1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1130 ac_unrecognized_sep=', ';; 1131 esac 1132 eval with_$ac_useropt=\$ac_optarg ;; 1133 1134 -without-* | --without-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 as_fn_error $? "invalid package name: $ac_useropt" 1139 ac_useropt_orig=$ac_useropt 1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1141 case $ac_user_opts in 1142 *" 1143"with_$ac_useropt" 1144"*) ;; 1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1146 ac_unrecognized_sep=', ';; 1147 esac 1148 eval with_$ac_useropt=no ;; 1149 1150 --x) 1151 # Obsolete; use --with-x. 1152 with_x=yes ;; 1153 1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1155 | --x-incl | --x-inc | --x-in | --x-i) 1156 ac_prev=x_includes ;; 1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1159 x_includes=$ac_optarg ;; 1160 1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1163 ac_prev=x_libraries ;; 1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1166 x_libraries=$ac_optarg ;; 1167 1168 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1169Try \`$0 --help' for more information" 1170 ;; 1171 1172 *=*) 1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1174 # Reject names that are not valid shell variable names. 1175 case $ac_envvar in #( 1176 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1178 esac 1179 eval $ac_envvar=\$ac_optarg 1180 export $ac_envvar ;; 1181 1182 *) 1183 # FIXME: should be removed in autoconf 3.0. 1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1188 ;; 1189 1190 esac 1191done 1192 1193if test -n "$ac_prev"; then 1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1195 as_fn_error $? "missing argument to $ac_option" 1196fi 1197 1198if test -n "$ac_unrecognized_opts"; then 1199 case $enable_option_checking in 1200 no) ;; 1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1203 esac 1204fi 1205 1206# Check all directory arguments for consistency. 1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1208 datadir sysconfdir sharedstatedir localstatedir includedir \ 1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1210 libdir localedir mandir 1211do 1212 eval ac_val=\$$ac_var 1213 # Remove trailing slashes. 1214 case $ac_val in 1215 */ ) 1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1217 eval $ac_var=\$ac_val;; 1218 esac 1219 # Be sure to have absolute directory names. 1220 case $ac_val in 1221 [\\/$]* | ?:[\\/]* ) continue;; 1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1223 esac 1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1225done 1226 1227# There might be people who depend on the old broken behavior: `$host' 1228# used to hold the argument of --host etc. 1229# FIXME: To remove some day. 1230build=$build_alias 1231host=$host_alias 1232target=$target_alias 1233 1234# FIXME: To remove some day. 1235if test "x$host_alias" != x; then 1236 if test "x$build_alias" = x; then 1237 cross_compiling=maybe 1238 elif test "x$build_alias" != "x$host_alias"; then 1239 cross_compiling=yes 1240 fi 1241fi 1242 1243ac_tool_prefix= 1244test -n "$host_alias" && ac_tool_prefix=$host_alias- 1245 1246test "$silent" = yes && exec 6>/dev/null 1247 1248 1249ac_pwd=`pwd` && test -n "$ac_pwd" && 1250ac_ls_di=`ls -di .` && 1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1252 as_fn_error $? "working directory cannot be determined" 1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1254 as_fn_error $? "pwd does not report name of working directory" 1255 1256 1257# Find the source files, if location was not specified. 1258if test -z "$srcdir"; then 1259 ac_srcdir_defaulted=yes 1260 # Try the directory containing this script, then the parent directory. 1261 ac_confdir=`$as_dirname -- "$as_myself" || 1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1263 X"$as_myself" : 'X\(//\)[^/]' \| \ 1264 X"$as_myself" : 'X\(//\)$' \| \ 1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1266$as_echo X"$as_myself" | 1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1268 s//\1/ 1269 q 1270 } 1271 /^X\(\/\/\)[^/].*/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\).*/{ 1280 s//\1/ 1281 q 1282 } 1283 s/.*/./; q'` 1284 srcdir=$ac_confdir 1285 if test ! -r "$srcdir/$ac_unique_file"; then 1286 srcdir=.. 1287 fi 1288else 1289 ac_srcdir_defaulted=no 1290fi 1291if test ! -r "$srcdir/$ac_unique_file"; then 1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1294fi 1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1296ac_abs_confdir=`( 1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1298 pwd)` 1299# When building in place, set srcdir=. 1300if test "$ac_abs_confdir" = "$ac_pwd"; then 1301 srcdir=. 1302fi 1303# Remove unnecessary trailing slashes from srcdir. 1304# Double slashes in file names in object file debugging info 1305# mess up M-x gdb in Emacs. 1306case $srcdir in 1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1308esac 1309for ac_var in $ac_precious_vars; do 1310 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1311 eval ac_env_${ac_var}_value=\$${ac_var} 1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1313 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1314done 1315 1316# 1317# Report the --help message. 1318# 1319if test "$ac_init_help" = "long"; then 1320 # Omit some internal or obsolete options to make the list less imposing. 1321 # This message is too long to be a string in the A/UX 3.1 sh. 1322 cat <<_ACEOF 1323\`configure' configures xman 1.1.5 to adapt to many kinds of systems. 1324 1325Usage: $0 [OPTION]... [VAR=VALUE]... 1326 1327To assign environment variables (e.g., CC, CFLAGS...), specify them as 1328VAR=VALUE. See below for descriptions of some of the useful variables. 1329 1330Defaults for the options are specified in brackets. 1331 1332Configuration: 1333 -h, --help display this help and exit 1334 --help=short display options specific to this package 1335 --help=recursive display the short help of all the included packages 1336 -V, --version display version information and exit 1337 -q, --quiet, --silent do not print \`checking ...' messages 1338 --cache-file=FILE cache test results in FILE [disabled] 1339 -C, --config-cache alias for \`--cache-file=config.cache' 1340 -n, --no-create do not create output files 1341 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1342 1343Installation directories: 1344 --prefix=PREFIX install architecture-independent files in PREFIX 1345 [$ac_default_prefix] 1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1347 [PREFIX] 1348 1349By default, \`make install' will install all the files in 1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1351an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1352for instance \`--prefix=\$HOME'. 1353 1354For better control, use the options below. 1355 1356Fine tuning of the installation directories: 1357 --bindir=DIR user executables [EPREFIX/bin] 1358 --sbindir=DIR system admin executables [EPREFIX/sbin] 1359 --libexecdir=DIR program executables [EPREFIX/libexec] 1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1363 --libdir=DIR object code libraries [EPREFIX/lib] 1364 --includedir=DIR C header files [PREFIX/include] 1365 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1368 --infodir=DIR info documentation [DATAROOTDIR/info] 1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1370 --mandir=DIR man documentation [DATAROOTDIR/man] 1371 --docdir=DIR documentation root [DATAROOTDIR/doc/xman] 1372 --htmldir=DIR html documentation [DOCDIR] 1373 --dvidir=DIR dvi documentation [DOCDIR] 1374 --pdfdir=DIR pdf documentation [DOCDIR] 1375 --psdir=DIR ps documentation [DOCDIR] 1376_ACEOF 1377 1378 cat <<\_ACEOF 1379 1380Program names: 1381 --program-prefix=PREFIX prepend PREFIX to installed program names 1382 --program-suffix=SUFFIX append SUFFIX to installed program names 1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1384 1385System types: 1386 --build=BUILD configure for building on BUILD [guessed] 1387 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1388_ACEOF 1389fi 1390 1391if test -n "$ac_init_help"; then 1392 case $ac_init_help in 1393 short | recursive ) echo "Configuration of xman 1.1.5:";; 1394 esac 1395 cat <<\_ACEOF 1396 1397Optional Features: 1398 --disable-option-checking ignore unrecognized --enable/--with options 1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1401 --enable-silent-rules less verbose build output (undo: "make V=1") 1402 --disable-silent-rules verbose build output (undo: "make V=0") 1403 --enable-dependency-tracking 1404 do not reject slow dependency extractors 1405 --disable-dependency-tracking 1406 speeds up one-time build 1407 --disable-selective-werror 1408 Turn off selective compiler errors. (default: 1409 enabled) 1410 --enable-strict-compilation 1411 Enable all warnings from compiler and make them 1412 errors (default: disabled) 1413 1414Optional Packages: 1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1417 --with-helpdir=<path> Set default directory for xman.help (default: 1418 ${datadir}/X11) 1419 --with-sysmanpath=<path> 1420 Set default system man page search path 1421 --with-localmanpath=<path> 1422 Set default local man page search path 1423 --with-manconfig=<filename> 1424 Set default system man configuration file 1425 --with-appdefaultdir=<pathname> 1426 specify directory for app-defaults files (default is 1427 autodetected) 1428 1429Some influential environment variables: 1430 CC C compiler command 1431 CFLAGS C compiler flags 1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1433 nonstandard directory <lib dir> 1434 LIBS libraries to pass to the linker, e.g. -l<library> 1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1436 you have headers in a nonstandard directory <include dir> 1437 CPP C preprocessor 1438 PKG_CONFIG path to pkg-config utility 1439 PKG_CONFIG_PATH 1440 directories to add to pkg-config's search path 1441 PKG_CONFIG_LIBDIR 1442 path overriding pkg-config's built-in search path 1443 XMAN_CFLAGS C compiler flags for XMAN, overriding pkg-config 1444 XMAN_LIBS linker flags for XMAN, overriding pkg-config 1445 APPDEFS_CFLAGS 1446 C compiler flags for APPDEFS, overriding pkg-config 1447 APPDEFS_LIBS 1448 linker flags for APPDEFS, overriding pkg-config 1449 1450Use these variables to override the choices made by `configure' or to help 1451it to find libraries and programs with nonstandard names/locations. 1452 1453Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/issues>. 1454_ACEOF 1455ac_status=$? 1456fi 1457 1458if test "$ac_init_help" = "recursive"; then 1459 # If there are subdirs, report their specific --help. 1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1461 test -d "$ac_dir" || 1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1463 continue 1464 ac_builddir=. 1465 1466case "$ac_dir" in 1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468*) 1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1470 # A ".." for each directory in $ac_dir_suffix. 1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1472 case $ac_top_builddir_sub in 1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1475 esac ;; 1476esac 1477ac_abs_top_builddir=$ac_pwd 1478ac_abs_builddir=$ac_pwd$ac_dir_suffix 1479# for backward compatibility: 1480ac_top_builddir=$ac_top_build_prefix 1481 1482case $srcdir in 1483 .) # We are building in place. 1484 ac_srcdir=. 1485 ac_top_srcdir=$ac_top_builddir_sub 1486 ac_abs_top_srcdir=$ac_pwd ;; 1487 [\\/]* | ?:[\\/]* ) # Absolute name. 1488 ac_srcdir=$srcdir$ac_dir_suffix; 1489 ac_top_srcdir=$srcdir 1490 ac_abs_top_srcdir=$srcdir ;; 1491 *) # Relative name. 1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1493 ac_top_srcdir=$ac_top_build_prefix$srcdir 1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1495esac 1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1497 1498 cd "$ac_dir" || { ac_status=$?; continue; } 1499 # Check for guested configure. 1500 if test -f "$ac_srcdir/configure.gnu"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1503 elif test -f "$ac_srcdir/configure"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure" --help=recursive 1506 else 1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1508 fi || ac_status=$? 1509 cd "$ac_pwd" || { ac_status=$?; break; } 1510 done 1511fi 1512 1513test -n "$ac_init_help" && exit $ac_status 1514if $ac_init_version; then 1515 cat <<\_ACEOF 1516xman configure 1.1.5 1517generated by GNU Autoconf 2.69 1518 1519Copyright (C) 2012 Free Software Foundation, Inc. 1520This configure script is free software; the Free Software Foundation 1521gives unlimited permission to copy, distribute and modify it. 1522_ACEOF 1523 exit 1524fi 1525 1526## ------------------------ ## 1527## Autoconf initialization. ## 1528## ------------------------ ## 1529 1530# ac_fn_c_try_compile LINENO 1531# -------------------------- 1532# Try to compile conftest.$ac_ext, and return whether this succeeded. 1533ac_fn_c_try_compile () 1534{ 1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1536 rm -f conftest.$ac_objext 1537 if { { ac_try="$ac_compile" 1538case "(($ac_try" in 1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1540 *) ac_try_echo=$ac_try;; 1541esac 1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1543$as_echo "$ac_try_echo"; } >&5 1544 (eval "$ac_compile") 2>conftest.err 1545 ac_status=$? 1546 if test -s conftest.err; then 1547 grep -v '^ *+' conftest.err >conftest.er1 1548 cat conftest.er1 >&5 1549 mv -f conftest.er1 conftest.err 1550 fi 1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1552 test $ac_status = 0; } && { 1553 test -z "$ac_c_werror_flag" || 1554 test ! -s conftest.err 1555 } && test -s conftest.$ac_objext; then : 1556 ac_retval=0 1557else 1558 $as_echo "$as_me: failed program was:" >&5 1559sed 's/^/| /' conftest.$ac_ext >&5 1560 1561 ac_retval=1 1562fi 1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1564 as_fn_set_status $ac_retval 1565 1566} # ac_fn_c_try_compile 1567 1568# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1569# --------------------------------------------- 1570# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1571# accordingly. 1572ac_fn_c_check_decl () 1573{ 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 as_decl_name=`echo $2|sed 's/ *(.*//'` 1576 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1578$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1579if eval \${$3+:} false; then : 1580 $as_echo_n "(cached) " >&6 1581else 1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1583/* end confdefs.h. */ 1584$4 1585int 1586main () 1587{ 1588#ifndef $as_decl_name 1589#ifdef __cplusplus 1590 (void) $as_decl_use; 1591#else 1592 (void) $as_decl_name; 1593#endif 1594#endif 1595 1596 ; 1597 return 0; 1598} 1599_ACEOF 1600if ac_fn_c_try_compile "$LINENO"; then : 1601 eval "$3=yes" 1602else 1603 eval "$3=no" 1604fi 1605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1606fi 1607eval ac_res=\$$3 1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1609$as_echo "$ac_res" >&6; } 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 1612} # ac_fn_c_check_decl 1613 1614# ac_fn_c_try_cpp LINENO 1615# ---------------------- 1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1617ac_fn_c_try_cpp () 1618{ 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 if { { ac_try="$ac_cpp conftest.$ac_ext" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626$as_echo "$ac_try_echo"; } >&5 1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } > conftest.i && { 1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 }; then : 1639 ac_retval=0 1640else 1641 $as_echo "$as_me: failed program was:" >&5 1642sed 's/^/| /' conftest.$ac_ext >&5 1643 1644 ac_retval=1 1645fi 1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647 as_fn_set_status $ac_retval 1648 1649} # ac_fn_c_try_cpp 1650 1651# ac_fn_c_try_run LINENO 1652# ---------------------- 1653# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1654# that executables *can* be run. 1655ac_fn_c_try_run () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 if { { ac_try="$ac_link" 1659case "(($ac_try" in 1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1661 *) ac_try_echo=$ac_try;; 1662esac 1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664$as_echo "$ac_try_echo"; } >&5 1665 (eval "$ac_link") 2>&5 1666 ac_status=$? 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1669 { { case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_try") 2>&5 1676 ac_status=$? 1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1678 test $ac_status = 0; }; }; then : 1679 ac_retval=0 1680else 1681 $as_echo "$as_me: program exited with status $ac_status" >&5 1682 $as_echo "$as_me: failed program was:" >&5 1683sed 's/^/| /' conftest.$ac_ext >&5 1684 1685 ac_retval=$ac_status 1686fi 1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691} # ac_fn_c_try_run 1692 1693# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1694# ------------------------------------------------------- 1695# Tests whether HEADER exists and can be compiled using the include files in 1696# INCLUDES, setting the cache variable VAR accordingly. 1697ac_fn_c_check_header_compile () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1701$as_echo_n "checking for $2... " >&6; } 1702if eval \${$3+:} false; then : 1703 $as_echo_n "(cached) " >&6 1704else 1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1706/* end confdefs.h. */ 1707$4 1708#include <$2> 1709_ACEOF 1710if ac_fn_c_try_compile "$LINENO"; then : 1711 eval "$3=yes" 1712else 1713 eval "$3=no" 1714fi 1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1716fi 1717eval ac_res=\$$3 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1719$as_echo "$ac_res" >&6; } 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 1722} # ac_fn_c_check_header_compile 1723 1724# ac_fn_c_try_link LINENO 1725# ----------------------- 1726# Try to link conftest.$ac_ext, and return whether this succeeded. 1727ac_fn_c_try_link () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 rm -f conftest.$ac_objext conftest$ac_exeext 1731 if { { ac_try="$ac_link" 1732case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735esac 1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737$as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_link") 2>conftest.err 1739 ac_status=$? 1740 if test -s conftest.err; then 1741 grep -v '^ *+' conftest.err >conftest.er1 1742 cat conftest.er1 >&5 1743 mv -f conftest.er1 conftest.err 1744 fi 1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1746 test $ac_status = 0; } && { 1747 test -z "$ac_c_werror_flag" || 1748 test ! -s conftest.err 1749 } && test -s conftest$ac_exeext && { 1750 test "$cross_compiling" = yes || 1751 test -x conftest$ac_exeext 1752 }; then : 1753 ac_retval=0 1754else 1755 $as_echo "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 1759fi 1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1762 # interfere with the next link command; also delete a directory that is 1763 # left behind by Apple's compiler. We do this before executing the actions. 1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 as_fn_set_status $ac_retval 1767 1768} # ac_fn_c_try_link 1769 1770# ac_fn_c_check_func LINENO FUNC VAR 1771# ---------------------------------- 1772# Tests whether FUNC exists, setting the cache variable VAR accordingly 1773ac_fn_c_check_func () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1777$as_echo_n "checking for $2... " >&6; } 1778if eval \${$3+:} false; then : 1779 $as_echo_n "(cached) " >&6 1780else 1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1782/* end confdefs.h. */ 1783/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1785#define $2 innocuous_$2 1786 1787/* System header to define __stub macros and hopefully few prototypes, 1788 which can conflict with char $2 (); below. 1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1790 <limits.h> exists even on freestanding compilers. */ 1791 1792#ifdef __STDC__ 1793# include <limits.h> 1794#else 1795# include <assert.h> 1796#endif 1797 1798#undef $2 1799 1800/* Override any GCC internal prototype to avoid an error. 1801 Use char because int might match the return type of a GCC 1802 builtin and then its argument prototype would still apply. */ 1803#ifdef __cplusplus 1804extern "C" 1805#endif 1806char $2 (); 1807/* The GNU C library defines this for functions which it implements 1808 to always fail with ENOSYS. Some functions are actually named 1809 something starting with __ and the normal name is an alias. */ 1810#if defined __stub_$2 || defined __stub___$2 1811choke me 1812#endif 1813 1814int 1815main () 1816{ 1817return $2 (); 1818 ; 1819 return 0; 1820} 1821_ACEOF 1822if ac_fn_c_try_link "$LINENO"; then : 1823 eval "$3=yes" 1824else 1825 eval "$3=no" 1826fi 1827rm -f core conftest.err conftest.$ac_objext \ 1828 conftest$ac_exeext conftest.$ac_ext 1829fi 1830eval ac_res=\$$3 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1832$as_echo "$ac_res" >&6; } 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1834 1835} # ac_fn_c_check_func 1836cat >config.log <<_ACEOF 1837This file contains any messages produced by compilers while 1838running configure, to aid debugging if configure makes a mistake. 1839 1840It was created by xman $as_me 1.1.5, which was 1841generated by GNU Autoconf 2.69. Invocation command line was 1842 1843 $ $0 $@ 1844 1845_ACEOF 1846exec 5>>config.log 1847{ 1848cat <<_ASUNAME 1849## --------- ## 1850## Platform. ## 1851## --------- ## 1852 1853hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1854uname -m = `(uname -m) 2>/dev/null || echo unknown` 1855uname -r = `(uname -r) 2>/dev/null || echo unknown` 1856uname -s = `(uname -s) 2>/dev/null || echo unknown` 1857uname -v = `(uname -v) 2>/dev/null || echo unknown` 1858 1859/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1860/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1861 1862/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1863/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1864/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1865/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1866/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1867/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1868/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1869 1870_ASUNAME 1871 1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1873for as_dir in $PATH 1874do 1875 IFS=$as_save_IFS 1876 test -z "$as_dir" && as_dir=. 1877 $as_echo "PATH: $as_dir" 1878 done 1879IFS=$as_save_IFS 1880 1881} >&5 1882 1883cat >&5 <<_ACEOF 1884 1885 1886## ----------- ## 1887## Core tests. ## 1888## ----------- ## 1889 1890_ACEOF 1891 1892 1893# Keep a trace of the command line. 1894# Strip out --no-create and --no-recursion so they do not pile up. 1895# Strip out --silent because we don't want to record it for future runs. 1896# Also quote any args containing shell meta-characters. 1897# Make two passes to allow for proper duplicate-argument suppression. 1898ac_configure_args= 1899ac_configure_args0= 1900ac_configure_args1= 1901ac_must_keep_next=false 1902for ac_pass in 1 2 1903do 1904 for ac_arg 1905 do 1906 case $ac_arg in 1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1909 | -silent | --silent | --silen | --sile | --sil) 1910 continue ;; 1911 *\'*) 1912 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1913 esac 1914 case $ac_pass in 1915 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1916 2) 1917 as_fn_append ac_configure_args1 " '$ac_arg'" 1918 if test $ac_must_keep_next = true; then 1919 ac_must_keep_next=false # Got value, back to normal. 1920 else 1921 case $ac_arg in 1922 *=* | --config-cache | -C | -disable-* | --disable-* \ 1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1925 | -with-* | --with-* | -without-* | --without-* | --x) 1926 case "$ac_configure_args0 " in 1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1928 esac 1929 ;; 1930 -* ) ac_must_keep_next=true ;; 1931 esac 1932 fi 1933 as_fn_append ac_configure_args " '$ac_arg'" 1934 ;; 1935 esac 1936 done 1937done 1938{ ac_configure_args0=; unset ac_configure_args0;} 1939{ ac_configure_args1=; unset ac_configure_args1;} 1940 1941# When interrupted or exit'd, cleanup temporary files, and complete 1942# config.log. We remove comments because anyway the quotes in there 1943# would cause problems or look ugly. 1944# WARNING: Use '\'' to represent an apostrophe within the trap. 1945# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1946trap 'exit_status=$? 1947 # Save into config.log some information that might help in debugging. 1948 { 1949 echo 1950 1951 $as_echo "## ---------------- ## 1952## Cache variables. ## 1953## ---------------- ##" 1954 echo 1955 # The following way of writing the cache mishandles newlines in values, 1956( 1957 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1958 eval ac_val=\$$ac_var 1959 case $ac_val in #( 1960 *${as_nl}*) 1961 case $ac_var in #( 1962 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1963$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1964 esac 1965 case $ac_var in #( 1966 _ | IFS | as_nl) ;; #( 1967 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1968 *) { eval $ac_var=; unset $ac_var;} ;; 1969 esac ;; 1970 esac 1971 done 1972 (set) 2>&1 | 1973 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1974 *${as_nl}ac_space=\ *) 1975 sed -n \ 1976 "s/'\''/'\''\\\\'\'''\''/g; 1977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1978 ;; #( 1979 *) 1980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1981 ;; 1982 esac | 1983 sort 1984) 1985 echo 1986 1987 $as_echo "## ----------------- ## 1988## Output variables. ## 1989## ----------------- ##" 1990 echo 1991 for ac_var in $ac_subst_vars 1992 do 1993 eval ac_val=\$$ac_var 1994 case $ac_val in 1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1996 esac 1997 $as_echo "$ac_var='\''$ac_val'\''" 1998 done | sort 1999 echo 2000 2001 if test -n "$ac_subst_files"; then 2002 $as_echo "## ------------------- ## 2003## File substitutions. ## 2004## ------------------- ##" 2005 echo 2006 for ac_var in $ac_subst_files 2007 do 2008 eval ac_val=\$$ac_var 2009 case $ac_val in 2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2011 esac 2012 $as_echo "$ac_var='\''$ac_val'\''" 2013 done | sort 2014 echo 2015 fi 2016 2017 if test -s confdefs.h; then 2018 $as_echo "## ----------- ## 2019## confdefs.h. ## 2020## ----------- ##" 2021 echo 2022 cat confdefs.h 2023 echo 2024 fi 2025 test "$ac_signal" != 0 && 2026 $as_echo "$as_me: caught signal $ac_signal" 2027 $as_echo "$as_me: exit $exit_status" 2028 } >&5 2029 rm -f core *.core core.conftest.* && 2030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2031 exit $exit_status 2032' 0 2033for ac_signal in 1 2 13 15; do 2034 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2035done 2036ac_signal=0 2037 2038# confdefs.h avoids OS command line length limits that DEFS can exceed. 2039rm -f -r conftest* confdefs.h 2040 2041$as_echo "/* confdefs.h */" > confdefs.h 2042 2043# Predefined preprocessor variables. 2044 2045cat >>confdefs.h <<_ACEOF 2046#define PACKAGE_NAME "$PACKAGE_NAME" 2047_ACEOF 2048 2049cat >>confdefs.h <<_ACEOF 2050#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2051_ACEOF 2052 2053cat >>confdefs.h <<_ACEOF 2054#define PACKAGE_VERSION "$PACKAGE_VERSION" 2055_ACEOF 2056 2057cat >>confdefs.h <<_ACEOF 2058#define PACKAGE_STRING "$PACKAGE_STRING" 2059_ACEOF 2060 2061cat >>confdefs.h <<_ACEOF 2062#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2063_ACEOF 2064 2065cat >>confdefs.h <<_ACEOF 2066#define PACKAGE_URL "$PACKAGE_URL" 2067_ACEOF 2068 2069 2070# Let the site file select an alternate cache file if it wants to. 2071# Prefer an explicitly selected file to automatically selected ones. 2072ac_site_file1=NONE 2073ac_site_file2=NONE 2074if test -n "$CONFIG_SITE"; then 2075 # We do not want a PATH search for config.site. 2076 case $CONFIG_SITE in #(( 2077 -*) ac_site_file1=./$CONFIG_SITE;; 2078 */*) ac_site_file1=$CONFIG_SITE;; 2079 *) ac_site_file1=./$CONFIG_SITE;; 2080 esac 2081elif test "x$prefix" != xNONE; then 2082 ac_site_file1=$prefix/share/config.site 2083 ac_site_file2=$prefix/etc/config.site 2084else 2085 ac_site_file1=$ac_default_prefix/share/config.site 2086 ac_site_file2=$ac_default_prefix/etc/config.site 2087fi 2088for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2089do 2090 test "x$ac_site_file" = xNONE && continue 2091 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2093$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2094 sed 's/^/| /' "$ac_site_file" >&5 2095 . "$ac_site_file" \ 2096 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2098as_fn_error $? "failed to load site script $ac_site_file 2099See \`config.log' for more details" "$LINENO" 5; } 2100 fi 2101done 2102 2103if test -r "$cache_file"; then 2104 # Some versions of bash will fail to source /dev/null (special files 2105 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2106 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2108$as_echo "$as_me: loading cache $cache_file" >&6;} 2109 case $cache_file in 2110 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2111 *) . "./$cache_file";; 2112 esac 2113 fi 2114else 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2116$as_echo "$as_me: creating cache $cache_file" >&6;} 2117 >$cache_file 2118fi 2119 2120# Check that the precious variables saved in the cache have kept the same 2121# value. 2122ac_cache_corrupted=false 2123for ac_var in $ac_precious_vars; do 2124 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2125 eval ac_new_set=\$ac_env_${ac_var}_set 2126 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2127 eval ac_new_val=\$ac_env_${ac_var}_value 2128 case $ac_old_set,$ac_new_set in 2129 set,) 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2131$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2132 ac_cache_corrupted=: ;; 2133 ,set) 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2135$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2136 ac_cache_corrupted=: ;; 2137 ,);; 2138 *) 2139 if test "x$ac_old_val" != "x$ac_new_val"; then 2140 # differences in whitespace do not lead to failure. 2141 ac_old_val_w=`echo x $ac_old_val` 2142 ac_new_val_w=`echo x $ac_new_val` 2143 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2145$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2146 ac_cache_corrupted=: 2147 else 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2149$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2150 eval $ac_var=\$ac_old_val 2151 fi 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2153$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2155$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2156 fi;; 2157 esac 2158 # Pass precious variables to config.status. 2159 if test "$ac_new_set" = set; then 2160 case $ac_new_val in 2161 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2162 *) ac_arg=$ac_var=$ac_new_val ;; 2163 esac 2164 case " $ac_configure_args " in 2165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2166 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2167 esac 2168 fi 2169done 2170if $ac_cache_corrupted; then 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2174$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2175 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2176fi 2177## -------------------- ## 2178## Main body of script. ## 2179## -------------------- ## 2180 2181ac_ext=c 2182ac_cpp='$CPP $CPPFLAGS' 2183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2185ac_compiler_gnu=$ac_cv_c_compiler_gnu 2186 2187 2188 2189ac_config_headers="$ac_config_headers config.h" 2190 2191 2192# Initialize Automake 2193am__api_version='1.15' 2194 2195ac_aux_dir= 2196for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2197 if test -f "$ac_dir/install-sh"; then 2198 ac_aux_dir=$ac_dir 2199 ac_install_sh="$ac_aux_dir/install-sh -c" 2200 break 2201 elif test -f "$ac_dir/install.sh"; then 2202 ac_aux_dir=$ac_dir 2203 ac_install_sh="$ac_aux_dir/install.sh -c" 2204 break 2205 elif test -f "$ac_dir/shtool"; then 2206 ac_aux_dir=$ac_dir 2207 ac_install_sh="$ac_aux_dir/shtool install -c" 2208 break 2209 fi 2210done 2211if test -z "$ac_aux_dir"; then 2212 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2213fi 2214 2215# These three variables are undocumented and unsupported, 2216# and are intended to be withdrawn in a future Autoconf release. 2217# They can cause serious problems if a builder's source tree is in a directory 2218# whose full name contains unusual characters. 2219ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2220ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2221ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2222 2223 2224# Find a good install program. We prefer a C program (faster), 2225# so one script is as good as another. But avoid the broken or 2226# incompatible versions: 2227# SysV /etc/install, /usr/sbin/install 2228# SunOS /usr/etc/install 2229# IRIX /sbin/install 2230# AIX /bin/install 2231# AmigaOS /C/install, which installs bootblocks on floppy discs 2232# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2233# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2234# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2235# OS/2's system install, which has a completely different semantic 2236# ./install, which can be erroneously created by make from ./install.sh. 2237# Reject install programs that cannot install multiple files. 2238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2239$as_echo_n "checking for a BSD-compatible install... " >&6; } 2240if test -z "$INSTALL"; then 2241if ${ac_cv_path_install+:} false; then : 2242 $as_echo_n "(cached) " >&6 2243else 2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2245for as_dir in $PATH 2246do 2247 IFS=$as_save_IFS 2248 test -z "$as_dir" && as_dir=. 2249 # Account for people who put trailing slashes in PATH elements. 2250case $as_dir/ in #(( 2251 ./ | .// | /[cC]/* | \ 2252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2253 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2254 /usr/ucb/* ) ;; 2255 *) 2256 # OSF1 and SCO ODT 3.0 have their own names for install. 2257 # Don't use installbsd from OSF since it installs stuff as root 2258 # by default. 2259 for ac_prog in ginstall scoinst install; do 2260 for ac_exec_ext in '' $ac_executable_extensions; do 2261 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2262 if test $ac_prog = install && 2263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2264 # AIX install. It has an incompatible calling convention. 2265 : 2266 elif test $ac_prog = install && 2267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2268 # program-specific install script used by HP pwplus--don't use. 2269 : 2270 else 2271 rm -rf conftest.one conftest.two conftest.dir 2272 echo one > conftest.one 2273 echo two > conftest.two 2274 mkdir conftest.dir 2275 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2276 test -s conftest.one && test -s conftest.two && 2277 test -s conftest.dir/conftest.one && 2278 test -s conftest.dir/conftest.two 2279 then 2280 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2281 break 3 2282 fi 2283 fi 2284 fi 2285 done 2286 done 2287 ;; 2288esac 2289 2290 done 2291IFS=$as_save_IFS 2292 2293rm -rf conftest.one conftest.two conftest.dir 2294 2295fi 2296 if test "${ac_cv_path_install+set}" = set; then 2297 INSTALL=$ac_cv_path_install 2298 else 2299 # As a last resort, use the slow shell script. Don't cache a 2300 # value for INSTALL within a source directory, because that will 2301 # break other packages using the cache if that directory is 2302 # removed, or if the value is a relative name. 2303 INSTALL=$ac_install_sh 2304 fi 2305fi 2306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2307$as_echo "$INSTALL" >&6; } 2308 2309# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2310# It thinks the first close brace ends the variable substitution. 2311test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2312 2313test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2314 2315test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2316 2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2318$as_echo_n "checking whether build environment is sane... " >&6; } 2319# Reject unsafe characters in $srcdir or the absolute working directory 2320# name. Accept space and tab only in the latter. 2321am_lf=' 2322' 2323case `pwd` in 2324 *[\\\"\#\$\&\'\`$am_lf]*) 2325 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2326esac 2327case $srcdir in 2328 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2329 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2330esac 2331 2332# Do 'set' in a subshell so we don't clobber the current shell's 2333# arguments. Must try -L first in case configure is actually a 2334# symlink; some systems play weird games with the mod time of symlinks 2335# (eg FreeBSD returns the mod time of the symlink's containing 2336# directory). 2337if ( 2338 am_has_slept=no 2339 for am_try in 1 2; do 2340 echo "timestamp, slept: $am_has_slept" > conftest.file 2341 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2342 if test "$*" = "X"; then 2343 # -L didn't work. 2344 set X `ls -t "$srcdir/configure" conftest.file` 2345 fi 2346 if test "$*" != "X $srcdir/configure conftest.file" \ 2347 && test "$*" != "X conftest.file $srcdir/configure"; then 2348 2349 # If neither matched, then we have a broken ls. This can happen 2350 # if, for instance, CONFIG_SHELL is bash and it inherits a 2351 # broken ls alias from the environment. This has actually 2352 # happened. Such a system could not be considered "sane". 2353 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2354 alias in your environment" "$LINENO" 5 2355 fi 2356 if test "$2" = conftest.file || test $am_try -eq 2; then 2357 break 2358 fi 2359 # Just in case. 2360 sleep 1 2361 am_has_slept=yes 2362 done 2363 test "$2" = conftest.file 2364 ) 2365then 2366 # Ok. 2367 : 2368else 2369 as_fn_error $? "newly created file is older than distributed files! 2370Check your system clock" "$LINENO" 5 2371fi 2372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2373$as_echo "yes" >&6; } 2374# If we didn't sleep, we still need to ensure time stamps of config.status and 2375# generated files are strictly newer. 2376am_sleep_pid= 2377if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2378 ( sleep 1 ) & 2379 am_sleep_pid=$! 2380fi 2381 2382rm -f conftest.file 2383 2384test "$program_prefix" != NONE && 2385 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2386# Use a double $ so make ignores it. 2387test "$program_suffix" != NONE && 2388 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2389# Double any \ or $. 2390# By default was `s,x,x', remove it if useless. 2391ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2392program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2393 2394# Expand $ac_aux_dir to an absolute path. 2395am_aux_dir=`cd "$ac_aux_dir" && pwd` 2396 2397if test x"${MISSING+set}" != xset; then 2398 case $am_aux_dir in 2399 *\ * | *\ *) 2400 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2401 *) 2402 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2403 esac 2404fi 2405# Use eval to expand $SHELL 2406if eval "$MISSING --is-lightweight"; then 2407 am_missing_run="$MISSING " 2408else 2409 am_missing_run= 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2411$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2412fi 2413 2414if test x"${install_sh+set}" != xset; then 2415 case $am_aux_dir in 2416 *\ * | *\ *) 2417 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2418 *) 2419 install_sh="\${SHELL} $am_aux_dir/install-sh" 2420 esac 2421fi 2422 2423# Installed binaries are usually stripped using 'strip' when the user 2424# run "make install-strip". However 'strip' might not be the right 2425# tool to use in cross-compilation environments, therefore Automake 2426# will honor the 'STRIP' environment variable to overrule this program. 2427if test "$cross_compiling" != no; then 2428 if test -n "$ac_tool_prefix"; then 2429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2430set dummy ${ac_tool_prefix}strip; ac_word=$2 2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2432$as_echo_n "checking for $ac_word... " >&6; } 2433if ${ac_cv_prog_STRIP+:} false; then : 2434 $as_echo_n "(cached) " >&6 2435else 2436 if test -n "$STRIP"; then 2437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2438else 2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440for as_dir in $PATH 2441do 2442 IFS=$as_save_IFS 2443 test -z "$as_dir" && as_dir=. 2444 for ac_exec_ext in '' $ac_executable_extensions; do 2445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2446 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2448 break 2 2449 fi 2450done 2451 done 2452IFS=$as_save_IFS 2453 2454fi 2455fi 2456STRIP=$ac_cv_prog_STRIP 2457if test -n "$STRIP"; then 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2459$as_echo "$STRIP" >&6; } 2460else 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2462$as_echo "no" >&6; } 2463fi 2464 2465 2466fi 2467if test -z "$ac_cv_prog_STRIP"; then 2468 ac_ct_STRIP=$STRIP 2469 # Extract the first word of "strip", so it can be a program name with args. 2470set dummy strip; ac_word=$2 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2472$as_echo_n "checking for $ac_word... " >&6; } 2473if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2474 $as_echo_n "(cached) " >&6 2475else 2476 if test -n "$ac_ct_STRIP"; then 2477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2478else 2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2486 ac_cv_prog_ac_ct_STRIP="strip" 2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 break 2 2489 fi 2490done 2491 done 2492IFS=$as_save_IFS 2493 2494fi 2495fi 2496ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2497if test -n "$ac_ct_STRIP"; then 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2499$as_echo "$ac_ct_STRIP" >&6; } 2500else 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2502$as_echo "no" >&6; } 2503fi 2504 2505 if test "x$ac_ct_STRIP" = x; then 2506 STRIP=":" 2507 else 2508 case $cross_compiling:$ac_tool_warned in 2509yes:) 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2512ac_tool_warned=yes ;; 2513esac 2514 STRIP=$ac_ct_STRIP 2515 fi 2516else 2517 STRIP="$ac_cv_prog_STRIP" 2518fi 2519 2520fi 2521INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2522 2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2524$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2525if test -z "$MKDIR_P"; then 2526 if ${ac_cv_path_mkdir+:} false; then : 2527 $as_echo_n "(cached) " >&6 2528else 2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2531do 2532 IFS=$as_save_IFS 2533 test -z "$as_dir" && as_dir=. 2534 for ac_prog in mkdir gmkdir; do 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2537 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2538 'mkdir (GNU coreutils) '* | \ 2539 'mkdir (coreutils) '* | \ 2540 'mkdir (fileutils) '4.1*) 2541 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2542 break 3;; 2543 esac 2544 done 2545 done 2546 done 2547IFS=$as_save_IFS 2548 2549fi 2550 2551 test -d ./--version && rmdir ./--version 2552 if test "${ac_cv_path_mkdir+set}" = set; then 2553 MKDIR_P="$ac_cv_path_mkdir -p" 2554 else 2555 # As a last resort, use the slow shell script. Don't cache a 2556 # value for MKDIR_P within a source directory, because that will 2557 # break other packages using the cache if that directory is 2558 # removed, or if the value is a relative name. 2559 MKDIR_P="$ac_install_sh -d" 2560 fi 2561fi 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2563$as_echo "$MKDIR_P" >&6; } 2564 2565for ac_prog in gawk mawk nawk awk 2566do 2567 # Extract the first word of "$ac_prog", so it can be a program name with args. 2568set dummy $ac_prog; ac_word=$2 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2570$as_echo_n "checking for $ac_word... " >&6; } 2571if ${ac_cv_prog_AWK+:} false; then : 2572 $as_echo_n "(cached) " >&6 2573else 2574 if test -n "$AWK"; then 2575 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2576else 2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 for ac_exec_ext in '' $ac_executable_extensions; do 2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2584 ac_cv_prog_AWK="$ac_prog" 2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2586 break 2 2587 fi 2588done 2589 done 2590IFS=$as_save_IFS 2591 2592fi 2593fi 2594AWK=$ac_cv_prog_AWK 2595if test -n "$AWK"; then 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2597$as_echo "$AWK" >&6; } 2598else 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2600$as_echo "no" >&6; } 2601fi 2602 2603 2604 test -n "$AWK" && break 2605done 2606 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2608$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2609set x ${MAKE-make} 2610ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2611if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613else 2614 cat >conftest.make <<\_ACEOF 2615SHELL = /bin/sh 2616all: 2617 @echo '@@@%%%=$(MAKE)=@@@%%%' 2618_ACEOF 2619# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2620case `${MAKE-make} -f conftest.make 2>/dev/null` in 2621 *@@@%%%=?*=@@@%%%*) 2622 eval ac_cv_prog_make_${ac_make}_set=yes;; 2623 *) 2624 eval ac_cv_prog_make_${ac_make}_set=no;; 2625esac 2626rm -f conftest.make 2627fi 2628if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2630$as_echo "yes" >&6; } 2631 SET_MAKE= 2632else 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2634$as_echo "no" >&6; } 2635 SET_MAKE="MAKE=${MAKE-make}" 2636fi 2637 2638rm -rf .tst 2>/dev/null 2639mkdir .tst 2>/dev/null 2640if test -d .tst; then 2641 am__leading_dot=. 2642else 2643 am__leading_dot=_ 2644fi 2645rmdir .tst 2>/dev/null 2646 2647# Check whether --enable-silent-rules was given. 2648if test "${enable_silent_rules+set}" = set; then : 2649 enableval=$enable_silent_rules; 2650fi 2651 2652case $enable_silent_rules in # ((( 2653 yes) AM_DEFAULT_VERBOSITY=0;; 2654 no) AM_DEFAULT_VERBOSITY=1;; 2655 *) AM_DEFAULT_VERBOSITY=1;; 2656esac 2657am_make=${MAKE-make} 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2659$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2660if ${am_cv_make_support_nested_variables+:} false; then : 2661 $as_echo_n "(cached) " >&6 2662else 2663 if $as_echo 'TRUE=$(BAR$(V)) 2664BAR0=false 2665BAR1=true 2666V=1 2667am__doit: 2668 @$(TRUE) 2669.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2670 am_cv_make_support_nested_variables=yes 2671else 2672 am_cv_make_support_nested_variables=no 2673fi 2674fi 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2676$as_echo "$am_cv_make_support_nested_variables" >&6; } 2677if test $am_cv_make_support_nested_variables = yes; then 2678 AM_V='$(V)' 2679 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2680else 2681 AM_V=$AM_DEFAULT_VERBOSITY 2682 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2683fi 2684AM_BACKSLASH='\' 2685 2686if test "`cd $srcdir && pwd`" != "`pwd`"; then 2687 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2688 # is not polluted with repeated "-I." 2689 am__isrc=' -I$(srcdir)' 2690 # test to see if srcdir already configured 2691 if test -f $srcdir/config.status; then 2692 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2693 fi 2694fi 2695 2696# test whether we have cygpath 2697if test -z "$CYGPATH_W"; then 2698 if (cygpath --version) >/dev/null 2>/dev/null; then 2699 CYGPATH_W='cygpath -w' 2700 else 2701 CYGPATH_W=echo 2702 fi 2703fi 2704 2705 2706# Define the identity of the package. 2707 PACKAGE='xman' 2708 VERSION='1.1.5' 2709 2710 2711cat >>confdefs.h <<_ACEOF 2712#define PACKAGE "$PACKAGE" 2713_ACEOF 2714 2715 2716cat >>confdefs.h <<_ACEOF 2717#define VERSION "$VERSION" 2718_ACEOF 2719 2720# Some tools Automake needs. 2721 2722ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2723 2724 2725AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2726 2727 2728AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2729 2730 2731AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2732 2733 2734MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2735 2736# For better backward compatibility. To be removed once Automake 1.9.x 2737# dies out for good. For more background, see: 2738# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2739# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2740mkdir_p='$(MKDIR_P)' 2741 2742# We need awk for the "check" target (and possibly the TAP driver). The 2743# system "awk" is bad on some platforms. 2744# Always define AMTAR for backward compatibility. Yes, it's still used 2745# in the wild :-( We should find a proper way to deprecate it ... 2746AMTAR='$${TAR-tar}' 2747 2748 2749# We'll loop over all known methods to create a tar archive until one works. 2750_am_tools='gnutar pax cpio none' 2751 2752am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2753 2754 2755 2756 2757 2758 2759# POSIX will say in a future version that running "rm -f" with no argument 2760# is OK; and we want to be able to make that assumption in our Makefile 2761# recipes. So use an aggressive probe to check that the usage we want is 2762# actually supported "in the wild" to an acceptable degree. 2763# See automake bug#10828. 2764# To make any issue more visible, cause the running configure to be aborted 2765# by default if the 'rm' program in use doesn't match our expectations; the 2766# user can still override this though. 2767if rm -f && rm -fr && rm -rf; then : OK; else 2768 cat >&2 <<'END' 2769Oops! 2770 2771Your 'rm' program seems unable to run without file operands specified 2772on the command line, even when the '-f' option is present. This is contrary 2773to the behaviour of most rm programs out there, and not conforming with 2774the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2775 2776Please tell bug-automake@gnu.org about your system, including the value 2777of your $PATH and any error possibly output before this message. This 2778can help us improve future automake versions. 2779 2780END 2781 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2782 echo 'Configuration will proceed anyway, since you have set the' >&2 2783 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2784 echo >&2 2785 else 2786 cat >&2 <<'END' 2787Aborting the configuration process, to ensure you take notice of the issue. 2788 2789You can download and install GNU coreutils to get an 'rm' implementation 2790that behaves properly: <http://www.gnu.org/software/coreutils/>. 2791 2792If you want to complete the configuration process using your problematic 2793'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2794to "yes", and re-run configure. 2795 2796END 2797 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2798 fi 2799fi 2800 2801 2802# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814DEPDIR="${am__leading_dot}deps" 2815 2816ac_config_commands="$ac_config_commands depfiles" 2817 2818 2819am_make=${MAKE-make} 2820cat > confinc << 'END' 2821am__doit: 2822 @echo this is the am__doit target 2823.PHONY: am__doit 2824END 2825# If we don't find an include directive, just comment out the code. 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2827$as_echo_n "checking for style of include used by $am_make... " >&6; } 2828am__include="#" 2829am__quote= 2830_am_result=none 2831# First try GNU make style include. 2832echo "include confinc" > confmf 2833# Ignore all kinds of additional output from 'make'. 2834case `$am_make -s -f confmf 2> /dev/null` in #( 2835*the\ am__doit\ target*) 2836 am__include=include 2837 am__quote= 2838 _am_result=GNU 2839 ;; 2840esac 2841# Now try BSD make style include. 2842if test "$am__include" = "#"; then 2843 echo '.include "confinc"' > confmf 2844 case `$am_make -s -f confmf 2> /dev/null` in #( 2845 *the\ am__doit\ target*) 2846 am__include=.include 2847 am__quote="\"" 2848 _am_result=BSD 2849 ;; 2850 esac 2851fi 2852 2853 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2855$as_echo "$_am_result" >&6; } 2856rm -f confinc confmf 2857 2858# Check whether --enable-dependency-tracking was given. 2859if test "${enable_dependency_tracking+set}" = set; then : 2860 enableval=$enable_dependency_tracking; 2861fi 2862 2863if test "x$enable_dependency_tracking" != xno; then 2864 am_depcomp="$ac_aux_dir/depcomp" 2865 AMDEPBACKSLASH='\' 2866 am__nodep='_no' 2867fi 2868 if test "x$enable_dependency_tracking" != xno; then 2869 AMDEP_TRUE= 2870 AMDEP_FALSE='#' 2871else 2872 AMDEP_TRUE='#' 2873 AMDEP_FALSE= 2874fi 2875 2876 2877ac_ext=c 2878ac_cpp='$CPP $CPPFLAGS' 2879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2881ac_compiler_gnu=$ac_cv_c_compiler_gnu 2882if test -n "$ac_tool_prefix"; then 2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2884set dummy ${ac_tool_prefix}gcc; ac_word=$2 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2886$as_echo_n "checking for $ac_word... " >&6; } 2887if ${ac_cv_prog_CC+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 if test -n "$CC"; then 2891 ac_cv_prog_CC="$CC" # Let the user override the test. 2892else 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 test -z "$as_dir" && as_dir=. 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2900 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2902 break 2 2903 fi 2904done 2905 done 2906IFS=$as_save_IFS 2907 2908fi 2909fi 2910CC=$ac_cv_prog_CC 2911if test -n "$CC"; then 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2913$as_echo "$CC" >&6; } 2914else 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2916$as_echo "no" >&6; } 2917fi 2918 2919 2920fi 2921if test -z "$ac_cv_prog_CC"; then 2922 ac_ct_CC=$CC 2923 # Extract the first word of "gcc", so it can be a program name with args. 2924set dummy gcc; ac_word=$2 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2926$as_echo_n "checking for $ac_word... " >&6; } 2927if ${ac_cv_prog_ac_ct_CC+:} false; then : 2928 $as_echo_n "(cached) " >&6 2929else 2930 if test -n "$ac_ct_CC"; then 2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2932else 2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH 2935do 2936 IFS=$as_save_IFS 2937 test -z "$as_dir" && as_dir=. 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2940 ac_cv_prog_ac_ct_CC="gcc" 2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945 done 2946IFS=$as_save_IFS 2947 2948fi 2949fi 2950ac_ct_CC=$ac_cv_prog_ac_ct_CC 2951if test -n "$ac_ct_CC"; then 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2953$as_echo "$ac_ct_CC" >&6; } 2954else 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956$as_echo "no" >&6; } 2957fi 2958 2959 if test "x$ac_ct_CC" = x; then 2960 CC="" 2961 else 2962 case $cross_compiling:$ac_tool_warned in 2963yes:) 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2966ac_tool_warned=yes ;; 2967esac 2968 CC=$ac_ct_CC 2969 fi 2970else 2971 CC="$ac_cv_prog_CC" 2972fi 2973 2974if test -z "$CC"; then 2975 if test -n "$ac_tool_prefix"; then 2976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2977set dummy ${ac_tool_prefix}cc; ac_word=$2 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2979$as_echo_n "checking for $ac_word... " >&6; } 2980if ${ac_cv_prog_CC+:} false; then : 2981 $as_echo_n "(cached) " >&6 2982else 2983 if test -n "$CC"; then 2984 ac_cv_prog_CC="$CC" # Let the user override the test. 2985else 2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2987for as_dir in $PATH 2988do 2989 IFS=$as_save_IFS 2990 test -z "$as_dir" && as_dir=. 2991 for ac_exec_ext in '' $ac_executable_extensions; do 2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2993 ac_cv_prog_CC="${ac_tool_prefix}cc" 2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2995 break 2 2996 fi 2997done 2998 done 2999IFS=$as_save_IFS 3000 3001fi 3002fi 3003CC=$ac_cv_prog_CC 3004if test -n "$CC"; then 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3006$as_echo "$CC" >&6; } 3007else 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3009$as_echo "no" >&6; } 3010fi 3011 3012 3013 fi 3014fi 3015if test -z "$CC"; then 3016 # Extract the first word of "cc", so it can be a program name with args. 3017set dummy cc; ac_word=$2 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3019$as_echo_n "checking for $ac_word... " >&6; } 3020if ${ac_cv_prog_CC+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 if test -n "$CC"; then 3024 ac_cv_prog_CC="$CC" # Let the user override the test. 3025else 3026 ac_prog_rejected=no 3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3028for as_dir in $PATH 3029do 3030 IFS=$as_save_IFS 3031 test -z "$as_dir" && as_dir=. 3032 for ac_exec_ext in '' $ac_executable_extensions; do 3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3035 ac_prog_rejected=yes 3036 continue 3037 fi 3038 ac_cv_prog_CC="cc" 3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3040 break 2 3041 fi 3042done 3043 done 3044IFS=$as_save_IFS 3045 3046if test $ac_prog_rejected = yes; then 3047 # We found a bogon in the path, so make sure we never use it. 3048 set dummy $ac_cv_prog_CC 3049 shift 3050 if test $# != 0; then 3051 # We chose a different compiler from the bogus one. 3052 # However, it has the same basename, so the bogon will be chosen 3053 # first if we set CC to just the basename; use the full file name. 3054 shift 3055 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3056 fi 3057fi 3058fi 3059fi 3060CC=$ac_cv_prog_CC 3061if test -n "$CC"; then 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3063$as_echo "$CC" >&6; } 3064else 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3066$as_echo "no" >&6; } 3067fi 3068 3069 3070fi 3071if test -z "$CC"; then 3072 if test -n "$ac_tool_prefix"; then 3073 for ac_prog in cl.exe 3074 do 3075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3076set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3078$as_echo_n "checking for $ac_word... " >&6; } 3079if ${ac_cv_prog_CC+:} false; then : 3080 $as_echo_n "(cached) " >&6 3081else 3082 if test -n "$CC"; then 3083 ac_cv_prog_CC="$CC" # Let the user override the test. 3084else 3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3086for as_dir in $PATH 3087do 3088 IFS=$as_save_IFS 3089 test -z "$as_dir" && as_dir=. 3090 for ac_exec_ext in '' $ac_executable_extensions; do 3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3092 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3094 break 2 3095 fi 3096done 3097 done 3098IFS=$as_save_IFS 3099 3100fi 3101fi 3102CC=$ac_cv_prog_CC 3103if test -n "$CC"; then 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3105$as_echo "$CC" >&6; } 3106else 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3108$as_echo "no" >&6; } 3109fi 3110 3111 3112 test -n "$CC" && break 3113 done 3114fi 3115if test -z "$CC"; then 3116 ac_ct_CC=$CC 3117 for ac_prog in cl.exe 3118do 3119 # Extract the first word of "$ac_prog", so it can be a program name with args. 3120set dummy $ac_prog; ac_word=$2 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3122$as_echo_n "checking for $ac_word... " >&6; } 3123if ${ac_cv_prog_ac_ct_CC+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 if test -n "$ac_ct_CC"; then 3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3128else 3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 for ac_exec_ext in '' $ac_executable_extensions; do 3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3136 ac_cv_prog_ac_ct_CC="$ac_prog" 3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3138 break 2 3139 fi 3140done 3141 done 3142IFS=$as_save_IFS 3143 3144fi 3145fi 3146ac_ct_CC=$ac_cv_prog_ac_ct_CC 3147if test -n "$ac_ct_CC"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3149$as_echo "$ac_ct_CC" >&6; } 3150else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153fi 3154 3155 3156 test -n "$ac_ct_CC" && break 3157done 3158 3159 if test "x$ac_ct_CC" = x; then 3160 CC="" 3161 else 3162 case $cross_compiling:$ac_tool_warned in 3163yes:) 3164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3166ac_tool_warned=yes ;; 3167esac 3168 CC=$ac_ct_CC 3169 fi 3170fi 3171 3172fi 3173 3174 3175test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3177as_fn_error $? "no acceptable C compiler found in \$PATH 3178See \`config.log' for more details" "$LINENO" 5; } 3179 3180# Provide some information about the compiler. 3181$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3182set X $ac_compile 3183ac_compiler=$2 3184for ac_option in --version -v -V -qversion; do 3185 { { ac_try="$ac_compiler $ac_option >&5" 3186case "(($ac_try" in 3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3188 *) ac_try_echo=$ac_try;; 3189esac 3190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3191$as_echo "$ac_try_echo"; } >&5 3192 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3193 ac_status=$? 3194 if test -s conftest.err; then 3195 sed '10a\ 3196... rest of stderr output deleted ... 3197 10q' conftest.err >conftest.er1 3198 cat conftest.er1 >&5 3199 fi 3200 rm -f conftest.er1 conftest.err 3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3202 test $ac_status = 0; } 3203done 3204 3205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3206/* end confdefs.h. */ 3207 3208int 3209main () 3210{ 3211 3212 ; 3213 return 0; 3214} 3215_ACEOF 3216ac_clean_files_save=$ac_clean_files 3217ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3218# Try to create an executable without -o first, disregard a.out. 3219# It will help us diagnose broken compilers, and finding out an intuition 3220# of exeext. 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3222$as_echo_n "checking whether the C compiler works... " >&6; } 3223ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3224 3225# The possible output files: 3226ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3227 3228ac_rmfiles= 3229for ac_file in $ac_files 3230do 3231 case $ac_file in 3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3233 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3234 esac 3235done 3236rm -f $ac_rmfiles 3237 3238if { { ac_try="$ac_link_default" 3239case "(($ac_try" in 3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3241 *) ac_try_echo=$ac_try;; 3242esac 3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3244$as_echo "$ac_try_echo"; } >&5 3245 (eval "$ac_link_default") 2>&5 3246 ac_status=$? 3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3248 test $ac_status = 0; }; then : 3249 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3250# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3251# in a Makefile. We should not override ac_cv_exeext if it was cached, 3252# so that the user can short-circuit this test for compilers unknown to 3253# Autoconf. 3254for ac_file in $ac_files '' 3255do 3256 test -f "$ac_file" || continue 3257 case $ac_file in 3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3259 ;; 3260 [ab].out ) 3261 # We found the default executable, but exeext='' is most 3262 # certainly right. 3263 break;; 3264 *.* ) 3265 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3266 then :; else 3267 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3268 fi 3269 # We set ac_cv_exeext here because the later test for it is not 3270 # safe: cross compilers may not add the suffix if given an `-o' 3271 # argument, so we may need to know it at that point already. 3272 # Even if this section looks crufty: it has the advantage of 3273 # actually working. 3274 break;; 3275 * ) 3276 break;; 3277 esac 3278done 3279test "$ac_cv_exeext" = no && ac_cv_exeext= 3280 3281else 3282 ac_file='' 3283fi 3284if test -z "$ac_file"; then : 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286$as_echo "no" >&6; } 3287$as_echo "$as_me: failed program was:" >&5 3288sed 's/^/| /' conftest.$ac_ext >&5 3289 3290{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3292as_fn_error 77 "C compiler cannot create executables 3293See \`config.log' for more details" "$LINENO" 5; } 3294else 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3296$as_echo "yes" >&6; } 3297fi 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3299$as_echo_n "checking for C compiler default output file name... " >&6; } 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3301$as_echo "$ac_file" >&6; } 3302ac_exeext=$ac_cv_exeext 3303 3304rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3305ac_clean_files=$ac_clean_files_save 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3307$as_echo_n "checking for suffix of executables... " >&6; } 3308if { { ac_try="$ac_link" 3309case "(($ac_try" in 3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3311 *) ac_try_echo=$ac_try;; 3312esac 3313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3314$as_echo "$ac_try_echo"; } >&5 3315 (eval "$ac_link") 2>&5 3316 ac_status=$? 3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3318 test $ac_status = 0; }; then : 3319 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3320# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3321# work properly (i.e., refer to `conftest.exe'), while it won't with 3322# `rm'. 3323for ac_file in conftest.exe conftest conftest.*; do 3324 test -f "$ac_file" || continue 3325 case $ac_file in 3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3328 break;; 3329 * ) break;; 3330 esac 3331done 3332else 3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3335as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3336See \`config.log' for more details" "$LINENO" 5; } 3337fi 3338rm -f conftest conftest$ac_cv_exeext 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3340$as_echo "$ac_cv_exeext" >&6; } 3341 3342rm -f conftest.$ac_ext 3343EXEEXT=$ac_cv_exeext 3344ac_exeext=$EXEEXT 3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3346/* end confdefs.h. */ 3347#include <stdio.h> 3348int 3349main () 3350{ 3351FILE *f = fopen ("conftest.out", "w"); 3352 return ferror (f) || fclose (f) != 0; 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358ac_clean_files="$ac_clean_files conftest.out" 3359# Check that the compiler produces executables we can run. If not, either 3360# the compiler is broken, or we cross compile. 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3362$as_echo_n "checking whether we are cross compiling... " >&6; } 3363if test "$cross_compiling" != yes; then 3364 { { ac_try="$ac_link" 3365case "(($ac_try" in 3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3367 *) ac_try_echo=$ac_try;; 3368esac 3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3370$as_echo "$ac_try_echo"; } >&5 3371 (eval "$ac_link") 2>&5 3372 ac_status=$? 3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3374 test $ac_status = 0; } 3375 if { ac_try='./conftest$ac_cv_exeext' 3376 { { case "(($ac_try" in 3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3378 *) ac_try_echo=$ac_try;; 3379esac 3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3381$as_echo "$ac_try_echo"; } >&5 3382 (eval "$ac_try") 2>&5 3383 ac_status=$? 3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3385 test $ac_status = 0; }; }; then 3386 cross_compiling=no 3387 else 3388 if test "$cross_compiling" = maybe; then 3389 cross_compiling=yes 3390 else 3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3393as_fn_error $? "cannot run C compiled programs. 3394If you meant to cross compile, use \`--host'. 3395See \`config.log' for more details" "$LINENO" 5; } 3396 fi 3397 fi 3398fi 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3400$as_echo "$cross_compiling" >&6; } 3401 3402rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3403ac_clean_files=$ac_clean_files_save 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3405$as_echo_n "checking for suffix of object files... " >&6; } 3406if ${ac_cv_objext+:} false; then : 3407 $as_echo_n "(cached) " >&6 3408else 3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3410/* end confdefs.h. */ 3411 3412int 3413main () 3414{ 3415 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420rm -f conftest.o conftest.obj 3421if { { ac_try="$ac_compile" 3422case "(($ac_try" in 3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3424 *) ac_try_echo=$ac_try;; 3425esac 3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3427$as_echo "$ac_try_echo"; } >&5 3428 (eval "$ac_compile") 2>&5 3429 ac_status=$? 3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3431 test $ac_status = 0; }; then : 3432 for ac_file in conftest.o conftest.obj conftest.*; do 3433 test -f "$ac_file" || continue; 3434 case $ac_file in 3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3437 break;; 3438 esac 3439done 3440else 3441 $as_echo "$as_me: failed program was:" >&5 3442sed 's/^/| /' conftest.$ac_ext >&5 3443 3444{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3446as_fn_error $? "cannot compute suffix of object files: cannot compile 3447See \`config.log' for more details" "$LINENO" 5; } 3448fi 3449rm -f conftest.$ac_cv_objext conftest.$ac_ext 3450fi 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3452$as_echo "$ac_cv_objext" >&6; } 3453OBJEXT=$ac_cv_objext 3454ac_objext=$OBJEXT 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3456$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3457if ${ac_cv_c_compiler_gnu+:} false; then : 3458 $as_echo_n "(cached) " >&6 3459else 3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3461/* end confdefs.h. */ 3462 3463int 3464main () 3465{ 3466#ifndef __GNUC__ 3467 choke me 3468#endif 3469 3470 ; 3471 return 0; 3472} 3473_ACEOF 3474if ac_fn_c_try_compile "$LINENO"; then : 3475 ac_compiler_gnu=yes 3476else 3477 ac_compiler_gnu=no 3478fi 3479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3480ac_cv_c_compiler_gnu=$ac_compiler_gnu 3481 3482fi 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3484$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3485if test $ac_compiler_gnu = yes; then 3486 GCC=yes 3487else 3488 GCC= 3489fi 3490ac_test_CFLAGS=${CFLAGS+set} 3491ac_save_CFLAGS=$CFLAGS 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3493$as_echo_n "checking whether $CC accepts -g... " >&6; } 3494if ${ac_cv_prog_cc_g+:} false; then : 3495 $as_echo_n "(cached) " >&6 3496else 3497 ac_save_c_werror_flag=$ac_c_werror_flag 3498 ac_c_werror_flag=yes 3499 ac_cv_prog_cc_g=no 3500 CFLAGS="-g" 3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503 3504int 3505main () 3506{ 3507 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512if ac_fn_c_try_compile "$LINENO"; then : 3513 ac_cv_prog_cc_g=yes 3514else 3515 CFLAGS="" 3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518 3519int 3520main () 3521{ 3522 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527if ac_fn_c_try_compile "$LINENO"; then : 3528 3529else 3530 ac_c_werror_flag=$ac_save_c_werror_flag 3531 CFLAGS="-g" 3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533/* end confdefs.h. */ 3534 3535int 3536main () 3537{ 3538 3539 ; 3540 return 0; 3541} 3542_ACEOF 3543if ac_fn_c_try_compile "$LINENO"; then : 3544 ac_cv_prog_cc_g=yes 3545fi 3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3547fi 3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3549fi 3550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3551 ac_c_werror_flag=$ac_save_c_werror_flag 3552fi 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3554$as_echo "$ac_cv_prog_cc_g" >&6; } 3555if test "$ac_test_CFLAGS" = set; then 3556 CFLAGS=$ac_save_CFLAGS 3557elif test $ac_cv_prog_cc_g = yes; then 3558 if test "$GCC" = yes; then 3559 CFLAGS="-g -O2" 3560 else 3561 CFLAGS="-g" 3562 fi 3563else 3564 if test "$GCC" = yes; then 3565 CFLAGS="-O2" 3566 else 3567 CFLAGS= 3568 fi 3569fi 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3571$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3572if ${ac_cv_prog_cc_c89+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 ac_cv_prog_cc_c89=no 3576ac_save_CC=$CC 3577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3578/* end confdefs.h. */ 3579#include <stdarg.h> 3580#include <stdio.h> 3581struct stat; 3582/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3583struct buf { int x; }; 3584FILE * (*rcsopen) (struct buf *, struct stat *, int); 3585static char *e (p, i) 3586 char **p; 3587 int i; 3588{ 3589 return p[i]; 3590} 3591static char *f (char * (*g) (char **, int), char **p, ...) 3592{ 3593 char *s; 3594 va_list v; 3595 va_start (v,p); 3596 s = g (p, va_arg (v,int)); 3597 va_end (v); 3598 return s; 3599} 3600 3601/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3602 function prototypes and stuff, but not '\xHH' hex character constants. 3603 These don't provoke an error unfortunately, instead are silently treated 3604 as 'x'. The following induces an error, until -std is added to get 3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3606 array size at least. It's necessary to write '\x00'==0 to get something 3607 that's true only with -std. */ 3608int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3609 3610/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3611 inside strings and character constants. */ 3612#define FOO(x) 'x' 3613int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3614 3615int test (int i, double x); 3616struct s1 {int (*f) (int a);}; 3617struct s2 {int (*f) (double a);}; 3618int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3619int argc; 3620char **argv; 3621int 3622main () 3623{ 3624return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3625 ; 3626 return 0; 3627} 3628_ACEOF 3629for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3631do 3632 CC="$ac_save_CC $ac_arg" 3633 if ac_fn_c_try_compile "$LINENO"; then : 3634 ac_cv_prog_cc_c89=$ac_arg 3635fi 3636rm -f core conftest.err conftest.$ac_objext 3637 test "x$ac_cv_prog_cc_c89" != "xno" && break 3638done 3639rm -f conftest.$ac_ext 3640CC=$ac_save_CC 3641 3642fi 3643# AC_CACHE_VAL 3644case "x$ac_cv_prog_cc_c89" in 3645 x) 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3647$as_echo "none needed" >&6; } ;; 3648 xno) 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3650$as_echo "unsupported" >&6; } ;; 3651 *) 3652 CC="$CC $ac_cv_prog_cc_c89" 3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3654$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3655esac 3656if test "x$ac_cv_prog_cc_c89" != xno; then : 3657 3658fi 3659 3660ac_ext=c 3661ac_cpp='$CPP $CPPFLAGS' 3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3664ac_compiler_gnu=$ac_cv_c_compiler_gnu 3665 3666ac_ext=c 3667ac_cpp='$CPP $CPPFLAGS' 3668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3670ac_compiler_gnu=$ac_cv_c_compiler_gnu 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3672$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3673if ${am_cv_prog_cc_c_o+:} false; then : 3674 $as_echo_n "(cached) " >&6 3675else 3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3677/* end confdefs.h. */ 3678 3679int 3680main () 3681{ 3682 3683 ; 3684 return 0; 3685} 3686_ACEOF 3687 # Make sure it works both with $CC and with simple cc. 3688 # Following AC_PROG_CC_C_O, we do the test twice because some 3689 # compilers refuse to overwrite an existing .o file with -o, 3690 # though they will create one. 3691 am_cv_prog_cc_c_o=yes 3692 for am_i in 1 2; do 3693 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3694 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3695 ac_status=$? 3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3697 (exit $ac_status); } \ 3698 && test -f conftest2.$ac_objext; then 3699 : OK 3700 else 3701 am_cv_prog_cc_c_o=no 3702 break 3703 fi 3704 done 3705 rm -f core conftest* 3706 unset am_i 3707fi 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3709$as_echo "$am_cv_prog_cc_c_o" >&6; } 3710if test "$am_cv_prog_cc_c_o" != yes; then 3711 # Losing compiler, so override with the script. 3712 # FIXME: It is wrong to rewrite CC. 3713 # But if we don't then we get into trouble of one sort or another. 3714 # A longer-term fix would be to have automake use am__CC in this case, 3715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3716 CC="$am_aux_dir/compile $CC" 3717fi 3718ac_ext=c 3719ac_cpp='$CPP $CPPFLAGS' 3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723 3724 3725depcc="$CC" am_compiler_list= 3726 3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3728$as_echo_n "checking dependency style of $depcc... " >&6; } 3729if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3730 $as_echo_n "(cached) " >&6 3731else 3732 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3733 # We make a subdir and do the tests there. Otherwise we can end up 3734 # making bogus files that we don't know about and never remove. For 3735 # instance it was reported that on HP-UX the gcc test will end up 3736 # making a dummy file named 'D' -- because '-MD' means "put the output 3737 # in D". 3738 rm -rf conftest.dir 3739 mkdir conftest.dir 3740 # Copy depcomp to subdir because otherwise we won't find it if we're 3741 # using a relative directory. 3742 cp "$am_depcomp" conftest.dir 3743 cd conftest.dir 3744 # We will build objects and dependencies in a subdirectory because 3745 # it helps to detect inapplicable dependency modes. For instance 3746 # both Tru64's cc and ICC support -MD to output dependencies as a 3747 # side effect of compilation, but ICC will put the dependencies in 3748 # the current directory while Tru64 will put them in the object 3749 # directory. 3750 mkdir sub 3751 3752 am_cv_CC_dependencies_compiler_type=none 3753 if test "$am_compiler_list" = ""; then 3754 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3755 fi 3756 am__universal=false 3757 case " $depcc " in #( 3758 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3759 esac 3760 3761 for depmode in $am_compiler_list; do 3762 # Setup a source with many dependencies, because some compilers 3763 # like to wrap large dependency lists on column 80 (with \), and 3764 # we should not choose a depcomp mode which is confused by this. 3765 # 3766 # We need to recreate these files for each test, as the compiler may 3767 # overwrite some of them when testing with obscure command lines. 3768 # This happens at least with the AIX C compiler. 3769 : > sub/conftest.c 3770 for i in 1 2 3 4 5 6; do 3771 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3772 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3773 # Solaris 10 /bin/sh. 3774 echo '/* dummy */' > sub/conftst$i.h 3775 done 3776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3777 3778 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3779 # mode. It turns out that the SunPro C++ compiler does not properly 3780 # handle '-M -o', and we need to detect this. Also, some Intel 3781 # versions had trouble with output in subdirs. 3782 am__obj=sub/conftest.${OBJEXT-o} 3783 am__minus_obj="-o $am__obj" 3784 case $depmode in 3785 gcc) 3786 # This depmode causes a compiler race in universal mode. 3787 test "$am__universal" = false || continue 3788 ;; 3789 nosideeffect) 3790 # After this tag, mechanisms are not by side-effect, so they'll 3791 # only be used when explicitly requested. 3792 if test "x$enable_dependency_tracking" = xyes; then 3793 continue 3794 else 3795 break 3796 fi 3797 ;; 3798 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3799 # This compiler won't grok '-c -o', but also, the minuso test has 3800 # not run yet. These depmodes are late enough in the game, and 3801 # so weak that their functioning should not be impacted. 3802 am__obj=conftest.${OBJEXT-o} 3803 am__minus_obj= 3804 ;; 3805 none) break ;; 3806 esac 3807 if depmode=$depmode \ 3808 source=sub/conftest.c object=$am__obj \ 3809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3811 >/dev/null 2>conftest.err && 3812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3816 # icc doesn't choke on unknown options, it will just issue warnings 3817 # or remarks (even with -Werror). So we grep stderr for any message 3818 # that says an option was ignored or not supported. 3819 # When given -MP, icc 7.0 and 7.1 complain thusly: 3820 # icc: Command line warning: ignoring option '-M'; no argument required 3821 # The diagnosis changed in icc 8.0: 3822 # icc: Command line remark: option '-MP' not supported 3823 if (grep 'ignoring option' conftest.err || 3824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3825 am_cv_CC_dependencies_compiler_type=$depmode 3826 break 3827 fi 3828 fi 3829 done 3830 3831 cd .. 3832 rm -rf conftest.dir 3833else 3834 am_cv_CC_dependencies_compiler_type=none 3835fi 3836 3837fi 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3839$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3840CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3841 3842 if 3843 test "x$enable_dependency_tracking" != xno \ 3844 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3845 am__fastdepCC_TRUE= 3846 am__fastdepCC_FALSE='#' 3847else 3848 am__fastdepCC_TRUE='#' 3849 am__fastdepCC_FALSE= 3850fi 3851 3852 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3854$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3855if ${ac_cv_prog_cc_c99+:} false; then : 3856 $as_echo_n "(cached) " >&6 3857else 3858 ac_cv_prog_cc_c99=no 3859ac_save_CC=$CC 3860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3861/* end confdefs.h. */ 3862#include <stdarg.h> 3863#include <stdbool.h> 3864#include <stdlib.h> 3865#include <wchar.h> 3866#include <stdio.h> 3867 3868// Check varargs macros. These examples are taken from C99 6.10.3.5. 3869#define debug(...) fprintf (stderr, __VA_ARGS__) 3870#define showlist(...) puts (#__VA_ARGS__) 3871#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3872static void 3873test_varargs_macros (void) 3874{ 3875 int x = 1234; 3876 int y = 5678; 3877 debug ("Flag"); 3878 debug ("X = %d\n", x); 3879 showlist (The first, second, and third items.); 3880 report (x>y, "x is %d but y is %d", x, y); 3881} 3882 3883// Check long long types. 3884#define BIG64 18446744073709551615ull 3885#define BIG32 4294967295ul 3886#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3887#if !BIG_OK 3888 your preprocessor is broken; 3889#endif 3890#if BIG_OK 3891#else 3892 your preprocessor is broken; 3893#endif 3894static long long int bignum = -9223372036854775807LL; 3895static unsigned long long int ubignum = BIG64; 3896 3897struct incomplete_array 3898{ 3899 int datasize; 3900 double data[]; 3901}; 3902 3903struct named_init { 3904 int number; 3905 const wchar_t *name; 3906 double average; 3907}; 3908 3909typedef const char *ccp; 3910 3911static inline int 3912test_restrict (ccp restrict text) 3913{ 3914 // See if C++-style comments work. 3915 // Iterate through items via the restricted pointer. 3916 // Also check for declarations in for loops. 3917 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3918 continue; 3919 return 0; 3920} 3921 3922// Check varargs and va_copy. 3923static void 3924test_varargs (const char *format, ...) 3925{ 3926 va_list args; 3927 va_start (args, format); 3928 va_list args_copy; 3929 va_copy (args_copy, args); 3930 3931 const char *str; 3932 int number; 3933 float fnumber; 3934 3935 while (*format) 3936 { 3937 switch (*format++) 3938 { 3939 case 's': // string 3940 str = va_arg (args_copy, const char *); 3941 break; 3942 case 'd': // int 3943 number = va_arg (args_copy, int); 3944 break; 3945 case 'f': // float 3946 fnumber = va_arg (args_copy, double); 3947 break; 3948 default: 3949 break; 3950 } 3951 } 3952 va_end (args_copy); 3953 va_end (args); 3954} 3955 3956int 3957main () 3958{ 3959 3960 // Check bool. 3961 _Bool success = false; 3962 3963 // Check restrict. 3964 if (test_restrict ("String literal") == 0) 3965 success = true; 3966 char *restrict newvar = "Another string"; 3967 3968 // Check varargs. 3969 test_varargs ("s, d' f .", "string", 65, 34.234); 3970 test_varargs_macros (); 3971 3972 // Check flexible array members. 3973 struct incomplete_array *ia = 3974 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3975 ia->datasize = 10; 3976 for (int i = 0; i < ia->datasize; ++i) 3977 ia->data[i] = i * 1.234; 3978 3979 // Check named initializers. 3980 struct named_init ni = { 3981 .number = 34, 3982 .name = L"Test wide string", 3983 .average = 543.34343, 3984 }; 3985 3986 ni.number = 58; 3987 3988 int dynamic_array[ni.number]; 3989 dynamic_array[ni.number - 1] = 543; 3990 3991 // work around unused variable warnings 3992 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3993 || dynamic_array[ni.number - 1] != 543); 3994 3995 ; 3996 return 0; 3997} 3998_ACEOF 3999for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4000do 4001 CC="$ac_save_CC $ac_arg" 4002 if ac_fn_c_try_compile "$LINENO"; then : 4003 ac_cv_prog_cc_c99=$ac_arg 4004fi 4005rm -f core conftest.err conftest.$ac_objext 4006 test "x$ac_cv_prog_cc_c99" != "xno" && break 4007done 4008rm -f conftest.$ac_ext 4009CC=$ac_save_CC 4010 4011fi 4012# AC_CACHE_VAL 4013case "x$ac_cv_prog_cc_c99" in 4014 x) 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4016$as_echo "none needed" >&6; } ;; 4017 xno) 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4019$as_echo "unsupported" >&6; } ;; 4020 *) 4021 CC="$CC $ac_cv_prog_cc_c99" 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4023$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4024esac 4025if test "x$ac_cv_prog_cc_c99" != xno; then : 4026 4027fi 4028 4029 4030 4031ac_ext=c 4032ac_cpp='$CPP $CPPFLAGS' 4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4035ac_compiler_gnu=$ac_cv_c_compiler_gnu 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4037$as_echo_n "checking how to run the C preprocessor... " >&6; } 4038# On Suns, sometimes $CPP names a directory. 4039if test -n "$CPP" && test -d "$CPP"; then 4040 CPP= 4041fi 4042if test -z "$CPP"; then 4043 if ${ac_cv_prog_CPP+:} false; then : 4044 $as_echo_n "(cached) " >&6 4045else 4046 # Double quotes because CPP needs to be expanded 4047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4048 do 4049 ac_preproc_ok=false 4050for ac_c_preproc_warn_flag in '' yes 4051do 4052 # Use a header file that comes with gcc, so configuring glibc 4053 # with a fresh cross-compiler works. 4054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4055 # <limits.h> exists even on freestanding compilers. 4056 # On the NeXT, cc -E runs the code through the compiler's parser, 4057 # not just through cpp. "Syntax error" is here to catch this case. 4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4059/* end confdefs.h. */ 4060#ifdef __STDC__ 4061# include <limits.h> 4062#else 4063# include <assert.h> 4064#endif 4065 Syntax error 4066_ACEOF 4067if ac_fn_c_try_cpp "$LINENO"; then : 4068 4069else 4070 # Broken: fails on valid input. 4071continue 4072fi 4073rm -f conftest.err conftest.i conftest.$ac_ext 4074 4075 # OK, works on sane cases. Now check whether nonexistent headers 4076 # can be detected and how. 4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4078/* end confdefs.h. */ 4079#include <ac_nonexistent.h> 4080_ACEOF 4081if ac_fn_c_try_cpp "$LINENO"; then : 4082 # Broken: success on invalid input. 4083continue 4084else 4085 # Passes both tests. 4086ac_preproc_ok=: 4087break 4088fi 4089rm -f conftest.err conftest.i conftest.$ac_ext 4090 4091done 4092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4093rm -f conftest.i conftest.err conftest.$ac_ext 4094if $ac_preproc_ok; then : 4095 break 4096fi 4097 4098 done 4099 ac_cv_prog_CPP=$CPP 4100 4101fi 4102 CPP=$ac_cv_prog_CPP 4103else 4104 ac_cv_prog_CPP=$CPP 4105fi 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4107$as_echo "$CPP" >&6; } 4108ac_preproc_ok=false 4109for ac_c_preproc_warn_flag in '' yes 4110do 4111 # Use a header file that comes with gcc, so configuring glibc 4112 # with a fresh cross-compiler works. 4113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4114 # <limits.h> exists even on freestanding compilers. 4115 # On the NeXT, cc -E runs the code through the compiler's parser, 4116 # not just through cpp. "Syntax error" is here to catch this case. 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118/* end confdefs.h. */ 4119#ifdef __STDC__ 4120# include <limits.h> 4121#else 4122# include <assert.h> 4123#endif 4124 Syntax error 4125_ACEOF 4126if ac_fn_c_try_cpp "$LINENO"; then : 4127 4128else 4129 # Broken: fails on valid input. 4130continue 4131fi 4132rm -f conftest.err conftest.i conftest.$ac_ext 4133 4134 # OK, works on sane cases. Now check whether nonexistent headers 4135 # can be detected and how. 4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4137/* end confdefs.h. */ 4138#include <ac_nonexistent.h> 4139_ACEOF 4140if ac_fn_c_try_cpp "$LINENO"; then : 4141 # Broken: success on invalid input. 4142continue 4143else 4144 # Passes both tests. 4145ac_preproc_ok=: 4146break 4147fi 4148rm -f conftest.err conftest.i conftest.$ac_ext 4149 4150done 4151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4152rm -f conftest.i conftest.err conftest.$ac_ext 4153if $ac_preproc_ok; then : 4154 4155else 4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4158as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4159See \`config.log' for more details" "$LINENO" 5; } 4160fi 4161 4162ac_ext=c 4163ac_cpp='$CPP $CPPFLAGS' 4164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4166ac_compiler_gnu=$ac_cv_c_compiler_gnu 4167 4168 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4170$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4171if ${ac_cv_path_GREP+:} false; then : 4172 $as_echo_n "(cached) " >&6 4173else 4174 if test -z "$GREP"; then 4175 ac_path_GREP_found=false 4176 # Loop through the user's path and test for each of PROGNAME-LIST 4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4178for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4179do 4180 IFS=$as_save_IFS 4181 test -z "$as_dir" && as_dir=. 4182 for ac_prog in grep ggrep; do 4183 for ac_exec_ext in '' $ac_executable_extensions; do 4184 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4185 as_fn_executable_p "$ac_path_GREP" || continue 4186# Check for GNU ac_path_GREP and select it if it is found. 4187 # Check for GNU $ac_path_GREP 4188case `"$ac_path_GREP" --version 2>&1` in 4189*GNU*) 4190 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4191*) 4192 ac_count=0 4193 $as_echo_n 0123456789 >"conftest.in" 4194 while : 4195 do 4196 cat "conftest.in" "conftest.in" >"conftest.tmp" 4197 mv "conftest.tmp" "conftest.in" 4198 cp "conftest.in" "conftest.nl" 4199 $as_echo 'GREP' >> "conftest.nl" 4200 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4202 as_fn_arith $ac_count + 1 && ac_count=$as_val 4203 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4204 # Best one so far, save it but keep looking for a better one 4205 ac_cv_path_GREP="$ac_path_GREP" 4206 ac_path_GREP_max=$ac_count 4207 fi 4208 # 10*(2^10) chars as input seems more than enough 4209 test $ac_count -gt 10 && break 4210 done 4211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4212esac 4213 4214 $ac_path_GREP_found && break 3 4215 done 4216 done 4217 done 4218IFS=$as_save_IFS 4219 if test -z "$ac_cv_path_GREP"; then 4220 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4221 fi 4222else 4223 ac_cv_path_GREP=$GREP 4224fi 4225 4226fi 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4228$as_echo "$ac_cv_path_GREP" >&6; } 4229 GREP="$ac_cv_path_GREP" 4230 4231 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4233$as_echo_n "checking for egrep... " >&6; } 4234if ${ac_cv_path_EGREP+:} false; then : 4235 $as_echo_n "(cached) " >&6 4236else 4237 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4238 then ac_cv_path_EGREP="$GREP -E" 4239 else 4240 if test -z "$EGREP"; then 4241 ac_path_EGREP_found=false 4242 # Loop through the user's path and test for each of PROGNAME-LIST 4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4244for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4245do 4246 IFS=$as_save_IFS 4247 test -z "$as_dir" && as_dir=. 4248 for ac_prog in egrep; do 4249 for ac_exec_ext in '' $ac_executable_extensions; do 4250 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4251 as_fn_executable_p "$ac_path_EGREP" || continue 4252# Check for GNU ac_path_EGREP and select it if it is found. 4253 # Check for GNU $ac_path_EGREP 4254case `"$ac_path_EGREP" --version 2>&1` in 4255*GNU*) 4256 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4257*) 4258 ac_count=0 4259 $as_echo_n 0123456789 >"conftest.in" 4260 while : 4261 do 4262 cat "conftest.in" "conftest.in" >"conftest.tmp" 4263 mv "conftest.tmp" "conftest.in" 4264 cp "conftest.in" "conftest.nl" 4265 $as_echo 'EGREP' >> "conftest.nl" 4266 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4268 as_fn_arith $ac_count + 1 && ac_count=$as_val 4269 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4270 # Best one so far, save it but keep looking for a better one 4271 ac_cv_path_EGREP="$ac_path_EGREP" 4272 ac_path_EGREP_max=$ac_count 4273 fi 4274 # 10*(2^10) chars as input seems more than enough 4275 test $ac_count -gt 10 && break 4276 done 4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4278esac 4279 4280 $ac_path_EGREP_found && break 3 4281 done 4282 done 4283 done 4284IFS=$as_save_IFS 4285 if test -z "$ac_cv_path_EGREP"; then 4286 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4287 fi 4288else 4289 ac_cv_path_EGREP=$EGREP 4290fi 4291 4292 fi 4293fi 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4295$as_echo "$ac_cv_path_EGREP" >&6; } 4296 EGREP="$ac_cv_path_EGREP" 4297 4298 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4300$as_echo_n "checking for ANSI C header files... " >&6; } 4301if ${ac_cv_header_stdc+:} false; then : 4302 $as_echo_n "(cached) " >&6 4303else 4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4305/* end confdefs.h. */ 4306#include <stdlib.h> 4307#include <stdarg.h> 4308#include <string.h> 4309#include <float.h> 4310 4311int 4312main () 4313{ 4314 4315 ; 4316 return 0; 4317} 4318_ACEOF 4319if ac_fn_c_try_compile "$LINENO"; then : 4320 ac_cv_header_stdc=yes 4321else 4322 ac_cv_header_stdc=no 4323fi 4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4325 4326if test $ac_cv_header_stdc = yes; then 4327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4329/* end confdefs.h. */ 4330#include <string.h> 4331 4332_ACEOF 4333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4334 $EGREP "memchr" >/dev/null 2>&1; then : 4335 4336else 4337 ac_cv_header_stdc=no 4338fi 4339rm -f conftest* 4340 4341fi 4342 4343if test $ac_cv_header_stdc = yes; then 4344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346/* end confdefs.h. */ 4347#include <stdlib.h> 4348 4349_ACEOF 4350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4351 $EGREP "free" >/dev/null 2>&1; then : 4352 4353else 4354 ac_cv_header_stdc=no 4355fi 4356rm -f conftest* 4357 4358fi 4359 4360if test $ac_cv_header_stdc = yes; then 4361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4362 if test "$cross_compiling" = yes; then : 4363 : 4364else 4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4366/* end confdefs.h. */ 4367#include <ctype.h> 4368#include <stdlib.h> 4369#if ((' ' & 0x0FF) == 0x020) 4370# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4371# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4372#else 4373# define ISLOWER(c) \ 4374 (('a' <= (c) && (c) <= 'i') \ 4375 || ('j' <= (c) && (c) <= 'r') \ 4376 || ('s' <= (c) && (c) <= 'z')) 4377# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4378#endif 4379 4380#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4381int 4382main () 4383{ 4384 int i; 4385 for (i = 0; i < 256; i++) 4386 if (XOR (islower (i), ISLOWER (i)) 4387 || toupper (i) != TOUPPER (i)) 4388 return 2; 4389 return 0; 4390} 4391_ACEOF 4392if ac_fn_c_try_run "$LINENO"; then : 4393 4394else 4395 ac_cv_header_stdc=no 4396fi 4397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4398 conftest.$ac_objext conftest.beam conftest.$ac_ext 4399fi 4400 4401fi 4402fi 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4404$as_echo "$ac_cv_header_stdc" >&6; } 4405if test $ac_cv_header_stdc = yes; then 4406 4407$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4408 4409fi 4410 4411# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4412for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4413 inttypes.h stdint.h unistd.h 4414do : 4415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4416ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4417" 4418if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4419 cat >>confdefs.h <<_ACEOF 4420#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4421_ACEOF 4422 4423fi 4424 4425done 4426 4427 4428 4429 4430 4431 4432ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4433if test "x$ac_cv_have_decl___clang__" = xyes; then : 4434 CLANGCC="yes" 4435else 4436 CLANGCC="no" 4437fi 4438 4439ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4440if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4441 INTELCC="yes" 4442else 4443 INTELCC="no" 4444fi 4445 4446ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4447if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4448 SUNCC="yes" 4449else 4450 SUNCC="no" 4451fi 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4462 if test -n "$ac_tool_prefix"; then 4463 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4464set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4466$as_echo_n "checking for $ac_word... " >&6; } 4467if ${ac_cv_path_PKG_CONFIG+:} false; then : 4468 $as_echo_n "(cached) " >&6 4469else 4470 case $PKG_CONFIG in 4471 [\\/]* | ?:[\\/]*) 4472 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4473 ;; 4474 *) 4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4476for as_dir in $PATH 4477do 4478 IFS=$as_save_IFS 4479 test -z "$as_dir" && as_dir=. 4480 for ac_exec_ext in '' $ac_executable_extensions; do 4481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4482 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4484 break 2 4485 fi 4486done 4487 done 4488IFS=$as_save_IFS 4489 4490 ;; 4491esac 4492fi 4493PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4494if test -n "$PKG_CONFIG"; then 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4496$as_echo "$PKG_CONFIG" >&6; } 4497else 4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4499$as_echo "no" >&6; } 4500fi 4501 4502 4503fi 4504if test -z "$ac_cv_path_PKG_CONFIG"; then 4505 ac_pt_PKG_CONFIG=$PKG_CONFIG 4506 # Extract the first word of "pkg-config", so it can be a program name with args. 4507set dummy pkg-config; ac_word=$2 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4509$as_echo_n "checking for $ac_word... " >&6; } 4510if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4511 $as_echo_n "(cached) " >&6 4512else 4513 case $ac_pt_PKG_CONFIG in 4514 [\\/]* | ?:[\\/]*) 4515 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4516 ;; 4517 *) 4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4519for as_dir in $PATH 4520do 4521 IFS=$as_save_IFS 4522 test -z "$as_dir" && as_dir=. 4523 for ac_exec_ext in '' $ac_executable_extensions; do 4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4525 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4527 break 2 4528 fi 4529done 4530 done 4531IFS=$as_save_IFS 4532 4533 ;; 4534esac 4535fi 4536ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4537if test -n "$ac_pt_PKG_CONFIG"; then 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4539$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4540else 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4542$as_echo "no" >&6; } 4543fi 4544 4545 if test "x$ac_pt_PKG_CONFIG" = x; then 4546 PKG_CONFIG="" 4547 else 4548 case $cross_compiling:$ac_tool_warned in 4549yes:) 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4552ac_tool_warned=yes ;; 4553esac 4554 PKG_CONFIG=$ac_pt_PKG_CONFIG 4555 fi 4556else 4557 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4558fi 4559 4560fi 4561if test -n "$PKG_CONFIG"; then 4562 _pkg_min_version=0.9.0 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4564$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4565 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4567$as_echo "yes" >&6; } 4568 else 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4570$as_echo "no" >&6; } 4571 PKG_CONFIG="" 4572 fi 4573fi 4574# Make sure we can run config.sub. 4575$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4576 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4577 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4579$as_echo_n "checking build system type... " >&6; } 4580if ${ac_cv_build+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582else 4583 ac_build_alias=$build_alias 4584test "x$ac_build_alias" = x && 4585 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4586test "x$ac_build_alias" = x && 4587 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4588ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4590 4591fi 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4593$as_echo "$ac_cv_build" >&6; } 4594case $ac_cv_build in 4595*-*-*) ;; 4596*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4597esac 4598build=$ac_cv_build 4599ac_save_IFS=$IFS; IFS='-' 4600set x $ac_cv_build 4601shift 4602build_cpu=$1 4603build_vendor=$2 4604shift; shift 4605# Remember, the first character of IFS is used to create $*, 4606# except with old shells: 4607build_os=$* 4608IFS=$ac_save_IFS 4609case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4610 4611 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4613$as_echo_n "checking host system type... " >&6; } 4614if ${ac_cv_host+:} false; then : 4615 $as_echo_n "(cached) " >&6 4616else 4617 if test "x$host_alias" = x; then 4618 ac_cv_host=$ac_cv_build 4619else 4620 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4621 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4622fi 4623 4624fi 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4626$as_echo "$ac_cv_host" >&6; } 4627case $ac_cv_host in 4628*-*-*) ;; 4629*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4630esac 4631host=$ac_cv_host 4632ac_save_IFS=$IFS; IFS='-' 4633set x $ac_cv_host 4634shift 4635host_cpu=$1 4636host_vendor=$2 4637shift; shift 4638# Remember, the first character of IFS is used to create $*, 4639# except with old shells: 4640host_os=$* 4641IFS=$ac_save_IFS 4642case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4643 4644 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4646$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4647if ${ac_cv_path_SED+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4651 for ac_i in 1 2 3 4 5 6 7; do 4652 ac_script="$ac_script$as_nl$ac_script" 4653 done 4654 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4655 { ac_script=; unset ac_script;} 4656 if test -z "$SED"; then 4657 ac_path_SED_found=false 4658 # Loop through the user's path and test for each of PROGNAME-LIST 4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660for as_dir in $PATH 4661do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_prog in sed gsed; do 4665 for ac_exec_ext in '' $ac_executable_extensions; do 4666 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4667 as_fn_executable_p "$ac_path_SED" || continue 4668# Check for GNU ac_path_SED and select it if it is found. 4669 # Check for GNU $ac_path_SED 4670case `"$ac_path_SED" --version 2>&1` in 4671*GNU*) 4672 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4673*) 4674 ac_count=0 4675 $as_echo_n 0123456789 >"conftest.in" 4676 while : 4677 do 4678 cat "conftest.in" "conftest.in" >"conftest.tmp" 4679 mv "conftest.tmp" "conftest.in" 4680 cp "conftest.in" "conftest.nl" 4681 $as_echo '' >> "conftest.nl" 4682 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4684 as_fn_arith $ac_count + 1 && ac_count=$as_val 4685 if test $ac_count -gt ${ac_path_SED_max-0}; then 4686 # Best one so far, save it but keep looking for a better one 4687 ac_cv_path_SED="$ac_path_SED" 4688 ac_path_SED_max=$ac_count 4689 fi 4690 # 10*(2^10) chars as input seems more than enough 4691 test $ac_count -gt 10 && break 4692 done 4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4694esac 4695 4696 $ac_path_SED_found && break 3 4697 done 4698 done 4699 done 4700IFS=$as_save_IFS 4701 if test -z "$ac_cv_path_SED"; then 4702 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4703 fi 4704else 4705 ac_cv_path_SED=$SED 4706fi 4707 4708fi 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4710$as_echo "$ac_cv_path_SED" >&6; } 4711 SED="$ac_cv_path_SED" 4712 rm -f conftest.sed 4713 4714 4715 4716 4717 4718 4719# Check whether --enable-selective-werror was given. 4720if test "${enable_selective_werror+set}" = set; then : 4721 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4722else 4723 SELECTIVE_WERROR=yes 4724fi 4725 4726 4727 4728 4729 4730# -v is too short to test reliably with XORG_TESTSET_CFLAG 4731if test "x$SUNCC" = "xyes"; then 4732 BASE_CFLAGS="-v" 4733else 4734 BASE_CFLAGS="" 4735fi 4736 4737# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751xorg_testset_save_CFLAGS="$CFLAGS" 4752 4753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4756$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4757if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4758 $as_echo_n "(cached) " >&6 4759else 4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4761/* end confdefs.h. */ 4762int i; 4763_ACEOF 4764if ac_fn_c_try_compile "$LINENO"; then : 4765 xorg_cv_cc_flag_unknown_warning_option=yes 4766else 4767 xorg_cv_cc_flag_unknown_warning_option=no 4768fi 4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4770fi 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4772$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4774 CFLAGS="$xorg_testset_save_CFLAGS" 4775fi 4776 4777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4780 fi 4781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4783$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4784if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4785 $as_echo_n "(cached) " >&6 4786else 4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4788/* end confdefs.h. */ 4789int i; 4790_ACEOF 4791if ac_fn_c_try_compile "$LINENO"; then : 4792 xorg_cv_cc_flag_unused_command_line_argument=yes 4793else 4794 xorg_cv_cc_flag_unused_command_line_argument=no 4795fi 4796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4797fi 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4799$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4801 CFLAGS="$xorg_testset_save_CFLAGS" 4802fi 4803 4804found="no" 4805 4806 if test $found = "no" ; then 4807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4809 fi 4810 4811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4813 fi 4814 4815 CFLAGS="$CFLAGS -Wall" 4816 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4818$as_echo_n "checking if $CC supports -Wall... " >&6; } 4819 cacheid=xorg_cv_cc_flag__Wall 4820 if eval \${$cacheid+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824/* end confdefs.h. */ 4825int i; 4826int 4827main () 4828{ 4829 4830 ; 4831 return 0; 4832} 4833_ACEOF 4834if ac_fn_c_try_link "$LINENO"; then : 4835 eval $cacheid=yes 4836else 4837 eval $cacheid=no 4838fi 4839rm -f core conftest.err conftest.$ac_objext \ 4840 conftest$ac_exeext conftest.$ac_ext 4841fi 4842 4843 4844 CFLAGS="$xorg_testset_save_CFLAGS" 4845 4846 eval supported=\$$cacheid 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4848$as_echo "$supported" >&6; } 4849 if test "$supported" = "yes" ; then 4850 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4851 found="yes" 4852 fi 4853 fi 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869xorg_testset_save_CFLAGS="$CFLAGS" 4870 4871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4874$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4875if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4876 $as_echo_n "(cached) " >&6 4877else 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4879/* end confdefs.h. */ 4880int i; 4881_ACEOF 4882if ac_fn_c_try_compile "$LINENO"; then : 4883 xorg_cv_cc_flag_unknown_warning_option=yes 4884else 4885 xorg_cv_cc_flag_unknown_warning_option=no 4886fi 4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4888fi 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4890$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4892 CFLAGS="$xorg_testset_save_CFLAGS" 4893fi 4894 4895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4898 fi 4899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4901$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4902if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906/* end confdefs.h. */ 4907int i; 4908_ACEOF 4909if ac_fn_c_try_compile "$LINENO"; then : 4910 xorg_cv_cc_flag_unused_command_line_argument=yes 4911else 4912 xorg_cv_cc_flag_unused_command_line_argument=no 4913fi 4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4915fi 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4917$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4919 CFLAGS="$xorg_testset_save_CFLAGS" 4920fi 4921 4922found="no" 4923 4924 if test $found = "no" ; then 4925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4927 fi 4928 4929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4931 fi 4932 4933 CFLAGS="$CFLAGS -Wpointer-arith" 4934 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4936$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4937 cacheid=xorg_cv_cc_flag__Wpointer_arith 4938 if eval \${$cacheid+:} false; then : 4939 $as_echo_n "(cached) " >&6 4940else 4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4942/* end confdefs.h. */ 4943int i; 4944int 4945main () 4946{ 4947 4948 ; 4949 return 0; 4950} 4951_ACEOF 4952if ac_fn_c_try_link "$LINENO"; then : 4953 eval $cacheid=yes 4954else 4955 eval $cacheid=no 4956fi 4957rm -f core conftest.err conftest.$ac_objext \ 4958 conftest$ac_exeext conftest.$ac_ext 4959fi 4960 4961 4962 CFLAGS="$xorg_testset_save_CFLAGS" 4963 4964 eval supported=\$$cacheid 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4966$as_echo "$supported" >&6; } 4967 if test "$supported" = "yes" ; then 4968 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4969 found="yes" 4970 fi 4971 fi 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987xorg_testset_save_CFLAGS="$CFLAGS" 4988 4989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4994 $as_echo_n "(cached) " >&6 4995else 4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4997/* end confdefs.h. */ 4998int i; 4999_ACEOF 5000if ac_fn_c_try_compile "$LINENO"; then : 5001 xorg_cv_cc_flag_unknown_warning_option=yes 5002else 5003 xorg_cv_cc_flag_unknown_warning_option=no 5004fi 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5006fi 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5010 CFLAGS="$xorg_testset_save_CFLAGS" 5011fi 5012 5013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5016 fi 5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5021 $as_echo_n "(cached) " >&6 5022else 5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5024/* end confdefs.h. */ 5025int i; 5026_ACEOF 5027if ac_fn_c_try_compile "$LINENO"; then : 5028 xorg_cv_cc_flag_unused_command_line_argument=yes 5029else 5030 xorg_cv_cc_flag_unused_command_line_argument=no 5031fi 5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5033fi 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5037 CFLAGS="$xorg_testset_save_CFLAGS" 5038fi 5039 5040found="no" 5041 5042 if test $found = "no" ; then 5043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5045 fi 5046 5047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5049 fi 5050 5051 CFLAGS="$CFLAGS -Wmissing-declarations" 5052 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5054$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5055 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5056 if eval \${$cacheid+:} false; then : 5057 $as_echo_n "(cached) " >&6 5058else 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060/* end confdefs.h. */ 5061int i; 5062int 5063main () 5064{ 5065 5066 ; 5067 return 0; 5068} 5069_ACEOF 5070if ac_fn_c_try_link "$LINENO"; then : 5071 eval $cacheid=yes 5072else 5073 eval $cacheid=no 5074fi 5075rm -f core conftest.err conftest.$ac_objext \ 5076 conftest$ac_exeext conftest.$ac_ext 5077fi 5078 5079 5080 CFLAGS="$xorg_testset_save_CFLAGS" 5081 5082 eval supported=\$$cacheid 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5084$as_echo "$supported" >&6; } 5085 if test "$supported" = "yes" ; then 5086 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5087 found="yes" 5088 fi 5089 fi 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105xorg_testset_save_CFLAGS="$CFLAGS" 5106 5107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5112 $as_echo_n "(cached) " >&6 5113else 5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115/* end confdefs.h. */ 5116int i; 5117_ACEOF 5118if ac_fn_c_try_compile "$LINENO"; then : 5119 xorg_cv_cc_flag_unknown_warning_option=yes 5120else 5121 xorg_cv_cc_flag_unknown_warning_option=no 5122fi 5123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5124fi 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5128 CFLAGS="$xorg_testset_save_CFLAGS" 5129fi 5130 5131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5134 fi 5135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5139 $as_echo_n "(cached) " >&6 5140else 5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5142/* end confdefs.h. */ 5143int i; 5144_ACEOF 5145if ac_fn_c_try_compile "$LINENO"; then : 5146 xorg_cv_cc_flag_unused_command_line_argument=yes 5147else 5148 xorg_cv_cc_flag_unused_command_line_argument=no 5149fi 5150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5151fi 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5155 CFLAGS="$xorg_testset_save_CFLAGS" 5156fi 5157 5158found="no" 5159 5160 if test $found = "no" ; then 5161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5163 fi 5164 5165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5167 fi 5168 5169 CFLAGS="$CFLAGS -Wformat=2" 5170 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5172$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5173 cacheid=xorg_cv_cc_flag__Wformat_2 5174 if eval \${$cacheid+:} false; then : 5175 $as_echo_n "(cached) " >&6 5176else 5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5178/* end confdefs.h. */ 5179int i; 5180int 5181main () 5182{ 5183 5184 ; 5185 return 0; 5186} 5187_ACEOF 5188if ac_fn_c_try_link "$LINENO"; then : 5189 eval $cacheid=yes 5190else 5191 eval $cacheid=no 5192fi 5193rm -f core conftest.err conftest.$ac_objext \ 5194 conftest$ac_exeext conftest.$ac_ext 5195fi 5196 5197 5198 CFLAGS="$xorg_testset_save_CFLAGS" 5199 5200 eval supported=\$$cacheid 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5202$as_echo "$supported" >&6; } 5203 if test "$supported" = "yes" ; then 5204 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5205 found="yes" 5206 fi 5207 fi 5208 5209 if test $found = "no" ; then 5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5212 fi 5213 5214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5216 fi 5217 5218 CFLAGS="$CFLAGS -Wformat" 5219 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5221$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5222 cacheid=xorg_cv_cc_flag__Wformat 5223 if eval \${$cacheid+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225else 5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5227/* end confdefs.h. */ 5228int i; 5229int 5230main () 5231{ 5232 5233 ; 5234 return 0; 5235} 5236_ACEOF 5237if ac_fn_c_try_link "$LINENO"; then : 5238 eval $cacheid=yes 5239else 5240 eval $cacheid=no 5241fi 5242rm -f core conftest.err conftest.$ac_objext \ 5243 conftest$ac_exeext conftest.$ac_ext 5244fi 5245 5246 5247 CFLAGS="$xorg_testset_save_CFLAGS" 5248 5249 eval supported=\$$cacheid 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5251$as_echo "$supported" >&6; } 5252 if test "$supported" = "yes" ; then 5253 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5254 found="yes" 5255 fi 5256 fi 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274xorg_testset_save_CFLAGS="$CFLAGS" 5275 5276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5279$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5280if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5281 $as_echo_n "(cached) " >&6 5282else 5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5284/* end confdefs.h. */ 5285int i; 5286_ACEOF 5287if ac_fn_c_try_compile "$LINENO"; then : 5288 xorg_cv_cc_flag_unknown_warning_option=yes 5289else 5290 xorg_cv_cc_flag_unknown_warning_option=no 5291fi 5292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5293fi 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5295$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5297 CFLAGS="$xorg_testset_save_CFLAGS" 5298fi 5299 5300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5303 fi 5304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5306$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5307if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309else 5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5311/* end confdefs.h. */ 5312int i; 5313_ACEOF 5314if ac_fn_c_try_compile "$LINENO"; then : 5315 xorg_cv_cc_flag_unused_command_line_argument=yes 5316else 5317 xorg_cv_cc_flag_unused_command_line_argument=no 5318fi 5319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5320fi 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5322$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5324 CFLAGS="$xorg_testset_save_CFLAGS" 5325fi 5326 5327found="no" 5328 5329 if test $found = "no" ; then 5330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5332 fi 5333 5334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5336 fi 5337 5338 CFLAGS="$CFLAGS -Wstrict-prototypes" 5339 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5341$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5342 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5343 if eval \${$cacheid+:} false; then : 5344 $as_echo_n "(cached) " >&6 5345else 5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5347/* end confdefs.h. */ 5348int i; 5349int 5350main () 5351{ 5352 5353 ; 5354 return 0; 5355} 5356_ACEOF 5357if ac_fn_c_try_link "$LINENO"; then : 5358 eval $cacheid=yes 5359else 5360 eval $cacheid=no 5361fi 5362rm -f core conftest.err conftest.$ac_objext \ 5363 conftest$ac_exeext conftest.$ac_ext 5364fi 5365 5366 5367 CFLAGS="$xorg_testset_save_CFLAGS" 5368 5369 eval supported=\$$cacheid 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5371$as_echo "$supported" >&6; } 5372 if test "$supported" = "yes" ; then 5373 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5374 found="yes" 5375 fi 5376 fi 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392xorg_testset_save_CFLAGS="$CFLAGS" 5393 5394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5399 $as_echo_n "(cached) " >&6 5400else 5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5402/* end confdefs.h. */ 5403int i; 5404_ACEOF 5405if ac_fn_c_try_compile "$LINENO"; then : 5406 xorg_cv_cc_flag_unknown_warning_option=yes 5407else 5408 xorg_cv_cc_flag_unknown_warning_option=no 5409fi 5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5411fi 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5415 CFLAGS="$xorg_testset_save_CFLAGS" 5416fi 5417 5418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5421 fi 5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5425if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5426 $as_echo_n "(cached) " >&6 5427else 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429/* end confdefs.h. */ 5430int i; 5431_ACEOF 5432if ac_fn_c_try_compile "$LINENO"; then : 5433 xorg_cv_cc_flag_unused_command_line_argument=yes 5434else 5435 xorg_cv_cc_flag_unused_command_line_argument=no 5436fi 5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5438fi 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5442 CFLAGS="$xorg_testset_save_CFLAGS" 5443fi 5444 5445found="no" 5446 5447 if test $found = "no" ; then 5448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5450 fi 5451 5452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5454 fi 5455 5456 CFLAGS="$CFLAGS -Wmissing-prototypes" 5457 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5459$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5460 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5461 if eval \${$cacheid+:} false; then : 5462 $as_echo_n "(cached) " >&6 5463else 5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5465/* end confdefs.h. */ 5466int i; 5467int 5468main () 5469{ 5470 5471 ; 5472 return 0; 5473} 5474_ACEOF 5475if ac_fn_c_try_link "$LINENO"; then : 5476 eval $cacheid=yes 5477else 5478 eval $cacheid=no 5479fi 5480rm -f core conftest.err conftest.$ac_objext \ 5481 conftest$ac_exeext conftest.$ac_ext 5482fi 5483 5484 5485 CFLAGS="$xorg_testset_save_CFLAGS" 5486 5487 eval supported=\$$cacheid 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5489$as_echo "$supported" >&6; } 5490 if test "$supported" = "yes" ; then 5491 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5492 found="yes" 5493 fi 5494 fi 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510xorg_testset_save_CFLAGS="$CFLAGS" 5511 5512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5515$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5516if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518else 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520/* end confdefs.h. */ 5521int i; 5522_ACEOF 5523if ac_fn_c_try_compile "$LINENO"; then : 5524 xorg_cv_cc_flag_unknown_warning_option=yes 5525else 5526 xorg_cv_cc_flag_unknown_warning_option=no 5527fi 5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5529fi 5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5531$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5533 CFLAGS="$xorg_testset_save_CFLAGS" 5534fi 5535 5536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5539 fi 5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5542$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5543if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5547/* end confdefs.h. */ 5548int i; 5549_ACEOF 5550if ac_fn_c_try_compile "$LINENO"; then : 5551 xorg_cv_cc_flag_unused_command_line_argument=yes 5552else 5553 xorg_cv_cc_flag_unused_command_line_argument=no 5554fi 5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5556fi 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5558$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5560 CFLAGS="$xorg_testset_save_CFLAGS" 5561fi 5562 5563found="no" 5564 5565 if test $found = "no" ; then 5566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5568 fi 5569 5570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5572 fi 5573 5574 CFLAGS="$CFLAGS -Wnested-externs" 5575 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5577$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5578 cacheid=xorg_cv_cc_flag__Wnested_externs 5579 if eval \${$cacheid+:} false; then : 5580 $as_echo_n "(cached) " >&6 5581else 5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5583/* end confdefs.h. */ 5584int i; 5585int 5586main () 5587{ 5588 5589 ; 5590 return 0; 5591} 5592_ACEOF 5593if ac_fn_c_try_link "$LINENO"; then : 5594 eval $cacheid=yes 5595else 5596 eval $cacheid=no 5597fi 5598rm -f core conftest.err conftest.$ac_objext \ 5599 conftest$ac_exeext conftest.$ac_ext 5600fi 5601 5602 5603 CFLAGS="$xorg_testset_save_CFLAGS" 5604 5605 eval supported=\$$cacheid 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5607$as_echo "$supported" >&6; } 5608 if test "$supported" = "yes" ; then 5609 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5610 found="yes" 5611 fi 5612 fi 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628xorg_testset_save_CFLAGS="$CFLAGS" 5629 5630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5633$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5634if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5638/* end confdefs.h. */ 5639int i; 5640_ACEOF 5641if ac_fn_c_try_compile "$LINENO"; then : 5642 xorg_cv_cc_flag_unknown_warning_option=yes 5643else 5644 xorg_cv_cc_flag_unknown_warning_option=no 5645fi 5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5647fi 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5649$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5651 CFLAGS="$xorg_testset_save_CFLAGS" 5652fi 5653 5654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5657 fi 5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5660$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5661if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665/* end confdefs.h. */ 5666int i; 5667_ACEOF 5668if ac_fn_c_try_compile "$LINENO"; then : 5669 xorg_cv_cc_flag_unused_command_line_argument=yes 5670else 5671 xorg_cv_cc_flag_unused_command_line_argument=no 5672fi 5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5674fi 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5676$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5678 CFLAGS="$xorg_testset_save_CFLAGS" 5679fi 5680 5681found="no" 5682 5683 if test $found = "no" ; then 5684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5686 fi 5687 5688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5690 fi 5691 5692 CFLAGS="$CFLAGS -Wbad-function-cast" 5693 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5695$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5696 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5697 if eval \${$cacheid+:} false; then : 5698 $as_echo_n "(cached) " >&6 5699else 5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5701/* end confdefs.h. */ 5702int i; 5703int 5704main () 5705{ 5706 5707 ; 5708 return 0; 5709} 5710_ACEOF 5711if ac_fn_c_try_link "$LINENO"; then : 5712 eval $cacheid=yes 5713else 5714 eval $cacheid=no 5715fi 5716rm -f core conftest.err conftest.$ac_objext \ 5717 conftest$ac_exeext conftest.$ac_ext 5718fi 5719 5720 5721 CFLAGS="$xorg_testset_save_CFLAGS" 5722 5723 eval supported=\$$cacheid 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5725$as_echo "$supported" >&6; } 5726 if test "$supported" = "yes" ; then 5727 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5728 found="yes" 5729 fi 5730 fi 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746xorg_testset_save_CFLAGS="$CFLAGS" 5747 5748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5751$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5752if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5756/* end confdefs.h. */ 5757int i; 5758_ACEOF 5759if ac_fn_c_try_compile "$LINENO"; then : 5760 xorg_cv_cc_flag_unknown_warning_option=yes 5761else 5762 xorg_cv_cc_flag_unknown_warning_option=no 5763fi 5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5765fi 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5767$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5769 CFLAGS="$xorg_testset_save_CFLAGS" 5770fi 5771 5772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5775 fi 5776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5778$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5779if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781else 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783/* end confdefs.h. */ 5784int i; 5785_ACEOF 5786if ac_fn_c_try_compile "$LINENO"; then : 5787 xorg_cv_cc_flag_unused_command_line_argument=yes 5788else 5789 xorg_cv_cc_flag_unused_command_line_argument=no 5790fi 5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5792fi 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5794$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5796 CFLAGS="$xorg_testset_save_CFLAGS" 5797fi 5798 5799found="no" 5800 5801 if test $found = "no" ; then 5802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5804 fi 5805 5806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5808 fi 5809 5810 CFLAGS="$CFLAGS -Wold-style-definition" 5811 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5813$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5814 cacheid=xorg_cv_cc_flag__Wold_style_definition 5815 if eval \${$cacheid+:} false; then : 5816 $as_echo_n "(cached) " >&6 5817else 5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5819/* end confdefs.h. */ 5820int i; 5821int 5822main () 5823{ 5824 5825 ; 5826 return 0; 5827} 5828_ACEOF 5829if ac_fn_c_try_link "$LINENO"; then : 5830 eval $cacheid=yes 5831else 5832 eval $cacheid=no 5833fi 5834rm -f core conftest.err conftest.$ac_objext \ 5835 conftest$ac_exeext conftest.$ac_ext 5836fi 5837 5838 5839 CFLAGS="$xorg_testset_save_CFLAGS" 5840 5841 eval supported=\$$cacheid 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5843$as_echo "$supported" >&6; } 5844 if test "$supported" = "yes" ; then 5845 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5846 found="yes" 5847 fi 5848 fi 5849 5850 if test $found = "no" ; then 5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5853 fi 5854 5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5857 fi 5858 5859 CFLAGS="$CFLAGS -fd" 5860 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5862$as_echo_n "checking if $CC supports -fd... " >&6; } 5863 cacheid=xorg_cv_cc_flag__fd 5864 if eval \${$cacheid+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869int i; 5870int 5871main () 5872{ 5873 5874 ; 5875 return 0; 5876} 5877_ACEOF 5878if ac_fn_c_try_link "$LINENO"; then : 5879 eval $cacheid=yes 5880else 5881 eval $cacheid=no 5882fi 5883rm -f core conftest.err conftest.$ac_objext \ 5884 conftest$ac_exeext conftest.$ac_ext 5885fi 5886 5887 5888 CFLAGS="$xorg_testset_save_CFLAGS" 5889 5890 eval supported=\$$cacheid 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5892$as_echo "$supported" >&6; } 5893 if test "$supported" = "yes" ; then 5894 BASE_CFLAGS="$BASE_CFLAGS -fd" 5895 found="yes" 5896 fi 5897 fi 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913xorg_testset_save_CFLAGS="$CFLAGS" 5914 5915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923/* end confdefs.h. */ 5924int i; 5925_ACEOF 5926if ac_fn_c_try_compile "$LINENO"; then : 5927 xorg_cv_cc_flag_unknown_warning_option=yes 5928else 5929 xorg_cv_cc_flag_unknown_warning_option=no 5930fi 5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5932fi 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5936 CFLAGS="$xorg_testset_save_CFLAGS" 5937fi 5938 5939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5942 fi 5943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5947 $as_echo_n "(cached) " >&6 5948else 5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950/* end confdefs.h. */ 5951int i; 5952_ACEOF 5953if ac_fn_c_try_compile "$LINENO"; then : 5954 xorg_cv_cc_flag_unused_command_line_argument=yes 5955else 5956 xorg_cv_cc_flag_unused_command_line_argument=no 5957fi 5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5959fi 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964fi 5965 5966found="no" 5967 5968 if test $found = "no" ; then 5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5971 fi 5972 5973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5975 fi 5976 5977 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5978 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5980$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5981 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5982 if eval \${$cacheid+:} false; then : 5983 $as_echo_n "(cached) " >&6 5984else 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986/* end confdefs.h. */ 5987int i; 5988int 5989main () 5990{ 5991 5992 ; 5993 return 0; 5994} 5995_ACEOF 5996if ac_fn_c_try_link "$LINENO"; then : 5997 eval $cacheid=yes 5998else 5999 eval $cacheid=no 6000fi 6001rm -f core conftest.err conftest.$ac_objext \ 6002 conftest$ac_exeext conftest.$ac_ext 6003fi 6004 6005 6006 CFLAGS="$xorg_testset_save_CFLAGS" 6007 6008 eval supported=\$$cacheid 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6010$as_echo "$supported" >&6; } 6011 if test "$supported" = "yes" ; then 6012 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6013 found="yes" 6014 fi 6015 fi 6016 6017 6018 6019 6020 6021# This chunk adds additional warnings that could catch undesired effects. 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035xorg_testset_save_CFLAGS="$CFLAGS" 6036 6037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6042 $as_echo_n "(cached) " >&6 6043else 6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6045/* end confdefs.h. */ 6046int i; 6047_ACEOF 6048if ac_fn_c_try_compile "$LINENO"; then : 6049 xorg_cv_cc_flag_unknown_warning_option=yes 6050else 6051 xorg_cv_cc_flag_unknown_warning_option=no 6052fi 6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6054fi 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6058 CFLAGS="$xorg_testset_save_CFLAGS" 6059fi 6060 6061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6064 fi 6065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6069 $as_echo_n "(cached) " >&6 6070else 6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072/* end confdefs.h. */ 6073int i; 6074_ACEOF 6075if ac_fn_c_try_compile "$LINENO"; then : 6076 xorg_cv_cc_flag_unused_command_line_argument=yes 6077else 6078 xorg_cv_cc_flag_unused_command_line_argument=no 6079fi 6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6081fi 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6085 CFLAGS="$xorg_testset_save_CFLAGS" 6086fi 6087 6088found="no" 6089 6090 if test $found = "no" ; then 6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6093 fi 6094 6095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6097 fi 6098 6099 CFLAGS="$CFLAGS -Wunused" 6100 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6102$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6103 cacheid=xorg_cv_cc_flag__Wunused 6104 if eval \${$cacheid+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106else 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109int i; 6110int 6111main () 6112{ 6113 6114 ; 6115 return 0; 6116} 6117_ACEOF 6118if ac_fn_c_try_link "$LINENO"; then : 6119 eval $cacheid=yes 6120else 6121 eval $cacheid=no 6122fi 6123rm -f core conftest.err conftest.$ac_objext \ 6124 conftest$ac_exeext conftest.$ac_ext 6125fi 6126 6127 6128 CFLAGS="$xorg_testset_save_CFLAGS" 6129 6130 eval supported=\$$cacheid 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6132$as_echo "$supported" >&6; } 6133 if test "$supported" = "yes" ; then 6134 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6135 found="yes" 6136 fi 6137 fi 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153xorg_testset_save_CFLAGS="$CFLAGS" 6154 6155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6160 $as_echo_n "(cached) " >&6 6161else 6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6163/* end confdefs.h. */ 6164int i; 6165_ACEOF 6166if ac_fn_c_try_compile "$LINENO"; then : 6167 xorg_cv_cc_flag_unknown_warning_option=yes 6168else 6169 xorg_cv_cc_flag_unknown_warning_option=no 6170fi 6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6172fi 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6176 CFLAGS="$xorg_testset_save_CFLAGS" 6177fi 6178 6179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6182 fi 6183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6187 $as_echo_n "(cached) " >&6 6188else 6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6190/* end confdefs.h. */ 6191int i; 6192_ACEOF 6193if ac_fn_c_try_compile "$LINENO"; then : 6194 xorg_cv_cc_flag_unused_command_line_argument=yes 6195else 6196 xorg_cv_cc_flag_unused_command_line_argument=no 6197fi 6198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6199fi 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6203 CFLAGS="$xorg_testset_save_CFLAGS" 6204fi 6205 6206found="no" 6207 6208 if test $found = "no" ; then 6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6211 fi 6212 6213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6215 fi 6216 6217 CFLAGS="$CFLAGS -Wuninitialized" 6218 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6220$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6221 cacheid=xorg_cv_cc_flag__Wuninitialized 6222 if eval \${$cacheid+:} false; then : 6223 $as_echo_n "(cached) " >&6 6224else 6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226/* end confdefs.h. */ 6227int i; 6228int 6229main () 6230{ 6231 6232 ; 6233 return 0; 6234} 6235_ACEOF 6236if ac_fn_c_try_link "$LINENO"; then : 6237 eval $cacheid=yes 6238else 6239 eval $cacheid=no 6240fi 6241rm -f core conftest.err conftest.$ac_objext \ 6242 conftest$ac_exeext conftest.$ac_ext 6243fi 6244 6245 6246 CFLAGS="$xorg_testset_save_CFLAGS" 6247 6248 eval supported=\$$cacheid 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6250$as_echo "$supported" >&6; } 6251 if test "$supported" = "yes" ; then 6252 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6253 found="yes" 6254 fi 6255 fi 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271xorg_testset_save_CFLAGS="$CFLAGS" 6272 6273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6278 $as_echo_n "(cached) " >&6 6279else 6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6281/* end confdefs.h. */ 6282int i; 6283_ACEOF 6284if ac_fn_c_try_compile "$LINENO"; then : 6285 xorg_cv_cc_flag_unknown_warning_option=yes 6286else 6287 xorg_cv_cc_flag_unknown_warning_option=no 6288fi 6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6290fi 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6294 CFLAGS="$xorg_testset_save_CFLAGS" 6295fi 6296 6297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6300 fi 6301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6305 $as_echo_n "(cached) " >&6 6306else 6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6308/* end confdefs.h. */ 6309int i; 6310_ACEOF 6311if ac_fn_c_try_compile "$LINENO"; then : 6312 xorg_cv_cc_flag_unused_command_line_argument=yes 6313else 6314 xorg_cv_cc_flag_unused_command_line_argument=no 6315fi 6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6317fi 6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6321 CFLAGS="$xorg_testset_save_CFLAGS" 6322fi 6323 6324found="no" 6325 6326 if test $found = "no" ; then 6327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6329 fi 6330 6331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6333 fi 6334 6335 CFLAGS="$CFLAGS -Wshadow" 6336 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6338$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6339 cacheid=xorg_cv_cc_flag__Wshadow 6340 if eval \${$cacheid+:} false; then : 6341 $as_echo_n "(cached) " >&6 6342else 6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6344/* end confdefs.h. */ 6345int i; 6346int 6347main () 6348{ 6349 6350 ; 6351 return 0; 6352} 6353_ACEOF 6354if ac_fn_c_try_link "$LINENO"; then : 6355 eval $cacheid=yes 6356else 6357 eval $cacheid=no 6358fi 6359rm -f core conftest.err conftest.$ac_objext \ 6360 conftest$ac_exeext conftest.$ac_ext 6361fi 6362 6363 6364 CFLAGS="$xorg_testset_save_CFLAGS" 6365 6366 eval supported=\$$cacheid 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6368$as_echo "$supported" >&6; } 6369 if test "$supported" = "yes" ; then 6370 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6371 found="yes" 6372 fi 6373 fi 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389xorg_testset_save_CFLAGS="$CFLAGS" 6390 6391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6396 $as_echo_n "(cached) " >&6 6397else 6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6399/* end confdefs.h. */ 6400int i; 6401_ACEOF 6402if ac_fn_c_try_compile "$LINENO"; then : 6403 xorg_cv_cc_flag_unknown_warning_option=yes 6404else 6405 xorg_cv_cc_flag_unknown_warning_option=no 6406fi 6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6408fi 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6412 CFLAGS="$xorg_testset_save_CFLAGS" 6413fi 6414 6415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6418 fi 6419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6423 $as_echo_n "(cached) " >&6 6424else 6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426/* end confdefs.h. */ 6427int i; 6428_ACEOF 6429if ac_fn_c_try_compile "$LINENO"; then : 6430 xorg_cv_cc_flag_unused_command_line_argument=yes 6431else 6432 xorg_cv_cc_flag_unused_command_line_argument=no 6433fi 6434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6435fi 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6439 CFLAGS="$xorg_testset_save_CFLAGS" 6440fi 6441 6442found="no" 6443 6444 if test $found = "no" ; then 6445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6447 fi 6448 6449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6451 fi 6452 6453 CFLAGS="$CFLAGS -Wmissing-noreturn" 6454 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6456$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6457 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6458 if eval \${$cacheid+:} false; then : 6459 $as_echo_n "(cached) " >&6 6460else 6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6462/* end confdefs.h. */ 6463int i; 6464int 6465main () 6466{ 6467 6468 ; 6469 return 0; 6470} 6471_ACEOF 6472if ac_fn_c_try_link "$LINENO"; then : 6473 eval $cacheid=yes 6474else 6475 eval $cacheid=no 6476fi 6477rm -f core conftest.err conftest.$ac_objext \ 6478 conftest$ac_exeext conftest.$ac_ext 6479fi 6480 6481 6482 CFLAGS="$xorg_testset_save_CFLAGS" 6483 6484 eval supported=\$$cacheid 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6486$as_echo "$supported" >&6; } 6487 if test "$supported" = "yes" ; then 6488 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6489 found="yes" 6490 fi 6491 fi 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507xorg_testset_save_CFLAGS="$CFLAGS" 6508 6509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6517/* end confdefs.h. */ 6518int i; 6519_ACEOF 6520if ac_fn_c_try_compile "$LINENO"; then : 6521 xorg_cv_cc_flag_unknown_warning_option=yes 6522else 6523 xorg_cv_cc_flag_unknown_warning_option=no 6524fi 6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6526fi 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6530 CFLAGS="$xorg_testset_save_CFLAGS" 6531fi 6532 6533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6536 fi 6537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6541 $as_echo_n "(cached) " >&6 6542else 6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544/* end confdefs.h. */ 6545int i; 6546_ACEOF 6547if ac_fn_c_try_compile "$LINENO"; then : 6548 xorg_cv_cc_flag_unused_command_line_argument=yes 6549else 6550 xorg_cv_cc_flag_unused_command_line_argument=no 6551fi 6552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6553fi 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6557 CFLAGS="$xorg_testset_save_CFLAGS" 6558fi 6559 6560found="no" 6561 6562 if test $found = "no" ; then 6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6565 fi 6566 6567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6569 fi 6570 6571 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6572 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6574$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6575 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6576 if eval \${$cacheid+:} false; then : 6577 $as_echo_n "(cached) " >&6 6578else 6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6580/* end confdefs.h. */ 6581int i; 6582int 6583main () 6584{ 6585 6586 ; 6587 return 0; 6588} 6589_ACEOF 6590if ac_fn_c_try_link "$LINENO"; then : 6591 eval $cacheid=yes 6592else 6593 eval $cacheid=no 6594fi 6595rm -f core conftest.err conftest.$ac_objext \ 6596 conftest$ac_exeext conftest.$ac_ext 6597fi 6598 6599 6600 CFLAGS="$xorg_testset_save_CFLAGS" 6601 6602 eval supported=\$$cacheid 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6604$as_echo "$supported" >&6; } 6605 if test "$supported" = "yes" ; then 6606 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6607 found="yes" 6608 fi 6609 fi 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625xorg_testset_save_CFLAGS="$CFLAGS" 6626 6627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6632 $as_echo_n "(cached) " >&6 6633else 6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6635/* end confdefs.h. */ 6636int i; 6637_ACEOF 6638if ac_fn_c_try_compile "$LINENO"; then : 6639 xorg_cv_cc_flag_unknown_warning_option=yes 6640else 6641 xorg_cv_cc_flag_unknown_warning_option=no 6642fi 6643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6644fi 6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6648 CFLAGS="$xorg_testset_save_CFLAGS" 6649fi 6650 6651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6654 fi 6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663int i; 6664_ACEOF 6665if ac_fn_c_try_compile "$LINENO"; then : 6666 xorg_cv_cc_flag_unused_command_line_argument=yes 6667else 6668 xorg_cv_cc_flag_unused_command_line_argument=no 6669fi 6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6671fi 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6675 CFLAGS="$xorg_testset_save_CFLAGS" 6676fi 6677 6678found="no" 6679 6680 if test $found = "no" ; then 6681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6683 fi 6684 6685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6687 fi 6688 6689 CFLAGS="$CFLAGS -Wredundant-decls" 6690 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6692$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6693 cacheid=xorg_cv_cc_flag__Wredundant_decls 6694 if eval \${$cacheid+:} false; then : 6695 $as_echo_n "(cached) " >&6 6696else 6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6698/* end confdefs.h. */ 6699int i; 6700int 6701main () 6702{ 6703 6704 ; 6705 return 0; 6706} 6707_ACEOF 6708if ac_fn_c_try_link "$LINENO"; then : 6709 eval $cacheid=yes 6710else 6711 eval $cacheid=no 6712fi 6713rm -f core conftest.err conftest.$ac_objext \ 6714 conftest$ac_exeext conftest.$ac_ext 6715fi 6716 6717 6718 CFLAGS="$xorg_testset_save_CFLAGS" 6719 6720 eval supported=\$$cacheid 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6722$as_echo "$supported" >&6; } 6723 if test "$supported" = "yes" ; then 6724 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6725 found="yes" 6726 fi 6727 fi 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743xorg_testset_save_CFLAGS="$CFLAGS" 6744 6745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6753/* end confdefs.h. */ 6754int i; 6755_ACEOF 6756if ac_fn_c_try_compile "$LINENO"; then : 6757 xorg_cv_cc_flag_unknown_warning_option=yes 6758else 6759 xorg_cv_cc_flag_unknown_warning_option=no 6760fi 6761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6762fi 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767fi 6768 6769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6772 fi 6773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6777 $as_echo_n "(cached) " >&6 6778else 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6780/* end confdefs.h. */ 6781int i; 6782_ACEOF 6783if ac_fn_c_try_compile "$LINENO"; then : 6784 xorg_cv_cc_flag_unused_command_line_argument=yes 6785else 6786 xorg_cv_cc_flag_unused_command_line_argument=no 6787fi 6788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6789fi 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6793 CFLAGS="$xorg_testset_save_CFLAGS" 6794fi 6795 6796found="no" 6797 6798 if test $found = "no" ; then 6799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6801 fi 6802 6803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6805 fi 6806 6807 CFLAGS="$CFLAGS -Wlogical-op" 6808 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6810$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6811 cacheid=xorg_cv_cc_flag__Wlogical_op 6812 if eval \${$cacheid+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6816/* end confdefs.h. */ 6817int i; 6818int 6819main () 6820{ 6821 6822 ; 6823 return 0; 6824} 6825_ACEOF 6826if ac_fn_c_try_link "$LINENO"; then : 6827 eval $cacheid=yes 6828else 6829 eval $cacheid=no 6830fi 6831rm -f core conftest.err conftest.$ac_objext \ 6832 conftest$ac_exeext conftest.$ac_ext 6833fi 6834 6835 6836 CFLAGS="$xorg_testset_save_CFLAGS" 6837 6838 eval supported=\$$cacheid 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6840$as_echo "$supported" >&6; } 6841 if test "$supported" = "yes" ; then 6842 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6843 found="yes" 6844 fi 6845 fi 6846 6847 6848 6849# These are currently disabled because they are noisy. They will be enabled 6850# in the future once the codebase is sufficiently modernized to silence 6851# them. For now, I don't want them to drown out the other warnings. 6852# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6853# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6854# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6855 6856# Turn some warnings into errors, so we don't accidently get successful builds 6857# when there are problems that should be fixed. 6858 6859if test "x$SELECTIVE_WERROR" = "xyes" ; then 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873xorg_testset_save_CFLAGS="$CFLAGS" 6874 6875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881else 6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884int i; 6885_ACEOF 6886if ac_fn_c_try_compile "$LINENO"; then : 6887 xorg_cv_cc_flag_unknown_warning_option=yes 6888else 6889 xorg_cv_cc_flag_unknown_warning_option=no 6890fi 6891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6892fi 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6896 CFLAGS="$xorg_testset_save_CFLAGS" 6897fi 6898 6899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6902 fi 6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6907 $as_echo_n "(cached) " >&6 6908else 6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6910/* end confdefs.h. */ 6911int i; 6912_ACEOF 6913if ac_fn_c_try_compile "$LINENO"; then : 6914 xorg_cv_cc_flag_unused_command_line_argument=yes 6915else 6916 xorg_cv_cc_flag_unused_command_line_argument=no 6917fi 6918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6919fi 6920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6923 CFLAGS="$xorg_testset_save_CFLAGS" 6924fi 6925 6926found="no" 6927 6928 if test $found = "no" ; then 6929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6931 fi 6932 6933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6935 fi 6936 6937 CFLAGS="$CFLAGS -Werror=implicit" 6938 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6940$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6941 cacheid=xorg_cv_cc_flag__Werror_implicit 6942 if eval \${$cacheid+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944else 6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6946/* end confdefs.h. */ 6947int i; 6948int 6949main () 6950{ 6951 6952 ; 6953 return 0; 6954} 6955_ACEOF 6956if ac_fn_c_try_link "$LINENO"; then : 6957 eval $cacheid=yes 6958else 6959 eval $cacheid=no 6960fi 6961rm -f core conftest.err conftest.$ac_objext \ 6962 conftest$ac_exeext conftest.$ac_ext 6963fi 6964 6965 6966 CFLAGS="$xorg_testset_save_CFLAGS" 6967 6968 eval supported=\$$cacheid 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6970$as_echo "$supported" >&6; } 6971 if test "$supported" = "yes" ; then 6972 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6973 found="yes" 6974 fi 6975 fi 6976 6977 if test $found = "no" ; then 6978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6980 fi 6981 6982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6984 fi 6985 6986 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6987 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6989$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6990 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6991 if eval \${$cacheid+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6995/* end confdefs.h. */ 6996int i; 6997int 6998main () 6999{ 7000 7001 ; 7002 return 0; 7003} 7004_ACEOF 7005if ac_fn_c_try_link "$LINENO"; then : 7006 eval $cacheid=yes 7007else 7008 eval $cacheid=no 7009fi 7010rm -f core conftest.err conftest.$ac_objext \ 7011 conftest$ac_exeext conftest.$ac_ext 7012fi 7013 7014 7015 CFLAGS="$xorg_testset_save_CFLAGS" 7016 7017 eval supported=\$$cacheid 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7019$as_echo "$supported" >&6; } 7020 if test "$supported" = "yes" ; then 7021 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7022 found="yes" 7023 fi 7024 fi 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040xorg_testset_save_CFLAGS="$CFLAGS" 7041 7042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050/* end confdefs.h. */ 7051int i; 7052_ACEOF 7053if ac_fn_c_try_compile "$LINENO"; then : 7054 xorg_cv_cc_flag_unknown_warning_option=yes 7055else 7056 xorg_cv_cc_flag_unknown_warning_option=no 7057fi 7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064fi 7065 7066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 fi 7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7077/* end confdefs.h. */ 7078int i; 7079_ACEOF 7080if ac_fn_c_try_compile "$LINENO"; then : 7081 xorg_cv_cc_flag_unused_command_line_argument=yes 7082else 7083 xorg_cv_cc_flag_unused_command_line_argument=no 7084fi 7085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7086fi 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7090 CFLAGS="$xorg_testset_save_CFLAGS" 7091fi 7092 7093found="no" 7094 7095 if test $found = "no" ; then 7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 fi 7099 7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7102 fi 7103 7104 CFLAGS="$CFLAGS -Werror=nonnull" 7105 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7107$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7108 cacheid=xorg_cv_cc_flag__Werror_nonnull 7109 if eval \${$cacheid+:} false; then : 7110 $as_echo_n "(cached) " >&6 7111else 7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7113/* end confdefs.h. */ 7114int i; 7115int 7116main () 7117{ 7118 7119 ; 7120 return 0; 7121} 7122_ACEOF 7123if ac_fn_c_try_link "$LINENO"; then : 7124 eval $cacheid=yes 7125else 7126 eval $cacheid=no 7127fi 7128rm -f core conftest.err conftest.$ac_objext \ 7129 conftest$ac_exeext conftest.$ac_ext 7130fi 7131 7132 7133 CFLAGS="$xorg_testset_save_CFLAGS" 7134 7135 eval supported=\$$cacheid 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7137$as_echo "$supported" >&6; } 7138 if test "$supported" = "yes" ; then 7139 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7140 found="yes" 7141 fi 7142 fi 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158xorg_testset_save_CFLAGS="$CFLAGS" 7159 7160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7168/* end confdefs.h. */ 7169int i; 7170_ACEOF 7171if ac_fn_c_try_compile "$LINENO"; then : 7172 xorg_cv_cc_flag_unknown_warning_option=yes 7173else 7174 xorg_cv_cc_flag_unknown_warning_option=no 7175fi 7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7177fi 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7181 CFLAGS="$xorg_testset_save_CFLAGS" 7182fi 7183 7184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7187 fi 7188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7195/* end confdefs.h. */ 7196int i; 7197_ACEOF 7198if ac_fn_c_try_compile "$LINENO"; then : 7199 xorg_cv_cc_flag_unused_command_line_argument=yes 7200else 7201 xorg_cv_cc_flag_unused_command_line_argument=no 7202fi 7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7204fi 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7208 CFLAGS="$xorg_testset_save_CFLAGS" 7209fi 7210 7211found="no" 7212 7213 if test $found = "no" ; then 7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7216 fi 7217 7218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7220 fi 7221 7222 CFLAGS="$CFLAGS -Werror=init-self" 7223 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7225$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7226 cacheid=xorg_cv_cc_flag__Werror_init_self 7227 if eval \${$cacheid+:} false; then : 7228 $as_echo_n "(cached) " >&6 7229else 7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7231/* end confdefs.h. */ 7232int i; 7233int 7234main () 7235{ 7236 7237 ; 7238 return 0; 7239} 7240_ACEOF 7241if ac_fn_c_try_link "$LINENO"; then : 7242 eval $cacheid=yes 7243else 7244 eval $cacheid=no 7245fi 7246rm -f core conftest.err conftest.$ac_objext \ 7247 conftest$ac_exeext conftest.$ac_ext 7248fi 7249 7250 7251 CFLAGS="$xorg_testset_save_CFLAGS" 7252 7253 eval supported=\$$cacheid 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7255$as_echo "$supported" >&6; } 7256 if test "$supported" = "yes" ; then 7257 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7258 found="yes" 7259 fi 7260 fi 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276xorg_testset_save_CFLAGS="$CFLAGS" 7277 7278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7286/* end confdefs.h. */ 7287int i; 7288_ACEOF 7289if ac_fn_c_try_compile "$LINENO"; then : 7290 xorg_cv_cc_flag_unknown_warning_option=yes 7291else 7292 xorg_cv_cc_flag_unknown_warning_option=no 7293fi 7294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7295fi 7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7299 CFLAGS="$xorg_testset_save_CFLAGS" 7300fi 7301 7302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7305 fi 7306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7310 $as_echo_n "(cached) " >&6 7311else 7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313/* end confdefs.h. */ 7314int i; 7315_ACEOF 7316if ac_fn_c_try_compile "$LINENO"; then : 7317 xorg_cv_cc_flag_unused_command_line_argument=yes 7318else 7319 xorg_cv_cc_flag_unused_command_line_argument=no 7320fi 7321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7322fi 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7326 CFLAGS="$xorg_testset_save_CFLAGS" 7327fi 7328 7329found="no" 7330 7331 if test $found = "no" ; then 7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7334 fi 7335 7336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7338 fi 7339 7340 CFLAGS="$CFLAGS -Werror=main" 7341 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7343$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7344 cacheid=xorg_cv_cc_flag__Werror_main 7345 if eval \${$cacheid+:} false; then : 7346 $as_echo_n "(cached) " >&6 7347else 7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7349/* end confdefs.h. */ 7350int i; 7351int 7352main () 7353{ 7354 7355 ; 7356 return 0; 7357} 7358_ACEOF 7359if ac_fn_c_try_link "$LINENO"; then : 7360 eval $cacheid=yes 7361else 7362 eval $cacheid=no 7363fi 7364rm -f core conftest.err conftest.$ac_objext \ 7365 conftest$ac_exeext conftest.$ac_ext 7366fi 7367 7368 7369 CFLAGS="$xorg_testset_save_CFLAGS" 7370 7371 eval supported=\$$cacheid 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7373$as_echo "$supported" >&6; } 7374 if test "$supported" = "yes" ; then 7375 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7376 found="yes" 7377 fi 7378 fi 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394xorg_testset_save_CFLAGS="$CFLAGS" 7395 7396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7399$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7400if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7401 $as_echo_n "(cached) " >&6 7402else 7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7404/* end confdefs.h. */ 7405int i; 7406_ACEOF 7407if ac_fn_c_try_compile "$LINENO"; then : 7408 xorg_cv_cc_flag_unknown_warning_option=yes 7409else 7410 xorg_cv_cc_flag_unknown_warning_option=no 7411fi 7412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7413fi 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7415$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7417 CFLAGS="$xorg_testset_save_CFLAGS" 7418fi 7419 7420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7423 fi 7424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7426$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7427if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7428 $as_echo_n "(cached) " >&6 7429else 7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7431/* end confdefs.h. */ 7432int i; 7433_ACEOF 7434if ac_fn_c_try_compile "$LINENO"; then : 7435 xorg_cv_cc_flag_unused_command_line_argument=yes 7436else 7437 xorg_cv_cc_flag_unused_command_line_argument=no 7438fi 7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7440fi 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7442$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7444 CFLAGS="$xorg_testset_save_CFLAGS" 7445fi 7446 7447found="no" 7448 7449 if test $found = "no" ; then 7450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7452 fi 7453 7454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7456 fi 7457 7458 CFLAGS="$CFLAGS -Werror=missing-braces" 7459 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7461$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7462 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7463 if eval \${$cacheid+:} false; then : 7464 $as_echo_n "(cached) " >&6 7465else 7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7467/* end confdefs.h. */ 7468int i; 7469int 7470main () 7471{ 7472 7473 ; 7474 return 0; 7475} 7476_ACEOF 7477if ac_fn_c_try_link "$LINENO"; then : 7478 eval $cacheid=yes 7479else 7480 eval $cacheid=no 7481fi 7482rm -f core conftest.err conftest.$ac_objext \ 7483 conftest$ac_exeext conftest.$ac_ext 7484fi 7485 7486 7487 CFLAGS="$xorg_testset_save_CFLAGS" 7488 7489 eval supported=\$$cacheid 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7491$as_echo "$supported" >&6; } 7492 if test "$supported" = "yes" ; then 7493 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7494 found="yes" 7495 fi 7496 fi 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512xorg_testset_save_CFLAGS="$CFLAGS" 7513 7514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7517$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7518if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7522/* end confdefs.h. */ 7523int i; 7524_ACEOF 7525if ac_fn_c_try_compile "$LINENO"; then : 7526 xorg_cv_cc_flag_unknown_warning_option=yes 7527else 7528 xorg_cv_cc_flag_unknown_warning_option=no 7529fi 7530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7531fi 7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7533$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7535 CFLAGS="$xorg_testset_save_CFLAGS" 7536fi 7537 7538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 fi 7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7544$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7545if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7546 $as_echo_n "(cached) " >&6 7547else 7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550int i; 7551_ACEOF 7552if ac_fn_c_try_compile "$LINENO"; then : 7553 xorg_cv_cc_flag_unused_command_line_argument=yes 7554else 7555 xorg_cv_cc_flag_unused_command_line_argument=no 7556fi 7557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7558fi 7559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7560$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7562 CFLAGS="$xorg_testset_save_CFLAGS" 7563fi 7564 7565found="no" 7566 7567 if test $found = "no" ; then 7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7570 fi 7571 7572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7574 fi 7575 7576 CFLAGS="$CFLAGS -Werror=sequence-point" 7577 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7579$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7580 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7581 if eval \${$cacheid+:} false; then : 7582 $as_echo_n "(cached) " >&6 7583else 7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586int i; 7587int 7588main () 7589{ 7590 7591 ; 7592 return 0; 7593} 7594_ACEOF 7595if ac_fn_c_try_link "$LINENO"; then : 7596 eval $cacheid=yes 7597else 7598 eval $cacheid=no 7599fi 7600rm -f core conftest.err conftest.$ac_objext \ 7601 conftest$ac_exeext conftest.$ac_ext 7602fi 7603 7604 7605 CFLAGS="$xorg_testset_save_CFLAGS" 7606 7607 eval supported=\$$cacheid 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7609$as_echo "$supported" >&6; } 7610 if test "$supported" = "yes" ; then 7611 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7612 found="yes" 7613 fi 7614 fi 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630xorg_testset_save_CFLAGS="$CFLAGS" 7631 7632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7635$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7636if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641int i; 7642_ACEOF 7643if ac_fn_c_try_compile "$LINENO"; then : 7644 xorg_cv_cc_flag_unknown_warning_option=yes 7645else 7646 xorg_cv_cc_flag_unknown_warning_option=no 7647fi 7648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7649fi 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7651$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7653 CFLAGS="$xorg_testset_save_CFLAGS" 7654fi 7655 7656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7659 fi 7660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7662$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7663if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7664 $as_echo_n "(cached) " >&6 7665else 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668int i; 7669_ACEOF 7670if ac_fn_c_try_compile "$LINENO"; then : 7671 xorg_cv_cc_flag_unused_command_line_argument=yes 7672else 7673 xorg_cv_cc_flag_unused_command_line_argument=no 7674fi 7675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7676fi 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7678$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7680 CFLAGS="$xorg_testset_save_CFLAGS" 7681fi 7682 7683found="no" 7684 7685 if test $found = "no" ; then 7686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7688 fi 7689 7690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7692 fi 7693 7694 CFLAGS="$CFLAGS -Werror=return-type" 7695 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7697$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7698 cacheid=xorg_cv_cc_flag__Werror_return_type 7699 if eval \${$cacheid+:} false; then : 7700 $as_echo_n "(cached) " >&6 7701else 7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7703/* end confdefs.h. */ 7704int i; 7705int 7706main () 7707{ 7708 7709 ; 7710 return 0; 7711} 7712_ACEOF 7713if ac_fn_c_try_link "$LINENO"; then : 7714 eval $cacheid=yes 7715else 7716 eval $cacheid=no 7717fi 7718rm -f core conftest.err conftest.$ac_objext \ 7719 conftest$ac_exeext conftest.$ac_ext 7720fi 7721 7722 7723 CFLAGS="$xorg_testset_save_CFLAGS" 7724 7725 eval supported=\$$cacheid 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7727$as_echo "$supported" >&6; } 7728 if test "$supported" = "yes" ; then 7729 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7730 found="yes" 7731 fi 7732 fi 7733 7734 if test $found = "no" ; then 7735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7737 fi 7738 7739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7741 fi 7742 7743 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7744 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7746$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7747 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7748 if eval \${$cacheid+:} false; then : 7749 $as_echo_n "(cached) " >&6 7750else 7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7752/* end confdefs.h. */ 7753int i; 7754int 7755main () 7756{ 7757 7758 ; 7759 return 0; 7760} 7761_ACEOF 7762if ac_fn_c_try_link "$LINENO"; then : 7763 eval $cacheid=yes 7764else 7765 eval $cacheid=no 7766fi 7767rm -f core conftest.err conftest.$ac_objext \ 7768 conftest$ac_exeext conftest.$ac_ext 7769fi 7770 7771 7772 CFLAGS="$xorg_testset_save_CFLAGS" 7773 7774 eval supported=\$$cacheid 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7776$as_echo "$supported" >&6; } 7777 if test "$supported" = "yes" ; then 7778 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7779 found="yes" 7780 fi 7781 fi 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797xorg_testset_save_CFLAGS="$CFLAGS" 7798 7799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808int i; 7809_ACEOF 7810if ac_fn_c_try_compile "$LINENO"; then : 7811 xorg_cv_cc_flag_unknown_warning_option=yes 7812else 7813 xorg_cv_cc_flag_unknown_warning_option=no 7814fi 7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7816fi 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821fi 7822 7823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7826 fi 7827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832else 7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834/* end confdefs.h. */ 7835int i; 7836_ACEOF 7837if ac_fn_c_try_compile "$LINENO"; then : 7838 xorg_cv_cc_flag_unused_command_line_argument=yes 7839else 7840 xorg_cv_cc_flag_unused_command_line_argument=no 7841fi 7842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7843fi 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7847 CFLAGS="$xorg_testset_save_CFLAGS" 7848fi 7849 7850found="no" 7851 7852 if test $found = "no" ; then 7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 fi 7856 7857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7859 fi 7860 7861 CFLAGS="$CFLAGS -Werror=trigraphs" 7862 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7864$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7865 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7866 if eval \${$cacheid+:} false; then : 7867 $as_echo_n "(cached) " >&6 7868else 7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7870/* end confdefs.h. */ 7871int i; 7872int 7873main () 7874{ 7875 7876 ; 7877 return 0; 7878} 7879_ACEOF 7880if ac_fn_c_try_link "$LINENO"; then : 7881 eval $cacheid=yes 7882else 7883 eval $cacheid=no 7884fi 7885rm -f core conftest.err conftest.$ac_objext \ 7886 conftest$ac_exeext conftest.$ac_ext 7887fi 7888 7889 7890 CFLAGS="$xorg_testset_save_CFLAGS" 7891 7892 eval supported=\$$cacheid 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7894$as_echo "$supported" >&6; } 7895 if test "$supported" = "yes" ; then 7896 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7897 found="yes" 7898 fi 7899 fi 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915xorg_testset_save_CFLAGS="$CFLAGS" 7916 7917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925/* end confdefs.h. */ 7926int i; 7927_ACEOF 7928if ac_fn_c_try_compile "$LINENO"; then : 7929 xorg_cv_cc_flag_unknown_warning_option=yes 7930else 7931 xorg_cv_cc_flag_unknown_warning_option=no 7932fi 7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7934fi 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7938 CFLAGS="$xorg_testset_save_CFLAGS" 7939fi 7940 7941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7944 fi 7945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7949 $as_echo_n "(cached) " >&6 7950else 7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952/* end confdefs.h. */ 7953int i; 7954_ACEOF 7955if ac_fn_c_try_compile "$LINENO"; then : 7956 xorg_cv_cc_flag_unused_command_line_argument=yes 7957else 7958 xorg_cv_cc_flag_unused_command_line_argument=no 7959fi 7960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7961fi 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7965 CFLAGS="$xorg_testset_save_CFLAGS" 7966fi 7967 7968found="no" 7969 7970 if test $found = "no" ; then 7971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7973 fi 7974 7975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7977 fi 7978 7979 CFLAGS="$CFLAGS -Werror=array-bounds" 7980 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7982$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7983 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7984 if eval \${$cacheid+:} false; then : 7985 $as_echo_n "(cached) " >&6 7986else 7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7988/* end confdefs.h. */ 7989int i; 7990int 7991main () 7992{ 7993 7994 ; 7995 return 0; 7996} 7997_ACEOF 7998if ac_fn_c_try_link "$LINENO"; then : 7999 eval $cacheid=yes 8000else 8001 eval $cacheid=no 8002fi 8003rm -f core conftest.err conftest.$ac_objext \ 8004 conftest$ac_exeext conftest.$ac_ext 8005fi 8006 8007 8008 CFLAGS="$xorg_testset_save_CFLAGS" 8009 8010 eval supported=\$$cacheid 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8012$as_echo "$supported" >&6; } 8013 if test "$supported" = "yes" ; then 8014 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8015 found="yes" 8016 fi 8017 fi 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033xorg_testset_save_CFLAGS="$CFLAGS" 8034 8035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8043/* end confdefs.h. */ 8044int i; 8045_ACEOF 8046if ac_fn_c_try_compile "$LINENO"; then : 8047 xorg_cv_cc_flag_unknown_warning_option=yes 8048else 8049 xorg_cv_cc_flag_unknown_warning_option=no 8050fi 8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8052fi 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8056 CFLAGS="$xorg_testset_save_CFLAGS" 8057fi 8058 8059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8062 fi 8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072_ACEOF 8073if ac_fn_c_try_compile "$LINENO"; then : 8074 xorg_cv_cc_flag_unused_command_line_argument=yes 8075else 8076 xorg_cv_cc_flag_unused_command_line_argument=no 8077fi 8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8079fi 8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8083 CFLAGS="$xorg_testset_save_CFLAGS" 8084fi 8085 8086found="no" 8087 8088 if test $found = "no" ; then 8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8091 fi 8092 8093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8095 fi 8096 8097 CFLAGS="$CFLAGS -Werror=write-strings" 8098 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8100$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8101 cacheid=xorg_cv_cc_flag__Werror_write_strings 8102 if eval \${$cacheid+:} false; then : 8103 $as_echo_n "(cached) " >&6 8104else 8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8106/* end confdefs.h. */ 8107int i; 8108int 8109main () 8110{ 8111 8112 ; 8113 return 0; 8114} 8115_ACEOF 8116if ac_fn_c_try_link "$LINENO"; then : 8117 eval $cacheid=yes 8118else 8119 eval $cacheid=no 8120fi 8121rm -f core conftest.err conftest.$ac_objext \ 8122 conftest$ac_exeext conftest.$ac_ext 8123fi 8124 8125 8126 CFLAGS="$xorg_testset_save_CFLAGS" 8127 8128 eval supported=\$$cacheid 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8130$as_echo "$supported" >&6; } 8131 if test "$supported" = "yes" ; then 8132 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8133 found="yes" 8134 fi 8135 fi 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151xorg_testset_save_CFLAGS="$CFLAGS" 8152 8153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162int i; 8163_ACEOF 8164if ac_fn_c_try_compile "$LINENO"; then : 8165 xorg_cv_cc_flag_unknown_warning_option=yes 8166else 8167 xorg_cv_cc_flag_unknown_warning_option=no 8168fi 8169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8170fi 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8174 CFLAGS="$xorg_testset_save_CFLAGS" 8175fi 8176 8177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8180 fi 8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189int i; 8190_ACEOF 8191if ac_fn_c_try_compile "$LINENO"; then : 8192 xorg_cv_cc_flag_unused_command_line_argument=yes 8193else 8194 xorg_cv_cc_flag_unused_command_line_argument=no 8195fi 8196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8197fi 8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8201 CFLAGS="$xorg_testset_save_CFLAGS" 8202fi 8203 8204found="no" 8205 8206 if test $found = "no" ; then 8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8209 fi 8210 8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8213 fi 8214 8215 CFLAGS="$CFLAGS -Werror=address" 8216 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8218$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8219 cacheid=xorg_cv_cc_flag__Werror_address 8220 if eval \${$cacheid+:} false; then : 8221 $as_echo_n "(cached) " >&6 8222else 8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8224/* end confdefs.h. */ 8225int i; 8226int 8227main () 8228{ 8229 8230 ; 8231 return 0; 8232} 8233_ACEOF 8234if ac_fn_c_try_link "$LINENO"; then : 8235 eval $cacheid=yes 8236else 8237 eval $cacheid=no 8238fi 8239rm -f core conftest.err conftest.$ac_objext \ 8240 conftest$ac_exeext conftest.$ac_ext 8241fi 8242 8243 8244 CFLAGS="$xorg_testset_save_CFLAGS" 8245 8246 eval supported=\$$cacheid 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8248$as_echo "$supported" >&6; } 8249 if test "$supported" = "yes" ; then 8250 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8251 found="yes" 8252 fi 8253 fi 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269xorg_testset_save_CFLAGS="$CFLAGS" 8270 8271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280int i; 8281_ACEOF 8282if ac_fn_c_try_compile "$LINENO"; then : 8283 xorg_cv_cc_flag_unknown_warning_option=yes 8284else 8285 xorg_cv_cc_flag_unknown_warning_option=no 8286fi 8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8288fi 8289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8292 CFLAGS="$xorg_testset_save_CFLAGS" 8293fi 8294 8295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8298 fi 8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307int i; 8308_ACEOF 8309if ac_fn_c_try_compile "$LINENO"; then : 8310 xorg_cv_cc_flag_unused_command_line_argument=yes 8311else 8312 xorg_cv_cc_flag_unused_command_line_argument=no 8313fi 8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8315fi 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8319 CFLAGS="$xorg_testset_save_CFLAGS" 8320fi 8321 8322found="no" 8323 8324 if test $found = "no" ; then 8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8327 fi 8328 8329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8331 fi 8332 8333 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8334 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8336$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8337 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8338 if eval \${$cacheid+:} false; then : 8339 $as_echo_n "(cached) " >&6 8340else 8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8342/* end confdefs.h. */ 8343int i; 8344int 8345main () 8346{ 8347 8348 ; 8349 return 0; 8350} 8351_ACEOF 8352if ac_fn_c_try_link "$LINENO"; then : 8353 eval $cacheid=yes 8354else 8355 eval $cacheid=no 8356fi 8357rm -f core conftest.err conftest.$ac_objext \ 8358 conftest$ac_exeext conftest.$ac_ext 8359fi 8360 8361 8362 CFLAGS="$xorg_testset_save_CFLAGS" 8363 8364 eval supported=\$$cacheid 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8366$as_echo "$supported" >&6; } 8367 if test "$supported" = "yes" ; then 8368 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8369 found="yes" 8370 fi 8371 fi 8372 8373 if test $found = "no" ; then 8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8376 fi 8377 8378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8380 fi 8381 8382 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8383 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8385$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8386 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8387 if eval \${$cacheid+:} false; then : 8388 $as_echo_n "(cached) " >&6 8389else 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8391/* end confdefs.h. */ 8392int i; 8393int 8394main () 8395{ 8396 8397 ; 8398 return 0; 8399} 8400_ACEOF 8401if ac_fn_c_try_link "$LINENO"; then : 8402 eval $cacheid=yes 8403else 8404 eval $cacheid=no 8405fi 8406rm -f core conftest.err conftest.$ac_objext \ 8407 conftest$ac_exeext conftest.$ac_ext 8408fi 8409 8410 8411 CFLAGS="$xorg_testset_save_CFLAGS" 8412 8413 eval supported=\$$cacheid 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8415$as_echo "$supported" >&6; } 8416 if test "$supported" = "yes" ; then 8417 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8418 found="yes" 8419 fi 8420 fi 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436xorg_testset_save_CFLAGS="$CFLAGS" 8437 8438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8443 $as_echo_n "(cached) " >&6 8444else 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446/* end confdefs.h. */ 8447int i; 8448_ACEOF 8449if ac_fn_c_try_compile "$LINENO"; then : 8450 xorg_cv_cc_flag_unknown_warning_option=yes 8451else 8452 xorg_cv_cc_flag_unknown_warning_option=no 8453fi 8454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8455fi 8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8459 CFLAGS="$xorg_testset_save_CFLAGS" 8460fi 8461 8462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471else 8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473/* end confdefs.h. */ 8474int i; 8475_ACEOF 8476if ac_fn_c_try_compile "$LINENO"; then : 8477 xorg_cv_cc_flag_unused_command_line_argument=yes 8478else 8479 xorg_cv_cc_flag_unused_command_line_argument=no 8480fi 8481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8482fi 8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487fi 8488 8489found="no" 8490 8491 if test $found = "no" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 8496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8498 fi 8499 8500 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8501 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8503$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8504 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8505 if eval \${$cacheid+:} false; then : 8506 $as_echo_n "(cached) " >&6 8507else 8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8509/* end confdefs.h. */ 8510int i; 8511int 8512main () 8513{ 8514 8515 ; 8516 return 0; 8517} 8518_ACEOF 8519if ac_fn_c_try_link "$LINENO"; then : 8520 eval $cacheid=yes 8521else 8522 eval $cacheid=no 8523fi 8524rm -f core conftest.err conftest.$ac_objext \ 8525 conftest$ac_exeext conftest.$ac_ext 8526fi 8527 8528 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530 8531 eval supported=\$$cacheid 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8533$as_echo "$supported" >&6; } 8534 if test "$supported" = "yes" ; then 8535 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8536 found="yes" 8537 fi 8538 fi 8539 8540 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8541else 8542{ $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 8543$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;} 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557xorg_testset_save_CFLAGS="$CFLAGS" 8558 8559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8564 $as_echo_n "(cached) " >&6 8565else 8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8567/* end confdefs.h. */ 8568int i; 8569_ACEOF 8570if ac_fn_c_try_compile "$LINENO"; then : 8571 xorg_cv_cc_flag_unknown_warning_option=yes 8572else 8573 xorg_cv_cc_flag_unknown_warning_option=no 8574fi 8575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8576fi 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8580 CFLAGS="$xorg_testset_save_CFLAGS" 8581fi 8582 8583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8586 fi 8587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592else 8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8594/* end confdefs.h. */ 8595int i; 8596_ACEOF 8597if ac_fn_c_try_compile "$LINENO"; then : 8598 xorg_cv_cc_flag_unused_command_line_argument=yes 8599else 8600 xorg_cv_cc_flag_unused_command_line_argument=no 8601fi 8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8603fi 8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8607 CFLAGS="$xorg_testset_save_CFLAGS" 8608fi 8609 8610found="no" 8611 8612 if test $found = "no" ; then 8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8615 fi 8616 8617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8619 fi 8620 8621 CFLAGS="$CFLAGS -Wimplicit" 8622 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8624$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8625 cacheid=xorg_cv_cc_flag__Wimplicit 8626 if eval \${$cacheid+:} false; then : 8627 $as_echo_n "(cached) " >&6 8628else 8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8630/* end confdefs.h. */ 8631int i; 8632int 8633main () 8634{ 8635 8636 ; 8637 return 0; 8638} 8639_ACEOF 8640if ac_fn_c_try_link "$LINENO"; then : 8641 eval $cacheid=yes 8642else 8643 eval $cacheid=no 8644fi 8645rm -f core conftest.err conftest.$ac_objext \ 8646 conftest$ac_exeext conftest.$ac_ext 8647fi 8648 8649 8650 CFLAGS="$xorg_testset_save_CFLAGS" 8651 8652 eval supported=\$$cacheid 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8654$as_echo "$supported" >&6; } 8655 if test "$supported" = "yes" ; then 8656 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8657 found="yes" 8658 fi 8659 fi 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675xorg_testset_save_CFLAGS="$CFLAGS" 8676 8677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685/* end confdefs.h. */ 8686int i; 8687_ACEOF 8688if ac_fn_c_try_compile "$LINENO"; then : 8689 xorg_cv_cc_flag_unknown_warning_option=yes 8690else 8691 xorg_cv_cc_flag_unknown_warning_option=no 8692fi 8693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8694fi 8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8698 CFLAGS="$xorg_testset_save_CFLAGS" 8699fi 8700 8701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8704 fi 8705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8709 $as_echo_n "(cached) " >&6 8710else 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8712/* end confdefs.h. */ 8713int i; 8714_ACEOF 8715if ac_fn_c_try_compile "$LINENO"; then : 8716 xorg_cv_cc_flag_unused_command_line_argument=yes 8717else 8718 xorg_cv_cc_flag_unused_command_line_argument=no 8719fi 8720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8721fi 8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8725 CFLAGS="$xorg_testset_save_CFLAGS" 8726fi 8727 8728found="no" 8729 8730 if test $found = "no" ; then 8731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8733 fi 8734 8735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8737 fi 8738 8739 CFLAGS="$CFLAGS -Wnonnull" 8740 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8742$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8743 cacheid=xorg_cv_cc_flag__Wnonnull 8744 if eval \${$cacheid+:} false; then : 8745 $as_echo_n "(cached) " >&6 8746else 8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8748/* end confdefs.h. */ 8749int i; 8750int 8751main () 8752{ 8753 8754 ; 8755 return 0; 8756} 8757_ACEOF 8758if ac_fn_c_try_link "$LINENO"; then : 8759 eval $cacheid=yes 8760else 8761 eval $cacheid=no 8762fi 8763rm -f core conftest.err conftest.$ac_objext \ 8764 conftest$ac_exeext conftest.$ac_ext 8765fi 8766 8767 8768 CFLAGS="$xorg_testset_save_CFLAGS" 8769 8770 eval supported=\$$cacheid 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8772$as_echo "$supported" >&6; } 8773 if test "$supported" = "yes" ; then 8774 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8775 found="yes" 8776 fi 8777 fi 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793xorg_testset_save_CFLAGS="$CFLAGS" 8794 8795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801else 8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8803/* end confdefs.h. */ 8804int i; 8805_ACEOF 8806if ac_fn_c_try_compile "$LINENO"; then : 8807 xorg_cv_cc_flag_unknown_warning_option=yes 8808else 8809 xorg_cv_cc_flag_unknown_warning_option=no 8810fi 8811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8812fi 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817fi 8818 8819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8822 fi 8823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8827 $as_echo_n "(cached) " >&6 8828else 8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8830/* end confdefs.h. */ 8831int i; 8832_ACEOF 8833if ac_fn_c_try_compile "$LINENO"; then : 8834 xorg_cv_cc_flag_unused_command_line_argument=yes 8835else 8836 xorg_cv_cc_flag_unused_command_line_argument=no 8837fi 8838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8839fi 8840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8843 CFLAGS="$xorg_testset_save_CFLAGS" 8844fi 8845 8846found="no" 8847 8848 if test $found = "no" ; then 8849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8851 fi 8852 8853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8855 fi 8856 8857 CFLAGS="$CFLAGS -Winit-self" 8858 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8860$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8861 cacheid=xorg_cv_cc_flag__Winit_self 8862 if eval \${$cacheid+:} false; then : 8863 $as_echo_n "(cached) " >&6 8864else 8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8866/* end confdefs.h. */ 8867int i; 8868int 8869main () 8870{ 8871 8872 ; 8873 return 0; 8874} 8875_ACEOF 8876if ac_fn_c_try_link "$LINENO"; then : 8877 eval $cacheid=yes 8878else 8879 eval $cacheid=no 8880fi 8881rm -f core conftest.err conftest.$ac_objext \ 8882 conftest$ac_exeext conftest.$ac_ext 8883fi 8884 8885 8886 CFLAGS="$xorg_testset_save_CFLAGS" 8887 8888 eval supported=\$$cacheid 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8890$as_echo "$supported" >&6; } 8891 if test "$supported" = "yes" ; then 8892 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8893 found="yes" 8894 fi 8895 fi 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911xorg_testset_save_CFLAGS="$CFLAGS" 8912 8913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8918 $as_echo_n "(cached) " >&6 8919else 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921/* end confdefs.h. */ 8922int i; 8923_ACEOF 8924if ac_fn_c_try_compile "$LINENO"; then : 8925 xorg_cv_cc_flag_unknown_warning_option=yes 8926else 8927 xorg_cv_cc_flag_unknown_warning_option=no 8928fi 8929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8930fi 8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935fi 8936 8937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8940 fi 8941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8945 $as_echo_n "(cached) " >&6 8946else 8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8948/* end confdefs.h. */ 8949int i; 8950_ACEOF 8951if ac_fn_c_try_compile "$LINENO"; then : 8952 xorg_cv_cc_flag_unused_command_line_argument=yes 8953else 8954 xorg_cv_cc_flag_unused_command_line_argument=no 8955fi 8956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8957fi 8958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8961 CFLAGS="$xorg_testset_save_CFLAGS" 8962fi 8963 8964found="no" 8965 8966 if test $found = "no" ; then 8967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8969 fi 8970 8971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8973 fi 8974 8975 CFLAGS="$CFLAGS -Wmain" 8976 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8978$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8979 cacheid=xorg_cv_cc_flag__Wmain 8980 if eval \${$cacheid+:} false; then : 8981 $as_echo_n "(cached) " >&6 8982else 8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984/* end confdefs.h. */ 8985int i; 8986int 8987main () 8988{ 8989 8990 ; 8991 return 0; 8992} 8993_ACEOF 8994if ac_fn_c_try_link "$LINENO"; then : 8995 eval $cacheid=yes 8996else 8997 eval $cacheid=no 8998fi 8999rm -f core conftest.err conftest.$ac_objext \ 9000 conftest$ac_exeext conftest.$ac_ext 9001fi 9002 9003 9004 CFLAGS="$xorg_testset_save_CFLAGS" 9005 9006 eval supported=\$$cacheid 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9008$as_echo "$supported" >&6; } 9009 if test "$supported" = "yes" ; then 9010 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9011 found="yes" 9012 fi 9013 fi 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029xorg_testset_save_CFLAGS="$CFLAGS" 9030 9031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9036 $as_echo_n "(cached) " >&6 9037else 9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9039/* end confdefs.h. */ 9040int i; 9041_ACEOF 9042if ac_fn_c_try_compile "$LINENO"; then : 9043 xorg_cv_cc_flag_unknown_warning_option=yes 9044else 9045 xorg_cv_cc_flag_unknown_warning_option=no 9046fi 9047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9048fi 9049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9052 CFLAGS="$xorg_testset_save_CFLAGS" 9053fi 9054 9055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9058 fi 9059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9063 $as_echo_n "(cached) " >&6 9064else 9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9066/* end confdefs.h. */ 9067int i; 9068_ACEOF 9069if ac_fn_c_try_compile "$LINENO"; then : 9070 xorg_cv_cc_flag_unused_command_line_argument=yes 9071else 9072 xorg_cv_cc_flag_unused_command_line_argument=no 9073fi 9074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9075fi 9076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9079 CFLAGS="$xorg_testset_save_CFLAGS" 9080fi 9081 9082found="no" 9083 9084 if test $found = "no" ; then 9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9087 fi 9088 9089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9091 fi 9092 9093 CFLAGS="$CFLAGS -Wmissing-braces" 9094 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9096$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9097 cacheid=xorg_cv_cc_flag__Wmissing_braces 9098 if eval \${$cacheid+:} false; then : 9099 $as_echo_n "(cached) " >&6 9100else 9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9102/* end confdefs.h. */ 9103int i; 9104int 9105main () 9106{ 9107 9108 ; 9109 return 0; 9110} 9111_ACEOF 9112if ac_fn_c_try_link "$LINENO"; then : 9113 eval $cacheid=yes 9114else 9115 eval $cacheid=no 9116fi 9117rm -f core conftest.err conftest.$ac_objext \ 9118 conftest$ac_exeext conftest.$ac_ext 9119fi 9120 9121 9122 CFLAGS="$xorg_testset_save_CFLAGS" 9123 9124 eval supported=\$$cacheid 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9126$as_echo "$supported" >&6; } 9127 if test "$supported" = "yes" ; then 9128 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9129 found="yes" 9130 fi 9131 fi 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147xorg_testset_save_CFLAGS="$CFLAGS" 9148 9149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9154 $as_echo_n "(cached) " >&6 9155else 9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9157/* end confdefs.h. */ 9158int i; 9159_ACEOF 9160if ac_fn_c_try_compile "$LINENO"; then : 9161 xorg_cv_cc_flag_unknown_warning_option=yes 9162else 9163 xorg_cv_cc_flag_unknown_warning_option=no 9164fi 9165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9166fi 9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171fi 9172 9173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9176 fi 9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9181 $as_echo_n "(cached) " >&6 9182else 9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184/* end confdefs.h. */ 9185int i; 9186_ACEOF 9187if ac_fn_c_try_compile "$LINENO"; then : 9188 xorg_cv_cc_flag_unused_command_line_argument=yes 9189else 9190 xorg_cv_cc_flag_unused_command_line_argument=no 9191fi 9192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9193fi 9194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9197 CFLAGS="$xorg_testset_save_CFLAGS" 9198fi 9199 9200found="no" 9201 9202 if test $found = "no" ; then 9203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9205 fi 9206 9207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9209 fi 9210 9211 CFLAGS="$CFLAGS -Wsequence-point" 9212 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9214$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9215 cacheid=xorg_cv_cc_flag__Wsequence_point 9216 if eval \${$cacheid+:} false; then : 9217 $as_echo_n "(cached) " >&6 9218else 9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9220/* end confdefs.h. */ 9221int i; 9222int 9223main () 9224{ 9225 9226 ; 9227 return 0; 9228} 9229_ACEOF 9230if ac_fn_c_try_link "$LINENO"; then : 9231 eval $cacheid=yes 9232else 9233 eval $cacheid=no 9234fi 9235rm -f core conftest.err conftest.$ac_objext \ 9236 conftest$ac_exeext conftest.$ac_ext 9237fi 9238 9239 9240 CFLAGS="$xorg_testset_save_CFLAGS" 9241 9242 eval supported=\$$cacheid 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9244$as_echo "$supported" >&6; } 9245 if test "$supported" = "yes" ; then 9246 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9247 found="yes" 9248 fi 9249 fi 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265xorg_testset_save_CFLAGS="$CFLAGS" 9266 9267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9272 $as_echo_n "(cached) " >&6 9273else 9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9275/* end confdefs.h. */ 9276int i; 9277_ACEOF 9278if ac_fn_c_try_compile "$LINENO"; then : 9279 xorg_cv_cc_flag_unknown_warning_option=yes 9280else 9281 xorg_cv_cc_flag_unknown_warning_option=no 9282fi 9283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9284fi 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9288 CFLAGS="$xorg_testset_save_CFLAGS" 9289fi 9290 9291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9294 fi 9295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9299 $as_echo_n "(cached) " >&6 9300else 9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9302/* end confdefs.h. */ 9303int i; 9304_ACEOF 9305if ac_fn_c_try_compile "$LINENO"; then : 9306 xorg_cv_cc_flag_unused_command_line_argument=yes 9307else 9308 xorg_cv_cc_flag_unused_command_line_argument=no 9309fi 9310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9311fi 9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9315 CFLAGS="$xorg_testset_save_CFLAGS" 9316fi 9317 9318found="no" 9319 9320 if test $found = "no" ; then 9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 fi 9324 9325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327 fi 9328 9329 CFLAGS="$CFLAGS -Wreturn-type" 9330 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9332$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9333 cacheid=xorg_cv_cc_flag__Wreturn_type 9334 if eval \${$cacheid+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336else 9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9338/* end confdefs.h. */ 9339int i; 9340int 9341main () 9342{ 9343 9344 ; 9345 return 0; 9346} 9347_ACEOF 9348if ac_fn_c_try_link "$LINENO"; then : 9349 eval $cacheid=yes 9350else 9351 eval $cacheid=no 9352fi 9353rm -f core conftest.err conftest.$ac_objext \ 9354 conftest$ac_exeext conftest.$ac_ext 9355fi 9356 9357 9358 CFLAGS="$xorg_testset_save_CFLAGS" 9359 9360 eval supported=\$$cacheid 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9362$as_echo "$supported" >&6; } 9363 if test "$supported" = "yes" ; then 9364 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9365 found="yes" 9366 fi 9367 fi 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383xorg_testset_save_CFLAGS="$CFLAGS" 9384 9385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9390 $as_echo_n "(cached) " >&6 9391else 9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9393/* end confdefs.h. */ 9394int i; 9395_ACEOF 9396if ac_fn_c_try_compile "$LINENO"; then : 9397 xorg_cv_cc_flag_unknown_warning_option=yes 9398else 9399 xorg_cv_cc_flag_unknown_warning_option=no 9400fi 9401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9402fi 9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9406 CFLAGS="$xorg_testset_save_CFLAGS" 9407fi 9408 9409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9412 fi 9413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9417 $as_echo_n "(cached) " >&6 9418else 9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9420/* end confdefs.h. */ 9421int i; 9422_ACEOF 9423if ac_fn_c_try_compile "$LINENO"; then : 9424 xorg_cv_cc_flag_unused_command_line_argument=yes 9425else 9426 xorg_cv_cc_flag_unused_command_line_argument=no 9427fi 9428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9429fi 9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9433 CFLAGS="$xorg_testset_save_CFLAGS" 9434fi 9435 9436found="no" 9437 9438 if test $found = "no" ; then 9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9441 fi 9442 9443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9445 fi 9446 9447 CFLAGS="$CFLAGS -Wtrigraphs" 9448 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9450$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9451 cacheid=xorg_cv_cc_flag__Wtrigraphs 9452 if eval \${$cacheid+:} false; then : 9453 $as_echo_n "(cached) " >&6 9454else 9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9456/* end confdefs.h. */ 9457int i; 9458int 9459main () 9460{ 9461 9462 ; 9463 return 0; 9464} 9465_ACEOF 9466if ac_fn_c_try_link "$LINENO"; then : 9467 eval $cacheid=yes 9468else 9469 eval $cacheid=no 9470fi 9471rm -f core conftest.err conftest.$ac_objext \ 9472 conftest$ac_exeext conftest.$ac_ext 9473fi 9474 9475 9476 CFLAGS="$xorg_testset_save_CFLAGS" 9477 9478 eval supported=\$$cacheid 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9480$as_echo "$supported" >&6; } 9481 if test "$supported" = "yes" ; then 9482 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9483 found="yes" 9484 fi 9485 fi 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501xorg_testset_save_CFLAGS="$CFLAGS" 9502 9503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9508 $as_echo_n "(cached) " >&6 9509else 9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9511/* end confdefs.h. */ 9512int i; 9513_ACEOF 9514if ac_fn_c_try_compile "$LINENO"; then : 9515 xorg_cv_cc_flag_unknown_warning_option=yes 9516else 9517 xorg_cv_cc_flag_unknown_warning_option=no 9518fi 9519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9520fi 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9524 CFLAGS="$xorg_testset_save_CFLAGS" 9525fi 9526 9527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9530 fi 9531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536else 9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538/* end confdefs.h. */ 9539int i; 9540_ACEOF 9541if ac_fn_c_try_compile "$LINENO"; then : 9542 xorg_cv_cc_flag_unused_command_line_argument=yes 9543else 9544 xorg_cv_cc_flag_unused_command_line_argument=no 9545fi 9546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9547fi 9548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9551 CFLAGS="$xorg_testset_save_CFLAGS" 9552fi 9553 9554found="no" 9555 9556 if test $found = "no" ; then 9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9559 fi 9560 9561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9563 fi 9564 9565 CFLAGS="$CFLAGS -Warray-bounds" 9566 9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9568$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9569 cacheid=xorg_cv_cc_flag__Warray_bounds 9570 if eval \${$cacheid+:} false; then : 9571 $as_echo_n "(cached) " >&6 9572else 9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9574/* end confdefs.h. */ 9575int i; 9576int 9577main () 9578{ 9579 9580 ; 9581 return 0; 9582} 9583_ACEOF 9584if ac_fn_c_try_link "$LINENO"; then : 9585 eval $cacheid=yes 9586else 9587 eval $cacheid=no 9588fi 9589rm -f core conftest.err conftest.$ac_objext \ 9590 conftest$ac_exeext conftest.$ac_ext 9591fi 9592 9593 9594 CFLAGS="$xorg_testset_save_CFLAGS" 9595 9596 eval supported=\$$cacheid 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9598$as_echo "$supported" >&6; } 9599 if test "$supported" = "yes" ; then 9600 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9601 found="yes" 9602 fi 9603 fi 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619xorg_testset_save_CFLAGS="$CFLAGS" 9620 9621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9626 $as_echo_n "(cached) " >&6 9627else 9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629/* end confdefs.h. */ 9630int i; 9631_ACEOF 9632if ac_fn_c_try_compile "$LINENO"; then : 9633 xorg_cv_cc_flag_unknown_warning_option=yes 9634else 9635 xorg_cv_cc_flag_unknown_warning_option=no 9636fi 9637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9638fi 9639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9642 CFLAGS="$xorg_testset_save_CFLAGS" 9643fi 9644 9645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9648 fi 9649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9653 $as_echo_n "(cached) " >&6 9654else 9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9656/* end confdefs.h. */ 9657int i; 9658_ACEOF 9659if ac_fn_c_try_compile "$LINENO"; then : 9660 xorg_cv_cc_flag_unused_command_line_argument=yes 9661else 9662 xorg_cv_cc_flag_unused_command_line_argument=no 9663fi 9664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9665fi 9666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9669 CFLAGS="$xorg_testset_save_CFLAGS" 9670fi 9671 9672found="no" 9673 9674 if test $found = "no" ; then 9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9677 fi 9678 9679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9681 fi 9682 9683 CFLAGS="$CFLAGS -Wwrite-strings" 9684 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9686$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9687 cacheid=xorg_cv_cc_flag__Wwrite_strings 9688 if eval \${$cacheid+:} false; then : 9689 $as_echo_n "(cached) " >&6 9690else 9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9692/* end confdefs.h. */ 9693int i; 9694int 9695main () 9696{ 9697 9698 ; 9699 return 0; 9700} 9701_ACEOF 9702if ac_fn_c_try_link "$LINENO"; then : 9703 eval $cacheid=yes 9704else 9705 eval $cacheid=no 9706fi 9707rm -f core conftest.err conftest.$ac_objext \ 9708 conftest$ac_exeext conftest.$ac_ext 9709fi 9710 9711 9712 CFLAGS="$xorg_testset_save_CFLAGS" 9713 9714 eval supported=\$$cacheid 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9716$as_echo "$supported" >&6; } 9717 if test "$supported" = "yes" ; then 9718 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9719 found="yes" 9720 fi 9721 fi 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737xorg_testset_save_CFLAGS="$CFLAGS" 9738 9739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9744 $as_echo_n "(cached) " >&6 9745else 9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9747/* end confdefs.h. */ 9748int i; 9749_ACEOF 9750if ac_fn_c_try_compile "$LINENO"; then : 9751 xorg_cv_cc_flag_unknown_warning_option=yes 9752else 9753 xorg_cv_cc_flag_unknown_warning_option=no 9754fi 9755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9756fi 9757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9760 CFLAGS="$xorg_testset_save_CFLAGS" 9761fi 9762 9763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9766 fi 9767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9771 $as_echo_n "(cached) " >&6 9772else 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774/* end confdefs.h. */ 9775int i; 9776_ACEOF 9777if ac_fn_c_try_compile "$LINENO"; then : 9778 xorg_cv_cc_flag_unused_command_line_argument=yes 9779else 9780 xorg_cv_cc_flag_unused_command_line_argument=no 9781fi 9782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9783fi 9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9787 CFLAGS="$xorg_testset_save_CFLAGS" 9788fi 9789 9790found="no" 9791 9792 if test $found = "no" ; then 9793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9795 fi 9796 9797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9799 fi 9800 9801 CFLAGS="$CFLAGS -Waddress" 9802 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9804$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9805 cacheid=xorg_cv_cc_flag__Waddress 9806 if eval \${$cacheid+:} false; then : 9807 $as_echo_n "(cached) " >&6 9808else 9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9810/* end confdefs.h. */ 9811int i; 9812int 9813main () 9814{ 9815 9816 ; 9817 return 0; 9818} 9819_ACEOF 9820if ac_fn_c_try_link "$LINENO"; then : 9821 eval $cacheid=yes 9822else 9823 eval $cacheid=no 9824fi 9825rm -f core conftest.err conftest.$ac_objext \ 9826 conftest$ac_exeext conftest.$ac_ext 9827fi 9828 9829 9830 CFLAGS="$xorg_testset_save_CFLAGS" 9831 9832 eval supported=\$$cacheid 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9834$as_echo "$supported" >&6; } 9835 if test "$supported" = "yes" ; then 9836 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9837 found="yes" 9838 fi 9839 fi 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855xorg_testset_save_CFLAGS="$CFLAGS" 9856 9857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9862 $as_echo_n "(cached) " >&6 9863else 9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9865/* end confdefs.h. */ 9866int i; 9867_ACEOF 9868if ac_fn_c_try_compile "$LINENO"; then : 9869 xorg_cv_cc_flag_unknown_warning_option=yes 9870else 9871 xorg_cv_cc_flag_unknown_warning_option=no 9872fi 9873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9874fi 9875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9878 CFLAGS="$xorg_testset_save_CFLAGS" 9879fi 9880 9881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9884 fi 9885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9889 $as_echo_n "(cached) " >&6 9890else 9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892/* end confdefs.h. */ 9893int i; 9894_ACEOF 9895if ac_fn_c_try_compile "$LINENO"; then : 9896 xorg_cv_cc_flag_unused_command_line_argument=yes 9897else 9898 xorg_cv_cc_flag_unused_command_line_argument=no 9899fi 9900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9901fi 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9905 CFLAGS="$xorg_testset_save_CFLAGS" 9906fi 9907 9908found="no" 9909 9910 if test $found = "no" ; then 9911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9913 fi 9914 9915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9917 fi 9918 9919 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9920 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9922$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9923 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9924 if eval \${$cacheid+:} false; then : 9925 $as_echo_n "(cached) " >&6 9926else 9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9928/* end confdefs.h. */ 9929int i; 9930int 9931main () 9932{ 9933 9934 ; 9935 return 0; 9936} 9937_ACEOF 9938if ac_fn_c_try_link "$LINENO"; then : 9939 eval $cacheid=yes 9940else 9941 eval $cacheid=no 9942fi 9943rm -f core conftest.err conftest.$ac_objext \ 9944 conftest$ac_exeext conftest.$ac_ext 9945fi 9946 9947 9948 CFLAGS="$xorg_testset_save_CFLAGS" 9949 9950 eval supported=\$$cacheid 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9952$as_echo "$supported" >&6; } 9953 if test "$supported" = "yes" ; then 9954 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9955 found="yes" 9956 fi 9957 fi 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973xorg_testset_save_CFLAGS="$CFLAGS" 9974 9975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9980 $as_echo_n "(cached) " >&6 9981else 9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9983/* end confdefs.h. */ 9984int i; 9985_ACEOF 9986if ac_fn_c_try_compile "$LINENO"; then : 9987 xorg_cv_cc_flag_unknown_warning_option=yes 9988else 9989 xorg_cv_cc_flag_unknown_warning_option=no 9990fi 9991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9992fi 9993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9996 CFLAGS="$xorg_testset_save_CFLAGS" 9997fi 9998 9999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10002 fi 10003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10007 $as_echo_n "(cached) " >&6 10008else 10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10010/* end confdefs.h. */ 10011int i; 10012_ACEOF 10013if ac_fn_c_try_compile "$LINENO"; then : 10014 xorg_cv_cc_flag_unused_command_line_argument=yes 10015else 10016 xorg_cv_cc_flag_unused_command_line_argument=no 10017fi 10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10019fi 10020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10023 CFLAGS="$xorg_testset_save_CFLAGS" 10024fi 10025 10026found="no" 10027 10028 if test $found = "no" ; then 10029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10031 fi 10032 10033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10035 fi 10036 10037 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10038 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10040$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10041 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10042 if eval \${$cacheid+:} false; then : 10043 $as_echo_n "(cached) " >&6 10044else 10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10046/* end confdefs.h. */ 10047int i; 10048int 10049main () 10050{ 10051 10052 ; 10053 return 0; 10054} 10055_ACEOF 10056if ac_fn_c_try_link "$LINENO"; then : 10057 eval $cacheid=yes 10058else 10059 eval $cacheid=no 10060fi 10061rm -f core conftest.err conftest.$ac_objext \ 10062 conftest$ac_exeext conftest.$ac_ext 10063fi 10064 10065 10066 CFLAGS="$xorg_testset_save_CFLAGS" 10067 10068 eval supported=\$$cacheid 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10070$as_echo "$supported" >&6; } 10071 if test "$supported" = "yes" ; then 10072 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10073 found="yes" 10074 fi 10075 fi 10076 10077 10078fi 10079 10080 10081 10082 10083 10084 10085 10086 CWARNFLAGS="$BASE_CFLAGS" 10087 if test "x$GCC" = xyes ; then 10088 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10089 fi 10090 10091 10092 10093 10094 10095 10096 10097 10098# Check whether --enable-strict-compilation was given. 10099if test "${enable_strict_compilation+set}" = set; then : 10100 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10101else 10102 STRICT_COMPILE=no 10103fi 10104 10105 10106 10107 10108 10109 10110STRICT_CFLAGS="" 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124xorg_testset_save_CFLAGS="$CFLAGS" 10125 10126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10131 $as_echo_n "(cached) " >&6 10132else 10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10134/* end confdefs.h. */ 10135int i; 10136_ACEOF 10137if ac_fn_c_try_compile "$LINENO"; then : 10138 xorg_cv_cc_flag_unknown_warning_option=yes 10139else 10140 xorg_cv_cc_flag_unknown_warning_option=no 10141fi 10142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10143fi 10144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10147 CFLAGS="$xorg_testset_save_CFLAGS" 10148fi 10149 10150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10153 fi 10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10158 $as_echo_n "(cached) " >&6 10159else 10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10161/* end confdefs.h. */ 10162int i; 10163_ACEOF 10164if ac_fn_c_try_compile "$LINENO"; then : 10165 xorg_cv_cc_flag_unused_command_line_argument=yes 10166else 10167 xorg_cv_cc_flag_unused_command_line_argument=no 10168fi 10169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10170fi 10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10174 CFLAGS="$xorg_testset_save_CFLAGS" 10175fi 10176 10177found="no" 10178 10179 if test $found = "no" ; then 10180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10182 fi 10183 10184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10186 fi 10187 10188 CFLAGS="$CFLAGS -pedantic" 10189 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10191$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10192 cacheid=xorg_cv_cc_flag__pedantic 10193 if eval \${$cacheid+:} false; then : 10194 $as_echo_n "(cached) " >&6 10195else 10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198int i; 10199int 10200main () 10201{ 10202 10203 ; 10204 return 0; 10205} 10206_ACEOF 10207if ac_fn_c_try_link "$LINENO"; then : 10208 eval $cacheid=yes 10209else 10210 eval $cacheid=no 10211fi 10212rm -f core conftest.err conftest.$ac_objext \ 10213 conftest$ac_exeext conftest.$ac_ext 10214fi 10215 10216 10217 CFLAGS="$xorg_testset_save_CFLAGS" 10218 10219 eval supported=\$$cacheid 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10221$as_echo "$supported" >&6; } 10222 if test "$supported" = "yes" ; then 10223 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10224 found="yes" 10225 fi 10226 fi 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242xorg_testset_save_CFLAGS="$CFLAGS" 10243 10244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10249 $as_echo_n "(cached) " >&6 10250else 10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10252/* end confdefs.h. */ 10253int i; 10254_ACEOF 10255if ac_fn_c_try_compile "$LINENO"; then : 10256 xorg_cv_cc_flag_unknown_warning_option=yes 10257else 10258 xorg_cv_cc_flag_unknown_warning_option=no 10259fi 10260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10261fi 10262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10265 CFLAGS="$xorg_testset_save_CFLAGS" 10266fi 10267 10268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10271 fi 10272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10276 $as_echo_n "(cached) " >&6 10277else 10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279/* end confdefs.h. */ 10280int i; 10281_ACEOF 10282if ac_fn_c_try_compile "$LINENO"; then : 10283 xorg_cv_cc_flag_unused_command_line_argument=yes 10284else 10285 xorg_cv_cc_flag_unused_command_line_argument=no 10286fi 10287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10288fi 10289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10292 CFLAGS="$xorg_testset_save_CFLAGS" 10293fi 10294 10295found="no" 10296 10297 if test $found = "no" ; then 10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10300 fi 10301 10302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10304 fi 10305 10306 CFLAGS="$CFLAGS -Werror" 10307 10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10309$as_echo_n "checking if $CC supports -Werror... " >&6; } 10310 cacheid=xorg_cv_cc_flag__Werror 10311 if eval \${$cacheid+:} false; then : 10312 $as_echo_n "(cached) " >&6 10313else 10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10315/* end confdefs.h. */ 10316int i; 10317int 10318main () 10319{ 10320 10321 ; 10322 return 0; 10323} 10324_ACEOF 10325if ac_fn_c_try_link "$LINENO"; then : 10326 eval $cacheid=yes 10327else 10328 eval $cacheid=no 10329fi 10330rm -f core conftest.err conftest.$ac_objext \ 10331 conftest$ac_exeext conftest.$ac_ext 10332fi 10333 10334 10335 CFLAGS="$xorg_testset_save_CFLAGS" 10336 10337 eval supported=\$$cacheid 10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10339$as_echo "$supported" >&6; } 10340 if test "$supported" = "yes" ; then 10341 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10342 found="yes" 10343 fi 10344 fi 10345 10346 if test $found = "no" ; then 10347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10349 fi 10350 10351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10353 fi 10354 10355 CFLAGS="$CFLAGS -errwarn" 10356 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10358$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10359 cacheid=xorg_cv_cc_flag__errwarn 10360 if eval \${$cacheid+:} false; then : 10361 $as_echo_n "(cached) " >&6 10362else 10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10364/* end confdefs.h. */ 10365int i; 10366int 10367main () 10368{ 10369 10370 ; 10371 return 0; 10372} 10373_ACEOF 10374if ac_fn_c_try_link "$LINENO"; then : 10375 eval $cacheid=yes 10376else 10377 eval $cacheid=no 10378fi 10379rm -f core conftest.err conftest.$ac_objext \ 10380 conftest$ac_exeext conftest.$ac_ext 10381fi 10382 10383 10384 CFLAGS="$xorg_testset_save_CFLAGS" 10385 10386 eval supported=\$$cacheid 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10388$as_echo "$supported" >&6; } 10389 if test "$supported" = "yes" ; then 10390 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10391 found="yes" 10392 fi 10393 fi 10394 10395 10396 10397# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10398# activate it with -Werror, so we add it here explicitly. 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412xorg_testset_save_CFLAGS="$CFLAGS" 10413 10414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10419 $as_echo_n "(cached) " >&6 10420else 10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423int i; 10424_ACEOF 10425if ac_fn_c_try_compile "$LINENO"; then : 10426 xorg_cv_cc_flag_unknown_warning_option=yes 10427else 10428 xorg_cv_cc_flag_unknown_warning_option=no 10429fi 10430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10431fi 10432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10435 CFLAGS="$xorg_testset_save_CFLAGS" 10436fi 10437 10438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10441 fi 10442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10446 $as_echo_n "(cached) " >&6 10447else 10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10449/* end confdefs.h. */ 10450int i; 10451_ACEOF 10452if ac_fn_c_try_compile "$LINENO"; then : 10453 xorg_cv_cc_flag_unused_command_line_argument=yes 10454else 10455 xorg_cv_cc_flag_unused_command_line_argument=no 10456fi 10457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10458fi 10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10462 CFLAGS="$xorg_testset_save_CFLAGS" 10463fi 10464 10465found="no" 10466 10467 if test $found = "no" ; then 10468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10470 fi 10471 10472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10474 fi 10475 10476 CFLAGS="$CFLAGS -Werror=attributes" 10477 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10479$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10480 cacheid=xorg_cv_cc_flag__Werror_attributes 10481 if eval \${$cacheid+:} false; then : 10482 $as_echo_n "(cached) " >&6 10483else 10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10485/* end confdefs.h. */ 10486int i; 10487int 10488main () 10489{ 10490 10491 ; 10492 return 0; 10493} 10494_ACEOF 10495if ac_fn_c_try_link "$LINENO"; then : 10496 eval $cacheid=yes 10497else 10498 eval $cacheid=no 10499fi 10500rm -f core conftest.err conftest.$ac_objext \ 10501 conftest$ac_exeext conftest.$ac_ext 10502fi 10503 10504 10505 CFLAGS="$xorg_testset_save_CFLAGS" 10506 10507 eval supported=\$$cacheid 10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10509$as_echo "$supported" >&6; } 10510 if test "$supported" = "yes" ; then 10511 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10512 found="yes" 10513 fi 10514 fi 10515 10516 10517 10518if test "x$STRICT_COMPILE" = "xyes"; then 10519 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10520 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10521fi 10522 10523 10524 10525 10526 10527 10528cat >>confdefs.h <<_ACEOF 10529#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10530_ACEOF 10531 10532 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10533 if test "x$PVM" = "x"; then 10534 PVM="0" 10535 fi 10536 10537cat >>confdefs.h <<_ACEOF 10538#define PACKAGE_VERSION_MINOR $PVM 10539_ACEOF 10540 10541 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10542 if test "x$PVP" = "x"; then 10543 PVP="0" 10544 fi 10545 10546cat >>confdefs.h <<_ACEOF 10547#define PACKAGE_VERSION_PATCHLEVEL $PVP 10548_ACEOF 10549 10550 10551 10552CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10553mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10554|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10555echo 'git directory not found: installing possibly empty changelog.' >&2)" 10556 10557 10558 10559 10560macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10561INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10562mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10563|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10564echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10565 10566 10567 10568 10569 10570 10571if test x$APP_MAN_SUFFIX = x ; then 10572 APP_MAN_SUFFIX=1 10573fi 10574if test x$APP_MAN_DIR = x ; then 10575 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10576fi 10577 10578if test x$LIB_MAN_SUFFIX = x ; then 10579 LIB_MAN_SUFFIX=3 10580fi 10581if test x$LIB_MAN_DIR = x ; then 10582 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10583fi 10584 10585if test x$FILE_MAN_SUFFIX = x ; then 10586 case $host_os in 10587 # Solaris 2.0 - 11 use SysV man page sections 10588 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10589 *) FILE_MAN_SUFFIX=5 ;; 10590 esac 10591fi 10592if test x$FILE_MAN_DIR = x ; then 10593 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10594fi 10595 10596if test x$MISC_MAN_SUFFIX = x ; then 10597 case $host_os in 10598 # Solaris 2.0 - 11 use SysV man page sections 10599 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10600 *) MISC_MAN_SUFFIX=7 ;; 10601 esac 10602fi 10603if test x$MISC_MAN_DIR = x ; then 10604 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10605fi 10606 10607if test x$DRIVER_MAN_SUFFIX = x ; then 10608 case $host_os in 10609 # Solaris 2.0 - 11 use SysV man page sections 10610 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10611 *) DRIVER_MAN_SUFFIX=4 ;; 10612 esac 10613fi 10614if test x$DRIVER_MAN_DIR = x ; then 10615 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10616fi 10617 10618if test x$ADMIN_MAN_SUFFIX = x ; then 10619 case $host_os in 10620 # Solaris 2.0 - 11 use SysV man page sections 10621 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10622 *) ADMIN_MAN_SUFFIX=8 ;; 10623 esac 10624fi 10625if test x$ADMIN_MAN_DIR = x ; then 10626 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10627fi 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643XORG_MAN_PAGE="X Version 11" 10644 10645MAN_SUBSTS="\ 10646 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10647 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10648 -e 's|__xservername__|Xorg|g' \ 10649 -e 's|__xconfigfile__|xorg.conf|g' \ 10650 -e 's|__projectroot__|\$(prefix)|g' \ 10651 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10652 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10653 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10654 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10655 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10656 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10657 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10658 10659 10660 10661# Check whether --enable-silent-rules was given. 10662if test "${enable_silent_rules+set}" = set; then : 10663 enableval=$enable_silent_rules; 10664fi 10665 10666case $enable_silent_rules in # ((( 10667 yes) AM_DEFAULT_VERBOSITY=0;; 10668 no) AM_DEFAULT_VERBOSITY=1;; 10669 *) AM_DEFAULT_VERBOSITY=0;; 10670esac 10671am_make=${MAKE-make} 10672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10673$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10674if ${am_cv_make_support_nested_variables+:} false; then : 10675 $as_echo_n "(cached) " >&6 10676else 10677 if $as_echo 'TRUE=$(BAR$(V)) 10678BAR0=false 10679BAR1=true 10680V=1 10681am__doit: 10682 @$(TRUE) 10683.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10684 am_cv_make_support_nested_variables=yes 10685else 10686 am_cv_make_support_nested_variables=no 10687fi 10688fi 10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10690$as_echo "$am_cv_make_support_nested_variables" >&6; } 10691if test $am_cv_make_support_nested_variables = yes; then 10692 AM_V='$(V)' 10693 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10694else 10695 AM_V=$AM_DEFAULT_VERBOSITY 10696 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10697fi 10698AM_BACKSLASH='\' 10699 10700 10701 10702 10703 10704# Extract the first word of "groff", so it can be a program name with args. 10705set dummy groff; ac_word=$2 10706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10707$as_echo_n "checking for $ac_word... " >&6; } 10708if ${ac_cv_prog_GROFF+:} false; then : 10709 $as_echo_n "(cached) " >&6 10710else 10711 if test -n "$GROFF"; then 10712 ac_cv_prog_GROFF="$GROFF" # Let the user override the test. 10713else 10714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10715for as_dir in $PATH 10716do 10717 IFS=$as_save_IFS 10718 test -z "$as_dir" && as_dir=. 10719 for ac_exec_ext in '' $ac_executable_extensions; do 10720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10721 ac_cv_prog_GROFF="found" 10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10723 break 2 10724 fi 10725done 10726 done 10727IFS=$as_save_IFS 10728 10729 test -z "$ac_cv_prog_GROFF" && ac_cv_prog_GROFF="missing" 10730fi 10731fi 10732GROFF=$ac_cv_prog_GROFF 10733if test -n "$GROFF"; then 10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 10735$as_echo "$GROFF" >&6; } 10736else 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10738$as_echo "no" >&6; } 10739fi 10740 10741 10742if test "x$GROFF" = "xfound" ; then 10743 10744$as_echo "#define HAS_GROFF 1" >>confdefs.h 10745 10746fi 10747 10748# Extract the first word of "mandb", so it can be a program name with args. 10749set dummy mandb; ac_word=$2 10750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10751$as_echo_n "checking for $ac_word... " >&6; } 10752if ${ac_cv_prog_MANDB+:} false; then : 10753 $as_echo_n "(cached) " >&6 10754else 10755 if test -n "$MANDB"; then 10756 ac_cv_prog_MANDB="$MANDB" # Let the user override the test. 10757else 10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10759for as_dir in $PATH 10760do 10761 IFS=$as_save_IFS 10762 test -z "$as_dir" && as_dir=. 10763 for ac_exec_ext in '' $ac_executable_extensions; do 10764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10765 ac_cv_prog_MANDB="yes" 10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10767 break 2 10768 fi 10769done 10770 done 10771IFS=$as_save_IFS 10772 10773 test -z "$ac_cv_prog_MANDB" && ac_cv_prog_MANDB="no" 10774fi 10775fi 10776MANDB=$ac_cv_prog_MANDB 10777if test -n "$MANDB"; then 10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDB" >&5 10779$as_echo "$MANDB" >&6; } 10780else 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10782$as_echo "no" >&6; } 10783fi 10784 10785 10786if test x"$MANDB" = xyes; then 10787 10788$as_echo "#define HAVE_MANDB 1" >>confdefs.h 10789 10790fi 10791 10792for ac_func in mkstemp 10793do : 10794 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 10795if test "x$ac_cv_func_mkstemp" = xyes; then : 10796 cat >>confdefs.h <<_ACEOF 10797#define HAVE_MKSTEMP 1 10798_ACEOF 10799 10800fi 10801done 10802 10803 10804 10805# Check whether --with-helpdir was given. 10806if test "${with_helpdir+set}" = set; then : 10807 withval=$with_helpdir; HELPDIR="$withval" 10808else 10809 HELPDIR=${datadir}/X11 10810fi 10811 10812 10813 10814 10815# Check whether --with-sysmanpath was given. 10816if test "${with_sysmanpath+set}" = set; then : 10817 withval=$with_sysmanpath; SYSMANPATH="$withval" 10818fi 10819 10820if test x$SYSMANPATH != x; then 10821 10822cat >>confdefs.h <<_ACEOF 10823#define SYSMANPATH "$SYSMANPATH" 10824_ACEOF 10825 10826fi 10827 10828 10829# Check whether --with-localmanpath was given. 10830if test "${with_localmanpath+set}" = set; then : 10831 withval=$with_localmanpath; LOCALMANPATH="$withval" 10832fi 10833 10834if test x$LOCALMANPATH != x; then 10835 10836cat >>confdefs.h <<_ACEOF 10837#define LOCALMANPATH "$LOCALMANPATH" 10838_ACEOF 10839 10840fi 10841 10842# Obtain compiler/linker options from depedencies 10843 10844pkg_failed=no 10845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMAN" >&5 10846$as_echo_n "checking for XMAN... " >&6; } 10847 10848if test -n "$XMAN_CFLAGS"; then 10849 pkg_cv_XMAN_CFLAGS="$XMAN_CFLAGS" 10850 elif test -n "$PKG_CONFIG"; then 10851 if test -n "$PKG_CONFIG" && \ 10852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5 10853 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5 10854 ac_status=$? 10855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10856 test $ac_status = 0; }; then 10857 pkg_cv_XMAN_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt" 2>/dev/null` 10858 test "x$?" != "x0" && pkg_failed=yes 10859else 10860 pkg_failed=yes 10861fi 10862 else 10863 pkg_failed=untried 10864fi 10865if test -n "$XMAN_LIBS"; then 10866 pkg_cv_XMAN_LIBS="$XMAN_LIBS" 10867 elif test -n "$PKG_CONFIG"; then 10868 if test -n "$PKG_CONFIG" && \ 10869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5 10870 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5 10871 ac_status=$? 10872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10873 test $ac_status = 0; }; then 10874 pkg_cv_XMAN_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt" 2>/dev/null` 10875 test "x$?" != "x0" && pkg_failed=yes 10876else 10877 pkg_failed=yes 10878fi 10879 else 10880 pkg_failed=untried 10881fi 10882 10883 10884 10885if test $pkg_failed = yes; then 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10887$as_echo "no" >&6; } 10888 10889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10890 _pkg_short_errors_supported=yes 10891else 10892 _pkg_short_errors_supported=no 10893fi 10894 if test $_pkg_short_errors_supported = yes; then 10895 XMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt" 2>&1` 10896 else 10897 XMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt" 2>&1` 10898 fi 10899 # Put the nasty error message in config.log where it belongs 10900 echo "$XMAN_PKG_ERRORS" >&5 10901 10902 as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt) were not met: 10903 10904$XMAN_PKG_ERRORS 10905 10906Consider adjusting the PKG_CONFIG_PATH environment variable if you 10907installed software in a non-standard prefix. 10908 10909Alternatively, you may set the environment variables XMAN_CFLAGS 10910and XMAN_LIBS to avoid the need to call pkg-config. 10911See the pkg-config man page for more details." "$LINENO" 5 10912elif test $pkg_failed = untried; then 10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10914$as_echo "no" >&6; } 10915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10917as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10918is in your PATH or set the PKG_CONFIG environment variable to the full 10919path to pkg-config. 10920 10921Alternatively, you may set the environment variables XMAN_CFLAGS 10922and XMAN_LIBS to avoid the need to call pkg-config. 10923See the pkg-config man page for more details. 10924 10925To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10926See \`config.log' for more details" "$LINENO" 5; } 10927else 10928 XMAN_CFLAGS=$pkg_cv_XMAN_CFLAGS 10929 XMAN_LIBS=$pkg_cv_XMAN_LIBS 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10931$as_echo "yes" >&6; } 10932 10933fi 10934 10935 10936# Check whether --with-manconfig was given. 10937if test "${with_manconfig+set}" = set; then : 10938 withval=$with_manconfig; MANCONF="$withval" 10939fi 10940 10941if test x$MANCONF = x; then 10942# Check for man page config files 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.conf" >&5 10944$as_echo_n "checking for /etc/man.conf... " >&6; } 10945if ${ac_cv_file__etc_man_conf+:} false; then : 10946 $as_echo_n "(cached) " >&6 10947else 10948 test "$cross_compiling" = yes && 10949 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10950if test -r "/etc/man.conf"; then 10951 ac_cv_file__etc_man_conf=yes 10952else 10953 ac_cv_file__etc_man_conf=no 10954fi 10955fi 10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_conf" >&5 10957$as_echo "$ac_cv_file__etc_man_conf" >&6; } 10958if test "x$ac_cv_file__etc_man_conf" = xyes; then : 10959 MANCONF="/etc/man.conf" 10960else 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.config" >&5 10962$as_echo_n "checking for /etc/man.config... " >&6; } 10963if ${ac_cv_file__etc_man_config+:} false; then : 10964 $as_echo_n "(cached) " >&6 10965else 10966 test "$cross_compiling" = yes && 10967 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10968if test -r "/etc/man.config"; then 10969 ac_cv_file__etc_man_config=yes 10970else 10971 ac_cv_file__etc_man_config=no 10972fi 10973fi 10974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_config" >&5 10975$as_echo "$ac_cv_file__etc_man_config" >&6; } 10976if test "x$ac_cv_file__etc_man_config" = xyes; then : 10977 MANCONF="/etc/man.config" 10978else 10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/manpath.config" >&5 10980$as_echo_n "checking for /etc/manpath.config... " >&6; } 10981if ${ac_cv_file__etc_manpath_config+:} false; then : 10982 $as_echo_n "(cached) " >&6 10983else 10984 test "$cross_compiling" = yes && 10985 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10986if test -r "/etc/manpath.config"; then 10987 ac_cv_file__etc_manpath_config=yes 10988else 10989 ac_cv_file__etc_manpath_config=no 10990fi 10991fi 10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_manpath_config" >&5 10993$as_echo "$ac_cv_file__etc_manpath_config" >&6; } 10994if test "x$ac_cv_file__etc_manpath_config" = xyes; then : 10995 MANCONF="/etc/manpath.config" 10996else 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/misc/man.conf" >&5 10998$as_echo_n "checking for /usr/share/misc/man.conf... " >&6; } 10999if ${ac_cv_file__usr_share_misc_man_conf+:} false; then : 11000 $as_echo_n "(cached) " >&6 11001else 11002 test "$cross_compiling" = yes && 11003 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11004if test -r "/usr/share/misc/man.conf"; then 11005 ac_cv_file__usr_share_misc_man_conf=yes 11006else 11007 ac_cv_file__usr_share_misc_man_conf=no 11008fi 11009fi 11010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_misc_man_conf" >&5 11011$as_echo "$ac_cv_file__usr_share_misc_man_conf" >&6; } 11012if test "x$ac_cv_file__usr_share_misc_man_conf" = xyes; then : 11013 MANCONF="/usr/share/misc/man.conf" 11014fi 11015 11016fi 11017 11018fi 11019 11020fi 11021 11022fi 11023 11024if test x$MANCONF != x ; then 11025 11026cat >>confdefs.h <<_ACEOF 11027#define MANCONF "$MANCONF" 11028_ACEOF 11029 11030 11031 # Try to determine format of config file 11032 # would be better to somehow determine from the files themselves, but 11033 # we'll guess based on pathname and OS for now (mirrors old Imake tests) 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking man config file format" >&5 11035$as_echo_n "checking man config file format... " >&6; } 11036 if test x$MANCONF = x/etc/manpath.config ; then 11037 MAN_CONFIG_STYLE="FreeBSD" 11038 else 11039 case $host_os in 11040 *darwin* | *openbsd* | *netbsd* ) 11041 MAN_CONFIG_STYLE="OpenBSD" 11042 ;; 11043 *linux* | cygwin* ) 11044 MAN_CONFIG_STYLE="Linux" 11045 ;; 11046 *bsd* ) 11047 MAN_CONFIG_STYLE="BSD" 11048 ;; 11049 *) 11050 ;; 11051 esac 11052 fi 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_CONFIG_STYLE" >&5 11054$as_echo "$MAN_CONFIG_STYLE" >&6; } 11055 11056 case $MAN_CONFIG_STYLE in 11057 FreeBSD) 11058 11059$as_echo "#define MANCONFIGSTYLE_FreeBSD 1" >>confdefs.h 11060 11061 ;; 11062 OpenBSD) 11063 11064$as_echo "#define MANCONFIGSTYLE_OpenBSD 1" >>confdefs.h 11065 11066 ;; 11067 BSD) 11068 11069$as_echo "#define MANCONFIGSTYLE_BSD 1" >>confdefs.h 11070 11071 ;; 11072 Linux) 11073 11074$as_echo "#define MANCONFIGSTYLE_Linux 1" >>confdefs.h 11075 11076 ;; 11077 *) 11078 as_fn_error $? "Could not determine man page file config format." "$LINENO" 5 11079 esac 11080fi 11081 11082 11083pkg_failed=no 11084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11085$as_echo_n "checking for APPDEFS... " >&6; } 11086 11087if test -n "$APPDEFS_CFLAGS"; then 11088 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11089 elif test -n "$PKG_CONFIG"; then 11090 if test -n "$PKG_CONFIG" && \ 11091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11092 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11093 ac_status=$? 11094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11095 test $ac_status = 0; }; then 11096 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11097 test "x$?" != "x0" && pkg_failed=yes 11098else 11099 pkg_failed=yes 11100fi 11101 else 11102 pkg_failed=untried 11103fi 11104if test -n "$APPDEFS_LIBS"; then 11105 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11106 elif test -n "$PKG_CONFIG"; then 11107 if test -n "$PKG_CONFIG" && \ 11108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11109 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11110 ac_status=$? 11111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11112 test $ac_status = 0; }; then 11113 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11114 test "x$?" != "x0" && pkg_failed=yes 11115else 11116 pkg_failed=yes 11117fi 11118 else 11119 pkg_failed=untried 11120fi 11121 11122 11123 11124if test $pkg_failed = yes; then 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11126$as_echo "no" >&6; } 11127 11128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11129 _pkg_short_errors_supported=yes 11130else 11131 _pkg_short_errors_supported=no 11132fi 11133 if test $_pkg_short_errors_supported = yes; then 11134 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11135 else 11136 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11137 fi 11138 # Put the nasty error message in config.log where it belongs 11139 echo "$APPDEFS_PKG_ERRORS" >&5 11140 11141 as_fn_error $? "Package requirements (xt) were not met: 11142 11143$APPDEFS_PKG_ERRORS 11144 11145Consider adjusting the PKG_CONFIG_PATH environment variable if you 11146installed software in a non-standard prefix. 11147 11148Alternatively, you may set the environment variables APPDEFS_CFLAGS 11149and APPDEFS_LIBS to avoid the need to call pkg-config. 11150See the pkg-config man page for more details." "$LINENO" 5 11151elif test $pkg_failed = untried; then 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11153$as_echo "no" >&6; } 11154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11156as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11157is in your PATH or set the PKG_CONFIG environment variable to the full 11158path to pkg-config. 11159 11160Alternatively, you may set the environment variables APPDEFS_CFLAGS 11161and APPDEFS_LIBS to avoid the need to call pkg-config. 11162See the pkg-config man page for more details. 11163 11164To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11165See \`config.log' for more details" "$LINENO" 5; } 11166else 11167 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11168 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11170$as_echo "yes" >&6; } 11171 11172fi 11173xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11174 11175# Check whether --with-appdefaultdir was given. 11176if test "${with_appdefaultdir+set}" = set; then : 11177 withval=$with_appdefaultdir; appdefaultdir="$withval" 11178else 11179 appdefaultdir="${xt_appdefaultdir}" 11180fi 11181 11182 11183 11184if test "x$RELEASE_VERSION" != "x"; then 11185 11186cat >>confdefs.h <<_ACEOF 11187#define RELEASE_VERSION "$RELEASE_VERSION" 11188_ACEOF 11189 11190fi 11191 11192ac_config_files="$ac_config_files Makefile man/Makefile" 11193 11194cat >confcache <<\_ACEOF 11195# This file is a shell script that caches the results of configure 11196# tests run on this system so they can be shared between configure 11197# scripts and configure runs, see configure's option --config-cache. 11198# It is not useful on other systems. If it contains results you don't 11199# want to keep, you may remove or edit it. 11200# 11201# config.status only pays attention to the cache file if you give it 11202# the --recheck option to rerun configure. 11203# 11204# `ac_cv_env_foo' variables (set or unset) will be overridden when 11205# loading this file, other *unset* `ac_cv_foo' will be assigned the 11206# following values. 11207 11208_ACEOF 11209 11210# The following way of writing the cache mishandles newlines in values, 11211# but we know of no workaround that is simple, portable, and efficient. 11212# So, we kill variables containing newlines. 11213# Ultrix sh set writes to stderr and can't be redirected directly, 11214# and sets the high bit in the cache file unless we assign to the vars. 11215( 11216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11217 eval ac_val=\$$ac_var 11218 case $ac_val in #( 11219 *${as_nl}*) 11220 case $ac_var in #( 11221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11222$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11223 esac 11224 case $ac_var in #( 11225 _ | IFS | as_nl) ;; #( 11226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11227 *) { eval $ac_var=; unset $ac_var;} ;; 11228 esac ;; 11229 esac 11230 done 11231 11232 (set) 2>&1 | 11233 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11234 *${as_nl}ac_space=\ *) 11235 # `set' does not quote correctly, so add quotes: double-quote 11236 # substitution turns \\\\ into \\, and sed turns \\ into \. 11237 sed -n \ 11238 "s/'/'\\\\''/g; 11239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11240 ;; #( 11241 *) 11242 # `set' quotes correctly as required by POSIX, so do not add quotes. 11243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11244 ;; 11245 esac | 11246 sort 11247) | 11248 sed ' 11249 /^ac_cv_env_/b end 11250 t clear 11251 :clear 11252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11253 t end 11254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11255 :end' >>confcache 11256if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11257 if test -w "$cache_file"; then 11258 if test "x$cache_file" != "x/dev/null"; then 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11260$as_echo "$as_me: updating cache $cache_file" >&6;} 11261 if test ! -f "$cache_file" || test -h "$cache_file"; then 11262 cat confcache >"$cache_file" 11263 else 11264 case $cache_file in #( 11265 */* | ?:*) 11266 mv -f confcache "$cache_file"$$ && 11267 mv -f "$cache_file"$$ "$cache_file" ;; #( 11268 *) 11269 mv -f confcache "$cache_file" ;; 11270 esac 11271 fi 11272 fi 11273 else 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11275$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11276 fi 11277fi 11278rm -f confcache 11279 11280test "x$prefix" = xNONE && prefix=$ac_default_prefix 11281# Let make expand exec_prefix. 11282test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11283 11284DEFS=-DHAVE_CONFIG_H 11285 11286ac_libobjs= 11287ac_ltlibobjs= 11288U= 11289for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11290 # 1. Remove the extension, and $U if already installed. 11291 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11292 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11293 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11294 # will be set to the directory where LIBOBJS objects are built. 11295 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11296 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11297done 11298LIBOBJS=$ac_libobjs 11299 11300LTLIBOBJS=$ac_ltlibobjs 11301 11302 11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11304$as_echo_n "checking that generated files are newer than configure... " >&6; } 11305 if test -n "$am_sleep_pid"; then 11306 # Hide warnings about reused PIDs. 11307 wait $am_sleep_pid 2>/dev/null 11308 fi 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11310$as_echo "done" >&6; } 11311 if test -n "$EXEEXT"; then 11312 am__EXEEXT_TRUE= 11313 am__EXEEXT_FALSE='#' 11314else 11315 am__EXEEXT_TRUE='#' 11316 am__EXEEXT_FALSE= 11317fi 11318 11319if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11320 as_fn_error $? "conditional \"AMDEP\" was never defined. 11321Usually this means the macro was only invoked conditionally." "$LINENO" 5 11322fi 11323if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11324 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11325Usually this means the macro was only invoked conditionally." "$LINENO" 5 11326fi 11327 11328: "${CONFIG_STATUS=./config.status}" 11329ac_write_fail=0 11330ac_clean_files_save=$ac_clean_files 11331ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11332{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11333$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11334as_write_fail=0 11335cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11336#! $SHELL 11337# Generated by $as_me. 11338# Run this file to recreate the current configuration. 11339# Compiler output produced by configure, useful for debugging 11340# configure, is in config.log if it exists. 11341 11342debug=false 11343ac_cs_recheck=false 11344ac_cs_silent=false 11345 11346SHELL=\${CONFIG_SHELL-$SHELL} 11347export SHELL 11348_ASEOF 11349cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11350## -------------------- ## 11351## M4sh Initialization. ## 11352## -------------------- ## 11353 11354# Be more Bourne compatible 11355DUALCASE=1; export DUALCASE # for MKS sh 11356if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11357 emulate sh 11358 NULLCMD=: 11359 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11360 # is contrary to our usage. Disable this feature. 11361 alias -g '${1+"$@"}'='"$@"' 11362 setopt NO_GLOB_SUBST 11363else 11364 case `(set -o) 2>/dev/null` in #( 11365 *posix*) : 11366 set -o posix ;; #( 11367 *) : 11368 ;; 11369esac 11370fi 11371 11372 11373as_nl=' 11374' 11375export as_nl 11376# Printing a long string crashes Solaris 7 /usr/bin/printf. 11377as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11379as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11380# Prefer a ksh shell builtin over an external printf program on Solaris, 11381# but without wasting forks for bash or zsh. 11382if test -z "$BASH_VERSION$ZSH_VERSION" \ 11383 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11384 as_echo='print -r --' 11385 as_echo_n='print -rn --' 11386elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11387 as_echo='printf %s\n' 11388 as_echo_n='printf %s' 11389else 11390 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11391 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11392 as_echo_n='/usr/ucb/echo -n' 11393 else 11394 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11395 as_echo_n_body='eval 11396 arg=$1; 11397 case $arg in #( 11398 *"$as_nl"*) 11399 expr "X$arg" : "X\\(.*\\)$as_nl"; 11400 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11401 esac; 11402 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11403 ' 11404 export as_echo_n_body 11405 as_echo_n='sh -c $as_echo_n_body as_echo' 11406 fi 11407 export as_echo_body 11408 as_echo='sh -c $as_echo_body as_echo' 11409fi 11410 11411# The user is always right. 11412if test "${PATH_SEPARATOR+set}" != set; then 11413 PATH_SEPARATOR=: 11414 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11415 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11416 PATH_SEPARATOR=';' 11417 } 11418fi 11419 11420 11421# IFS 11422# We need space, tab and new line, in precisely that order. Quoting is 11423# there to prevent editors from complaining about space-tab. 11424# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11425# splitting by setting IFS to empty value.) 11426IFS=" "" $as_nl" 11427 11428# Find who we are. Look in the path if we contain no directory separator. 11429as_myself= 11430case $0 in #(( 11431 *[\\/]* ) as_myself=$0 ;; 11432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11433for as_dir in $PATH 11434do 11435 IFS=$as_save_IFS 11436 test -z "$as_dir" && as_dir=. 11437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11438 done 11439IFS=$as_save_IFS 11440 11441 ;; 11442esac 11443# We did not find ourselves, most probably we were run as `sh COMMAND' 11444# in which case we are not to be found in the path. 11445if test "x$as_myself" = x; then 11446 as_myself=$0 11447fi 11448if test ! -f "$as_myself"; then 11449 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11450 exit 1 11451fi 11452 11453# Unset variables that we do not need and which cause bugs (e.g. in 11454# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11455# suppresses any "Segmentation fault" message there. '((' could 11456# trigger a bug in pdksh 5.2.14. 11457for as_var in BASH_ENV ENV MAIL MAILPATH 11458do eval test x\${$as_var+set} = xset \ 11459 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11460done 11461PS1='$ ' 11462PS2='> ' 11463PS4='+ ' 11464 11465# NLS nuisances. 11466LC_ALL=C 11467export LC_ALL 11468LANGUAGE=C 11469export LANGUAGE 11470 11471# CDPATH. 11472(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11473 11474 11475# as_fn_error STATUS ERROR [LINENO LOG_FD] 11476# ---------------------------------------- 11477# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11478# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11479# script with STATUS, using 1 if that was 0. 11480as_fn_error () 11481{ 11482 as_status=$1; test $as_status -eq 0 && as_status=1 11483 if test "$4"; then 11484 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11485 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11486 fi 11487 $as_echo "$as_me: error: $2" >&2 11488 as_fn_exit $as_status 11489} # as_fn_error 11490 11491 11492# as_fn_set_status STATUS 11493# ----------------------- 11494# Set $? to STATUS, without forking. 11495as_fn_set_status () 11496{ 11497 return $1 11498} # as_fn_set_status 11499 11500# as_fn_exit STATUS 11501# ----------------- 11502# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11503as_fn_exit () 11504{ 11505 set +e 11506 as_fn_set_status $1 11507 exit $1 11508} # as_fn_exit 11509 11510# as_fn_unset VAR 11511# --------------- 11512# Portably unset VAR. 11513as_fn_unset () 11514{ 11515 { eval $1=; unset $1;} 11516} 11517as_unset=as_fn_unset 11518# as_fn_append VAR VALUE 11519# ---------------------- 11520# Append the text in VALUE to the end of the definition contained in VAR. Take 11521# advantage of any shell optimizations that allow amortized linear growth over 11522# repeated appends, instead of the typical quadratic growth present in naive 11523# implementations. 11524if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11525 eval 'as_fn_append () 11526 { 11527 eval $1+=\$2 11528 }' 11529else 11530 as_fn_append () 11531 { 11532 eval $1=\$$1\$2 11533 } 11534fi # as_fn_append 11535 11536# as_fn_arith ARG... 11537# ------------------ 11538# Perform arithmetic evaluation on the ARGs, and store the result in the 11539# global $as_val. Take advantage of shells that can avoid forks. The arguments 11540# must be portable across $(()) and expr. 11541if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11542 eval 'as_fn_arith () 11543 { 11544 as_val=$(( $* )) 11545 }' 11546else 11547 as_fn_arith () 11548 { 11549 as_val=`expr "$@" || test $? -eq 1` 11550 } 11551fi # as_fn_arith 11552 11553 11554if expr a : '\(a\)' >/dev/null 2>&1 && 11555 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11556 as_expr=expr 11557else 11558 as_expr=false 11559fi 11560 11561if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11562 as_basename=basename 11563else 11564 as_basename=false 11565fi 11566 11567if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11568 as_dirname=dirname 11569else 11570 as_dirname=false 11571fi 11572 11573as_me=`$as_basename -- "$0" || 11574$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11575 X"$0" : 'X\(//\)$' \| \ 11576 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11577$as_echo X/"$0" | 11578 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11579 s//\1/ 11580 q 11581 } 11582 /^X\/\(\/\/\)$/{ 11583 s//\1/ 11584 q 11585 } 11586 /^X\/\(\/\).*/{ 11587 s//\1/ 11588 q 11589 } 11590 s/.*/./; q'` 11591 11592# Avoid depending upon Character Ranges. 11593as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11594as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11595as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11596as_cr_digits='0123456789' 11597as_cr_alnum=$as_cr_Letters$as_cr_digits 11598 11599ECHO_C= ECHO_N= ECHO_T= 11600case `echo -n x` in #((((( 11601-n*) 11602 case `echo 'xy\c'` in 11603 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11604 xy) ECHO_C='\c';; 11605 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11606 ECHO_T=' ';; 11607 esac;; 11608*) 11609 ECHO_N='-n';; 11610esac 11611 11612rm -f conf$$ conf$$.exe conf$$.file 11613if test -d conf$$.dir; then 11614 rm -f conf$$.dir/conf$$.file 11615else 11616 rm -f conf$$.dir 11617 mkdir conf$$.dir 2>/dev/null 11618fi 11619if (echo >conf$$.file) 2>/dev/null; then 11620 if ln -s conf$$.file conf$$ 2>/dev/null; then 11621 as_ln_s='ln -s' 11622 # ... but there are two gotchas: 11623 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11624 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11625 # In both cases, we have to default to `cp -pR'. 11626 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11627 as_ln_s='cp -pR' 11628 elif ln conf$$.file conf$$ 2>/dev/null; then 11629 as_ln_s=ln 11630 else 11631 as_ln_s='cp -pR' 11632 fi 11633else 11634 as_ln_s='cp -pR' 11635fi 11636rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11637rmdir conf$$.dir 2>/dev/null 11638 11639 11640# as_fn_mkdir_p 11641# ------------- 11642# Create "$as_dir" as a directory, including parents if necessary. 11643as_fn_mkdir_p () 11644{ 11645 11646 case $as_dir in #( 11647 -*) as_dir=./$as_dir;; 11648 esac 11649 test -d "$as_dir" || eval $as_mkdir_p || { 11650 as_dirs= 11651 while :; do 11652 case $as_dir in #( 11653 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11654 *) as_qdir=$as_dir;; 11655 esac 11656 as_dirs="'$as_qdir' $as_dirs" 11657 as_dir=`$as_dirname -- "$as_dir" || 11658$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11659 X"$as_dir" : 'X\(//\)[^/]' \| \ 11660 X"$as_dir" : 'X\(//\)$' \| \ 11661 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11662$as_echo X"$as_dir" | 11663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11664 s//\1/ 11665 q 11666 } 11667 /^X\(\/\/\)[^/].*/{ 11668 s//\1/ 11669 q 11670 } 11671 /^X\(\/\/\)$/{ 11672 s//\1/ 11673 q 11674 } 11675 /^X\(\/\).*/{ 11676 s//\1/ 11677 q 11678 } 11679 s/.*/./; q'` 11680 test -d "$as_dir" && break 11681 done 11682 test -z "$as_dirs" || eval "mkdir $as_dirs" 11683 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11684 11685 11686} # as_fn_mkdir_p 11687if mkdir -p . 2>/dev/null; then 11688 as_mkdir_p='mkdir -p "$as_dir"' 11689else 11690 test -d ./-p && rmdir ./-p 11691 as_mkdir_p=false 11692fi 11693 11694 11695# as_fn_executable_p FILE 11696# ----------------------- 11697# Test if FILE is an executable regular file. 11698as_fn_executable_p () 11699{ 11700 test -f "$1" && test -x "$1" 11701} # as_fn_executable_p 11702as_test_x='test -x' 11703as_executable_p=as_fn_executable_p 11704 11705# Sed expression to map a string onto a valid CPP name. 11706as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11707 11708# Sed expression to map a string onto a valid variable name. 11709as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11710 11711 11712exec 6>&1 11713## ----------------------------------- ## 11714## Main body of $CONFIG_STATUS script. ## 11715## ----------------------------------- ## 11716_ASEOF 11717test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11718 11719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11720# Save the log message, to keep $0 and so on meaningful, and to 11721# report actual input values of CONFIG_FILES etc. instead of their 11722# values after options handling. 11723ac_log=" 11724This file was extended by xman $as_me 1.1.5, which was 11725generated by GNU Autoconf 2.69. Invocation command line was 11726 11727 CONFIG_FILES = $CONFIG_FILES 11728 CONFIG_HEADERS = $CONFIG_HEADERS 11729 CONFIG_LINKS = $CONFIG_LINKS 11730 CONFIG_COMMANDS = $CONFIG_COMMANDS 11731 $ $0 $@ 11732 11733on `(hostname || uname -n) 2>/dev/null | sed 1q` 11734" 11735 11736_ACEOF 11737 11738case $ac_config_files in *" 11739"*) set x $ac_config_files; shift; ac_config_files=$*;; 11740esac 11741 11742case $ac_config_headers in *" 11743"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11744esac 11745 11746 11747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11748# Files that config.status was made for. 11749config_files="$ac_config_files" 11750config_headers="$ac_config_headers" 11751config_commands="$ac_config_commands" 11752 11753_ACEOF 11754 11755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11756ac_cs_usage="\ 11757\`$as_me' instantiates files and other configuration actions 11758from templates according to the current configuration. Unless the files 11759and actions are specified as TAGs, all are instantiated by default. 11760 11761Usage: $0 [OPTION]... [TAG]... 11762 11763 -h, --help print this help, then exit 11764 -V, --version print version number and configuration settings, then exit 11765 --config print configuration, then exit 11766 -q, --quiet, --silent 11767 do not print progress messages 11768 -d, --debug don't remove temporary files 11769 --recheck update $as_me by reconfiguring in the same conditions 11770 --file=FILE[:TEMPLATE] 11771 instantiate the configuration file FILE 11772 --header=FILE[:TEMPLATE] 11773 instantiate the configuration header FILE 11774 11775Configuration files: 11776$config_files 11777 11778Configuration headers: 11779$config_headers 11780 11781Configuration commands: 11782$config_commands 11783 11784Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/issues>." 11785 11786_ACEOF 11787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11788ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11789ac_cs_version="\\ 11790xman config.status 1.1.5 11791configured by $0, generated by GNU Autoconf 2.69, 11792 with options \\"\$ac_cs_config\\" 11793 11794Copyright (C) 2012 Free Software Foundation, Inc. 11795This config.status script is free software; the Free Software Foundation 11796gives unlimited permission to copy, distribute and modify it." 11797 11798ac_pwd='$ac_pwd' 11799srcdir='$srcdir' 11800INSTALL='$INSTALL' 11801MKDIR_P='$MKDIR_P' 11802AWK='$AWK' 11803test -n "\$AWK" || AWK=awk 11804_ACEOF 11805 11806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11807# The default lists apply if the user does not specify any file. 11808ac_need_defaults=: 11809while test $# != 0 11810do 11811 case $1 in 11812 --*=?*) 11813 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11815 ac_shift=: 11816 ;; 11817 --*=) 11818 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11819 ac_optarg= 11820 ac_shift=: 11821 ;; 11822 *) 11823 ac_option=$1 11824 ac_optarg=$2 11825 ac_shift=shift 11826 ;; 11827 esac 11828 11829 case $ac_option in 11830 # Handling of the options. 11831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11832 ac_cs_recheck=: ;; 11833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11834 $as_echo "$ac_cs_version"; exit ;; 11835 --config | --confi | --conf | --con | --co | --c ) 11836 $as_echo "$ac_cs_config"; exit ;; 11837 --debug | --debu | --deb | --de | --d | -d ) 11838 debug=: ;; 11839 --file | --fil | --fi | --f ) 11840 $ac_shift 11841 case $ac_optarg in 11842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11843 '') as_fn_error $? "missing file argument" ;; 11844 esac 11845 as_fn_append CONFIG_FILES " '$ac_optarg'" 11846 ac_need_defaults=false;; 11847 --header | --heade | --head | --hea ) 11848 $ac_shift 11849 case $ac_optarg in 11850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11851 esac 11852 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11853 ac_need_defaults=false;; 11854 --he | --h) 11855 # Conflict between --help and --header 11856 as_fn_error $? "ambiguous option: \`$1' 11857Try \`$0 --help' for more information.";; 11858 --help | --hel | -h ) 11859 $as_echo "$ac_cs_usage"; exit ;; 11860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11861 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11862 ac_cs_silent=: ;; 11863 11864 # This is an error. 11865 -*) as_fn_error $? "unrecognized option: \`$1' 11866Try \`$0 --help' for more information." ;; 11867 11868 *) as_fn_append ac_config_targets " $1" 11869 ac_need_defaults=false ;; 11870 11871 esac 11872 shift 11873done 11874 11875ac_configure_extra_args= 11876 11877if $ac_cs_silent; then 11878 exec 6>/dev/null 11879 ac_configure_extra_args="$ac_configure_extra_args --silent" 11880fi 11881 11882_ACEOF 11883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11884if \$ac_cs_recheck; then 11885 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11886 shift 11887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11888 CONFIG_SHELL='$SHELL' 11889 export CONFIG_SHELL 11890 exec "\$@" 11891fi 11892 11893_ACEOF 11894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11895exec 5>>config.log 11896{ 11897 echo 11898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11899## Running $as_me. ## 11900_ASBOX 11901 $as_echo "$ac_log" 11902} >&5 11903 11904_ACEOF 11905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11906# 11907# INIT-COMMANDS 11908# 11909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11910 11911_ACEOF 11912 11913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11914 11915# Handling of arguments. 11916for ac_config_target in $ac_config_targets 11917do 11918 case $ac_config_target in 11919 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11920 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11921 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11922 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11923 11924 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11925 esac 11926done 11927 11928 11929# If the user did not use the arguments to specify the items to instantiate, 11930# then the envvar interface is used. Set only those that are not. 11931# We use the long form for the default assignment because of an extremely 11932# bizarre bug on SunOS 4.1.3. 11933if $ac_need_defaults; then 11934 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11935 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11936 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11937fi 11938 11939# Have a temporary directory for convenience. Make it in the build tree 11940# simply because there is no reason against having it here, and in addition, 11941# creating and moving files from /tmp can sometimes cause problems. 11942# Hook for its removal unless debugging. 11943# Note that there is a small window in which the directory will not be cleaned: 11944# after its creation but before its name has been assigned to `$tmp'. 11945$debug || 11946{ 11947 tmp= ac_tmp= 11948 trap 'exit_status=$? 11949 : "${ac_tmp:=$tmp}" 11950 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11951' 0 11952 trap 'as_fn_exit 1' 1 2 13 15 11953} 11954# Create a (secure) tmp directory for tmp files. 11955 11956{ 11957 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11958 test -d "$tmp" 11959} || 11960{ 11961 tmp=./conf$$-$RANDOM 11962 (umask 077 && mkdir "$tmp") 11963} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11964ac_tmp=$tmp 11965 11966# Set up the scripts for CONFIG_FILES section. 11967# No need to generate them if there are no CONFIG_FILES. 11968# This happens for instance with `./config.status config.h'. 11969if test -n "$CONFIG_FILES"; then 11970 11971 11972ac_cr=`echo X | tr X '\015'` 11973# On cygwin, bash can eat \r inside `` if the user requested igncr. 11974# But we know of no other shell where ac_cr would be empty at this 11975# point, so we can use a bashism as a fallback. 11976if test "x$ac_cr" = x; then 11977 eval ac_cr=\$\'\\r\' 11978fi 11979ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11980if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11981 ac_cs_awk_cr='\\r' 11982else 11983 ac_cs_awk_cr=$ac_cr 11984fi 11985 11986echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11987_ACEOF 11988 11989 11990{ 11991 echo "cat >conf$$subs.awk <<_ACEOF" && 11992 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11993 echo "_ACEOF" 11994} >conf$$subs.sh || 11995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11996ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11997ac_delim='%!_!# ' 11998for ac_last_try in false false false false false :; do 11999 . ./conf$$subs.sh || 12000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12001 12002 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12003 if test $ac_delim_n = $ac_delim_num; then 12004 break 12005 elif $ac_last_try; then 12006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12007 else 12008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12009 fi 12010done 12011rm -f conf$$subs.sh 12012 12013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12014cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12015_ACEOF 12016sed -n ' 12017h 12018s/^/S["/; s/!.*/"]=/ 12019p 12020g 12021s/^[^!]*!// 12022:repl 12023t repl 12024s/'"$ac_delim"'$// 12025t delim 12026:nl 12027h 12028s/\(.\{148\}\)..*/\1/ 12029t more1 12030s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12031p 12032n 12033b repl 12034:more1 12035s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12036p 12037g 12038s/.\{148\}// 12039t nl 12040:delim 12041h 12042s/\(.\{148\}\)..*/\1/ 12043t more2 12044s/["\\]/\\&/g; s/^/"/; s/$/"/ 12045p 12046b 12047:more2 12048s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12049p 12050g 12051s/.\{148\}// 12052t delim 12053' <conf$$subs.awk | sed ' 12054/^[^""]/{ 12055 N 12056 s/\n// 12057} 12058' >>$CONFIG_STATUS || ac_write_fail=1 12059rm -f conf$$subs.awk 12060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12061_ACAWK 12062cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12063 for (key in S) S_is_set[key] = 1 12064 FS = "" 12065 12066} 12067{ 12068 line = $ 0 12069 nfields = split(line, field, "@") 12070 substed = 0 12071 len = length(field[1]) 12072 for (i = 2; i < nfields; i++) { 12073 key = field[i] 12074 keylen = length(key) 12075 if (S_is_set[key]) { 12076 value = S[key] 12077 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12078 len += length(value) + length(field[++i]) 12079 substed = 1 12080 } else 12081 len += 1 + keylen 12082 } 12083 12084 print line 12085} 12086 12087_ACAWK 12088_ACEOF 12089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12090if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12091 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12092else 12093 cat 12094fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12095 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12096_ACEOF 12097 12098# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12099# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12100# trailing colons and then remove the whole line if VPATH becomes empty 12101# (actually we leave an empty line to preserve line numbers). 12102if test "x$srcdir" = x.; then 12103 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12104h 12105s/// 12106s/^/:/ 12107s/[ ]*$/:/ 12108s/:\$(srcdir):/:/g 12109s/:\${srcdir}:/:/g 12110s/:@srcdir@:/:/g 12111s/^:*// 12112s/:*$// 12113x 12114s/\(=[ ]*\).*/\1/ 12115G 12116s/\n// 12117s/^[^=]*=[ ]*$// 12118}' 12119fi 12120 12121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12122fi # test -n "$CONFIG_FILES" 12123 12124# Set up the scripts for CONFIG_HEADERS section. 12125# No need to generate them if there are no CONFIG_HEADERS. 12126# This happens for instance with `./config.status Makefile'. 12127if test -n "$CONFIG_HEADERS"; then 12128cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12129BEGIN { 12130_ACEOF 12131 12132# Transform confdefs.h into an awk script `defines.awk', embedded as 12133# here-document in config.status, that substitutes the proper values into 12134# config.h.in to produce config.h. 12135 12136# Create a delimiter string that does not exist in confdefs.h, to ease 12137# handling of long lines. 12138ac_delim='%!_!# ' 12139for ac_last_try in false false :; do 12140 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12141 if test -z "$ac_tt"; then 12142 break 12143 elif $ac_last_try; then 12144 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12145 else 12146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12147 fi 12148done 12149 12150# For the awk script, D is an array of macro values keyed by name, 12151# likewise P contains macro parameters if any. Preserve backslash 12152# newline sequences. 12153 12154ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12155sed -n ' 12156s/.\{148\}/&'"$ac_delim"'/g 12157t rset 12158:rset 12159s/^[ ]*#[ ]*define[ ][ ]*/ / 12160t def 12161d 12162:def 12163s/\\$// 12164t bsnl 12165s/["\\]/\\&/g 12166s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12167D["\1"]=" \3"/p 12168s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12169d 12170:bsnl 12171s/["\\]/\\&/g 12172s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12173D["\1"]=" \3\\\\\\n"\\/p 12174t cont 12175s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12176t cont 12177d 12178:cont 12179n 12180s/.\{148\}/&'"$ac_delim"'/g 12181t clear 12182:clear 12183s/\\$// 12184t bsnlc 12185s/["\\]/\\&/g; s/^/"/; s/$/"/p 12186d 12187:bsnlc 12188s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12189b cont 12190' <confdefs.h | sed ' 12191s/'"$ac_delim"'/"\\\ 12192"/g' >>$CONFIG_STATUS || ac_write_fail=1 12193 12194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12195 for (key in D) D_is_set[key] = 1 12196 FS = "" 12197} 12198/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12199 line = \$ 0 12200 split(line, arg, " ") 12201 if (arg[1] == "#") { 12202 defundef = arg[2] 12203 mac1 = arg[3] 12204 } else { 12205 defundef = substr(arg[1], 2) 12206 mac1 = arg[2] 12207 } 12208 split(mac1, mac2, "(") #) 12209 macro = mac2[1] 12210 prefix = substr(line, 1, index(line, defundef) - 1) 12211 if (D_is_set[macro]) { 12212 # Preserve the white space surrounding the "#". 12213 print prefix "define", macro P[macro] D[macro] 12214 next 12215 } else { 12216 # Replace #undef with comments. This is necessary, for example, 12217 # in the case of _POSIX_SOURCE, which is predefined and required 12218 # on some systems where configure will not decide to define it. 12219 if (defundef == "undef") { 12220 print "/*", prefix defundef, macro, "*/" 12221 next 12222 } 12223 } 12224} 12225{ print } 12226_ACAWK 12227_ACEOF 12228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12229 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12230fi # test -n "$CONFIG_HEADERS" 12231 12232 12233eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12234shift 12235for ac_tag 12236do 12237 case $ac_tag in 12238 :[FHLC]) ac_mode=$ac_tag; continue;; 12239 esac 12240 case $ac_mode$ac_tag in 12241 :[FHL]*:*);; 12242 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12243 :[FH]-) ac_tag=-:-;; 12244 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12245 esac 12246 ac_save_IFS=$IFS 12247 IFS=: 12248 set x $ac_tag 12249 IFS=$ac_save_IFS 12250 shift 12251 ac_file=$1 12252 shift 12253 12254 case $ac_mode in 12255 :L) ac_source=$1;; 12256 :[FH]) 12257 ac_file_inputs= 12258 for ac_f 12259 do 12260 case $ac_f in 12261 -) ac_f="$ac_tmp/stdin";; 12262 *) # Look for the file first in the build tree, then in the source tree 12263 # (if the path is not absolute). The absolute path cannot be DOS-style, 12264 # because $ac_f cannot contain `:'. 12265 test -f "$ac_f" || 12266 case $ac_f in 12267 [\\/$]*) false;; 12268 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12269 esac || 12270 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12271 esac 12272 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12273 as_fn_append ac_file_inputs " '$ac_f'" 12274 done 12275 12276 # Let's still pretend it is `configure' which instantiates (i.e., don't 12277 # use $as_me), people would be surprised to read: 12278 # /* config.h. Generated by config.status. */ 12279 configure_input='Generated from '` 12280 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12281 `' by configure.' 12282 if test x"$ac_file" != x-; then 12283 configure_input="$ac_file. $configure_input" 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12285$as_echo "$as_me: creating $ac_file" >&6;} 12286 fi 12287 # Neutralize special characters interpreted by sed in replacement strings. 12288 case $configure_input in #( 12289 *\&* | *\|* | *\\* ) 12290 ac_sed_conf_input=`$as_echo "$configure_input" | 12291 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12292 *) ac_sed_conf_input=$configure_input;; 12293 esac 12294 12295 case $ac_tag in 12296 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12298 esac 12299 ;; 12300 esac 12301 12302 ac_dir=`$as_dirname -- "$ac_file" || 12303$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12304 X"$ac_file" : 'X\(//\)[^/]' \| \ 12305 X"$ac_file" : 'X\(//\)$' \| \ 12306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12307$as_echo X"$ac_file" | 12308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12309 s//\1/ 12310 q 12311 } 12312 /^X\(\/\/\)[^/].*/{ 12313 s//\1/ 12314 q 12315 } 12316 /^X\(\/\/\)$/{ 12317 s//\1/ 12318 q 12319 } 12320 /^X\(\/\).*/{ 12321 s//\1/ 12322 q 12323 } 12324 s/.*/./; q'` 12325 as_dir="$ac_dir"; as_fn_mkdir_p 12326 ac_builddir=. 12327 12328case "$ac_dir" in 12329.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12330*) 12331 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12332 # A ".." for each directory in $ac_dir_suffix. 12333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12334 case $ac_top_builddir_sub in 12335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12337 esac ;; 12338esac 12339ac_abs_top_builddir=$ac_pwd 12340ac_abs_builddir=$ac_pwd$ac_dir_suffix 12341# for backward compatibility: 12342ac_top_builddir=$ac_top_build_prefix 12343 12344case $srcdir in 12345 .) # We are building in place. 12346 ac_srcdir=. 12347 ac_top_srcdir=$ac_top_builddir_sub 12348 ac_abs_top_srcdir=$ac_pwd ;; 12349 [\\/]* | ?:[\\/]* ) # Absolute name. 12350 ac_srcdir=$srcdir$ac_dir_suffix; 12351 ac_top_srcdir=$srcdir 12352 ac_abs_top_srcdir=$srcdir ;; 12353 *) # Relative name. 12354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12355 ac_top_srcdir=$ac_top_build_prefix$srcdir 12356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12357esac 12358ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12359 12360 12361 case $ac_mode in 12362 :F) 12363 # 12364 # CONFIG_FILE 12365 # 12366 12367 case $INSTALL in 12368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12370 esac 12371 ac_MKDIR_P=$MKDIR_P 12372 case $MKDIR_P in 12373 [\\/$]* | ?:[\\/]* ) ;; 12374 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12375 esac 12376_ACEOF 12377 12378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12379# If the template does not know about datarootdir, expand it. 12380# FIXME: This hack should be removed a few years after 2.60. 12381ac_datarootdir_hack=; ac_datarootdir_seen= 12382ac_sed_dataroot=' 12383/datarootdir/ { 12384 p 12385 q 12386} 12387/@datadir@/p 12388/@docdir@/p 12389/@infodir@/p 12390/@localedir@/p 12391/@mandir@/p' 12392case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12393*datarootdir*) ac_datarootdir_seen=yes;; 12394*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12396$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12397_ACEOF 12398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12399 ac_datarootdir_hack=' 12400 s&@datadir@&$datadir&g 12401 s&@docdir@&$docdir&g 12402 s&@infodir@&$infodir&g 12403 s&@localedir@&$localedir&g 12404 s&@mandir@&$mandir&g 12405 s&\\\${datarootdir}&$datarootdir&g' ;; 12406esac 12407_ACEOF 12408 12409# Neutralize VPATH when `$srcdir' = `.'. 12410# Shell code in configure.ac might set extrasub. 12411# FIXME: do we really want to maintain this feature? 12412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12413ac_sed_extra="$ac_vpsub 12414$extrasub 12415_ACEOF 12416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12417:t 12418/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12419s|@configure_input@|$ac_sed_conf_input|;t t 12420s&@top_builddir@&$ac_top_builddir_sub&;t t 12421s&@top_build_prefix@&$ac_top_build_prefix&;t t 12422s&@srcdir@&$ac_srcdir&;t t 12423s&@abs_srcdir@&$ac_abs_srcdir&;t t 12424s&@top_srcdir@&$ac_top_srcdir&;t t 12425s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12426s&@builddir@&$ac_builddir&;t t 12427s&@abs_builddir@&$ac_abs_builddir&;t t 12428s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12429s&@INSTALL@&$ac_INSTALL&;t t 12430s&@MKDIR_P@&$ac_MKDIR_P&;t t 12431$ac_datarootdir_hack 12432" 12433eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12434 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12435 12436test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12437 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12439 "$ac_tmp/out"`; test -z "$ac_out"; } && 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12441which seems to be undefined. Please make sure it is defined" >&5 12442$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12443which seems to be undefined. Please make sure it is defined" >&2;} 12444 12445 rm -f "$ac_tmp/stdin" 12446 case $ac_file in 12447 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12448 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12449 esac \ 12450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12451 ;; 12452 :H) 12453 # 12454 # CONFIG_HEADER 12455 # 12456 if test x"$ac_file" != x-; then 12457 { 12458 $as_echo "/* $configure_input */" \ 12459 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12460 } >"$ac_tmp/config.h" \ 12461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12462 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12464$as_echo "$as_me: $ac_file is unchanged" >&6;} 12465 else 12466 rm -f "$ac_file" 12467 mv "$ac_tmp/config.h" "$ac_file" \ 12468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12469 fi 12470 else 12471 $as_echo "/* $configure_input */" \ 12472 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12473 || as_fn_error $? "could not create -" "$LINENO" 5 12474 fi 12475# Compute "$ac_file"'s index in $config_headers. 12476_am_arg="$ac_file" 12477_am_stamp_count=1 12478for _am_header in $config_headers :; do 12479 case $_am_header in 12480 $_am_arg | $_am_arg:* ) 12481 break ;; 12482 * ) 12483 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12484 esac 12485done 12486echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12487$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12488 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12489 X"$_am_arg" : 'X\(//\)$' \| \ 12490 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12491$as_echo X"$_am_arg" | 12492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12493 s//\1/ 12494 q 12495 } 12496 /^X\(\/\/\)[^/].*/{ 12497 s//\1/ 12498 q 12499 } 12500 /^X\(\/\/\)$/{ 12501 s//\1/ 12502 q 12503 } 12504 /^X\(\/\).*/{ 12505 s//\1/ 12506 q 12507 } 12508 s/.*/./; q'`/stamp-h$_am_stamp_count 12509 ;; 12510 12511 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12512$as_echo "$as_me: executing $ac_file commands" >&6;} 12513 ;; 12514 esac 12515 12516 12517 case $ac_file$ac_mode in 12518 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12519 # Older Autoconf quotes --file arguments for eval, but not when files 12520 # are listed without --file. Let's play safe and only enable the eval 12521 # if we detect the quoting. 12522 case $CONFIG_FILES in 12523 *\'*) eval set x "$CONFIG_FILES" ;; 12524 *) set x $CONFIG_FILES ;; 12525 esac 12526 shift 12527 for mf 12528 do 12529 # Strip MF so we end up with the name of the file. 12530 mf=`echo "$mf" | sed -e 's/:.*$//'` 12531 # Check whether this is an Automake generated Makefile or not. 12532 # We used to match only the files named 'Makefile.in', but 12533 # some people rename them; so instead we look at the file content. 12534 # Grep'ing the first line is not enough: some people post-process 12535 # each Makefile.in and add a new line on top of each file to say so. 12536 # Grep'ing the whole file is not good either: AIX grep has a line 12537 # limit of 2048, but all sed's we know have understand at least 4000. 12538 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12539 dirpart=`$as_dirname -- "$mf" || 12540$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12541 X"$mf" : 'X\(//\)[^/]' \| \ 12542 X"$mf" : 'X\(//\)$' \| \ 12543 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12544$as_echo X"$mf" | 12545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12546 s//\1/ 12547 q 12548 } 12549 /^X\(\/\/\)[^/].*/{ 12550 s//\1/ 12551 q 12552 } 12553 /^X\(\/\/\)$/{ 12554 s//\1/ 12555 q 12556 } 12557 /^X\(\/\).*/{ 12558 s//\1/ 12559 q 12560 } 12561 s/.*/./; q'` 12562 else 12563 continue 12564 fi 12565 # Extract the definition of DEPDIR, am__include, and am__quote 12566 # from the Makefile without running 'make'. 12567 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12568 test -z "$DEPDIR" && continue 12569 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12570 test -z "$am__include" && continue 12571 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12572 # Find all dependency output files, they are included files with 12573 # $(DEPDIR) in their names. We invoke sed twice because it is the 12574 # simplest approach to changing $(DEPDIR) to its actual value in the 12575 # expansion. 12576 for file in `sed -n " 12577 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12578 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12579 # Make sure the directory exists. 12580 test -f "$dirpart/$file" && continue 12581 fdir=`$as_dirname -- "$file" || 12582$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12583 X"$file" : 'X\(//\)[^/]' \| \ 12584 X"$file" : 'X\(//\)$' \| \ 12585 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12586$as_echo X"$file" | 12587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12588 s//\1/ 12589 q 12590 } 12591 /^X\(\/\/\)[^/].*/{ 12592 s//\1/ 12593 q 12594 } 12595 /^X\(\/\/\)$/{ 12596 s//\1/ 12597 q 12598 } 12599 /^X\(\/\).*/{ 12600 s//\1/ 12601 q 12602 } 12603 s/.*/./; q'` 12604 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12605 # echo "creating $dirpart/$file" 12606 echo '# dummy' > "$dirpart/$file" 12607 done 12608 done 12609} 12610 ;; 12611 12612 esac 12613done # for ac_tag 12614 12615 12616as_fn_exit 0 12617_ACEOF 12618ac_clean_files=$ac_clean_files_save 12619 12620test $ac_write_fail = 0 || 12621 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12622 12623 12624# configure is writing to config.log, and then calls config.status. 12625# config.status does its own redirection, appending to config.log. 12626# Unfortunately, on DOS this fails, as config.log is still kept open 12627# by configure, so config.status won't be able to write to it; its 12628# output is simply discarded. So we exec the FD to /dev/null, 12629# effectively closing config.log, so it can be properly (re)opened and 12630# appended to by config.status. When coming back to configure, we 12631# need to make the FD available again. 12632if test "$no_create" != yes; then 12633 ac_cs_success=: 12634 ac_config_status_args= 12635 test "$silent" = yes && 12636 ac_config_status_args="$ac_config_status_args --quiet" 12637 exec 5>/dev/null 12638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12639 exec 5>>config.log 12640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12641 # would make configure fail if this is the last instruction. 12642 $ac_cs_success || as_fn_exit 1 12643fi 12644if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12646$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12647fi 12648 12649