configure revision 48f45e26
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for mkfontscale 1.1.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='mkfontscale' 583PACKAGE_TARNAME='mkfontscale' 584PACKAGE_VERSION='1.1.2' 585PACKAGE_STRING='mkfontscale 1.1.2' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630LINT_FALSE 631LINT_TRUE 632LINT_FLAGS 633LINT 634X11_LIBS 635X11_CFLAGS 636MKFONTSCALE_LIBS 637MKFONTSCALE_CFLAGS 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 663CHANGELOG_CMD 664STRICT_CFLAGS 665CWARNFLAGS 666BASE_CFLAGS 667AM_BACKSLASH 668AM_DEFAULT_VERBOSITY 669AM_DEFAULT_V 670AM_V 671am__fastdepCC_FALSE 672am__fastdepCC_TRUE 673CCDEPMODE 674am__nodep 675AMDEPBACKSLASH 676AMDEP_FALSE 677AMDEP_TRUE 678am__quote 679am__include 680DEPDIR 681am__untar 682am__tar 683AMTAR 684am__leading_dot 685SET_MAKE 686AWK 687mkdir_p 688MKDIR_P 689INSTALL_STRIP_PROGRAM 690STRIP 691install_sh 692MAKEINFO 693AUTOHEADER 694AUTOMAKE 695AUTOCONF 696ACLOCAL 697VERSION 698PACKAGE 699CYGPATH_W 700am__isrc 701INSTALL_DATA 702INSTALL_SCRIPT 703INSTALL_PROGRAM 704EGREP 705GREP 706CPP 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714target_alias 715host_alias 716build_alias 717LIBS 718ECHO_T 719ECHO_N 720ECHO_C 721DEFS 722mandir 723localedir 724libdir 725psdir 726pdfdir 727dvidir 728htmldir 729infodir 730docdir 731oldincludedir 732includedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_URL 745PACKAGE_BUGREPORT 746PACKAGE_STRING 747PACKAGE_VERSION 748PACKAGE_TARNAME 749PACKAGE_NAME 750PATH_SEPARATOR 751SHELL' 752ac_subst_files='' 753ac_user_opts=' 754enable_option_checking 755enable_dependency_tracking 756enable_silent_rules 757enable_selective_werror 758enable_strict_compilation 759with_bzip2 760with_lint 761' 762 ac_precious_vars='build_alias 763host_alias 764target_alias 765CC 766CFLAGS 767LDFLAGS 768LIBS 769CPPFLAGS 770CPP 771PKG_CONFIG 772MKFONTSCALE_CFLAGS 773MKFONTSCALE_LIBS 774X11_CFLAGS 775X11_LIBS 776LINT 777LINT_FLAGS' 778 779 780# Initialize some variables set by options. 781ac_init_help= 782ac_init_version=false 783ac_unrecognized_opts= 784ac_unrecognized_sep= 785# The variables have the same names as the options, with 786# dashes changed to underlines. 787cache_file=/dev/null 788exec_prefix=NONE 789no_create= 790no_recursion= 791prefix=NONE 792program_prefix=NONE 793program_suffix=NONE 794program_transform_name=s,x,x, 795silent= 796site= 797srcdir= 798verbose= 799x_includes=NONE 800x_libraries=NONE 801 802# Installation directory options. 803# These are left unexpanded so users can "make install exec_prefix=/foo" 804# and all the variables that are supposed to be based on exec_prefix 805# by default will actually change. 806# Use braces instead of parens because sh, perl, etc. also accept them. 807# (The list follows the same order as the GNU Coding Standards.) 808bindir='${exec_prefix}/bin' 809sbindir='${exec_prefix}/sbin' 810libexecdir='${exec_prefix}/libexec' 811datarootdir='${prefix}/share' 812datadir='${datarootdir}' 813sysconfdir='${prefix}/etc' 814sharedstatedir='${prefix}/com' 815localstatedir='${prefix}/var' 816includedir='${prefix}/include' 817oldincludedir='/usr/include' 818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 819infodir='${datarootdir}/info' 820htmldir='${docdir}' 821dvidir='${docdir}' 822pdfdir='${docdir}' 823psdir='${docdir}' 824libdir='${exec_prefix}/lib' 825localedir='${datarootdir}/locale' 826mandir='${datarootdir}/man' 827 828ac_prev= 829ac_dashdash= 830for ac_option 831do 832 # If the previous option needs an argument, assign it. 833 if test -n "$ac_prev"; then 834 eval $ac_prev=\$ac_option 835 ac_prev= 836 continue 837 fi 838 839 case $ac_option in 840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 841 *=) ac_optarg= ;; 842 *) ac_optarg=yes ;; 843 esac 844 845 # Accept the important Cygnus configure options, so we can diagnose typos. 846 847 case $ac_dashdash$ac_option in 848 --) 849 ac_dashdash=yes ;; 850 851 -bindir | --bindir | --bindi | --bind | --bin | --bi) 852 ac_prev=bindir ;; 853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 854 bindir=$ac_optarg ;; 855 856 -build | --build | --buil | --bui | --bu) 857 ac_prev=build_alias ;; 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 859 build_alias=$ac_optarg ;; 860 861 -cache-file | --cache-file | --cache-fil | --cache-fi \ 862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 863 ac_prev=cache_file ;; 864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 866 cache_file=$ac_optarg ;; 867 868 --config-cache | -C) 869 cache_file=config.cache ;; 870 871 -datadir | --datadir | --datadi | --datad) 872 ac_prev=datadir ;; 873 -datadir=* | --datadir=* | --datadi=* | --datad=*) 874 datadir=$ac_optarg ;; 875 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 877 | --dataroo | --dataro | --datar) 878 ac_prev=datarootdir ;; 879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 881 datarootdir=$ac_optarg ;; 882 883 -disable-* | --disable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error $? "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892"enable_$ac_useropt" 893"*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=no ;; 898 899 -docdir | --docdir | --docdi | --doc | --do) 900 ac_prev=docdir ;; 901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 902 docdir=$ac_optarg ;; 903 904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 905 ac_prev=dvidir ;; 906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 907 dvidir=$ac_optarg ;; 908 909 -enable-* | --enable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=\$ac_optarg ;; 924 925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 927 | --exec | --exe | --ex) 928 ac_prev=exec_prefix ;; 929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 931 | --exec=* | --exe=* | --ex=*) 932 exec_prefix=$ac_optarg ;; 933 934 -gas | --gas | --ga | --g) 935 # Obsolete; use --with-gas. 936 with_gas=yes ;; 937 938 -help | --help | --hel | --he | -h) 939 ac_init_help=long ;; 940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 941 ac_init_help=recursive ;; 942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 943 ac_init_help=short ;; 944 945 -host | --host | --hos | --ho) 946 ac_prev=host_alias ;; 947 -host=* | --host=* | --hos=* | --ho=*) 948 host_alias=$ac_optarg ;; 949 950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 951 ac_prev=htmldir ;; 952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 953 | --ht=*) 954 htmldir=$ac_optarg ;; 955 956 -includedir | --includedir | --includedi | --included | --include \ 957 | --includ | --inclu | --incl | --inc) 958 ac_prev=includedir ;; 959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 960 | --includ=* | --inclu=* | --incl=* | --inc=*) 961 includedir=$ac_optarg ;; 962 963 -infodir | --infodir | --infodi | --infod | --info | --inf) 964 ac_prev=infodir ;; 965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 966 infodir=$ac_optarg ;; 967 968 -libdir | --libdir | --libdi | --libd) 969 ac_prev=libdir ;; 970 -libdir=* | --libdir=* | --libdi=* | --libd=*) 971 libdir=$ac_optarg ;; 972 973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 974 | --libexe | --libex | --libe) 975 ac_prev=libexecdir ;; 976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 977 | --libexe=* | --libex=* | --libe=*) 978 libexecdir=$ac_optarg ;; 979 980 -localedir | --localedir | --localedi | --localed | --locale) 981 ac_prev=localedir ;; 982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 983 localedir=$ac_optarg ;; 984 985 -localstatedir | --localstatedir | --localstatedi | --localstated \ 986 | --localstate | --localstat | --localsta | --localst | --locals) 987 ac_prev=localstatedir ;; 988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 990 localstatedir=$ac_optarg ;; 991 992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 993 ac_prev=mandir ;; 994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 995 mandir=$ac_optarg ;; 996 997 -nfp | --nfp | --nf) 998 # Obsolete; use --without-fp. 999 with_fp=no ;; 1000 1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1002 | --no-cr | --no-c | -n) 1003 no_create=yes ;; 1004 1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1007 no_recursion=yes ;; 1008 1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1011 | --oldin | --oldi | --old | --ol | --o) 1012 ac_prev=oldincludedir ;; 1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1016 oldincludedir=$ac_optarg ;; 1017 1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1019 ac_prev=prefix ;; 1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1021 prefix=$ac_optarg ;; 1022 1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1024 | --program-pre | --program-pr | --program-p) 1025 ac_prev=program_prefix ;; 1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1028 program_prefix=$ac_optarg ;; 1029 1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1031 | --program-suf | --program-su | --program-s) 1032 ac_prev=program_suffix ;; 1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1035 program_suffix=$ac_optarg ;; 1036 1037 -program-transform-name | --program-transform-name \ 1038 | --program-transform-nam | --program-transform-na \ 1039 | --program-transform-n | --program-transform- \ 1040 | --program-transform | --program-transfor \ 1041 | --program-transfo | --program-transf \ 1042 | --program-trans | --program-tran \ 1043 | --progr-tra | --program-tr | --program-t) 1044 ac_prev=program_transform_name ;; 1045 -program-transform-name=* | --program-transform-name=* \ 1046 | --program-transform-nam=* | --program-transform-na=* \ 1047 | --program-transform-n=* | --program-transform-=* \ 1048 | --program-transform=* | --program-transfor=* \ 1049 | --program-transfo=* | --program-transf=* \ 1050 | --program-trans=* | --program-tran=* \ 1051 | --progr-tra=* | --program-tr=* | --program-t=*) 1052 program_transform_name=$ac_optarg ;; 1053 1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1055 ac_prev=pdfdir ;; 1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1057 pdfdir=$ac_optarg ;; 1058 1059 -psdir | --psdir | --psdi | --psd | --ps) 1060 ac_prev=psdir ;; 1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1062 psdir=$ac_optarg ;; 1063 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 silent=yes ;; 1067 1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1069 ac_prev=sbindir ;; 1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1071 | --sbi=* | --sb=*) 1072 sbindir=$ac_optarg ;; 1073 1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1076 | --sharedst | --shareds | --shared | --share | --shar \ 1077 | --sha | --sh) 1078 ac_prev=sharedstatedir ;; 1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1082 | --sha=* | --sh=*) 1083 sharedstatedir=$ac_optarg ;; 1084 1085 -site | --site | --sit) 1086 ac_prev=site ;; 1087 -site=* | --site=* | --sit=*) 1088 site=$ac_optarg ;; 1089 1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1091 ac_prev=srcdir ;; 1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1093 srcdir=$ac_optarg ;; 1094 1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1096 | --syscon | --sysco | --sysc | --sys | --sy) 1097 ac_prev=sysconfdir ;; 1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1100 sysconfdir=$ac_optarg ;; 1101 1102 -target | --target | --targe | --targ | --tar | --ta | --t) 1103 ac_prev=target_alias ;; 1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1105 target_alias=$ac_optarg ;; 1106 1107 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1108 verbose=yes ;; 1109 1110 -version | --version | --versio | --versi | --vers | -V) 1111 ac_init_version=: ;; 1112 1113 -with-* | --with-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error $? "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=\$ac_optarg ;; 1128 1129 -without-* | --without-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error $? "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138"with_$ac_useropt" 1139"*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=no ;; 1144 1145 --x) 1146 # Obsolete; use --with-x. 1147 with_x=yes ;; 1148 1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1150 | --x-incl | --x-inc | --x-in | --x-i) 1151 ac_prev=x_includes ;; 1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1154 x_includes=$ac_optarg ;; 1155 1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1158 ac_prev=x_libraries ;; 1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1161 x_libraries=$ac_optarg ;; 1162 1163 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1164Try \`$0 --help' for more information" 1165 ;; 1166 1167 *=*) 1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1169 # Reject names that are not valid shell variable names. 1170 case $ac_envvar in #( 1171 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1173 esac 1174 eval $ac_envvar=\$ac_optarg 1175 export $ac_envvar ;; 1176 1177 *) 1178 # FIXME: should be removed in autoconf 3.0. 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1183 ;; 1184 1185 esac 1186done 1187 1188if test -n "$ac_prev"; then 1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1190 as_fn_error $? "missing argument to $ac_option" 1191fi 1192 1193if test -n "$ac_unrecognized_opts"; then 1194 case $enable_option_checking in 1195 no) ;; 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1198 esac 1199fi 1200 1201# Check all directory arguments for consistency. 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206do 1207 eval ac_val=\$$ac_var 1208 # Remove trailing slashes. 1209 case $ac_val in 1210 */ ) 1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1212 eval $ac_var=\$ac_val;; 1213 esac 1214 # Be sure to have absolute directory names. 1215 case $ac_val in 1216 [\\/$]* | ?:[\\/]* ) continue;; 1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1218 esac 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1220done 1221 1222# There might be people who depend on the old broken behavior: `$host' 1223# used to hold the argument of --host etc. 1224# FIXME: To remove some day. 1225build=$build_alias 1226host=$host_alias 1227target=$target_alias 1228 1229# FIXME: To remove some day. 1230if test "x$host_alias" != x; then 1231 if test "x$build_alias" = x; then 1232 cross_compiling=maybe 1233 elif test "x$build_alias" != "x$host_alias"; then 1234 cross_compiling=yes 1235 fi 1236fi 1237 1238ac_tool_prefix= 1239test -n "$host_alias" && ac_tool_prefix=$host_alias- 1240 1241test "$silent" = yes && exec 6>/dev/null 1242 1243 1244ac_pwd=`pwd` && test -n "$ac_pwd" && 1245ac_ls_di=`ls -di .` && 1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1247 as_fn_error $? "working directory cannot be determined" 1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1249 as_fn_error $? "pwd does not report name of working directory" 1250 1251 1252# Find the source files, if location was not specified. 1253if test -z "$srcdir"; then 1254 ac_srcdir_defaulted=yes 1255 # Try the directory containing this script, then the parent directory. 1256 ac_confdir=`$as_dirname -- "$as_myself" || 1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1258 X"$as_myself" : 'X\(//\)[^/]' \| \ 1259 X"$as_myself" : 'X\(//\)$' \| \ 1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1261$as_echo X"$as_myself" | 1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\/\)[^/].*/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)$/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\).*/{ 1275 s//\1/ 1276 q 1277 } 1278 s/.*/./; q'` 1279 srcdir=$ac_confdir 1280 if test ! -r "$srcdir/$ac_unique_file"; then 1281 srcdir=.. 1282 fi 1283else 1284 ac_srcdir_defaulted=no 1285fi 1286if test ! -r "$srcdir/$ac_unique_file"; then 1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1289fi 1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1291ac_abs_confdir=`( 1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1293 pwd)` 1294# When building in place, set srcdir=. 1295if test "$ac_abs_confdir" = "$ac_pwd"; then 1296 srcdir=. 1297fi 1298# Remove unnecessary trailing slashes from srcdir. 1299# Double slashes in file names in object file debugging info 1300# mess up M-x gdb in Emacs. 1301case $srcdir in 1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1303esac 1304for ac_var in $ac_precious_vars; do 1305 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_env_${ac_var}_value=\$${ac_var} 1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1309done 1310 1311# 1312# Report the --help message. 1313# 1314if test "$ac_init_help" = "long"; then 1315 # Omit some internal or obsolete options to make the list less imposing. 1316 # This message is too long to be a string in the A/UX 3.1 sh. 1317 cat <<_ACEOF 1318\`configure' configures mkfontscale 1.1.2 to adapt to many kinds of systems. 1319 1320Usage: $0 [OPTION]... [VAR=VALUE]... 1321 1322To assign environment variables (e.g., CC, CFLAGS...), specify them as 1323VAR=VALUE. See below for descriptions of some of the useful variables. 1324 1325Defaults for the options are specified in brackets. 1326 1327Configuration: 1328 -h, --help display this help and exit 1329 --help=short display options specific to this package 1330 --help=recursive display the short help of all the included packages 1331 -V, --version display version information and exit 1332 -q, --quiet, --silent do not print \`checking ...' messages 1333 --cache-file=FILE cache test results in FILE [disabled] 1334 -C, --config-cache alias for \`--cache-file=config.cache' 1335 -n, --no-create do not create output files 1336 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1337 1338Installation directories: 1339 --prefix=PREFIX install architecture-independent files in PREFIX 1340 [$ac_default_prefix] 1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1342 [PREFIX] 1343 1344By default, \`make install' will install all the files in 1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1346an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1347for instance \`--prefix=\$HOME'. 1348 1349For better control, use the options below. 1350 1351Fine tuning of the installation directories: 1352 --bindir=DIR user executables [EPREFIX/bin] 1353 --sbindir=DIR system admin executables [EPREFIX/sbin] 1354 --libexecdir=DIR program executables [EPREFIX/libexec] 1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1358 --libdir=DIR object code libraries [EPREFIX/lib] 1359 --includedir=DIR C header files [PREFIX/include] 1360 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1363 --infodir=DIR info documentation [DATAROOTDIR/info] 1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1365 --mandir=DIR man documentation [DATAROOTDIR/man] 1366 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontscale] 1367 --htmldir=DIR html documentation [DOCDIR] 1368 --dvidir=DIR dvi documentation [DOCDIR] 1369 --pdfdir=DIR pdf documentation [DOCDIR] 1370 --psdir=DIR ps documentation [DOCDIR] 1371_ACEOF 1372 1373 cat <<\_ACEOF 1374 1375Program names: 1376 --program-prefix=PREFIX prepend PREFIX to installed program names 1377 --program-suffix=SUFFIX append SUFFIX to installed program names 1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1379 1380System types: 1381 --build=BUILD configure for building on BUILD [guessed] 1382 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1383_ACEOF 1384fi 1385 1386if test -n "$ac_init_help"; then 1387 case $ac_init_help in 1388 short | recursive ) echo "Configuration of mkfontscale 1.1.2:";; 1389 esac 1390 cat <<\_ACEOF 1391 1392Optional Features: 1393 --disable-option-checking ignore unrecognized --enable/--with options 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1396 --enable-dependency-tracking 1397 do not reject slow dependency extractors 1398 --disable-dependency-tracking 1399 speeds up one-time build 1400 --enable-silent-rules less verbose build output (undo: "make V=1") 1401 --disable-silent-rules verbose build output (undo: "make V=0") 1402 --disable-selective-werror 1403 Turn off selective compiler errors. (default: 1404 enabled) 1405 --enable-strict-compilation 1406 Enable all warnings from compiler and make them 1407 errors (default: disabled) 1408 1409Optional Packages: 1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1412 --with-bzip2 Support bzip2 compressed bitmap fonts 1413 --with-lint Use a lint-style source code checker (default: 1414 disabled) 1415 1416Some influential environment variables: 1417 CC C compiler command 1418 CFLAGS C compiler flags 1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1420 nonstandard directory <lib dir> 1421 LIBS libraries to pass to the linker, e.g. -l<library> 1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1423 you have headers in a nonstandard directory <include dir> 1424 CPP C preprocessor 1425 PKG_CONFIG path to pkg-config utility 1426 MKFONTSCALE_CFLAGS 1427 C compiler flags for MKFONTSCALE, overriding pkg-config 1428 MKFONTSCALE_LIBS 1429 linker flags for MKFONTSCALE, overriding pkg-config 1430 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1431 X11_LIBS linker flags for X11, overriding pkg-config 1432 LINT Path to a lint-style command 1433 LINT_FLAGS Flags for the lint-style command 1434 1435Use these variables to override the choices made by `configure' or to help 1436it to find libraries and programs with nonstandard names/locations. 1437 1438Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1439_ACEOF 1440ac_status=$? 1441fi 1442 1443if test "$ac_init_help" = "recursive"; then 1444 # If there are subdirs, report their specific --help. 1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1446 test -d "$ac_dir" || 1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1448 continue 1449 ac_builddir=. 1450 1451case "$ac_dir" in 1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1453*) 1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1455 # A ".." for each directory in $ac_dir_suffix. 1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1457 case $ac_top_builddir_sub in 1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1460 esac ;; 1461esac 1462ac_abs_top_builddir=$ac_pwd 1463ac_abs_builddir=$ac_pwd$ac_dir_suffix 1464# for backward compatibility: 1465ac_top_builddir=$ac_top_build_prefix 1466 1467case $srcdir in 1468 .) # We are building in place. 1469 ac_srcdir=. 1470 ac_top_srcdir=$ac_top_builddir_sub 1471 ac_abs_top_srcdir=$ac_pwd ;; 1472 [\\/]* | ?:[\\/]* ) # Absolute name. 1473 ac_srcdir=$srcdir$ac_dir_suffix; 1474 ac_top_srcdir=$srcdir 1475 ac_abs_top_srcdir=$srcdir ;; 1476 *) # Relative name. 1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1478 ac_top_srcdir=$ac_top_build_prefix$srcdir 1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1480esac 1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1482 1483 cd "$ac_dir" || { ac_status=$?; continue; } 1484 # Check for guested configure. 1485 if test -f "$ac_srcdir/configure.gnu"; then 1486 echo && 1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1488 elif test -f "$ac_srcdir/configure"; then 1489 echo && 1490 $SHELL "$ac_srcdir/configure" --help=recursive 1491 else 1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1493 fi || ac_status=$? 1494 cd "$ac_pwd" || { ac_status=$?; break; } 1495 done 1496fi 1497 1498test -n "$ac_init_help" && exit $ac_status 1499if $ac_init_version; then 1500 cat <<\_ACEOF 1501mkfontscale configure 1.1.2 1502generated by GNU Autoconf 2.69 1503 1504Copyright (C) 2012 Free Software Foundation, Inc. 1505This configure script is free software; the Free Software Foundation 1506gives unlimited permission to copy, distribute and modify it. 1507_ACEOF 1508 exit 1509fi 1510 1511## ------------------------ ## 1512## Autoconf initialization. ## 1513## ------------------------ ## 1514 1515# ac_fn_c_try_compile LINENO 1516# -------------------------- 1517# Try to compile conftest.$ac_ext, and return whether this succeeded. 1518ac_fn_c_try_compile () 1519{ 1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1521 rm -f conftest.$ac_objext 1522 if { { ac_try="$ac_compile" 1523case "(($ac_try" in 1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1525 *) ac_try_echo=$ac_try;; 1526esac 1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1528$as_echo "$ac_try_echo"; } >&5 1529 (eval "$ac_compile") 2>conftest.err 1530 ac_status=$? 1531 if test -s conftest.err; then 1532 grep -v '^ *+' conftest.err >conftest.er1 1533 cat conftest.er1 >&5 1534 mv -f conftest.er1 conftest.err 1535 fi 1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1537 test $ac_status = 0; } && { 1538 test -z "$ac_c_werror_flag" || 1539 test ! -s conftest.err 1540 } && test -s conftest.$ac_objext; then : 1541 ac_retval=0 1542else 1543 $as_echo "$as_me: failed program was:" >&5 1544sed 's/^/| /' conftest.$ac_ext >&5 1545 1546 ac_retval=1 1547fi 1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1549 as_fn_set_status $ac_retval 1550 1551} # ac_fn_c_try_compile 1552 1553# ac_fn_c_try_cpp LINENO 1554# ---------------------- 1555# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1556ac_fn_c_try_cpp () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 if { { ac_try="$ac_cpp conftest.$ac_ext" 1560case "(($ac_try" in 1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1562 *) ac_try_echo=$ac_try;; 1563esac 1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1565$as_echo "$ac_try_echo"; } >&5 1566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1567 ac_status=$? 1568 if test -s conftest.err; then 1569 grep -v '^ *+' conftest.err >conftest.er1 1570 cat conftest.er1 >&5 1571 mv -f conftest.er1 conftest.err 1572 fi 1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1574 test $ac_status = 0; } > conftest.i && { 1575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1576 test ! -s conftest.err 1577 }; then : 1578 ac_retval=0 1579else 1580 $as_echo "$as_me: failed program was:" >&5 1581sed 's/^/| /' conftest.$ac_ext >&5 1582 1583 ac_retval=1 1584fi 1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1586 as_fn_set_status $ac_retval 1587 1588} # ac_fn_c_try_cpp 1589 1590# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1591# ------------------------------------------------------- 1592# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1593# the include files in INCLUDES and setting the cache variable VAR 1594# accordingly. 1595ac_fn_c_check_header_mongrel () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 if eval \${$3+:} false; then : 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1600$as_echo_n "checking for $2... " >&6; } 1601if eval \${$3+:} false; then : 1602 $as_echo_n "(cached) " >&6 1603fi 1604eval ac_res=\$$3 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1606$as_echo "$ac_res" >&6; } 1607else 1608 # Is the header compilable? 1609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1610$as_echo_n "checking $2 usability... " >&6; } 1611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1612/* end confdefs.h. */ 1613$4 1614#include <$2> 1615_ACEOF 1616if ac_fn_c_try_compile "$LINENO"; then : 1617 ac_header_compiler=yes 1618else 1619 ac_header_compiler=no 1620fi 1621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1623$as_echo "$ac_header_compiler" >&6; } 1624 1625# Is the header present? 1626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1627$as_echo_n "checking $2 presence... " >&6; } 1628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1629/* end confdefs.h. */ 1630#include <$2> 1631_ACEOF 1632if ac_fn_c_try_cpp "$LINENO"; then : 1633 ac_header_preproc=yes 1634else 1635 ac_header_preproc=no 1636fi 1637rm -f conftest.err conftest.i conftest.$ac_ext 1638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1639$as_echo "$ac_header_preproc" >&6; } 1640 1641# So? What about this header? 1642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1643 yes:no: ) 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1645$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1647$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1648 ;; 1649 no:yes:* ) 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1651$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1653$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1655$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1657$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1659$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1660( $as_echo "## ---------------------------------------------------------------------- ## 1661## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1662## ---------------------------------------------------------------------- ##" 1663 ) | sed "s/^/$as_me: WARNING: /" >&2 1664 ;; 1665esac 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667$as_echo_n "checking for $2... " >&6; } 1668if eval \${$3+:} false; then : 1669 $as_echo_n "(cached) " >&6 1670else 1671 eval "$3=\$ac_header_compiler" 1672fi 1673eval ac_res=\$$3 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1675$as_echo "$ac_res" >&6; } 1676fi 1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1678 1679} # ac_fn_c_check_header_mongrel 1680 1681# ac_fn_c_try_run LINENO 1682# ---------------------- 1683# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1684# that executables *can* be run. 1685ac_fn_c_try_run () 1686{ 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 if { { ac_try="$ac_link" 1689case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_link") 2>&5 1696 ac_status=$? 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1699 { { case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_try") 2>&5 1706 ac_status=$? 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; }; }; then : 1709 ac_retval=0 1710else 1711 $as_echo "$as_me: program exited with status $ac_status" >&5 1712 $as_echo "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=$ac_status 1716fi 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_run 1722 1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1724# ------------------------------------------------------- 1725# Tests whether HEADER exists and can be compiled using the include files in 1726# INCLUDES, setting the cache variable VAR accordingly. 1727ac_fn_c_check_header_compile () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731$as_echo_n "checking for $2... " >&6; } 1732if eval \${$3+:} false; then : 1733 $as_echo_n "(cached) " >&6 1734else 1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_compile "$LINENO"; then : 1741 eval "$3=yes" 1742else 1743 eval "$3=no" 1744fi 1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1746fi 1747eval ac_res=\$$3 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1749$as_echo "$ac_res" >&6; } 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 1752} # ac_fn_c_check_header_compile 1753 1754# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1755# --------------------------------------------- 1756# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1757# accordingly. 1758ac_fn_c_check_decl () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 as_decl_name=`echo $2|sed 's/ *(.*//'` 1762 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1764$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1765if eval \${$3+:} false; then : 1766 $as_echo_n "(cached) " >&6 1767else 1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770$4 1771int 1772main () 1773{ 1774#ifndef $as_decl_name 1775#ifdef __cplusplus 1776 (void) $as_decl_use; 1777#else 1778 (void) $as_decl_name; 1779#endif 1780#endif 1781 1782 ; 1783 return 0; 1784} 1785_ACEOF 1786if ac_fn_c_try_compile "$LINENO"; then : 1787 eval "$3=yes" 1788else 1789 eval "$3=no" 1790fi 1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1792fi 1793eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795$as_echo "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_decl 1799 1800# ac_fn_c_try_link LINENO 1801# ----------------------- 1802# Try to link conftest.$ac_ext, and return whether this succeeded. 1803ac_fn_c_try_link () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 rm -f conftest.$ac_objext conftest$ac_exeext 1807 if { { ac_try="$ac_link" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_link") 2>conftest.err 1815 ac_status=$? 1816 if test -s conftest.err; then 1817 grep -v '^ *+' conftest.err >conftest.er1 1818 cat conftest.er1 >&5 1819 mv -f conftest.er1 conftest.err 1820 fi 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { 1823 test -z "$ac_c_werror_flag" || 1824 test ! -s conftest.err 1825 } && test -s conftest$ac_exeext && { 1826 test "$cross_compiling" = yes || 1827 test -x conftest$ac_exeext 1828 }; then : 1829 ac_retval=0 1830else 1831 $as_echo "$as_me: failed program was:" >&5 1832sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 ac_retval=1 1835fi 1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1838 # interfere with the next link command; also delete a directory that is 1839 # left behind by Apple's compiler. We do this before executing the actions. 1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 as_fn_set_status $ac_retval 1843 1844} # ac_fn_c_try_link 1845cat >config.log <<_ACEOF 1846This file contains any messages produced by compilers while 1847running configure, to aid debugging if configure makes a mistake. 1848 1849It was created by mkfontscale $as_me 1.1.2, which was 1850generated by GNU Autoconf 2.69. Invocation command line was 1851 1852 $ $0 $@ 1853 1854_ACEOF 1855exec 5>>config.log 1856{ 1857cat <<_ASUNAME 1858## --------- ## 1859## Platform. ## 1860## --------- ## 1861 1862hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1863uname -m = `(uname -m) 2>/dev/null || echo unknown` 1864uname -r = `(uname -r) 2>/dev/null || echo unknown` 1865uname -s = `(uname -s) 2>/dev/null || echo unknown` 1866uname -v = `(uname -v) 2>/dev/null || echo unknown` 1867 1868/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1869/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1870 1871/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1872/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1873/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1874/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1875/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1876/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1877/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1878 1879_ASUNAME 1880 1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1882for as_dir in $PATH 1883do 1884 IFS=$as_save_IFS 1885 test -z "$as_dir" && as_dir=. 1886 $as_echo "PATH: $as_dir" 1887 done 1888IFS=$as_save_IFS 1889 1890} >&5 1891 1892cat >&5 <<_ACEOF 1893 1894 1895## ----------- ## 1896## Core tests. ## 1897## ----------- ## 1898 1899_ACEOF 1900 1901 1902# Keep a trace of the command line. 1903# Strip out --no-create and --no-recursion so they do not pile up. 1904# Strip out --silent because we don't want to record it for future runs. 1905# Also quote any args containing shell meta-characters. 1906# Make two passes to allow for proper duplicate-argument suppression. 1907ac_configure_args= 1908ac_configure_args0= 1909ac_configure_args1= 1910ac_must_keep_next=false 1911for ac_pass in 1 2 1912do 1913 for ac_arg 1914 do 1915 case $ac_arg in 1916 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1918 | -silent | --silent | --silen | --sile | --sil) 1919 continue ;; 1920 *\'*) 1921 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1922 esac 1923 case $ac_pass in 1924 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1925 2) 1926 as_fn_append ac_configure_args1 " '$ac_arg'" 1927 if test $ac_must_keep_next = true; then 1928 ac_must_keep_next=false # Got value, back to normal. 1929 else 1930 case $ac_arg in 1931 *=* | --config-cache | -C | -disable-* | --disable-* \ 1932 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1933 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1934 | -with-* | --with-* | -without-* | --without-* | --x) 1935 case "$ac_configure_args0 " in 1936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1937 esac 1938 ;; 1939 -* ) ac_must_keep_next=true ;; 1940 esac 1941 fi 1942 as_fn_append ac_configure_args " '$ac_arg'" 1943 ;; 1944 esac 1945 done 1946done 1947{ ac_configure_args0=; unset ac_configure_args0;} 1948{ ac_configure_args1=; unset ac_configure_args1;} 1949 1950# When interrupted or exit'd, cleanup temporary files, and complete 1951# config.log. We remove comments because anyway the quotes in there 1952# would cause problems or look ugly. 1953# WARNING: Use '\'' to represent an apostrophe within the trap. 1954# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1955trap 'exit_status=$? 1956 # Save into config.log some information that might help in debugging. 1957 { 1958 echo 1959 1960 $as_echo "## ---------------- ## 1961## Cache variables. ## 1962## ---------------- ##" 1963 echo 1964 # The following way of writing the cache mishandles newlines in values, 1965( 1966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1967 eval ac_val=\$$ac_var 1968 case $ac_val in #( 1969 *${as_nl}*) 1970 case $ac_var in #( 1971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1972$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1973 esac 1974 case $ac_var in #( 1975 _ | IFS | as_nl) ;; #( 1976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1977 *) { eval $ac_var=; unset $ac_var;} ;; 1978 esac ;; 1979 esac 1980 done 1981 (set) 2>&1 | 1982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1983 *${as_nl}ac_space=\ *) 1984 sed -n \ 1985 "s/'\''/'\''\\\\'\'''\''/g; 1986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1987 ;; #( 1988 *) 1989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1990 ;; 1991 esac | 1992 sort 1993) 1994 echo 1995 1996 $as_echo "## ----------------- ## 1997## Output variables. ## 1998## ----------------- ##" 1999 echo 2000 for ac_var in $ac_subst_vars 2001 do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in 2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2005 esac 2006 $as_echo "$ac_var='\''$ac_val'\''" 2007 done | sort 2008 echo 2009 2010 if test -n "$ac_subst_files"; then 2011 $as_echo "## ------------------- ## 2012## File substitutions. ## 2013## ------------------- ##" 2014 echo 2015 for ac_var in $ac_subst_files 2016 do 2017 eval ac_val=\$$ac_var 2018 case $ac_val in 2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2020 esac 2021 $as_echo "$ac_var='\''$ac_val'\''" 2022 done | sort 2023 echo 2024 fi 2025 2026 if test -s confdefs.h; then 2027 $as_echo "## ----------- ## 2028## confdefs.h. ## 2029## ----------- ##" 2030 echo 2031 cat confdefs.h 2032 echo 2033 fi 2034 test "$ac_signal" != 0 && 2035 $as_echo "$as_me: caught signal $ac_signal" 2036 $as_echo "$as_me: exit $exit_status" 2037 } >&5 2038 rm -f core *.core core.conftest.* && 2039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2040 exit $exit_status 2041' 0 2042for ac_signal in 1 2 13 15; do 2043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2044done 2045ac_signal=0 2046 2047# confdefs.h avoids OS command line length limits that DEFS can exceed. 2048rm -f -r conftest* confdefs.h 2049 2050$as_echo "/* confdefs.h */" > confdefs.h 2051 2052# Predefined preprocessor variables. 2053 2054cat >>confdefs.h <<_ACEOF 2055#define PACKAGE_NAME "$PACKAGE_NAME" 2056_ACEOF 2057 2058cat >>confdefs.h <<_ACEOF 2059#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2060_ACEOF 2061 2062cat >>confdefs.h <<_ACEOF 2063#define PACKAGE_VERSION "$PACKAGE_VERSION" 2064_ACEOF 2065 2066cat >>confdefs.h <<_ACEOF 2067#define PACKAGE_STRING "$PACKAGE_STRING" 2068_ACEOF 2069 2070cat >>confdefs.h <<_ACEOF 2071#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2072_ACEOF 2073 2074cat >>confdefs.h <<_ACEOF 2075#define PACKAGE_URL "$PACKAGE_URL" 2076_ACEOF 2077 2078 2079# Let the site file select an alternate cache file if it wants to. 2080# Prefer an explicitly selected file to automatically selected ones. 2081ac_site_file1=NONE 2082ac_site_file2=NONE 2083if test -n "$CONFIG_SITE"; then 2084 # We do not want a PATH search for config.site. 2085 case $CONFIG_SITE in #(( 2086 -*) ac_site_file1=./$CONFIG_SITE;; 2087 */*) ac_site_file1=$CONFIG_SITE;; 2088 *) ac_site_file1=./$CONFIG_SITE;; 2089 esac 2090elif test "x$prefix" != xNONE; then 2091 ac_site_file1=$prefix/share/config.site 2092 ac_site_file2=$prefix/etc/config.site 2093else 2094 ac_site_file1=$ac_default_prefix/share/config.site 2095 ac_site_file2=$ac_default_prefix/etc/config.site 2096fi 2097for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2098do 2099 test "x$ac_site_file" = xNONE && continue 2100 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2102$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2103 sed 's/^/| /' "$ac_site_file" >&5 2104 . "$ac_site_file" \ 2105 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2107as_fn_error $? "failed to load site script $ac_site_file 2108See \`config.log' for more details" "$LINENO" 5; } 2109 fi 2110done 2111 2112if test -r "$cache_file"; then 2113 # Some versions of bash will fail to source /dev/null (special files 2114 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2115 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2117$as_echo "$as_me: loading cache $cache_file" >&6;} 2118 case $cache_file in 2119 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2120 *) . "./$cache_file";; 2121 esac 2122 fi 2123else 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2125$as_echo "$as_me: creating cache $cache_file" >&6;} 2126 >$cache_file 2127fi 2128 2129# Check that the precious variables saved in the cache have kept the same 2130# value. 2131ac_cache_corrupted=false 2132for ac_var in $ac_precious_vars; do 2133 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2134 eval ac_new_set=\$ac_env_${ac_var}_set 2135 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2136 eval ac_new_val=\$ac_env_${ac_var}_value 2137 case $ac_old_set,$ac_new_set in 2138 set,) 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2140$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2141 ac_cache_corrupted=: ;; 2142 ,set) 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2144$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2145 ac_cache_corrupted=: ;; 2146 ,);; 2147 *) 2148 if test "x$ac_old_val" != "x$ac_new_val"; then 2149 # differences in whitespace do not lead to failure. 2150 ac_old_val_w=`echo x $ac_old_val` 2151 ac_new_val_w=`echo x $ac_new_val` 2152 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2154$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2155 ac_cache_corrupted=: 2156 else 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2158$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2159 eval $ac_var=\$ac_old_val 2160 fi 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2162$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2164$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2165 fi;; 2166 esac 2167 # Pass precious variables to config.status. 2168 if test "$ac_new_set" = set; then 2169 case $ac_new_val in 2170 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2171 *) ac_arg=$ac_var=$ac_new_val ;; 2172 esac 2173 case " $ac_configure_args " in 2174 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2175 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2176 esac 2177 fi 2178done 2179if $ac_cache_corrupted; then 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2183$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2184 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2185fi 2186## -------------------- ## 2187## Main body of script. ## 2188## -------------------- ## 2189 2190ac_ext=c 2191ac_cpp='$CPP $CPPFLAGS' 2192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2194ac_compiler_gnu=$ac_cv_c_compiler_gnu 2195 2196 2197 2198ac_config_headers="$ac_config_headers config.h" 2199 2200ac_aux_dir= 2201for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2202 if test -f "$ac_dir/install-sh"; then 2203 ac_aux_dir=$ac_dir 2204 ac_install_sh="$ac_aux_dir/install-sh -c" 2205 break 2206 elif test -f "$ac_dir/install.sh"; then 2207 ac_aux_dir=$ac_dir 2208 ac_install_sh="$ac_aux_dir/install.sh -c" 2209 break 2210 elif test -f "$ac_dir/shtool"; then 2211 ac_aux_dir=$ac_dir 2212 ac_install_sh="$ac_aux_dir/shtool install -c" 2213 break 2214 fi 2215done 2216if test -z "$ac_aux_dir"; then 2217 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2218fi 2219 2220# These three variables are undocumented and unsupported, 2221# and are intended to be withdrawn in a future Autoconf release. 2222# They can cause serious problems if a builder's source tree is in a directory 2223# whose full name contains unusual characters. 2224ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2225ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2226ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2227 2228 2229# Expand $ac_aux_dir to an absolute path. 2230am_aux_dir=`cd "$ac_aux_dir" && pwd` 2231 2232ac_ext=c 2233ac_cpp='$CPP $CPPFLAGS' 2234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2236ac_compiler_gnu=$ac_cv_c_compiler_gnu 2237if test -n "$ac_tool_prefix"; then 2238 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2239set dummy ${ac_tool_prefix}gcc; ac_word=$2 2240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2241$as_echo_n "checking for $ac_word... " >&6; } 2242if ${ac_cv_prog_CC+:} false; then : 2243 $as_echo_n "(cached) " >&6 2244else 2245 if test -n "$CC"; then 2246 ac_cv_prog_CC="$CC" # Let the user override the test. 2247else 2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2249for as_dir in $PATH 2250do 2251 IFS=$as_save_IFS 2252 test -z "$as_dir" && as_dir=. 2253 for ac_exec_ext in '' $ac_executable_extensions; do 2254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2255 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2257 break 2 2258 fi 2259done 2260 done 2261IFS=$as_save_IFS 2262 2263fi 2264fi 2265CC=$ac_cv_prog_CC 2266if test -n "$CC"; then 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2268$as_echo "$CC" >&6; } 2269else 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2271$as_echo "no" >&6; } 2272fi 2273 2274 2275fi 2276if test -z "$ac_cv_prog_CC"; then 2277 ac_ct_CC=$CC 2278 # Extract the first word of "gcc", so it can be a program name with args. 2279set dummy gcc; ac_word=$2 2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2281$as_echo_n "checking for $ac_word... " >&6; } 2282if ${ac_cv_prog_ac_ct_CC+:} false; then : 2283 $as_echo_n "(cached) " >&6 2284else 2285 if test -n "$ac_ct_CC"; then 2286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2287else 2288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2289for as_dir in $PATH 2290do 2291 IFS=$as_save_IFS 2292 test -z "$as_dir" && as_dir=. 2293 for ac_exec_ext in '' $ac_executable_extensions; do 2294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2295 ac_cv_prog_ac_ct_CC="gcc" 2296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2297 break 2 2298 fi 2299done 2300 done 2301IFS=$as_save_IFS 2302 2303fi 2304fi 2305ac_ct_CC=$ac_cv_prog_ac_ct_CC 2306if test -n "$ac_ct_CC"; then 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2308$as_echo "$ac_ct_CC" >&6; } 2309else 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2311$as_echo "no" >&6; } 2312fi 2313 2314 if test "x$ac_ct_CC" = x; then 2315 CC="" 2316 else 2317 case $cross_compiling:$ac_tool_warned in 2318yes:) 2319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2321ac_tool_warned=yes ;; 2322esac 2323 CC=$ac_ct_CC 2324 fi 2325else 2326 CC="$ac_cv_prog_CC" 2327fi 2328 2329if test -z "$CC"; then 2330 if test -n "$ac_tool_prefix"; then 2331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2332set dummy ${ac_tool_prefix}cc; ac_word=$2 2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2334$as_echo_n "checking for $ac_word... " >&6; } 2335if ${ac_cv_prog_CC+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 if test -n "$CC"; then 2339 ac_cv_prog_CC="$CC" # Let the user override the test. 2340else 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2348 ac_cv_prog_CC="${ac_tool_prefix}cc" 2349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2350 break 2 2351 fi 2352done 2353 done 2354IFS=$as_save_IFS 2355 2356fi 2357fi 2358CC=$ac_cv_prog_CC 2359if test -n "$CC"; then 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2361$as_echo "$CC" >&6; } 2362else 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2364$as_echo "no" >&6; } 2365fi 2366 2367 2368 fi 2369fi 2370if test -z "$CC"; then 2371 # Extract the first word of "cc", so it can be a program name with args. 2372set dummy cc; ac_word=$2 2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2374$as_echo_n "checking for $ac_word... " >&6; } 2375if ${ac_cv_prog_CC+:} false; then : 2376 $as_echo_n "(cached) " >&6 2377else 2378 if test -n "$CC"; then 2379 ac_cv_prog_CC="$CC" # Let the user override the test. 2380else 2381 ac_prog_rejected=no 2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH 2384do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 for ac_exec_ext in '' $ac_executable_extensions; do 2388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2390 ac_prog_rejected=yes 2391 continue 2392 fi 2393 ac_cv_prog_CC="cc" 2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2395 break 2 2396 fi 2397done 2398 done 2399IFS=$as_save_IFS 2400 2401if test $ac_prog_rejected = yes; then 2402 # We found a bogon in the path, so make sure we never use it. 2403 set dummy $ac_cv_prog_CC 2404 shift 2405 if test $# != 0; then 2406 # We chose a different compiler from the bogus one. 2407 # However, it has the same basename, so the bogon will be chosen 2408 # first if we set CC to just the basename; use the full file name. 2409 shift 2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2411 fi 2412fi 2413fi 2414fi 2415CC=$ac_cv_prog_CC 2416if test -n "$CC"; then 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2418$as_echo "$CC" >&6; } 2419else 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2421$as_echo "no" >&6; } 2422fi 2423 2424 2425fi 2426if test -z "$CC"; then 2427 if test -n "$ac_tool_prefix"; then 2428 for ac_prog in cl.exe 2429 do 2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2431set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2433$as_echo_n "checking for $ac_word... " >&6; } 2434if ${ac_cv_prog_CC+:} false; then : 2435 $as_echo_n "(cached) " >&6 2436else 2437 if test -n "$CC"; then 2438 ac_cv_prog_CC="$CC" # Let the user override the test. 2439else 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452 done 2453IFS=$as_save_IFS 2454 2455fi 2456fi 2457CC=$ac_cv_prog_CC 2458if test -n "$CC"; then 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2460$as_echo "$CC" >&6; } 2461else 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2463$as_echo "no" >&6; } 2464fi 2465 2466 2467 test -n "$CC" && break 2468 done 2469fi 2470if test -z "$CC"; then 2471 ac_ct_CC=$CC 2472 for ac_prog in cl.exe 2473do 2474 # Extract the first word of "$ac_prog", so it can be a program name with args. 2475set dummy $ac_prog; ac_word=$2 2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2477$as_echo_n "checking for $ac_word... " >&6; } 2478if ${ac_cv_prog_ac_ct_CC+:} false; then : 2479 $as_echo_n "(cached) " >&6 2480else 2481 if test -n "$ac_ct_CC"; then 2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2483else 2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485for as_dir in $PATH 2486do 2487 IFS=$as_save_IFS 2488 test -z "$as_dir" && as_dir=. 2489 for ac_exec_ext in '' $ac_executable_extensions; do 2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2491 ac_cv_prog_ac_ct_CC="$ac_prog" 2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2493 break 2 2494 fi 2495done 2496 done 2497IFS=$as_save_IFS 2498 2499fi 2500fi 2501ac_ct_CC=$ac_cv_prog_ac_ct_CC 2502if test -n "$ac_ct_CC"; then 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2504$as_echo "$ac_ct_CC" >&6; } 2505else 2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2507$as_echo "no" >&6; } 2508fi 2509 2510 2511 test -n "$ac_ct_CC" && break 2512done 2513 2514 if test "x$ac_ct_CC" = x; then 2515 CC="" 2516 else 2517 case $cross_compiling:$ac_tool_warned in 2518yes:) 2519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2521ac_tool_warned=yes ;; 2522esac 2523 CC=$ac_ct_CC 2524 fi 2525fi 2526 2527fi 2528 2529 2530test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2532as_fn_error $? "no acceptable C compiler found in \$PATH 2533See \`config.log' for more details" "$LINENO" 5; } 2534 2535# Provide some information about the compiler. 2536$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2537set X $ac_compile 2538ac_compiler=$2 2539for ac_option in --version -v -V -qversion; do 2540 { { ac_try="$ac_compiler $ac_option >&5" 2541case "(($ac_try" in 2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2543 *) ac_try_echo=$ac_try;; 2544esac 2545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2546$as_echo "$ac_try_echo"; } >&5 2547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2548 ac_status=$? 2549 if test -s conftest.err; then 2550 sed '10a\ 2551... rest of stderr output deleted ... 2552 10q' conftest.err >conftest.er1 2553 cat conftest.er1 >&5 2554 fi 2555 rm -f conftest.er1 conftest.err 2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2557 test $ac_status = 0; } 2558done 2559 2560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2561/* end confdefs.h. */ 2562 2563int 2564main () 2565{ 2566 2567 ; 2568 return 0; 2569} 2570_ACEOF 2571ac_clean_files_save=$ac_clean_files 2572ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2573# Try to create an executable without -o first, disregard a.out. 2574# It will help us diagnose broken compilers, and finding out an intuition 2575# of exeext. 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2577$as_echo_n "checking whether the C compiler works... " >&6; } 2578ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2579 2580# The possible output files: 2581ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2582 2583ac_rmfiles= 2584for ac_file in $ac_files 2585do 2586 case $ac_file in 2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2588 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2589 esac 2590done 2591rm -f $ac_rmfiles 2592 2593if { { ac_try="$ac_link_default" 2594case "(($ac_try" in 2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2596 *) ac_try_echo=$ac_try;; 2597esac 2598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2599$as_echo "$ac_try_echo"; } >&5 2600 (eval "$ac_link_default") 2>&5 2601 ac_status=$? 2602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2603 test $ac_status = 0; }; then : 2604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2605# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2606# in a Makefile. We should not override ac_cv_exeext if it was cached, 2607# so that the user can short-circuit this test for compilers unknown to 2608# Autoconf. 2609for ac_file in $ac_files '' 2610do 2611 test -f "$ac_file" || continue 2612 case $ac_file in 2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2614 ;; 2615 [ab].out ) 2616 # We found the default executable, but exeext='' is most 2617 # certainly right. 2618 break;; 2619 *.* ) 2620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2621 then :; else 2622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2623 fi 2624 # We set ac_cv_exeext here because the later test for it is not 2625 # safe: cross compilers may not add the suffix if given an `-o' 2626 # argument, so we may need to know it at that point already. 2627 # Even if this section looks crufty: it has the advantage of 2628 # actually working. 2629 break;; 2630 * ) 2631 break;; 2632 esac 2633done 2634test "$ac_cv_exeext" = no && ac_cv_exeext= 2635 2636else 2637 ac_file='' 2638fi 2639if test -z "$ac_file"; then : 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2641$as_echo "no" >&6; } 2642$as_echo "$as_me: failed program was:" >&5 2643sed 's/^/| /' conftest.$ac_ext >&5 2644 2645{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2647as_fn_error 77 "C compiler cannot create executables 2648See \`config.log' for more details" "$LINENO" 5; } 2649else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2651$as_echo "yes" >&6; } 2652fi 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2654$as_echo_n "checking for C compiler default output file name... " >&6; } 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2656$as_echo "$ac_file" >&6; } 2657ac_exeext=$ac_cv_exeext 2658 2659rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2660ac_clean_files=$ac_clean_files_save 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2662$as_echo_n "checking for suffix of executables... " >&6; } 2663if { { ac_try="$ac_link" 2664case "(($ac_try" in 2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2666 *) ac_try_echo=$ac_try;; 2667esac 2668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2669$as_echo "$ac_try_echo"; } >&5 2670 (eval "$ac_link") 2>&5 2671 ac_status=$? 2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2673 test $ac_status = 0; }; then : 2674 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2675# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2676# work properly (i.e., refer to `conftest.exe'), while it won't with 2677# `rm'. 2678for ac_file in conftest.exe conftest conftest.*; do 2679 test -f "$ac_file" || continue 2680 case $ac_file in 2681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2682 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2683 break;; 2684 * ) break;; 2685 esac 2686done 2687else 2688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2690as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2691See \`config.log' for more details" "$LINENO" 5; } 2692fi 2693rm -f conftest conftest$ac_cv_exeext 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2695$as_echo "$ac_cv_exeext" >&6; } 2696 2697rm -f conftest.$ac_ext 2698EXEEXT=$ac_cv_exeext 2699ac_exeext=$EXEEXT 2700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2701/* end confdefs.h. */ 2702#include <stdio.h> 2703int 2704main () 2705{ 2706FILE *f = fopen ("conftest.out", "w"); 2707 return ferror (f) || fclose (f) != 0; 2708 2709 ; 2710 return 0; 2711} 2712_ACEOF 2713ac_clean_files="$ac_clean_files conftest.out" 2714# Check that the compiler produces executables we can run. If not, either 2715# the compiler is broken, or we cross compile. 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2717$as_echo_n "checking whether we are cross compiling... " >&6; } 2718if test "$cross_compiling" != yes; then 2719 { { ac_try="$ac_link" 2720case "(($ac_try" in 2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2722 *) ac_try_echo=$ac_try;; 2723esac 2724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2725$as_echo "$ac_try_echo"; } >&5 2726 (eval "$ac_link") 2>&5 2727 ac_status=$? 2728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2729 test $ac_status = 0; } 2730 if { ac_try='./conftest$ac_cv_exeext' 2731 { { case "(($ac_try" in 2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2733 *) ac_try_echo=$ac_try;; 2734esac 2735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2736$as_echo "$ac_try_echo"; } >&5 2737 (eval "$ac_try") 2>&5 2738 ac_status=$? 2739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2740 test $ac_status = 0; }; }; then 2741 cross_compiling=no 2742 else 2743 if test "$cross_compiling" = maybe; then 2744 cross_compiling=yes 2745 else 2746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2748as_fn_error $? "cannot run C compiled programs. 2749If you meant to cross compile, use \`--host'. 2750See \`config.log' for more details" "$LINENO" 5; } 2751 fi 2752 fi 2753fi 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2755$as_echo "$cross_compiling" >&6; } 2756 2757rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2758ac_clean_files=$ac_clean_files_save 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2760$as_echo_n "checking for suffix of object files... " >&6; } 2761if ${ac_cv_objext+:} false; then : 2762 $as_echo_n "(cached) " >&6 2763else 2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2765/* end confdefs.h. */ 2766 2767int 2768main () 2769{ 2770 2771 ; 2772 return 0; 2773} 2774_ACEOF 2775rm -f conftest.o conftest.obj 2776if { { ac_try="$ac_compile" 2777case "(($ac_try" in 2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2779 *) ac_try_echo=$ac_try;; 2780esac 2781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2782$as_echo "$ac_try_echo"; } >&5 2783 (eval "$ac_compile") 2>&5 2784 ac_status=$? 2785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2786 test $ac_status = 0; }; then : 2787 for ac_file in conftest.o conftest.obj conftest.*; do 2788 test -f "$ac_file" || continue; 2789 case $ac_file in 2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2792 break;; 2793 esac 2794done 2795else 2796 $as_echo "$as_me: failed program was:" >&5 2797sed 's/^/| /' conftest.$ac_ext >&5 2798 2799{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2801as_fn_error $? "cannot compute suffix of object files: cannot compile 2802See \`config.log' for more details" "$LINENO" 5; } 2803fi 2804rm -f conftest.$ac_cv_objext conftest.$ac_ext 2805fi 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2807$as_echo "$ac_cv_objext" >&6; } 2808OBJEXT=$ac_cv_objext 2809ac_objext=$OBJEXT 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2811$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2812if ${ac_cv_c_compiler_gnu+:} false; then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2816/* end confdefs.h. */ 2817 2818int 2819main () 2820{ 2821#ifndef __GNUC__ 2822 choke me 2823#endif 2824 2825 ; 2826 return 0; 2827} 2828_ACEOF 2829if ac_fn_c_try_compile "$LINENO"; then : 2830 ac_compiler_gnu=yes 2831else 2832 ac_compiler_gnu=no 2833fi 2834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2835ac_cv_c_compiler_gnu=$ac_compiler_gnu 2836 2837fi 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2839$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2840if test $ac_compiler_gnu = yes; then 2841 GCC=yes 2842else 2843 GCC= 2844fi 2845ac_test_CFLAGS=${CFLAGS+set} 2846ac_save_CFLAGS=$CFLAGS 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2848$as_echo_n "checking whether $CC accepts -g... " >&6; } 2849if ${ac_cv_prog_cc_g+:} false; then : 2850 $as_echo_n "(cached) " >&6 2851else 2852 ac_save_c_werror_flag=$ac_c_werror_flag 2853 ac_c_werror_flag=yes 2854 ac_cv_prog_cc_g=no 2855 CFLAGS="-g" 2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2857/* end confdefs.h. */ 2858 2859int 2860main () 2861{ 2862 2863 ; 2864 return 0; 2865} 2866_ACEOF 2867if ac_fn_c_try_compile "$LINENO"; then : 2868 ac_cv_prog_cc_g=yes 2869else 2870 CFLAGS="" 2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2872/* end confdefs.h. */ 2873 2874int 2875main () 2876{ 2877 2878 ; 2879 return 0; 2880} 2881_ACEOF 2882if ac_fn_c_try_compile "$LINENO"; then : 2883 2884else 2885 ac_c_werror_flag=$ac_save_c_werror_flag 2886 CFLAGS="-g" 2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2888/* end confdefs.h. */ 2889 2890int 2891main () 2892{ 2893 2894 ; 2895 return 0; 2896} 2897_ACEOF 2898if ac_fn_c_try_compile "$LINENO"; then : 2899 ac_cv_prog_cc_g=yes 2900fi 2901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2902fi 2903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2904fi 2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2906 ac_c_werror_flag=$ac_save_c_werror_flag 2907fi 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2909$as_echo "$ac_cv_prog_cc_g" >&6; } 2910if test "$ac_test_CFLAGS" = set; then 2911 CFLAGS=$ac_save_CFLAGS 2912elif test $ac_cv_prog_cc_g = yes; then 2913 if test "$GCC" = yes; then 2914 CFLAGS="-g -O2" 2915 else 2916 CFLAGS="-g" 2917 fi 2918else 2919 if test "$GCC" = yes; then 2920 CFLAGS="-O2" 2921 else 2922 CFLAGS= 2923 fi 2924fi 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2926$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2927if ${ac_cv_prog_cc_c89+:} false; then : 2928 $as_echo_n "(cached) " >&6 2929else 2930 ac_cv_prog_cc_c89=no 2931ac_save_CC=$CC 2932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2933/* end confdefs.h. */ 2934#include <stdarg.h> 2935#include <stdio.h> 2936struct stat; 2937/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2938struct buf { int x; }; 2939FILE * (*rcsopen) (struct buf *, struct stat *, int); 2940static char *e (p, i) 2941 char **p; 2942 int i; 2943{ 2944 return p[i]; 2945} 2946static char *f (char * (*g) (char **, int), char **p, ...) 2947{ 2948 char *s; 2949 va_list v; 2950 va_start (v,p); 2951 s = g (p, va_arg (v,int)); 2952 va_end (v); 2953 return s; 2954} 2955 2956/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2957 function prototypes and stuff, but not '\xHH' hex character constants. 2958 These don't provoke an error unfortunately, instead are silently treated 2959 as 'x'. The following induces an error, until -std is added to get 2960 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2961 array size at least. It's necessary to write '\x00'==0 to get something 2962 that's true only with -std. */ 2963int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2964 2965/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2966 inside strings and character constants. */ 2967#define FOO(x) 'x' 2968int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2969 2970int test (int i, double x); 2971struct s1 {int (*f) (int a);}; 2972struct s2 {int (*f) (double a);}; 2973int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2974int argc; 2975char **argv; 2976int 2977main () 2978{ 2979return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2980 ; 2981 return 0; 2982} 2983_ACEOF 2984for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2985 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2986do 2987 CC="$ac_save_CC $ac_arg" 2988 if ac_fn_c_try_compile "$LINENO"; then : 2989 ac_cv_prog_cc_c89=$ac_arg 2990fi 2991rm -f core conftest.err conftest.$ac_objext 2992 test "x$ac_cv_prog_cc_c89" != "xno" && break 2993done 2994rm -f conftest.$ac_ext 2995CC=$ac_save_CC 2996 2997fi 2998# AC_CACHE_VAL 2999case "x$ac_cv_prog_cc_c89" in 3000 x) 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3002$as_echo "none needed" >&6; } ;; 3003 xno) 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3005$as_echo "unsupported" >&6; } ;; 3006 *) 3007 CC="$CC $ac_cv_prog_cc_c89" 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3009$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3010esac 3011if test "x$ac_cv_prog_cc_c89" != xno; then : 3012 3013fi 3014 3015ac_ext=c 3016ac_cpp='$CPP $CPPFLAGS' 3017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3019ac_compiler_gnu=$ac_cv_c_compiler_gnu 3020 3021ac_ext=c 3022ac_cpp='$CPP $CPPFLAGS' 3023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3025ac_compiler_gnu=$ac_cv_c_compiler_gnu 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3027$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3028if ${am_cv_prog_cc_c_o+:} false; then : 3029 $as_echo_n "(cached) " >&6 3030else 3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3032/* end confdefs.h. */ 3033 3034int 3035main () 3036{ 3037 3038 ; 3039 return 0; 3040} 3041_ACEOF 3042 # Make sure it works both with $CC and with simple cc. 3043 # Following AC_PROG_CC_C_O, we do the test twice because some 3044 # compilers refuse to overwrite an existing .o file with -o, 3045 # though they will create one. 3046 am_cv_prog_cc_c_o=yes 3047 for am_i in 1 2; do 3048 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3049 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3050 ac_status=$? 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); } \ 3053 && test -f conftest2.$ac_objext; then 3054 : OK 3055 else 3056 am_cv_prog_cc_c_o=no 3057 break 3058 fi 3059 done 3060 rm -f core conftest* 3061 unset am_i 3062fi 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3064$as_echo "$am_cv_prog_cc_c_o" >&6; } 3065if test "$am_cv_prog_cc_c_o" != yes; then 3066 # Losing compiler, so override with the script. 3067 # FIXME: It is wrong to rewrite CC. 3068 # But if we don't then we get into trouble of one sort or another. 3069 # A longer-term fix would be to have automake use am__CC in this case, 3070 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3071 CC="$am_aux_dir/compile $CC" 3072fi 3073ac_ext=c 3074ac_cpp='$CPP $CPPFLAGS' 3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3077ac_compiler_gnu=$ac_cv_c_compiler_gnu 3078 3079 3080 3081ac_ext=c 3082ac_cpp='$CPP $CPPFLAGS' 3083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3085ac_compiler_gnu=$ac_cv_c_compiler_gnu 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3087$as_echo_n "checking how to run the C preprocessor... " >&6; } 3088# On Suns, sometimes $CPP names a directory. 3089if test -n "$CPP" && test -d "$CPP"; then 3090 CPP= 3091fi 3092if test -z "$CPP"; then 3093 if ${ac_cv_prog_CPP+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 # Double quotes because CPP needs to be expanded 3097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3098 do 3099 ac_preproc_ok=false 3100for ac_c_preproc_warn_flag in '' yes 3101do 3102 # Use a header file that comes with gcc, so configuring glibc 3103 # with a fresh cross-compiler works. 3104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3105 # <limits.h> exists even on freestanding compilers. 3106 # On the NeXT, cc -E runs the code through the compiler's parser, 3107 # not just through cpp. "Syntax error" is here to catch this case. 3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3109/* end confdefs.h. */ 3110#ifdef __STDC__ 3111# include <limits.h> 3112#else 3113# include <assert.h> 3114#endif 3115 Syntax error 3116_ACEOF 3117if ac_fn_c_try_cpp "$LINENO"; then : 3118 3119else 3120 # Broken: fails on valid input. 3121continue 3122fi 3123rm -f conftest.err conftest.i conftest.$ac_ext 3124 3125 # OK, works on sane cases. Now check whether nonexistent headers 3126 # can be detected and how. 3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3128/* end confdefs.h. */ 3129#include <ac_nonexistent.h> 3130_ACEOF 3131if ac_fn_c_try_cpp "$LINENO"; then : 3132 # Broken: success on invalid input. 3133continue 3134else 3135 # Passes both tests. 3136ac_preproc_ok=: 3137break 3138fi 3139rm -f conftest.err conftest.i conftest.$ac_ext 3140 3141done 3142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3143rm -f conftest.i conftest.err conftest.$ac_ext 3144if $ac_preproc_ok; then : 3145 break 3146fi 3147 3148 done 3149 ac_cv_prog_CPP=$CPP 3150 3151fi 3152 CPP=$ac_cv_prog_CPP 3153else 3154 ac_cv_prog_CPP=$CPP 3155fi 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3157$as_echo "$CPP" >&6; } 3158ac_preproc_ok=false 3159for ac_c_preproc_warn_flag in '' yes 3160do 3161 # Use a header file that comes with gcc, so configuring glibc 3162 # with a fresh cross-compiler works. 3163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3164 # <limits.h> exists even on freestanding compilers. 3165 # On the NeXT, cc -E runs the code through the compiler's parser, 3166 # not just through cpp. "Syntax error" is here to catch this case. 3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3168/* end confdefs.h. */ 3169#ifdef __STDC__ 3170# include <limits.h> 3171#else 3172# include <assert.h> 3173#endif 3174 Syntax error 3175_ACEOF 3176if ac_fn_c_try_cpp "$LINENO"; then : 3177 3178else 3179 # Broken: fails on valid input. 3180continue 3181fi 3182rm -f conftest.err conftest.i conftest.$ac_ext 3183 3184 # OK, works on sane cases. Now check whether nonexistent headers 3185 # can be detected and how. 3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3187/* end confdefs.h. */ 3188#include <ac_nonexistent.h> 3189_ACEOF 3190if ac_fn_c_try_cpp "$LINENO"; then : 3191 # Broken: success on invalid input. 3192continue 3193else 3194 # Passes both tests. 3195ac_preproc_ok=: 3196break 3197fi 3198rm -f conftest.err conftest.i conftest.$ac_ext 3199 3200done 3201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3202rm -f conftest.i conftest.err conftest.$ac_ext 3203if $ac_preproc_ok; then : 3204 3205else 3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3208as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3209See \`config.log' for more details" "$LINENO" 5; } 3210fi 3211 3212ac_ext=c 3213ac_cpp='$CPP $CPPFLAGS' 3214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3216ac_compiler_gnu=$ac_cv_c_compiler_gnu 3217 3218 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3220$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3221if ${ac_cv_path_GREP+:} false; then : 3222 $as_echo_n "(cached) " >&6 3223else 3224 if test -z "$GREP"; then 3225 ac_path_GREP_found=false 3226 # Loop through the user's path and test for each of PROGNAME-LIST 3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3229do 3230 IFS=$as_save_IFS 3231 test -z "$as_dir" && as_dir=. 3232 for ac_prog in grep ggrep; do 3233 for ac_exec_ext in '' $ac_executable_extensions; do 3234 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3235 as_fn_executable_p "$ac_path_GREP" || continue 3236# Check for GNU ac_path_GREP and select it if it is found. 3237 # Check for GNU $ac_path_GREP 3238case `"$ac_path_GREP" --version 2>&1` in 3239*GNU*) 3240 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3241*) 3242 ac_count=0 3243 $as_echo_n 0123456789 >"conftest.in" 3244 while : 3245 do 3246 cat "conftest.in" "conftest.in" >"conftest.tmp" 3247 mv "conftest.tmp" "conftest.in" 3248 cp "conftest.in" "conftest.nl" 3249 $as_echo 'GREP' >> "conftest.nl" 3250 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3252 as_fn_arith $ac_count + 1 && ac_count=$as_val 3253 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3254 # Best one so far, save it but keep looking for a better one 3255 ac_cv_path_GREP="$ac_path_GREP" 3256 ac_path_GREP_max=$ac_count 3257 fi 3258 # 10*(2^10) chars as input seems more than enough 3259 test $ac_count -gt 10 && break 3260 done 3261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3262esac 3263 3264 $ac_path_GREP_found && break 3 3265 done 3266 done 3267 done 3268IFS=$as_save_IFS 3269 if test -z "$ac_cv_path_GREP"; then 3270 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3271 fi 3272else 3273 ac_cv_path_GREP=$GREP 3274fi 3275 3276fi 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3278$as_echo "$ac_cv_path_GREP" >&6; } 3279 GREP="$ac_cv_path_GREP" 3280 3281 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3283$as_echo_n "checking for egrep... " >&6; } 3284if ${ac_cv_path_EGREP+:} false; then : 3285 $as_echo_n "(cached) " >&6 3286else 3287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3288 then ac_cv_path_EGREP="$GREP -E" 3289 else 3290 if test -z "$EGREP"; then 3291 ac_path_EGREP_found=false 3292 # Loop through the user's path and test for each of PROGNAME-LIST 3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3295do 3296 IFS=$as_save_IFS 3297 test -z "$as_dir" && as_dir=. 3298 for ac_prog in egrep; do 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3301 as_fn_executable_p "$ac_path_EGREP" || continue 3302# Check for GNU ac_path_EGREP and select it if it is found. 3303 # Check for GNU $ac_path_EGREP 3304case `"$ac_path_EGREP" --version 2>&1` in 3305*GNU*) 3306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3307*) 3308 ac_count=0 3309 $as_echo_n 0123456789 >"conftest.in" 3310 while : 3311 do 3312 cat "conftest.in" "conftest.in" >"conftest.tmp" 3313 mv "conftest.tmp" "conftest.in" 3314 cp "conftest.in" "conftest.nl" 3315 $as_echo 'EGREP' >> "conftest.nl" 3316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3318 as_fn_arith $ac_count + 1 && ac_count=$as_val 3319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3320 # Best one so far, save it but keep looking for a better one 3321 ac_cv_path_EGREP="$ac_path_EGREP" 3322 ac_path_EGREP_max=$ac_count 3323 fi 3324 # 10*(2^10) chars as input seems more than enough 3325 test $ac_count -gt 10 && break 3326 done 3327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3328esac 3329 3330 $ac_path_EGREP_found && break 3 3331 done 3332 done 3333 done 3334IFS=$as_save_IFS 3335 if test -z "$ac_cv_path_EGREP"; then 3336 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3337 fi 3338else 3339 ac_cv_path_EGREP=$EGREP 3340fi 3341 3342 fi 3343fi 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3345$as_echo "$ac_cv_path_EGREP" >&6; } 3346 EGREP="$ac_cv_path_EGREP" 3347 3348 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3350$as_echo_n "checking for ANSI C header files... " >&6; } 3351if ${ac_cv_header_stdc+:} false; then : 3352 $as_echo_n "(cached) " >&6 3353else 3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3355/* end confdefs.h. */ 3356#include <stdlib.h> 3357#include <stdarg.h> 3358#include <string.h> 3359#include <float.h> 3360 3361int 3362main () 3363{ 3364 3365 ; 3366 return 0; 3367} 3368_ACEOF 3369if ac_fn_c_try_compile "$LINENO"; then : 3370 ac_cv_header_stdc=yes 3371else 3372 ac_cv_header_stdc=no 3373fi 3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3375 3376if test $ac_cv_header_stdc = yes; then 3377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3379/* end confdefs.h. */ 3380#include <string.h> 3381 3382_ACEOF 3383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3384 $EGREP "memchr" >/dev/null 2>&1; then : 3385 3386else 3387 ac_cv_header_stdc=no 3388fi 3389rm -f conftest* 3390 3391fi 3392 3393if test $ac_cv_header_stdc = yes; then 3394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3396/* end confdefs.h. */ 3397#include <stdlib.h> 3398 3399_ACEOF 3400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3401 $EGREP "free" >/dev/null 2>&1; then : 3402 3403else 3404 ac_cv_header_stdc=no 3405fi 3406rm -f conftest* 3407 3408fi 3409 3410if test $ac_cv_header_stdc = yes; then 3411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3412 if test "$cross_compiling" = yes; then : 3413 : 3414else 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416/* end confdefs.h. */ 3417#include <ctype.h> 3418#include <stdlib.h> 3419#if ((' ' & 0x0FF) == 0x020) 3420# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3421# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3422#else 3423# define ISLOWER(c) \ 3424 (('a' <= (c) && (c) <= 'i') \ 3425 || ('j' <= (c) && (c) <= 'r') \ 3426 || ('s' <= (c) && (c) <= 'z')) 3427# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3428#endif 3429 3430#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3431int 3432main () 3433{ 3434 int i; 3435 for (i = 0; i < 256; i++) 3436 if (XOR (islower (i), ISLOWER (i)) 3437 || toupper (i) != TOUPPER (i)) 3438 return 2; 3439 return 0; 3440} 3441_ACEOF 3442if ac_fn_c_try_run "$LINENO"; then : 3443 3444else 3445 ac_cv_header_stdc=no 3446fi 3447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3448 conftest.$ac_objext conftest.beam conftest.$ac_ext 3449fi 3450 3451fi 3452fi 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3454$as_echo "$ac_cv_header_stdc" >&6; } 3455if test $ac_cv_header_stdc = yes; then 3456 3457$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3458 3459fi 3460 3461# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3462for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3463 inttypes.h stdint.h unistd.h 3464do : 3465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3466ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3467" 3468if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3469 cat >>confdefs.h <<_ACEOF 3470#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3471_ACEOF 3472 3473fi 3474 3475done 3476 3477 3478 3479 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3480if test "x$ac_cv_header_minix_config_h" = xyes; then : 3481 MINIX=yes 3482else 3483 MINIX= 3484fi 3485 3486 3487 if test "$MINIX" = yes; then 3488 3489$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3490 3491 3492$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3493 3494 3495$as_echo "#define _MINIX 1" >>confdefs.h 3496 3497 fi 3498 3499 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3501$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3502if ${ac_cv_safe_to_define___extensions__+:} false; then : 3503 $as_echo_n "(cached) " >&6 3504else 3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3506/* end confdefs.h. */ 3507 3508# define __EXTENSIONS__ 1 3509 $ac_includes_default 3510int 3511main () 3512{ 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518if ac_fn_c_try_compile "$LINENO"; then : 3519 ac_cv_safe_to_define___extensions__=yes 3520else 3521 ac_cv_safe_to_define___extensions__=no 3522fi 3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3524fi 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3526$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3527 test $ac_cv_safe_to_define___extensions__ = yes && 3528 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3529 3530 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3531 3532 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3533 3534 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3535 3536 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3537 3538 3539 3540# Initialize Automake 3541am__api_version='1.15' 3542 3543# Find a good install program. We prefer a C program (faster), 3544# so one script is as good as another. But avoid the broken or 3545# incompatible versions: 3546# SysV /etc/install, /usr/sbin/install 3547# SunOS /usr/etc/install 3548# IRIX /sbin/install 3549# AIX /bin/install 3550# AmigaOS /C/install, which installs bootblocks on floppy discs 3551# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3552# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3553# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3554# OS/2's system install, which has a completely different semantic 3555# ./install, which can be erroneously created by make from ./install.sh. 3556# Reject install programs that cannot install multiple files. 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3558$as_echo_n "checking for a BSD-compatible install... " >&6; } 3559if test -z "$INSTALL"; then 3560if ${ac_cv_path_install+:} false; then : 3561 $as_echo_n "(cached) " >&6 3562else 3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3564for as_dir in $PATH 3565do 3566 IFS=$as_save_IFS 3567 test -z "$as_dir" && as_dir=. 3568 # Account for people who put trailing slashes in PATH elements. 3569case $as_dir/ in #(( 3570 ./ | .// | /[cC]/* | \ 3571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3572 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3573 /usr/ucb/* ) ;; 3574 *) 3575 # OSF1 and SCO ODT 3.0 have their own names for install. 3576 # Don't use installbsd from OSF since it installs stuff as root 3577 # by default. 3578 for ac_prog in ginstall scoinst install; do 3579 for ac_exec_ext in '' $ac_executable_extensions; do 3580 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3581 if test $ac_prog = install && 3582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3583 # AIX install. It has an incompatible calling convention. 3584 : 3585 elif test $ac_prog = install && 3586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3587 # program-specific install script used by HP pwplus--don't use. 3588 : 3589 else 3590 rm -rf conftest.one conftest.two conftest.dir 3591 echo one > conftest.one 3592 echo two > conftest.two 3593 mkdir conftest.dir 3594 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3595 test -s conftest.one && test -s conftest.two && 3596 test -s conftest.dir/conftest.one && 3597 test -s conftest.dir/conftest.two 3598 then 3599 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3600 break 3 3601 fi 3602 fi 3603 fi 3604 done 3605 done 3606 ;; 3607esac 3608 3609 done 3610IFS=$as_save_IFS 3611 3612rm -rf conftest.one conftest.two conftest.dir 3613 3614fi 3615 if test "${ac_cv_path_install+set}" = set; then 3616 INSTALL=$ac_cv_path_install 3617 else 3618 # As a last resort, use the slow shell script. Don't cache a 3619 # value for INSTALL within a source directory, because that will 3620 # break other packages using the cache if that directory is 3621 # removed, or if the value is a relative name. 3622 INSTALL=$ac_install_sh 3623 fi 3624fi 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3626$as_echo "$INSTALL" >&6; } 3627 3628# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3629# It thinks the first close brace ends the variable substitution. 3630test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3631 3632test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3633 3634test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3635 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3637$as_echo_n "checking whether build environment is sane... " >&6; } 3638# Reject unsafe characters in $srcdir or the absolute working directory 3639# name. Accept space and tab only in the latter. 3640am_lf=' 3641' 3642case `pwd` in 3643 *[\\\"\#\$\&\'\`$am_lf]*) 3644 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3645esac 3646case $srcdir in 3647 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3648 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3649esac 3650 3651# Do 'set' in a subshell so we don't clobber the current shell's 3652# arguments. Must try -L first in case configure is actually a 3653# symlink; some systems play weird games with the mod time of symlinks 3654# (eg FreeBSD returns the mod time of the symlink's containing 3655# directory). 3656if ( 3657 am_has_slept=no 3658 for am_try in 1 2; do 3659 echo "timestamp, slept: $am_has_slept" > conftest.file 3660 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3661 if test "$*" = "X"; then 3662 # -L didn't work. 3663 set X `ls -t "$srcdir/configure" conftest.file` 3664 fi 3665 if test "$*" != "X $srcdir/configure conftest.file" \ 3666 && test "$*" != "X conftest.file $srcdir/configure"; then 3667 3668 # If neither matched, then we have a broken ls. This can happen 3669 # if, for instance, CONFIG_SHELL is bash and it inherits a 3670 # broken ls alias from the environment. This has actually 3671 # happened. Such a system could not be considered "sane". 3672 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3673 alias in your environment" "$LINENO" 5 3674 fi 3675 if test "$2" = conftest.file || test $am_try -eq 2; then 3676 break 3677 fi 3678 # Just in case. 3679 sleep 1 3680 am_has_slept=yes 3681 done 3682 test "$2" = conftest.file 3683 ) 3684then 3685 # Ok. 3686 : 3687else 3688 as_fn_error $? "newly created file is older than distributed files! 3689Check your system clock" "$LINENO" 5 3690fi 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3692$as_echo "yes" >&6; } 3693# If we didn't sleep, we still need to ensure time stamps of config.status and 3694# generated files are strictly newer. 3695am_sleep_pid= 3696if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3697 ( sleep 1 ) & 3698 am_sleep_pid=$! 3699fi 3700 3701rm -f conftest.file 3702 3703test "$program_prefix" != NONE && 3704 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3705# Use a double $ so make ignores it. 3706test "$program_suffix" != NONE && 3707 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3708# Double any \ or $. 3709# By default was `s,x,x', remove it if useless. 3710ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3711program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3712 3713if test x"${MISSING+set}" != xset; then 3714 case $am_aux_dir in 3715 *\ * | *\ *) 3716 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3717 *) 3718 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3719 esac 3720fi 3721# Use eval to expand $SHELL 3722if eval "$MISSING --is-lightweight"; then 3723 am_missing_run="$MISSING " 3724else 3725 am_missing_run= 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3727$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3728fi 3729 3730if test x"${install_sh+set}" != xset; then 3731 case $am_aux_dir in 3732 *\ * | *\ *) 3733 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3734 *) 3735 install_sh="\${SHELL} $am_aux_dir/install-sh" 3736 esac 3737fi 3738 3739# Installed binaries are usually stripped using 'strip' when the user 3740# run "make install-strip". However 'strip' might not be the right 3741# tool to use in cross-compilation environments, therefore Automake 3742# will honor the 'STRIP' environment variable to overrule this program. 3743if test "$cross_compiling" != no; then 3744 if test -n "$ac_tool_prefix"; then 3745 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3746set dummy ${ac_tool_prefix}strip; ac_word=$2 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3748$as_echo_n "checking for $ac_word... " >&6; } 3749if ${ac_cv_prog_STRIP+:} false; then : 3750 $as_echo_n "(cached) " >&6 3751else 3752 if test -n "$STRIP"; then 3753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3754else 3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3756for as_dir in $PATH 3757do 3758 IFS=$as_save_IFS 3759 test -z "$as_dir" && as_dir=. 3760 for ac_exec_ext in '' $ac_executable_extensions; do 3761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3762 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3764 break 2 3765 fi 3766done 3767 done 3768IFS=$as_save_IFS 3769 3770fi 3771fi 3772STRIP=$ac_cv_prog_STRIP 3773if test -n "$STRIP"; then 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3775$as_echo "$STRIP" >&6; } 3776else 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3778$as_echo "no" >&6; } 3779fi 3780 3781 3782fi 3783if test -z "$ac_cv_prog_STRIP"; then 3784 ac_ct_STRIP=$STRIP 3785 # Extract the first word of "strip", so it can be a program name with args. 3786set dummy strip; ac_word=$2 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3788$as_echo_n "checking for $ac_word... " >&6; } 3789if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3790 $as_echo_n "(cached) " >&6 3791else 3792 if test -n "$ac_ct_STRIP"; then 3793 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3794else 3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3796for as_dir in $PATH 3797do 3798 IFS=$as_save_IFS 3799 test -z "$as_dir" && as_dir=. 3800 for ac_exec_ext in '' $ac_executable_extensions; do 3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3802 ac_cv_prog_ac_ct_STRIP="strip" 3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3804 break 2 3805 fi 3806done 3807 done 3808IFS=$as_save_IFS 3809 3810fi 3811fi 3812ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3813if test -n "$ac_ct_STRIP"; then 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3815$as_echo "$ac_ct_STRIP" >&6; } 3816else 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3818$as_echo "no" >&6; } 3819fi 3820 3821 if test "x$ac_ct_STRIP" = x; then 3822 STRIP=":" 3823 else 3824 case $cross_compiling:$ac_tool_warned in 3825yes:) 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3828ac_tool_warned=yes ;; 3829esac 3830 STRIP=$ac_ct_STRIP 3831 fi 3832else 3833 STRIP="$ac_cv_prog_STRIP" 3834fi 3835 3836fi 3837INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3838 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3840$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3841if test -z "$MKDIR_P"; then 3842 if ${ac_cv_path_mkdir+:} false; then : 3843 $as_echo_n "(cached) " >&6 3844else 3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3846for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3847do 3848 IFS=$as_save_IFS 3849 test -z "$as_dir" && as_dir=. 3850 for ac_prog in mkdir gmkdir; do 3851 for ac_exec_ext in '' $ac_executable_extensions; do 3852 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3853 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3854 'mkdir (GNU coreutils) '* | \ 3855 'mkdir (coreutils) '* | \ 3856 'mkdir (fileutils) '4.1*) 3857 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3858 break 3;; 3859 esac 3860 done 3861 done 3862 done 3863IFS=$as_save_IFS 3864 3865fi 3866 3867 test -d ./--version && rmdir ./--version 3868 if test "${ac_cv_path_mkdir+set}" = set; then 3869 MKDIR_P="$ac_cv_path_mkdir -p" 3870 else 3871 # As a last resort, use the slow shell script. Don't cache a 3872 # value for MKDIR_P within a source directory, because that will 3873 # break other packages using the cache if that directory is 3874 # removed, or if the value is a relative name. 3875 MKDIR_P="$ac_install_sh -d" 3876 fi 3877fi 3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3879$as_echo "$MKDIR_P" >&6; } 3880 3881for ac_prog in gawk mawk nawk awk 3882do 3883 # Extract the first word of "$ac_prog", so it can be a program name with args. 3884set dummy $ac_prog; ac_word=$2 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3886$as_echo_n "checking for $ac_word... " >&6; } 3887if ${ac_cv_prog_AWK+:} false; then : 3888 $as_echo_n "(cached) " >&6 3889else 3890 if test -n "$AWK"; then 3891 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3892else 3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3894for as_dir in $PATH 3895do 3896 IFS=$as_save_IFS 3897 test -z "$as_dir" && as_dir=. 3898 for ac_exec_ext in '' $ac_executable_extensions; do 3899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3900 ac_cv_prog_AWK="$ac_prog" 3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3902 break 2 3903 fi 3904done 3905 done 3906IFS=$as_save_IFS 3907 3908fi 3909fi 3910AWK=$ac_cv_prog_AWK 3911if test -n "$AWK"; then 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3913$as_echo "$AWK" >&6; } 3914else 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3916$as_echo "no" >&6; } 3917fi 3918 3919 3920 test -n "$AWK" && break 3921done 3922 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3924$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3925set x ${MAKE-make} 3926ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3927if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3928 $as_echo_n "(cached) " >&6 3929else 3930 cat >conftest.make <<\_ACEOF 3931SHELL = /bin/sh 3932all: 3933 @echo '@@@%%%=$(MAKE)=@@@%%%' 3934_ACEOF 3935# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3936case `${MAKE-make} -f conftest.make 2>/dev/null` in 3937 *@@@%%%=?*=@@@%%%*) 3938 eval ac_cv_prog_make_${ac_make}_set=yes;; 3939 *) 3940 eval ac_cv_prog_make_${ac_make}_set=no;; 3941esac 3942rm -f conftest.make 3943fi 3944if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3946$as_echo "yes" >&6; } 3947 SET_MAKE= 3948else 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3950$as_echo "no" >&6; } 3951 SET_MAKE="MAKE=${MAKE-make}" 3952fi 3953 3954rm -rf .tst 2>/dev/null 3955mkdir .tst 2>/dev/null 3956if test -d .tst; then 3957 am__leading_dot=. 3958else 3959 am__leading_dot=_ 3960fi 3961rmdir .tst 2>/dev/null 3962 3963DEPDIR="${am__leading_dot}deps" 3964 3965ac_config_commands="$ac_config_commands depfiles" 3966 3967 3968am_make=${MAKE-make} 3969cat > confinc << 'END' 3970am__doit: 3971 @echo this is the am__doit target 3972.PHONY: am__doit 3973END 3974# If we don't find an include directive, just comment out the code. 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3976$as_echo_n "checking for style of include used by $am_make... " >&6; } 3977am__include="#" 3978am__quote= 3979_am_result=none 3980# First try GNU make style include. 3981echo "include confinc" > confmf 3982# Ignore all kinds of additional output from 'make'. 3983case `$am_make -s -f confmf 2> /dev/null` in #( 3984*the\ am__doit\ target*) 3985 am__include=include 3986 am__quote= 3987 _am_result=GNU 3988 ;; 3989esac 3990# Now try BSD make style include. 3991if test "$am__include" = "#"; then 3992 echo '.include "confinc"' > confmf 3993 case `$am_make -s -f confmf 2> /dev/null` in #( 3994 *the\ am__doit\ target*) 3995 am__include=.include 3996 am__quote="\"" 3997 _am_result=BSD 3998 ;; 3999 esac 4000fi 4001 4002 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4004$as_echo "$_am_result" >&6; } 4005rm -f confinc confmf 4006 4007# Check whether --enable-dependency-tracking was given. 4008if test "${enable_dependency_tracking+set}" = set; then : 4009 enableval=$enable_dependency_tracking; 4010fi 4011 4012if test "x$enable_dependency_tracking" != xno; then 4013 am_depcomp="$ac_aux_dir/depcomp" 4014 AMDEPBACKSLASH='\' 4015 am__nodep='_no' 4016fi 4017 if test "x$enable_dependency_tracking" != xno; then 4018 AMDEP_TRUE= 4019 AMDEP_FALSE='#' 4020else 4021 AMDEP_TRUE='#' 4022 AMDEP_FALSE= 4023fi 4024 4025 4026# Check whether --enable-silent-rules was given. 4027if test "${enable_silent_rules+set}" = set; then : 4028 enableval=$enable_silent_rules; 4029fi 4030 4031case $enable_silent_rules in # ((( 4032 yes) AM_DEFAULT_VERBOSITY=0;; 4033 no) AM_DEFAULT_VERBOSITY=1;; 4034 *) AM_DEFAULT_VERBOSITY=1;; 4035esac 4036am_make=${MAKE-make} 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4038$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4039if ${am_cv_make_support_nested_variables+:} false; then : 4040 $as_echo_n "(cached) " >&6 4041else 4042 if $as_echo 'TRUE=$(BAR$(V)) 4043BAR0=false 4044BAR1=true 4045V=1 4046am__doit: 4047 @$(TRUE) 4048.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4049 am_cv_make_support_nested_variables=yes 4050else 4051 am_cv_make_support_nested_variables=no 4052fi 4053fi 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4055$as_echo "$am_cv_make_support_nested_variables" >&6; } 4056if test $am_cv_make_support_nested_variables = yes; then 4057 AM_V='$(V)' 4058 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4059else 4060 AM_V=$AM_DEFAULT_VERBOSITY 4061 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4062fi 4063AM_BACKSLASH='\' 4064 4065if test "`cd $srcdir && pwd`" != "`pwd`"; then 4066 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4067 # is not polluted with repeated "-I." 4068 am__isrc=' -I$(srcdir)' 4069 # test to see if srcdir already configured 4070 if test -f $srcdir/config.status; then 4071 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4072 fi 4073fi 4074 4075# test whether we have cygpath 4076if test -z "$CYGPATH_W"; then 4077 if (cygpath --version) >/dev/null 2>/dev/null; then 4078 CYGPATH_W='cygpath -w' 4079 else 4080 CYGPATH_W=echo 4081 fi 4082fi 4083 4084 4085# Define the identity of the package. 4086 PACKAGE='mkfontscale' 4087 VERSION='1.1.2' 4088 4089 4090cat >>confdefs.h <<_ACEOF 4091#define PACKAGE "$PACKAGE" 4092_ACEOF 4093 4094 4095cat >>confdefs.h <<_ACEOF 4096#define VERSION "$VERSION" 4097_ACEOF 4098 4099# Some tools Automake needs. 4100 4101ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4102 4103 4104AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4105 4106 4107AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4108 4109 4110AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4111 4112 4113MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4114 4115# For better backward compatibility. To be removed once Automake 1.9.x 4116# dies out for good. For more background, see: 4117# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4118# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4119mkdir_p='$(MKDIR_P)' 4120 4121# We need awk for the "check" target (and possibly the TAP driver). The 4122# system "awk" is bad on some platforms. 4123# Always define AMTAR for backward compatibility. Yes, it's still used 4124# in the wild :-( We should find a proper way to deprecate it ... 4125AMTAR='$${TAR-tar}' 4126 4127 4128# We'll loop over all known methods to create a tar archive until one works. 4129_am_tools='gnutar pax cpio none' 4130 4131am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4132 4133 4134 4135 4136 4137depcc="$CC" am_compiler_list= 4138 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4140$as_echo_n "checking dependency style of $depcc... " >&6; } 4141if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4145 # We make a subdir and do the tests there. Otherwise we can end up 4146 # making bogus files that we don't know about and never remove. For 4147 # instance it was reported that on HP-UX the gcc test will end up 4148 # making a dummy file named 'D' -- because '-MD' means "put the output 4149 # in D". 4150 rm -rf conftest.dir 4151 mkdir conftest.dir 4152 # Copy depcomp to subdir because otherwise we won't find it if we're 4153 # using a relative directory. 4154 cp "$am_depcomp" conftest.dir 4155 cd conftest.dir 4156 # We will build objects and dependencies in a subdirectory because 4157 # it helps to detect inapplicable dependency modes. For instance 4158 # both Tru64's cc and ICC support -MD to output dependencies as a 4159 # side effect of compilation, but ICC will put the dependencies in 4160 # the current directory while Tru64 will put them in the object 4161 # directory. 4162 mkdir sub 4163 4164 am_cv_CC_dependencies_compiler_type=none 4165 if test "$am_compiler_list" = ""; then 4166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4167 fi 4168 am__universal=false 4169 case " $depcc " in #( 4170 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4171 esac 4172 4173 for depmode in $am_compiler_list; do 4174 # Setup a source with many dependencies, because some compilers 4175 # like to wrap large dependency lists on column 80 (with \), and 4176 # we should not choose a depcomp mode which is confused by this. 4177 # 4178 # We need to recreate these files for each test, as the compiler may 4179 # overwrite some of them when testing with obscure command lines. 4180 # This happens at least with the AIX C compiler. 4181 : > sub/conftest.c 4182 for i in 1 2 3 4 5 6; do 4183 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4184 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4185 # Solaris 10 /bin/sh. 4186 echo '/* dummy */' > sub/conftst$i.h 4187 done 4188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4189 4190 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4191 # mode. It turns out that the SunPro C++ compiler does not properly 4192 # handle '-M -o', and we need to detect this. Also, some Intel 4193 # versions had trouble with output in subdirs. 4194 am__obj=sub/conftest.${OBJEXT-o} 4195 am__minus_obj="-o $am__obj" 4196 case $depmode in 4197 gcc) 4198 # This depmode causes a compiler race in universal mode. 4199 test "$am__universal" = false || continue 4200 ;; 4201 nosideeffect) 4202 # After this tag, mechanisms are not by side-effect, so they'll 4203 # only be used when explicitly requested. 4204 if test "x$enable_dependency_tracking" = xyes; then 4205 continue 4206 else 4207 break 4208 fi 4209 ;; 4210 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4211 # This compiler won't grok '-c -o', but also, the minuso test has 4212 # not run yet. These depmodes are late enough in the game, and 4213 # so weak that their functioning should not be impacted. 4214 am__obj=conftest.${OBJEXT-o} 4215 am__minus_obj= 4216 ;; 4217 none) break ;; 4218 esac 4219 if depmode=$depmode \ 4220 source=sub/conftest.c object=$am__obj \ 4221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4223 >/dev/null 2>conftest.err && 4224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4228 # icc doesn't choke on unknown options, it will just issue warnings 4229 # or remarks (even with -Werror). So we grep stderr for any message 4230 # that says an option was ignored or not supported. 4231 # When given -MP, icc 7.0 and 7.1 complain thusly: 4232 # icc: Command line warning: ignoring option '-M'; no argument required 4233 # The diagnosis changed in icc 8.0: 4234 # icc: Command line remark: option '-MP' not supported 4235 if (grep 'ignoring option' conftest.err || 4236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4237 am_cv_CC_dependencies_compiler_type=$depmode 4238 break 4239 fi 4240 fi 4241 done 4242 4243 cd .. 4244 rm -rf conftest.dir 4245else 4246 am_cv_CC_dependencies_compiler_type=none 4247fi 4248 4249fi 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4251$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4252CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4253 4254 if 4255 test "x$enable_dependency_tracking" != xno \ 4256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4257 am__fastdepCC_TRUE= 4258 am__fastdepCC_FALSE='#' 4259else 4260 am__fastdepCC_TRUE='#' 4261 am__fastdepCC_FALSE= 4262fi 4263 4264 4265 4266# POSIX will say in a future version that running "rm -f" with no argument 4267# is OK; and we want to be able to make that assumption in our Makefile 4268# recipes. So use an aggressive probe to check that the usage we want is 4269# actually supported "in the wild" to an acceptable degree. 4270# See automake bug#10828. 4271# To make any issue more visible, cause the running configure to be aborted 4272# by default if the 'rm' program in use doesn't match our expectations; the 4273# user can still override this though. 4274if rm -f && rm -fr && rm -rf; then : OK; else 4275 cat >&2 <<'END' 4276Oops! 4277 4278Your 'rm' program seems unable to run without file operands specified 4279on the command line, even when the '-f' option is present. This is contrary 4280to the behaviour of most rm programs out there, and not conforming with 4281the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4282 4283Please tell bug-automake@gnu.org about your system, including the value 4284of your $PATH and any error possibly output before this message. This 4285can help us improve future automake versions. 4286 4287END 4288 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4289 echo 'Configuration will proceed anyway, since you have set the' >&2 4290 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4291 echo >&2 4292 else 4293 cat >&2 <<'END' 4294Aborting the configuration process, to ensure you take notice of the issue. 4295 4296You can download and install GNU coreutils to get an 'rm' implementation 4297that behaves properly: <http://www.gnu.org/software/coreutils/>. 4298 4299If you want to complete the configuration process using your problematic 4300'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4301to "yes", and re-run configure. 4302 4303END 4304 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4305 fi 4306fi 4307 4308 4309# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4322$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4323if ${ac_cv_prog_cc_c99+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325else 4326 ac_cv_prog_cc_c99=no 4327ac_save_CC=$CC 4328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4329/* end confdefs.h. */ 4330#include <stdarg.h> 4331#include <stdbool.h> 4332#include <stdlib.h> 4333#include <wchar.h> 4334#include <stdio.h> 4335 4336// Check varargs macros. These examples are taken from C99 6.10.3.5. 4337#define debug(...) fprintf (stderr, __VA_ARGS__) 4338#define showlist(...) puts (#__VA_ARGS__) 4339#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4340static void 4341test_varargs_macros (void) 4342{ 4343 int x = 1234; 4344 int y = 5678; 4345 debug ("Flag"); 4346 debug ("X = %d\n", x); 4347 showlist (The first, second, and third items.); 4348 report (x>y, "x is %d but y is %d", x, y); 4349} 4350 4351// Check long long types. 4352#define BIG64 18446744073709551615ull 4353#define BIG32 4294967295ul 4354#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4355#if !BIG_OK 4356 your preprocessor is broken; 4357#endif 4358#if BIG_OK 4359#else 4360 your preprocessor is broken; 4361#endif 4362static long long int bignum = -9223372036854775807LL; 4363static unsigned long long int ubignum = BIG64; 4364 4365struct incomplete_array 4366{ 4367 int datasize; 4368 double data[]; 4369}; 4370 4371struct named_init { 4372 int number; 4373 const wchar_t *name; 4374 double average; 4375}; 4376 4377typedef const char *ccp; 4378 4379static inline int 4380test_restrict (ccp restrict text) 4381{ 4382 // See if C++-style comments work. 4383 // Iterate through items via the restricted pointer. 4384 // Also check for declarations in for loops. 4385 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4386 continue; 4387 return 0; 4388} 4389 4390// Check varargs and va_copy. 4391static void 4392test_varargs (const char *format, ...) 4393{ 4394 va_list args; 4395 va_start (args, format); 4396 va_list args_copy; 4397 va_copy (args_copy, args); 4398 4399 const char *str; 4400 int number; 4401 float fnumber; 4402 4403 while (*format) 4404 { 4405 switch (*format++) 4406 { 4407 case 's': // string 4408 str = va_arg (args_copy, const char *); 4409 break; 4410 case 'd': // int 4411 number = va_arg (args_copy, int); 4412 break; 4413 case 'f': // float 4414 fnumber = va_arg (args_copy, double); 4415 break; 4416 default: 4417 break; 4418 } 4419 } 4420 va_end (args_copy); 4421 va_end (args); 4422} 4423 4424int 4425main () 4426{ 4427 4428 // Check bool. 4429 _Bool success = false; 4430 4431 // Check restrict. 4432 if (test_restrict ("String literal") == 0) 4433 success = true; 4434 char *restrict newvar = "Another string"; 4435 4436 // Check varargs. 4437 test_varargs ("s, d' f .", "string", 65, 34.234); 4438 test_varargs_macros (); 4439 4440 // Check flexible array members. 4441 struct incomplete_array *ia = 4442 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4443 ia->datasize = 10; 4444 for (int i = 0; i < ia->datasize; ++i) 4445 ia->data[i] = i * 1.234; 4446 4447 // Check named initializers. 4448 struct named_init ni = { 4449 .number = 34, 4450 .name = L"Test wide string", 4451 .average = 543.34343, 4452 }; 4453 4454 ni.number = 58; 4455 4456 int dynamic_array[ni.number]; 4457 dynamic_array[ni.number - 1] = 543; 4458 4459 // work around unused variable warnings 4460 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4461 || dynamic_array[ni.number - 1] != 543); 4462 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4468do 4469 CC="$ac_save_CC $ac_arg" 4470 if ac_fn_c_try_compile "$LINENO"; then : 4471 ac_cv_prog_cc_c99=$ac_arg 4472fi 4473rm -f core conftest.err conftest.$ac_objext 4474 test "x$ac_cv_prog_cc_c99" != "xno" && break 4475done 4476rm -f conftest.$ac_ext 4477CC=$ac_save_CC 4478 4479fi 4480# AC_CACHE_VAL 4481case "x$ac_cv_prog_cc_c99" in 4482 x) 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4484$as_echo "none needed" >&6; } ;; 4485 xno) 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4487$as_echo "unsupported" >&6; } ;; 4488 *) 4489 CC="$CC $ac_cv_prog_cc_c99" 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4491$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4492esac 4493if test "x$ac_cv_prog_cc_c99" != xno; then : 4494 4495fi 4496 4497 4498 4499 4500 4501 4502ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4503if test "x$ac_cv_have_decl___clang__" = xyes; then : 4504 CLANGCC="yes" 4505else 4506 CLANGCC="no" 4507fi 4508 4509ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4510if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4511 INTELCC="yes" 4512else 4513 INTELCC="no" 4514fi 4515 4516ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4517if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4518 SUNCC="yes" 4519else 4520 SUNCC="no" 4521fi 4522 4523 4524 4525 4526if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4527 if test -n "$ac_tool_prefix"; then 4528 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4529set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4531$as_echo_n "checking for $ac_word... " >&6; } 4532if ${ac_cv_path_PKG_CONFIG+:} false; then : 4533 $as_echo_n "(cached) " >&6 4534else 4535 case $PKG_CONFIG in 4536 [\\/]* | ?:[\\/]*) 4537 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4538 ;; 4539 *) 4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4541for as_dir in $PATH 4542do 4543 IFS=$as_save_IFS 4544 test -z "$as_dir" && as_dir=. 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4547 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4549 break 2 4550 fi 4551done 4552 done 4553IFS=$as_save_IFS 4554 4555 ;; 4556esac 4557fi 4558PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4559if test -n "$PKG_CONFIG"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4561$as_echo "$PKG_CONFIG" >&6; } 4562else 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4564$as_echo "no" >&6; } 4565fi 4566 4567 4568fi 4569if test -z "$ac_cv_path_PKG_CONFIG"; then 4570 ac_pt_PKG_CONFIG=$PKG_CONFIG 4571 # Extract the first word of "pkg-config", so it can be a program name with args. 4572set dummy pkg-config; ac_word=$2 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4574$as_echo_n "checking for $ac_word... " >&6; } 4575if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4576 $as_echo_n "(cached) " >&6 4577else 4578 case $ac_pt_PKG_CONFIG in 4579 [\\/]* | ?:[\\/]*) 4580 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4581 ;; 4582 *) 4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4584for as_dir in $PATH 4585do 4586 IFS=$as_save_IFS 4587 test -z "$as_dir" && as_dir=. 4588 for ac_exec_ext in '' $ac_executable_extensions; do 4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4590 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4592 break 2 4593 fi 4594done 4595 done 4596IFS=$as_save_IFS 4597 4598 ;; 4599esac 4600fi 4601ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4602if test -n "$ac_pt_PKG_CONFIG"; then 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4604$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4605else 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4607$as_echo "no" >&6; } 4608fi 4609 4610 if test "x$ac_pt_PKG_CONFIG" = x; then 4611 PKG_CONFIG="" 4612 else 4613 case $cross_compiling:$ac_tool_warned in 4614yes:) 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4617ac_tool_warned=yes ;; 4618esac 4619 PKG_CONFIG=$ac_pt_PKG_CONFIG 4620 fi 4621else 4622 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4623fi 4624 4625fi 4626if test -n "$PKG_CONFIG"; then 4627 _pkg_min_version=0.9.0 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4629$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4630 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4632$as_echo "yes" >&6; } 4633 else 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4635$as_echo "no" >&6; } 4636 PKG_CONFIG="" 4637 fi 4638 4639fi 4640# Make sure we can run config.sub. 4641$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4642 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4643 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4645$as_echo_n "checking build system type... " >&6; } 4646if ${ac_cv_build+:} false; then : 4647 $as_echo_n "(cached) " >&6 4648else 4649 ac_build_alias=$build_alias 4650test "x$ac_build_alias" = x && 4651 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4652test "x$ac_build_alias" = x && 4653 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4654ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4656 4657fi 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4659$as_echo "$ac_cv_build" >&6; } 4660case $ac_cv_build in 4661*-*-*) ;; 4662*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4663esac 4664build=$ac_cv_build 4665ac_save_IFS=$IFS; IFS='-' 4666set x $ac_cv_build 4667shift 4668build_cpu=$1 4669build_vendor=$2 4670shift; shift 4671# Remember, the first character of IFS is used to create $*, 4672# except with old shells: 4673build_os=$* 4674IFS=$ac_save_IFS 4675case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4676 4677 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4679$as_echo_n "checking host system type... " >&6; } 4680if ${ac_cv_host+:} false; then : 4681 $as_echo_n "(cached) " >&6 4682else 4683 if test "x$host_alias" = x; then 4684 ac_cv_host=$ac_cv_build 4685else 4686 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4688fi 4689 4690fi 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4692$as_echo "$ac_cv_host" >&6; } 4693case $ac_cv_host in 4694*-*-*) ;; 4695*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4696esac 4697host=$ac_cv_host 4698ac_save_IFS=$IFS; IFS='-' 4699set x $ac_cv_host 4700shift 4701host_cpu=$1 4702host_vendor=$2 4703shift; shift 4704# Remember, the first character of IFS is used to create $*, 4705# except with old shells: 4706host_os=$* 4707IFS=$ac_save_IFS 4708case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4709 4710 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4712$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4713if ${ac_cv_path_SED+:} false; then : 4714 $as_echo_n "(cached) " >&6 4715else 4716 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4717 for ac_i in 1 2 3 4 5 6 7; do 4718 ac_script="$ac_script$as_nl$ac_script" 4719 done 4720 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4721 { ac_script=; unset ac_script;} 4722 if test -z "$SED"; then 4723 ac_path_SED_found=false 4724 # Loop through the user's path and test for each of PROGNAME-LIST 4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4726for as_dir in $PATH 4727do 4728 IFS=$as_save_IFS 4729 test -z "$as_dir" && as_dir=. 4730 for ac_prog in sed gsed; do 4731 for ac_exec_ext in '' $ac_executable_extensions; do 4732 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4733 as_fn_executable_p "$ac_path_SED" || continue 4734# Check for GNU ac_path_SED and select it if it is found. 4735 # Check for GNU $ac_path_SED 4736case `"$ac_path_SED" --version 2>&1` in 4737*GNU*) 4738 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4739*) 4740 ac_count=0 4741 $as_echo_n 0123456789 >"conftest.in" 4742 while : 4743 do 4744 cat "conftest.in" "conftest.in" >"conftest.tmp" 4745 mv "conftest.tmp" "conftest.in" 4746 cp "conftest.in" "conftest.nl" 4747 $as_echo '' >> "conftest.nl" 4748 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4750 as_fn_arith $ac_count + 1 && ac_count=$as_val 4751 if test $ac_count -gt ${ac_path_SED_max-0}; then 4752 # Best one so far, save it but keep looking for a better one 4753 ac_cv_path_SED="$ac_path_SED" 4754 ac_path_SED_max=$ac_count 4755 fi 4756 # 10*(2^10) chars as input seems more than enough 4757 test $ac_count -gt 10 && break 4758 done 4759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4760esac 4761 4762 $ac_path_SED_found && break 3 4763 done 4764 done 4765 done 4766IFS=$as_save_IFS 4767 if test -z "$ac_cv_path_SED"; then 4768 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4769 fi 4770else 4771 ac_cv_path_SED=$SED 4772fi 4773 4774fi 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4776$as_echo "$ac_cv_path_SED" >&6; } 4777 SED="$ac_cv_path_SED" 4778 rm -f conftest.sed 4779 4780 4781 4782 4783 4784 4785# Check whether --enable-selective-werror was given. 4786if test "${enable_selective_werror+set}" = set; then : 4787 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4788else 4789 SELECTIVE_WERROR=yes 4790fi 4791 4792 4793 4794 4795 4796# -v is too short to test reliably with XORG_TESTSET_CFLAG 4797if test "x$SUNCC" = "xyes"; then 4798 BASE_CFLAGS="-v" 4799else 4800 BASE_CFLAGS="" 4801fi 4802 4803# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817xorg_testset_save_CFLAGS="$CFLAGS" 4818 4819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4824 $as_echo_n "(cached) " >&6 4825else 4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4827/* end confdefs.h. */ 4828int i; 4829_ACEOF 4830if ac_fn_c_try_compile "$LINENO"; then : 4831 xorg_cv_cc_flag_unknown_warning_option=yes 4832else 4833 xorg_cv_cc_flag_unknown_warning_option=no 4834fi 4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4840 CFLAGS="$xorg_testset_save_CFLAGS" 4841fi 4842 4843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4846 fi 4847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852else 4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4854/* end confdefs.h. */ 4855int i; 4856_ACEOF 4857if ac_fn_c_try_compile "$LINENO"; then : 4858 xorg_cv_cc_flag_unused_command_line_argument=yes 4859else 4860 xorg_cv_cc_flag_unused_command_line_argument=no 4861fi 4862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4863fi 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4867 CFLAGS="$xorg_testset_save_CFLAGS" 4868fi 4869 4870found="no" 4871 4872 if test $found = "no" ; then 4873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4875 fi 4876 4877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4879 fi 4880 4881 CFLAGS="$CFLAGS -Wall" 4882 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4884$as_echo_n "checking if $CC supports -Wall... " >&6; } 4885 cacheid=xorg_cv_cc_flag__Wall 4886 if eval \${$cacheid+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4890/* end confdefs.h. */ 4891int i; 4892int 4893main () 4894{ 4895 4896 ; 4897 return 0; 4898} 4899_ACEOF 4900if ac_fn_c_try_link "$LINENO"; then : 4901 eval $cacheid=yes 4902else 4903 eval $cacheid=no 4904fi 4905rm -f core conftest.err conftest.$ac_objext \ 4906 conftest$ac_exeext conftest.$ac_ext 4907fi 4908 4909 4910 CFLAGS="$xorg_testset_save_CFLAGS" 4911 4912 eval supported=\$$cacheid 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4914$as_echo "$supported" >&6; } 4915 if test "$supported" = "yes" ; then 4916 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4917 found="yes" 4918 fi 4919 fi 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935xorg_testset_save_CFLAGS="$CFLAGS" 4936 4937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4942 $as_echo_n "(cached) " >&6 4943else 4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4945/* end confdefs.h. */ 4946int i; 4947_ACEOF 4948if ac_fn_c_try_compile "$LINENO"; then : 4949 xorg_cv_cc_flag_unknown_warning_option=yes 4950else 4951 xorg_cv_cc_flag_unknown_warning_option=no 4952fi 4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4954fi 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4958 CFLAGS="$xorg_testset_save_CFLAGS" 4959fi 4960 4961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4964 fi 4965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4972/* end confdefs.h. */ 4973int i; 4974_ACEOF 4975if ac_fn_c_try_compile "$LINENO"; then : 4976 xorg_cv_cc_flag_unused_command_line_argument=yes 4977else 4978 xorg_cv_cc_flag_unused_command_line_argument=no 4979fi 4980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4981fi 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4985 CFLAGS="$xorg_testset_save_CFLAGS" 4986fi 4987 4988found="no" 4989 4990 if test $found = "no" ; then 4991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4993 fi 4994 4995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4997 fi 4998 4999 CFLAGS="$CFLAGS -Wpointer-arith" 5000 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5002$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5003 cacheid=xorg_cv_cc_flag__Wpointer_arith 5004 if eval \${$cacheid+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006else 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008/* end confdefs.h. */ 5009int i; 5010int 5011main () 5012{ 5013 5014 ; 5015 return 0; 5016} 5017_ACEOF 5018if ac_fn_c_try_link "$LINENO"; then : 5019 eval $cacheid=yes 5020else 5021 eval $cacheid=no 5022fi 5023rm -f core conftest.err conftest.$ac_objext \ 5024 conftest$ac_exeext conftest.$ac_ext 5025fi 5026 5027 5028 CFLAGS="$xorg_testset_save_CFLAGS" 5029 5030 eval supported=\$$cacheid 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5032$as_echo "$supported" >&6; } 5033 if test "$supported" = "yes" ; then 5034 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5035 found="yes" 5036 fi 5037 fi 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053xorg_testset_save_CFLAGS="$CFLAGS" 5054 5055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061else 5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5063/* end confdefs.h. */ 5064int i; 5065_ACEOF 5066if ac_fn_c_try_compile "$LINENO"; then : 5067 xorg_cv_cc_flag_unknown_warning_option=yes 5068else 5069 xorg_cv_cc_flag_unknown_warning_option=no 5070fi 5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5072fi 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5076 CFLAGS="$xorg_testset_save_CFLAGS" 5077fi 5078 5079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5082 fi 5083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5087 $as_echo_n "(cached) " >&6 5088else 5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5090/* end confdefs.h. */ 5091int i; 5092_ACEOF 5093if ac_fn_c_try_compile "$LINENO"; then : 5094 xorg_cv_cc_flag_unused_command_line_argument=yes 5095else 5096 xorg_cv_cc_flag_unused_command_line_argument=no 5097fi 5098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5099fi 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5103 CFLAGS="$xorg_testset_save_CFLAGS" 5104fi 5105 5106found="no" 5107 5108 if test $found = "no" ; then 5109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5111 fi 5112 5113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5115 fi 5116 5117 CFLAGS="$CFLAGS -Wmissing-declarations" 5118 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5120$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5121 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5122 if eval \${$cacheid+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124else 5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5126/* end confdefs.h. */ 5127int i; 5128int 5129main () 5130{ 5131 5132 ; 5133 return 0; 5134} 5135_ACEOF 5136if ac_fn_c_try_link "$LINENO"; then : 5137 eval $cacheid=yes 5138else 5139 eval $cacheid=no 5140fi 5141rm -f core conftest.err conftest.$ac_objext \ 5142 conftest$ac_exeext conftest.$ac_ext 5143fi 5144 5145 5146 CFLAGS="$xorg_testset_save_CFLAGS" 5147 5148 eval supported=\$$cacheid 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5150$as_echo "$supported" >&6; } 5151 if test "$supported" = "yes" ; then 5152 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5153 found="yes" 5154 fi 5155 fi 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171xorg_testset_save_CFLAGS="$CFLAGS" 5172 5173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5178 $as_echo_n "(cached) " >&6 5179else 5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5181/* end confdefs.h. */ 5182int i; 5183_ACEOF 5184if ac_fn_c_try_compile "$LINENO"; then : 5185 xorg_cv_cc_flag_unknown_warning_option=yes 5186else 5187 xorg_cv_cc_flag_unknown_warning_option=no 5188fi 5189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5190fi 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5194 CFLAGS="$xorg_testset_save_CFLAGS" 5195fi 5196 5197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5200 fi 5201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5205 $as_echo_n "(cached) " >&6 5206else 5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5208/* end confdefs.h. */ 5209int i; 5210_ACEOF 5211if ac_fn_c_try_compile "$LINENO"; then : 5212 xorg_cv_cc_flag_unused_command_line_argument=yes 5213else 5214 xorg_cv_cc_flag_unused_command_line_argument=no 5215fi 5216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5217fi 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5221 CFLAGS="$xorg_testset_save_CFLAGS" 5222fi 5223 5224found="no" 5225 5226 if test $found = "no" ; then 5227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5229 fi 5230 5231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5233 fi 5234 5235 CFLAGS="$CFLAGS -Wformat=2" 5236 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5238$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5239 cacheid=xorg_cv_cc_flag__Wformat_2 5240 if eval \${$cacheid+:} false; then : 5241 $as_echo_n "(cached) " >&6 5242else 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244/* end confdefs.h. */ 5245int i; 5246int 5247main () 5248{ 5249 5250 ; 5251 return 0; 5252} 5253_ACEOF 5254if ac_fn_c_try_link "$LINENO"; then : 5255 eval $cacheid=yes 5256else 5257 eval $cacheid=no 5258fi 5259rm -f core conftest.err conftest.$ac_objext \ 5260 conftest$ac_exeext conftest.$ac_ext 5261fi 5262 5263 5264 CFLAGS="$xorg_testset_save_CFLAGS" 5265 5266 eval supported=\$$cacheid 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5268$as_echo "$supported" >&6; } 5269 if test "$supported" = "yes" ; then 5270 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5271 found="yes" 5272 fi 5273 fi 5274 5275 if test $found = "no" ; then 5276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5278 fi 5279 5280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5282 fi 5283 5284 CFLAGS="$CFLAGS -Wformat" 5285 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5287$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5288 cacheid=xorg_cv_cc_flag__Wformat 5289 if eval \${$cacheid+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291else 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295int 5296main () 5297{ 5298 5299 ; 5300 return 0; 5301} 5302_ACEOF 5303if ac_fn_c_try_link "$LINENO"; then : 5304 eval $cacheid=yes 5305else 5306 eval $cacheid=no 5307fi 5308rm -f core conftest.err conftest.$ac_objext \ 5309 conftest$ac_exeext conftest.$ac_ext 5310fi 5311 5312 5313 CFLAGS="$xorg_testset_save_CFLAGS" 5314 5315 eval supported=\$$cacheid 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5317$as_echo "$supported" >&6; } 5318 if test "$supported" = "yes" ; then 5319 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5320 found="yes" 5321 fi 5322 fi 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340xorg_testset_save_CFLAGS="$CFLAGS" 5341 5342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5347 $as_echo_n "(cached) " >&6 5348else 5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5350/* end confdefs.h. */ 5351int i; 5352_ACEOF 5353if ac_fn_c_try_compile "$LINENO"; then : 5354 xorg_cv_cc_flag_unknown_warning_option=yes 5355else 5356 xorg_cv_cc_flag_unknown_warning_option=no 5357fi 5358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5359fi 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5363 CFLAGS="$xorg_testset_save_CFLAGS" 5364fi 5365 5366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5369 fi 5370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5374 $as_echo_n "(cached) " >&6 5375else 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377/* end confdefs.h. */ 5378int i; 5379_ACEOF 5380if ac_fn_c_try_compile "$LINENO"; then : 5381 xorg_cv_cc_flag_unused_command_line_argument=yes 5382else 5383 xorg_cv_cc_flag_unused_command_line_argument=no 5384fi 5385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5386fi 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5390 CFLAGS="$xorg_testset_save_CFLAGS" 5391fi 5392 5393found="no" 5394 5395 if test $found = "no" ; then 5396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5398 fi 5399 5400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5402 fi 5403 5404 CFLAGS="$CFLAGS -Wstrict-prototypes" 5405 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5407$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5408 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5409 if eval \${$cacheid+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5413/* end confdefs.h. */ 5414int i; 5415int 5416main () 5417{ 5418 5419 ; 5420 return 0; 5421} 5422_ACEOF 5423if ac_fn_c_try_link "$LINENO"; then : 5424 eval $cacheid=yes 5425else 5426 eval $cacheid=no 5427fi 5428rm -f core conftest.err conftest.$ac_objext \ 5429 conftest$ac_exeext conftest.$ac_ext 5430fi 5431 5432 5433 CFLAGS="$xorg_testset_save_CFLAGS" 5434 5435 eval supported=\$$cacheid 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5437$as_echo "$supported" >&6; } 5438 if test "$supported" = "yes" ; then 5439 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5440 found="yes" 5441 fi 5442 fi 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458xorg_testset_save_CFLAGS="$CFLAGS" 5459 5460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5465 $as_echo_n "(cached) " >&6 5466else 5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5468/* end confdefs.h. */ 5469int i; 5470_ACEOF 5471if ac_fn_c_try_compile "$LINENO"; then : 5472 xorg_cv_cc_flag_unknown_warning_option=yes 5473else 5474 xorg_cv_cc_flag_unknown_warning_option=no 5475fi 5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5477fi 5478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5481 CFLAGS="$xorg_testset_save_CFLAGS" 5482fi 5483 5484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5487 fi 5488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5492 $as_echo_n "(cached) " >&6 5493else 5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495/* end confdefs.h. */ 5496int i; 5497_ACEOF 5498if ac_fn_c_try_compile "$LINENO"; then : 5499 xorg_cv_cc_flag_unused_command_line_argument=yes 5500else 5501 xorg_cv_cc_flag_unused_command_line_argument=no 5502fi 5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5504fi 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5508 CFLAGS="$xorg_testset_save_CFLAGS" 5509fi 5510 5511found="no" 5512 5513 if test $found = "no" ; then 5514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5516 fi 5517 5518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5520 fi 5521 5522 CFLAGS="$CFLAGS -Wmissing-prototypes" 5523 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5525$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5526 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5527 if eval \${$cacheid+:} false; then : 5528 $as_echo_n "(cached) " >&6 5529else 5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532int i; 5533int 5534main () 5535{ 5536 5537 ; 5538 return 0; 5539} 5540_ACEOF 5541if ac_fn_c_try_link "$LINENO"; then : 5542 eval $cacheid=yes 5543else 5544 eval $cacheid=no 5545fi 5546rm -f core conftest.err conftest.$ac_objext \ 5547 conftest$ac_exeext conftest.$ac_ext 5548fi 5549 5550 5551 CFLAGS="$xorg_testset_save_CFLAGS" 5552 5553 eval supported=\$$cacheid 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5555$as_echo "$supported" >&6; } 5556 if test "$supported" = "yes" ; then 5557 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5558 found="yes" 5559 fi 5560 fi 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576xorg_testset_save_CFLAGS="$CFLAGS" 5577 5578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5583 $as_echo_n "(cached) " >&6 5584else 5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5586/* end confdefs.h. */ 5587int i; 5588_ACEOF 5589if ac_fn_c_try_compile "$LINENO"; then : 5590 xorg_cv_cc_flag_unknown_warning_option=yes 5591else 5592 xorg_cv_cc_flag_unknown_warning_option=no 5593fi 5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5595fi 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5599 CFLAGS="$xorg_testset_save_CFLAGS" 5600fi 5601 5602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5605 fi 5606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5613/* end confdefs.h. */ 5614int i; 5615_ACEOF 5616if ac_fn_c_try_compile "$LINENO"; then : 5617 xorg_cv_cc_flag_unused_command_line_argument=yes 5618else 5619 xorg_cv_cc_flag_unused_command_line_argument=no 5620fi 5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5622fi 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5626 CFLAGS="$xorg_testset_save_CFLAGS" 5627fi 5628 5629found="no" 5630 5631 if test $found = "no" ; then 5632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5634 fi 5635 5636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5638 fi 5639 5640 CFLAGS="$CFLAGS -Wnested-externs" 5641 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5643$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5644 cacheid=xorg_cv_cc_flag__Wnested_externs 5645 if eval \${$cacheid+:} false; then : 5646 $as_echo_n "(cached) " >&6 5647else 5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5649/* end confdefs.h. */ 5650int i; 5651int 5652main () 5653{ 5654 5655 ; 5656 return 0; 5657} 5658_ACEOF 5659if ac_fn_c_try_link "$LINENO"; then : 5660 eval $cacheid=yes 5661else 5662 eval $cacheid=no 5663fi 5664rm -f core conftest.err conftest.$ac_objext \ 5665 conftest$ac_exeext conftest.$ac_ext 5666fi 5667 5668 5669 CFLAGS="$xorg_testset_save_CFLAGS" 5670 5671 eval supported=\$$cacheid 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5673$as_echo "$supported" >&6; } 5674 if test "$supported" = "yes" ; then 5675 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5676 found="yes" 5677 fi 5678 fi 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694xorg_testset_save_CFLAGS="$CFLAGS" 5695 5696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5701 $as_echo_n "(cached) " >&6 5702else 5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5704/* end confdefs.h. */ 5705int i; 5706_ACEOF 5707if ac_fn_c_try_compile "$LINENO"; then : 5708 xorg_cv_cc_flag_unknown_warning_option=yes 5709else 5710 xorg_cv_cc_flag_unknown_warning_option=no 5711fi 5712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5713fi 5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5717 CFLAGS="$xorg_testset_save_CFLAGS" 5718fi 5719 5720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5723 fi 5724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5728 $as_echo_n "(cached) " >&6 5729else 5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5731/* end confdefs.h. */ 5732int i; 5733_ACEOF 5734if ac_fn_c_try_compile "$LINENO"; then : 5735 xorg_cv_cc_flag_unused_command_line_argument=yes 5736else 5737 xorg_cv_cc_flag_unused_command_line_argument=no 5738fi 5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5740fi 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5744 CFLAGS="$xorg_testset_save_CFLAGS" 5745fi 5746 5747found="no" 5748 5749 if test $found = "no" ; then 5750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5752 fi 5753 5754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5756 fi 5757 5758 CFLAGS="$CFLAGS -Wbad-function-cast" 5759 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5761$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5762 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5763 if eval \${$cacheid+:} false; then : 5764 $as_echo_n "(cached) " >&6 5765else 5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5767/* end confdefs.h. */ 5768int i; 5769int 5770main () 5771{ 5772 5773 ; 5774 return 0; 5775} 5776_ACEOF 5777if ac_fn_c_try_link "$LINENO"; then : 5778 eval $cacheid=yes 5779else 5780 eval $cacheid=no 5781fi 5782rm -f core conftest.err conftest.$ac_objext \ 5783 conftest$ac_exeext conftest.$ac_ext 5784fi 5785 5786 5787 CFLAGS="$xorg_testset_save_CFLAGS" 5788 5789 eval supported=\$$cacheid 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5791$as_echo "$supported" >&6; } 5792 if test "$supported" = "yes" ; then 5793 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5794 found="yes" 5795 fi 5796 fi 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812xorg_testset_save_CFLAGS="$CFLAGS" 5813 5814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5819 $as_echo_n "(cached) " >&6 5820else 5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5822/* end confdefs.h. */ 5823int i; 5824_ACEOF 5825if ac_fn_c_try_compile "$LINENO"; then : 5826 xorg_cv_cc_flag_unknown_warning_option=yes 5827else 5828 xorg_cv_cc_flag_unknown_warning_option=no 5829fi 5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5831fi 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5835 CFLAGS="$xorg_testset_save_CFLAGS" 5836fi 5837 5838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5841 fi 5842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5846 $as_echo_n "(cached) " >&6 5847else 5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5849/* end confdefs.h. */ 5850int i; 5851_ACEOF 5852if ac_fn_c_try_compile "$LINENO"; then : 5853 xorg_cv_cc_flag_unused_command_line_argument=yes 5854else 5855 xorg_cv_cc_flag_unused_command_line_argument=no 5856fi 5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5858fi 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5862 CFLAGS="$xorg_testset_save_CFLAGS" 5863fi 5864 5865found="no" 5866 5867 if test $found = "no" ; then 5868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5870 fi 5871 5872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5874 fi 5875 5876 CFLAGS="$CFLAGS -Wold-style-definition" 5877 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5879$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5880 cacheid=xorg_cv_cc_flag__Wold_style_definition 5881 if eval \${$cacheid+:} false; then : 5882 $as_echo_n "(cached) " >&6 5883else 5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5885/* end confdefs.h. */ 5886int i; 5887int 5888main () 5889{ 5890 5891 ; 5892 return 0; 5893} 5894_ACEOF 5895if ac_fn_c_try_link "$LINENO"; then : 5896 eval $cacheid=yes 5897else 5898 eval $cacheid=no 5899fi 5900rm -f core conftest.err conftest.$ac_objext \ 5901 conftest$ac_exeext conftest.$ac_ext 5902fi 5903 5904 5905 CFLAGS="$xorg_testset_save_CFLAGS" 5906 5907 eval supported=\$$cacheid 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5909$as_echo "$supported" >&6; } 5910 if test "$supported" = "yes" ; then 5911 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5912 found="yes" 5913 fi 5914 fi 5915 5916 if test $found = "no" ; then 5917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5919 fi 5920 5921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5923 fi 5924 5925 CFLAGS="$CFLAGS -fd" 5926 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5928$as_echo_n "checking if $CC supports -fd... " >&6; } 5929 cacheid=xorg_cv_cc_flag__fd 5930 if eval \${$cacheid+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5934/* end confdefs.h. */ 5935int i; 5936int 5937main () 5938{ 5939 5940 ; 5941 return 0; 5942} 5943_ACEOF 5944if ac_fn_c_try_link "$LINENO"; then : 5945 eval $cacheid=yes 5946else 5947 eval $cacheid=no 5948fi 5949rm -f core conftest.err conftest.$ac_objext \ 5950 conftest$ac_exeext conftest.$ac_ext 5951fi 5952 5953 5954 CFLAGS="$xorg_testset_save_CFLAGS" 5955 5956 eval supported=\$$cacheid 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5958$as_echo "$supported" >&6; } 5959 if test "$supported" = "yes" ; then 5960 BASE_CFLAGS="$BASE_CFLAGS -fd" 5961 found="yes" 5962 fi 5963 fi 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979xorg_testset_save_CFLAGS="$CFLAGS" 5980 5981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5989/* end confdefs.h. */ 5990int i; 5991_ACEOF 5992if ac_fn_c_try_compile "$LINENO"; then : 5993 xorg_cv_cc_flag_unknown_warning_option=yes 5994else 5995 xorg_cv_cc_flag_unknown_warning_option=no 5996fi 5997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5998fi 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6002 CFLAGS="$xorg_testset_save_CFLAGS" 6003fi 6004 6005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6008 fi 6009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6016/* end confdefs.h. */ 6017int i; 6018_ACEOF 6019if ac_fn_c_try_compile "$LINENO"; then : 6020 xorg_cv_cc_flag_unused_command_line_argument=yes 6021else 6022 xorg_cv_cc_flag_unused_command_line_argument=no 6023fi 6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6025fi 6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6029 CFLAGS="$xorg_testset_save_CFLAGS" 6030fi 6031 6032found="no" 6033 6034 if test $found = "no" ; then 6035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6037 fi 6038 6039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6041 fi 6042 6043 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6044 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6046$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6047 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6048 if eval \${$cacheid+:} false; then : 6049 $as_echo_n "(cached) " >&6 6050else 6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6052/* end confdefs.h. */ 6053int i; 6054int 6055main () 6056{ 6057 6058 ; 6059 return 0; 6060} 6061_ACEOF 6062if ac_fn_c_try_link "$LINENO"; then : 6063 eval $cacheid=yes 6064else 6065 eval $cacheid=no 6066fi 6067rm -f core conftest.err conftest.$ac_objext \ 6068 conftest$ac_exeext conftest.$ac_ext 6069fi 6070 6071 6072 CFLAGS="$xorg_testset_save_CFLAGS" 6073 6074 eval supported=\$$cacheid 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6076$as_echo "$supported" >&6; } 6077 if test "$supported" = "yes" ; then 6078 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6079 found="yes" 6080 fi 6081 fi 6082 6083 6084 6085 6086 6087# This chunk adds additional warnings that could catch undesired effects. 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101xorg_testset_save_CFLAGS="$CFLAGS" 6102 6103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6108 $as_echo_n "(cached) " >&6 6109else 6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6111/* end confdefs.h. */ 6112int i; 6113_ACEOF 6114if ac_fn_c_try_compile "$LINENO"; then : 6115 xorg_cv_cc_flag_unknown_warning_option=yes 6116else 6117 xorg_cv_cc_flag_unknown_warning_option=no 6118fi 6119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6120fi 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6124 CFLAGS="$xorg_testset_save_CFLAGS" 6125fi 6126 6127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6130 fi 6131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6135 $as_echo_n "(cached) " >&6 6136else 6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138/* end confdefs.h. */ 6139int i; 6140_ACEOF 6141if ac_fn_c_try_compile "$LINENO"; then : 6142 xorg_cv_cc_flag_unused_command_line_argument=yes 6143else 6144 xorg_cv_cc_flag_unused_command_line_argument=no 6145fi 6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6147fi 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152fi 6153 6154found="no" 6155 6156 if test $found = "no" ; then 6157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6159 fi 6160 6161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6163 fi 6164 6165 CFLAGS="$CFLAGS -Wunused" 6166 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6168$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6169 cacheid=xorg_cv_cc_flag__Wunused 6170 if eval \${$cacheid+:} false; then : 6171 $as_echo_n "(cached) " >&6 6172else 6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6174/* end confdefs.h. */ 6175int i; 6176int 6177main () 6178{ 6179 6180 ; 6181 return 0; 6182} 6183_ACEOF 6184if ac_fn_c_try_link "$LINENO"; then : 6185 eval $cacheid=yes 6186else 6187 eval $cacheid=no 6188fi 6189rm -f core conftest.err conftest.$ac_objext \ 6190 conftest$ac_exeext conftest.$ac_ext 6191fi 6192 6193 6194 CFLAGS="$xorg_testset_save_CFLAGS" 6195 6196 eval supported=\$$cacheid 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6198$as_echo "$supported" >&6; } 6199 if test "$supported" = "yes" ; then 6200 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6201 found="yes" 6202 fi 6203 fi 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219xorg_testset_save_CFLAGS="$CFLAGS" 6220 6221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6226 $as_echo_n "(cached) " >&6 6227else 6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6229/* end confdefs.h. */ 6230int i; 6231_ACEOF 6232if ac_fn_c_try_compile "$LINENO"; then : 6233 xorg_cv_cc_flag_unknown_warning_option=yes 6234else 6235 xorg_cv_cc_flag_unknown_warning_option=no 6236fi 6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6238fi 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6242 CFLAGS="$xorg_testset_save_CFLAGS" 6243fi 6244 6245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6248 fi 6249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6256/* end confdefs.h. */ 6257int i; 6258_ACEOF 6259if ac_fn_c_try_compile "$LINENO"; then : 6260 xorg_cv_cc_flag_unused_command_line_argument=yes 6261else 6262 xorg_cv_cc_flag_unused_command_line_argument=no 6263fi 6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6265fi 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6269 CFLAGS="$xorg_testset_save_CFLAGS" 6270fi 6271 6272found="no" 6273 6274 if test $found = "no" ; then 6275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6277 fi 6278 6279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6281 fi 6282 6283 CFLAGS="$CFLAGS -Wuninitialized" 6284 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6286$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6287 cacheid=xorg_cv_cc_flag__Wuninitialized 6288 if eval \${$cacheid+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290else 6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292/* end confdefs.h. */ 6293int i; 6294int 6295main () 6296{ 6297 6298 ; 6299 return 0; 6300} 6301_ACEOF 6302if ac_fn_c_try_link "$LINENO"; then : 6303 eval $cacheid=yes 6304else 6305 eval $cacheid=no 6306fi 6307rm -f core conftest.err conftest.$ac_objext \ 6308 conftest$ac_exeext conftest.$ac_ext 6309fi 6310 6311 6312 CFLAGS="$xorg_testset_save_CFLAGS" 6313 6314 eval supported=\$$cacheid 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6316$as_echo "$supported" >&6; } 6317 if test "$supported" = "yes" ; then 6318 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6319 found="yes" 6320 fi 6321 fi 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337xorg_testset_save_CFLAGS="$CFLAGS" 6338 6339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6344 $as_echo_n "(cached) " >&6 6345else 6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6347/* end confdefs.h. */ 6348int i; 6349_ACEOF 6350if ac_fn_c_try_compile "$LINENO"; then : 6351 xorg_cv_cc_flag_unknown_warning_option=yes 6352else 6353 xorg_cv_cc_flag_unknown_warning_option=no 6354fi 6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6356fi 6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6360 CFLAGS="$xorg_testset_save_CFLAGS" 6361fi 6362 6363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6366 fi 6367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6371 $as_echo_n "(cached) " >&6 6372else 6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6374/* end confdefs.h. */ 6375int i; 6376_ACEOF 6377if ac_fn_c_try_compile "$LINENO"; then : 6378 xorg_cv_cc_flag_unused_command_line_argument=yes 6379else 6380 xorg_cv_cc_flag_unused_command_line_argument=no 6381fi 6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6383fi 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6387 CFLAGS="$xorg_testset_save_CFLAGS" 6388fi 6389 6390found="no" 6391 6392 if test $found = "no" ; then 6393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6395 fi 6396 6397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6399 fi 6400 6401 CFLAGS="$CFLAGS -Wshadow" 6402 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6404$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6405 cacheid=xorg_cv_cc_flag__Wshadow 6406 if eval \${$cacheid+:} false; then : 6407 $as_echo_n "(cached) " >&6 6408else 6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410/* end confdefs.h. */ 6411int i; 6412int 6413main () 6414{ 6415 6416 ; 6417 return 0; 6418} 6419_ACEOF 6420if ac_fn_c_try_link "$LINENO"; then : 6421 eval $cacheid=yes 6422else 6423 eval $cacheid=no 6424fi 6425rm -f core conftest.err conftest.$ac_objext \ 6426 conftest$ac_exeext conftest.$ac_ext 6427fi 6428 6429 6430 CFLAGS="$xorg_testset_save_CFLAGS" 6431 6432 eval supported=\$$cacheid 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6434$as_echo "$supported" >&6; } 6435 if test "$supported" = "yes" ; then 6436 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6437 found="yes" 6438 fi 6439 fi 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455xorg_testset_save_CFLAGS="$CFLAGS" 6456 6457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6460$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6461if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466int i; 6467_ACEOF 6468if ac_fn_c_try_compile "$LINENO"; then : 6469 xorg_cv_cc_flag_unknown_warning_option=yes 6470else 6471 xorg_cv_cc_flag_unknown_warning_option=no 6472fi 6473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6474fi 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6476$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6478 CFLAGS="$xorg_testset_save_CFLAGS" 6479fi 6480 6481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6484 fi 6485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6487$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6488if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6489 $as_echo_n "(cached) " >&6 6490else 6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6492/* end confdefs.h. */ 6493int i; 6494_ACEOF 6495if ac_fn_c_try_compile "$LINENO"; then : 6496 xorg_cv_cc_flag_unused_command_line_argument=yes 6497else 6498 xorg_cv_cc_flag_unused_command_line_argument=no 6499fi 6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6501fi 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6503$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6505 CFLAGS="$xorg_testset_save_CFLAGS" 6506fi 6507 6508found="no" 6509 6510 if test $found = "no" ; then 6511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6513 fi 6514 6515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6517 fi 6518 6519 CFLAGS="$CFLAGS -Wmissing-noreturn" 6520 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6522$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6523 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6524 if eval \${$cacheid+:} false; then : 6525 $as_echo_n "(cached) " >&6 6526else 6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6528/* end confdefs.h. */ 6529int i; 6530int 6531main () 6532{ 6533 6534 ; 6535 return 0; 6536} 6537_ACEOF 6538if ac_fn_c_try_link "$LINENO"; then : 6539 eval $cacheid=yes 6540else 6541 eval $cacheid=no 6542fi 6543rm -f core conftest.err conftest.$ac_objext \ 6544 conftest$ac_exeext conftest.$ac_ext 6545fi 6546 6547 6548 CFLAGS="$xorg_testset_save_CFLAGS" 6549 6550 eval supported=\$$cacheid 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6552$as_echo "$supported" >&6; } 6553 if test "$supported" = "yes" ; then 6554 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6555 found="yes" 6556 fi 6557 fi 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573xorg_testset_save_CFLAGS="$CFLAGS" 6574 6575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6578$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6579if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6580 $as_echo_n "(cached) " >&6 6581else 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583/* end confdefs.h. */ 6584int i; 6585_ACEOF 6586if ac_fn_c_try_compile "$LINENO"; then : 6587 xorg_cv_cc_flag_unknown_warning_option=yes 6588else 6589 xorg_cv_cc_flag_unknown_warning_option=no 6590fi 6591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6592fi 6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6594$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6596 CFLAGS="$xorg_testset_save_CFLAGS" 6597fi 6598 6599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6602 fi 6603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6605$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6606if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6607 $as_echo_n "(cached) " >&6 6608else 6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6610/* end confdefs.h. */ 6611int i; 6612_ACEOF 6613if ac_fn_c_try_compile "$LINENO"; then : 6614 xorg_cv_cc_flag_unused_command_line_argument=yes 6615else 6616 xorg_cv_cc_flag_unused_command_line_argument=no 6617fi 6618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6619fi 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6621$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6623 CFLAGS="$xorg_testset_save_CFLAGS" 6624fi 6625 6626found="no" 6627 6628 if test $found = "no" ; then 6629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6631 fi 6632 6633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6635 fi 6636 6637 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6638 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6640$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6641 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6642 if eval \${$cacheid+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646/* end confdefs.h. */ 6647int i; 6648int 6649main () 6650{ 6651 6652 ; 6653 return 0; 6654} 6655_ACEOF 6656if ac_fn_c_try_link "$LINENO"; then : 6657 eval $cacheid=yes 6658else 6659 eval $cacheid=no 6660fi 6661rm -f core conftest.err conftest.$ac_objext \ 6662 conftest$ac_exeext conftest.$ac_ext 6663fi 6664 6665 6666 CFLAGS="$xorg_testset_save_CFLAGS" 6667 6668 eval supported=\$$cacheid 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6670$as_echo "$supported" >&6; } 6671 if test "$supported" = "yes" ; then 6672 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6673 found="yes" 6674 fi 6675 fi 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691xorg_testset_save_CFLAGS="$CFLAGS" 6692 6693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6696$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6697if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6701/* end confdefs.h. */ 6702int i; 6703_ACEOF 6704if ac_fn_c_try_compile "$LINENO"; then : 6705 xorg_cv_cc_flag_unknown_warning_option=yes 6706else 6707 xorg_cv_cc_flag_unknown_warning_option=no 6708fi 6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6710fi 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6712$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6714 CFLAGS="$xorg_testset_save_CFLAGS" 6715fi 6716 6717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6720 fi 6721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6723$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6724if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6725 $as_echo_n "(cached) " >&6 6726else 6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6728/* end confdefs.h. */ 6729int i; 6730_ACEOF 6731if ac_fn_c_try_compile "$LINENO"; then : 6732 xorg_cv_cc_flag_unused_command_line_argument=yes 6733else 6734 xorg_cv_cc_flag_unused_command_line_argument=no 6735fi 6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6737fi 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6739$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6741 CFLAGS="$xorg_testset_save_CFLAGS" 6742fi 6743 6744found="no" 6745 6746 if test $found = "no" ; then 6747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6749 fi 6750 6751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6753 fi 6754 6755 CFLAGS="$CFLAGS -Wredundant-decls" 6756 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6758$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6759 cacheid=xorg_cv_cc_flag__Wredundant_decls 6760 if eval \${$cacheid+:} false; then : 6761 $as_echo_n "(cached) " >&6 6762else 6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764/* end confdefs.h. */ 6765int i; 6766int 6767main () 6768{ 6769 6770 ; 6771 return 0; 6772} 6773_ACEOF 6774if ac_fn_c_try_link "$LINENO"; then : 6775 eval $cacheid=yes 6776else 6777 eval $cacheid=no 6778fi 6779rm -f core conftest.err conftest.$ac_objext \ 6780 conftest$ac_exeext conftest.$ac_ext 6781fi 6782 6783 6784 CFLAGS="$xorg_testset_save_CFLAGS" 6785 6786 eval supported=\$$cacheid 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6788$as_echo "$supported" >&6; } 6789 if test "$supported" = "yes" ; then 6790 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6791 found="yes" 6792 fi 6793 fi 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809xorg_testset_save_CFLAGS="$CFLAGS" 6810 6811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6815if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6816 $as_echo_n "(cached) " >&6 6817else 6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6819/* end confdefs.h. */ 6820int i; 6821_ACEOF 6822if ac_fn_c_try_compile "$LINENO"; then : 6823 xorg_cv_cc_flag_unknown_warning_option=yes 6824else 6825 xorg_cv_cc_flag_unknown_warning_option=no 6826fi 6827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6828fi 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6830$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6832 CFLAGS="$xorg_testset_save_CFLAGS" 6833fi 6834 6835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6838 fi 6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6841$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6842if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6846/* end confdefs.h. */ 6847int i; 6848_ACEOF 6849if ac_fn_c_try_compile "$LINENO"; then : 6850 xorg_cv_cc_flag_unused_command_line_argument=yes 6851else 6852 xorg_cv_cc_flag_unused_command_line_argument=no 6853fi 6854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6855fi 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6857$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6859 CFLAGS="$xorg_testset_save_CFLAGS" 6860fi 6861 6862found="no" 6863 6864 if test $found = "no" ; then 6865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6867 fi 6868 6869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6871 fi 6872 6873 CFLAGS="$CFLAGS -Wlogical-op" 6874 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6876$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6877 cacheid=xorg_cv_cc_flag__Wlogical_op 6878 if eval \${$cacheid+:} false; then : 6879 $as_echo_n "(cached) " >&6 6880else 6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6882/* end confdefs.h. */ 6883int i; 6884int 6885main () 6886{ 6887 6888 ; 6889 return 0; 6890} 6891_ACEOF 6892if ac_fn_c_try_link "$LINENO"; then : 6893 eval $cacheid=yes 6894else 6895 eval $cacheid=no 6896fi 6897rm -f core conftest.err conftest.$ac_objext \ 6898 conftest$ac_exeext conftest.$ac_ext 6899fi 6900 6901 6902 CFLAGS="$xorg_testset_save_CFLAGS" 6903 6904 eval supported=\$$cacheid 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6906$as_echo "$supported" >&6; } 6907 if test "$supported" = "yes" ; then 6908 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6909 found="yes" 6910 fi 6911 fi 6912 6913 6914 6915# These are currently disabled because they are noisy. They will be enabled 6916# in the future once the codebase is sufficiently modernized to silence 6917# them. For now, I don't want them to drown out the other warnings. 6918# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6919# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6920# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6921 6922# Turn some warnings into errors, so we don't accidently get successful builds 6923# when there are problems that should be fixed. 6924 6925if test "x$SELECTIVE_WERROR" = "xyes" ; then 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939xorg_testset_save_CFLAGS="$CFLAGS" 6940 6941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6946 $as_echo_n "(cached) " >&6 6947else 6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6949/* end confdefs.h. */ 6950int i; 6951_ACEOF 6952if ac_fn_c_try_compile "$LINENO"; then : 6953 xorg_cv_cc_flag_unknown_warning_option=yes 6954else 6955 xorg_cv_cc_flag_unknown_warning_option=no 6956fi 6957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6958fi 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6962 CFLAGS="$xorg_testset_save_CFLAGS" 6963fi 6964 6965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6968 fi 6969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6973 $as_echo_n "(cached) " >&6 6974else 6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6976/* end confdefs.h. */ 6977int i; 6978_ACEOF 6979if ac_fn_c_try_compile "$LINENO"; then : 6980 xorg_cv_cc_flag_unused_command_line_argument=yes 6981else 6982 xorg_cv_cc_flag_unused_command_line_argument=no 6983fi 6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6985fi 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6989 CFLAGS="$xorg_testset_save_CFLAGS" 6990fi 6991 6992found="no" 6993 6994 if test $found = "no" ; then 6995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6997 fi 6998 6999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7001 fi 7002 7003 CFLAGS="$CFLAGS -Werror=implicit" 7004 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7006$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7007 cacheid=xorg_cv_cc_flag__Werror_implicit 7008 if eval \${$cacheid+:} false; then : 7009 $as_echo_n "(cached) " >&6 7010else 7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012/* end confdefs.h. */ 7013int i; 7014int 7015main () 7016{ 7017 7018 ; 7019 return 0; 7020} 7021_ACEOF 7022if ac_fn_c_try_link "$LINENO"; then : 7023 eval $cacheid=yes 7024else 7025 eval $cacheid=no 7026fi 7027rm -f core conftest.err conftest.$ac_objext \ 7028 conftest$ac_exeext conftest.$ac_ext 7029fi 7030 7031 7032 CFLAGS="$xorg_testset_save_CFLAGS" 7033 7034 eval supported=\$$cacheid 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7036$as_echo "$supported" >&6; } 7037 if test "$supported" = "yes" ; then 7038 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7039 found="yes" 7040 fi 7041 fi 7042 7043 if test $found = "no" ; then 7044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7046 fi 7047 7048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7050 fi 7051 7052 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7053 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7055$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7056 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7057 if eval \${$cacheid+:} false; then : 7058 $as_echo_n "(cached) " >&6 7059else 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062int i; 7063int 7064main () 7065{ 7066 7067 ; 7068 return 0; 7069} 7070_ACEOF 7071if ac_fn_c_try_link "$LINENO"; then : 7072 eval $cacheid=yes 7073else 7074 eval $cacheid=no 7075fi 7076rm -f core conftest.err conftest.$ac_objext \ 7077 conftest$ac_exeext conftest.$ac_ext 7078fi 7079 7080 7081 CFLAGS="$xorg_testset_save_CFLAGS" 7082 7083 eval supported=\$$cacheid 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7085$as_echo "$supported" >&6; } 7086 if test "$supported" = "yes" ; then 7087 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7088 found="yes" 7089 fi 7090 fi 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106xorg_testset_save_CFLAGS="$CFLAGS" 7107 7108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7113 $as_echo_n "(cached) " >&6 7114else 7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7116/* end confdefs.h. */ 7117int i; 7118_ACEOF 7119if ac_fn_c_try_compile "$LINENO"; then : 7120 xorg_cv_cc_flag_unknown_warning_option=yes 7121else 7122 xorg_cv_cc_flag_unknown_warning_option=no 7123fi 7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7125fi 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7129 CFLAGS="$xorg_testset_save_CFLAGS" 7130fi 7131 7132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7135 fi 7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7140 $as_echo_n "(cached) " >&6 7141else 7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7143/* end confdefs.h. */ 7144int i; 7145_ACEOF 7146if ac_fn_c_try_compile "$LINENO"; then : 7147 xorg_cv_cc_flag_unused_command_line_argument=yes 7148else 7149 xorg_cv_cc_flag_unused_command_line_argument=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7152fi 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157fi 7158 7159found="no" 7160 7161 if test $found = "no" ; then 7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7164 fi 7165 7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7168 fi 7169 7170 CFLAGS="$CFLAGS -Werror=nonnull" 7171 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7173$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7174 cacheid=xorg_cv_cc_flag__Werror_nonnull 7175 if eval \${$cacheid+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179/* end confdefs.h. */ 7180int i; 7181int 7182main () 7183{ 7184 7185 ; 7186 return 0; 7187} 7188_ACEOF 7189if ac_fn_c_try_link "$LINENO"; then : 7190 eval $cacheid=yes 7191else 7192 eval $cacheid=no 7193fi 7194rm -f core conftest.err conftest.$ac_objext \ 7195 conftest$ac_exeext conftest.$ac_ext 7196fi 7197 7198 7199 CFLAGS="$xorg_testset_save_CFLAGS" 7200 7201 eval supported=\$$cacheid 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7203$as_echo "$supported" >&6; } 7204 if test "$supported" = "yes" ; then 7205 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7206 found="yes" 7207 fi 7208 fi 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224xorg_testset_save_CFLAGS="$CFLAGS" 7225 7226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7229$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7230if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235int i; 7236_ACEOF 7237if ac_fn_c_try_compile "$LINENO"; then : 7238 xorg_cv_cc_flag_unknown_warning_option=yes 7239else 7240 xorg_cv_cc_flag_unknown_warning_option=no 7241fi 7242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7243fi 7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7245$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7247 CFLAGS="$xorg_testset_save_CFLAGS" 7248fi 7249 7250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7253 fi 7254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7256$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7257if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261/* end confdefs.h. */ 7262int i; 7263_ACEOF 7264if ac_fn_c_try_compile "$LINENO"; then : 7265 xorg_cv_cc_flag_unused_command_line_argument=yes 7266else 7267 xorg_cv_cc_flag_unused_command_line_argument=no 7268fi 7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7270fi 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7272$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7274 CFLAGS="$xorg_testset_save_CFLAGS" 7275fi 7276 7277found="no" 7278 7279 if test $found = "no" ; then 7280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7282 fi 7283 7284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7286 fi 7287 7288 CFLAGS="$CFLAGS -Werror=init-self" 7289 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7291$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7292 cacheid=xorg_cv_cc_flag__Werror_init_self 7293 if eval \${$cacheid+:} false; then : 7294 $as_echo_n "(cached) " >&6 7295else 7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7297/* end confdefs.h. */ 7298int i; 7299int 7300main () 7301{ 7302 7303 ; 7304 return 0; 7305} 7306_ACEOF 7307if ac_fn_c_try_link "$LINENO"; then : 7308 eval $cacheid=yes 7309else 7310 eval $cacheid=no 7311fi 7312rm -f core conftest.err conftest.$ac_objext \ 7313 conftest$ac_exeext conftest.$ac_ext 7314fi 7315 7316 7317 CFLAGS="$xorg_testset_save_CFLAGS" 7318 7319 eval supported=\$$cacheid 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7321$as_echo "$supported" >&6; } 7322 if test "$supported" = "yes" ; then 7323 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7324 found="yes" 7325 fi 7326 fi 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342xorg_testset_save_CFLAGS="$CFLAGS" 7343 7344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7347$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7348if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7349 $as_echo_n "(cached) " >&6 7350else 7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352/* end confdefs.h. */ 7353int i; 7354_ACEOF 7355if ac_fn_c_try_compile "$LINENO"; then : 7356 xorg_cv_cc_flag_unknown_warning_option=yes 7357else 7358 xorg_cv_cc_flag_unknown_warning_option=no 7359fi 7360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7361fi 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7363$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7365 CFLAGS="$xorg_testset_save_CFLAGS" 7366fi 7367 7368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7371 fi 7372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7374$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7375if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7379/* end confdefs.h. */ 7380int i; 7381_ACEOF 7382if ac_fn_c_try_compile "$LINENO"; then : 7383 xorg_cv_cc_flag_unused_command_line_argument=yes 7384else 7385 xorg_cv_cc_flag_unused_command_line_argument=no 7386fi 7387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7388fi 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7390$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7392 CFLAGS="$xorg_testset_save_CFLAGS" 7393fi 7394 7395found="no" 7396 7397 if test $found = "no" ; then 7398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7400 fi 7401 7402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7404 fi 7405 7406 CFLAGS="$CFLAGS -Werror=main" 7407 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7409$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7410 cacheid=xorg_cv_cc_flag__Werror_main 7411 if eval \${$cacheid+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7415/* end confdefs.h. */ 7416int i; 7417int 7418main () 7419{ 7420 7421 ; 7422 return 0; 7423} 7424_ACEOF 7425if ac_fn_c_try_link "$LINENO"; then : 7426 eval $cacheid=yes 7427else 7428 eval $cacheid=no 7429fi 7430rm -f core conftest.err conftest.$ac_objext \ 7431 conftest$ac_exeext conftest.$ac_ext 7432fi 7433 7434 7435 CFLAGS="$xorg_testset_save_CFLAGS" 7436 7437 eval supported=\$$cacheid 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7439$as_echo "$supported" >&6; } 7440 if test "$supported" = "yes" ; then 7441 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7442 found="yes" 7443 fi 7444 fi 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460xorg_testset_save_CFLAGS="$CFLAGS" 7461 7462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7467 $as_echo_n "(cached) " >&6 7468else 7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470/* end confdefs.h. */ 7471int i; 7472_ACEOF 7473if ac_fn_c_try_compile "$LINENO"; then : 7474 xorg_cv_cc_flag_unknown_warning_option=yes 7475else 7476 xorg_cv_cc_flag_unknown_warning_option=no 7477fi 7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7479fi 7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7483 CFLAGS="$xorg_testset_save_CFLAGS" 7484fi 7485 7486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7489 fi 7490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497/* end confdefs.h. */ 7498int i; 7499_ACEOF 7500if ac_fn_c_try_compile "$LINENO"; then : 7501 xorg_cv_cc_flag_unused_command_line_argument=yes 7502else 7503 xorg_cv_cc_flag_unused_command_line_argument=no 7504fi 7505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7506fi 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7510 CFLAGS="$xorg_testset_save_CFLAGS" 7511fi 7512 7513found="no" 7514 7515 if test $found = "no" ; then 7516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7518 fi 7519 7520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7522 fi 7523 7524 CFLAGS="$CFLAGS -Werror=missing-braces" 7525 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7527$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7528 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7529 if eval \${$cacheid+:} false; then : 7530 $as_echo_n "(cached) " >&6 7531else 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534int i; 7535int 7536main () 7537{ 7538 7539 ; 7540 return 0; 7541} 7542_ACEOF 7543if ac_fn_c_try_link "$LINENO"; then : 7544 eval $cacheid=yes 7545else 7546 eval $cacheid=no 7547fi 7548rm -f core conftest.err conftest.$ac_objext \ 7549 conftest$ac_exeext conftest.$ac_ext 7550fi 7551 7552 7553 CFLAGS="$xorg_testset_save_CFLAGS" 7554 7555 eval supported=\$$cacheid 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7557$as_echo "$supported" >&6; } 7558 if test "$supported" = "yes" ; then 7559 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7560 found="yes" 7561 fi 7562 fi 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578xorg_testset_save_CFLAGS="$CFLAGS" 7579 7580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7585 $as_echo_n "(cached) " >&6 7586else 7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7588/* end confdefs.h. */ 7589int i; 7590_ACEOF 7591if ac_fn_c_try_compile "$LINENO"; then : 7592 xorg_cv_cc_flag_unknown_warning_option=yes 7593else 7594 xorg_cv_cc_flag_unknown_warning_option=no 7595fi 7596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7597fi 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7601 CFLAGS="$xorg_testset_save_CFLAGS" 7602fi 7603 7604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7607 fi 7608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7612 $as_echo_n "(cached) " >&6 7613else 7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615/* end confdefs.h. */ 7616int i; 7617_ACEOF 7618if ac_fn_c_try_compile "$LINENO"; then : 7619 xorg_cv_cc_flag_unused_command_line_argument=yes 7620else 7621 xorg_cv_cc_flag_unused_command_line_argument=no 7622fi 7623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7624fi 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7628 CFLAGS="$xorg_testset_save_CFLAGS" 7629fi 7630 7631found="no" 7632 7633 if test $found = "no" ; then 7634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7636 fi 7637 7638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7640 fi 7641 7642 CFLAGS="$CFLAGS -Werror=sequence-point" 7643 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7645$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7646 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7647 if eval \${$cacheid+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7651/* end confdefs.h. */ 7652int i; 7653int 7654main () 7655{ 7656 7657 ; 7658 return 0; 7659} 7660_ACEOF 7661if ac_fn_c_try_link "$LINENO"; then : 7662 eval $cacheid=yes 7663else 7664 eval $cacheid=no 7665fi 7666rm -f core conftest.err conftest.$ac_objext \ 7667 conftest$ac_exeext conftest.$ac_ext 7668fi 7669 7670 7671 CFLAGS="$xorg_testset_save_CFLAGS" 7672 7673 eval supported=\$$cacheid 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7675$as_echo "$supported" >&6; } 7676 if test "$supported" = "yes" ; then 7677 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7678 found="yes" 7679 fi 7680 fi 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696xorg_testset_save_CFLAGS="$CFLAGS" 7697 7698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7703 $as_echo_n "(cached) " >&6 7704else 7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7706/* end confdefs.h. */ 7707int i; 7708_ACEOF 7709if ac_fn_c_try_compile "$LINENO"; then : 7710 xorg_cv_cc_flag_unknown_warning_option=yes 7711else 7712 xorg_cv_cc_flag_unknown_warning_option=no 7713fi 7714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7715fi 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7719 CFLAGS="$xorg_testset_save_CFLAGS" 7720fi 7721 7722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7725 fi 7726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7730 $as_echo_n "(cached) " >&6 7731else 7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7733/* end confdefs.h. */ 7734int i; 7735_ACEOF 7736if ac_fn_c_try_compile "$LINENO"; then : 7737 xorg_cv_cc_flag_unused_command_line_argument=yes 7738else 7739 xorg_cv_cc_flag_unused_command_line_argument=no 7740fi 7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7742fi 7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7746 CFLAGS="$xorg_testset_save_CFLAGS" 7747fi 7748 7749found="no" 7750 7751 if test $found = "no" ; then 7752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7754 fi 7755 7756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7758 fi 7759 7760 CFLAGS="$CFLAGS -Werror=return-type" 7761 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7763$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7764 cacheid=xorg_cv_cc_flag__Werror_return_type 7765 if eval \${$cacheid+:} false; then : 7766 $as_echo_n "(cached) " >&6 7767else 7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7769/* end confdefs.h. */ 7770int i; 7771int 7772main () 7773{ 7774 7775 ; 7776 return 0; 7777} 7778_ACEOF 7779if ac_fn_c_try_link "$LINENO"; then : 7780 eval $cacheid=yes 7781else 7782 eval $cacheid=no 7783fi 7784rm -f core conftest.err conftest.$ac_objext \ 7785 conftest$ac_exeext conftest.$ac_ext 7786fi 7787 7788 7789 CFLAGS="$xorg_testset_save_CFLAGS" 7790 7791 eval supported=\$$cacheid 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7793$as_echo "$supported" >&6; } 7794 if test "$supported" = "yes" ; then 7795 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7796 found="yes" 7797 fi 7798 fi 7799 7800 if test $found = "no" ; then 7801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7803 fi 7804 7805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7807 fi 7808 7809 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7810 7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7812$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7813 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7814 if eval \${$cacheid+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819int i; 7820int 7821main () 7822{ 7823 7824 ; 7825 return 0; 7826} 7827_ACEOF 7828if ac_fn_c_try_link "$LINENO"; then : 7829 eval $cacheid=yes 7830else 7831 eval $cacheid=no 7832fi 7833rm -f core conftest.err conftest.$ac_objext \ 7834 conftest$ac_exeext conftest.$ac_ext 7835fi 7836 7837 7838 CFLAGS="$xorg_testset_save_CFLAGS" 7839 7840 eval supported=\$$cacheid 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7842$as_echo "$supported" >&6; } 7843 if test "$supported" = "yes" ; then 7844 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7845 found="yes" 7846 fi 7847 fi 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863xorg_testset_save_CFLAGS="$CFLAGS" 7864 7865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7870 $as_echo_n "(cached) " >&6 7871else 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873/* end confdefs.h. */ 7874int i; 7875_ACEOF 7876if ac_fn_c_try_compile "$LINENO"; then : 7877 xorg_cv_cc_flag_unknown_warning_option=yes 7878else 7879 xorg_cv_cc_flag_unknown_warning_option=no 7880fi 7881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7882fi 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7886 CFLAGS="$xorg_testset_save_CFLAGS" 7887fi 7888 7889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7892 fi 7893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7897 $as_echo_n "(cached) " >&6 7898else 7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7900/* end confdefs.h. */ 7901int i; 7902_ACEOF 7903if ac_fn_c_try_compile "$LINENO"; then : 7904 xorg_cv_cc_flag_unused_command_line_argument=yes 7905else 7906 xorg_cv_cc_flag_unused_command_line_argument=no 7907fi 7908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7909fi 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7913 CFLAGS="$xorg_testset_save_CFLAGS" 7914fi 7915 7916found="no" 7917 7918 if test $found = "no" ; then 7919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7921 fi 7922 7923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7925 fi 7926 7927 CFLAGS="$CFLAGS -Werror=trigraphs" 7928 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7930$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7931 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7932 if eval \${$cacheid+:} false; then : 7933 $as_echo_n "(cached) " >&6 7934else 7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7936/* end confdefs.h. */ 7937int i; 7938int 7939main () 7940{ 7941 7942 ; 7943 return 0; 7944} 7945_ACEOF 7946if ac_fn_c_try_link "$LINENO"; then : 7947 eval $cacheid=yes 7948else 7949 eval $cacheid=no 7950fi 7951rm -f core conftest.err conftest.$ac_objext \ 7952 conftest$ac_exeext conftest.$ac_ext 7953fi 7954 7955 7956 CFLAGS="$xorg_testset_save_CFLAGS" 7957 7958 eval supported=\$$cacheid 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7960$as_echo "$supported" >&6; } 7961 if test "$supported" = "yes" ; then 7962 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7963 found="yes" 7964 fi 7965 fi 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981xorg_testset_save_CFLAGS="$CFLAGS" 7982 7983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7988 $as_echo_n "(cached) " >&6 7989else 7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7991/* end confdefs.h. */ 7992int i; 7993_ACEOF 7994if ac_fn_c_try_compile "$LINENO"; then : 7995 xorg_cv_cc_flag_unknown_warning_option=yes 7996else 7997 xorg_cv_cc_flag_unknown_warning_option=no 7998fi 7999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8000fi 8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8004 CFLAGS="$xorg_testset_save_CFLAGS" 8005fi 8006 8007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8010 fi 8011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018/* end confdefs.h. */ 8019int i; 8020_ACEOF 8021if ac_fn_c_try_compile "$LINENO"; then : 8022 xorg_cv_cc_flag_unused_command_line_argument=yes 8023else 8024 xorg_cv_cc_flag_unused_command_line_argument=no 8025fi 8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8027fi 8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8031 CFLAGS="$xorg_testset_save_CFLAGS" 8032fi 8033 8034found="no" 8035 8036 if test $found = "no" ; then 8037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8039 fi 8040 8041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8043 fi 8044 8045 CFLAGS="$CFLAGS -Werror=array-bounds" 8046 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8048$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8049 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8050 if eval \${$cacheid+:} false; then : 8051 $as_echo_n "(cached) " >&6 8052else 8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8054/* end confdefs.h. */ 8055int i; 8056int 8057main () 8058{ 8059 8060 ; 8061 return 0; 8062} 8063_ACEOF 8064if ac_fn_c_try_link "$LINENO"; then : 8065 eval $cacheid=yes 8066else 8067 eval $cacheid=no 8068fi 8069rm -f core conftest.err conftest.$ac_objext \ 8070 conftest$ac_exeext conftest.$ac_ext 8071fi 8072 8073 8074 CFLAGS="$xorg_testset_save_CFLAGS" 8075 8076 eval supported=\$$cacheid 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8078$as_echo "$supported" >&6; } 8079 if test "$supported" = "yes" ; then 8080 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8081 found="yes" 8082 fi 8083 fi 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099xorg_testset_save_CFLAGS="$CFLAGS" 8100 8101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109/* end confdefs.h. */ 8110int i; 8111_ACEOF 8112if ac_fn_c_try_compile "$LINENO"; then : 8113 xorg_cv_cc_flag_unknown_warning_option=yes 8114else 8115 xorg_cv_cc_flag_unknown_warning_option=no 8116fi 8117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8118fi 8119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8122 CFLAGS="$xorg_testset_save_CFLAGS" 8123fi 8124 8125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8128 fi 8129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8136/* end confdefs.h. */ 8137int i; 8138_ACEOF 8139if ac_fn_c_try_compile "$LINENO"; then : 8140 xorg_cv_cc_flag_unused_command_line_argument=yes 8141else 8142 xorg_cv_cc_flag_unused_command_line_argument=no 8143fi 8144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8145fi 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8149 CFLAGS="$xorg_testset_save_CFLAGS" 8150fi 8151 8152found="no" 8153 8154 if test $found = "no" ; then 8155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8157 fi 8158 8159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8161 fi 8162 8163 CFLAGS="$CFLAGS -Werror=write-strings" 8164 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8166$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8167 cacheid=xorg_cv_cc_flag__Werror_write_strings 8168 if eval \${$cacheid+:} false; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173int i; 8174int 8175main () 8176{ 8177 8178 ; 8179 return 0; 8180} 8181_ACEOF 8182if ac_fn_c_try_link "$LINENO"; then : 8183 eval $cacheid=yes 8184else 8185 eval $cacheid=no 8186fi 8187rm -f core conftest.err conftest.$ac_objext \ 8188 conftest$ac_exeext conftest.$ac_ext 8189fi 8190 8191 8192 CFLAGS="$xorg_testset_save_CFLAGS" 8193 8194 eval supported=\$$cacheid 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8196$as_echo "$supported" >&6; } 8197 if test "$supported" = "yes" ; then 8198 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8199 found="yes" 8200 fi 8201 fi 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217xorg_testset_save_CFLAGS="$CFLAGS" 8218 8219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8224 $as_echo_n "(cached) " >&6 8225else 8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8227/* end confdefs.h. */ 8228int i; 8229_ACEOF 8230if ac_fn_c_try_compile "$LINENO"; then : 8231 xorg_cv_cc_flag_unknown_warning_option=yes 8232else 8233 xorg_cv_cc_flag_unknown_warning_option=no 8234fi 8235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8236fi 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8240 CFLAGS="$xorg_testset_save_CFLAGS" 8241fi 8242 8243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8246 fi 8247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8254/* end confdefs.h. */ 8255int i; 8256_ACEOF 8257if ac_fn_c_try_compile "$LINENO"; then : 8258 xorg_cv_cc_flag_unused_command_line_argument=yes 8259else 8260 xorg_cv_cc_flag_unused_command_line_argument=no 8261fi 8262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8263fi 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8267 CFLAGS="$xorg_testset_save_CFLAGS" 8268fi 8269 8270found="no" 8271 8272 if test $found = "no" ; then 8273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8275 fi 8276 8277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8279 fi 8280 8281 CFLAGS="$CFLAGS -Werror=address" 8282 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8284$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8285 cacheid=xorg_cv_cc_flag__Werror_address 8286 if eval \${$cacheid+:} false; then : 8287 $as_echo_n "(cached) " >&6 8288else 8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8290/* end confdefs.h. */ 8291int i; 8292int 8293main () 8294{ 8295 8296 ; 8297 return 0; 8298} 8299_ACEOF 8300if ac_fn_c_try_link "$LINENO"; then : 8301 eval $cacheid=yes 8302else 8303 eval $cacheid=no 8304fi 8305rm -f core conftest.err conftest.$ac_objext \ 8306 conftest$ac_exeext conftest.$ac_ext 8307fi 8308 8309 8310 CFLAGS="$xorg_testset_save_CFLAGS" 8311 8312 eval supported=\$$cacheid 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8314$as_echo "$supported" >&6; } 8315 if test "$supported" = "yes" ; then 8316 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8317 found="yes" 8318 fi 8319 fi 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335xorg_testset_save_CFLAGS="$CFLAGS" 8336 8337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8342 $as_echo_n "(cached) " >&6 8343else 8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346int i; 8347_ACEOF 8348if ac_fn_c_try_compile "$LINENO"; then : 8349 xorg_cv_cc_flag_unknown_warning_option=yes 8350else 8351 xorg_cv_cc_flag_unknown_warning_option=no 8352fi 8353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8354fi 8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8358 CFLAGS="$xorg_testset_save_CFLAGS" 8359fi 8360 8361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8364 fi 8365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8369 $as_echo_n "(cached) " >&6 8370else 8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8372/* end confdefs.h. */ 8373int i; 8374_ACEOF 8375if ac_fn_c_try_compile "$LINENO"; then : 8376 xorg_cv_cc_flag_unused_command_line_argument=yes 8377else 8378 xorg_cv_cc_flag_unused_command_line_argument=no 8379fi 8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8381fi 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8385 CFLAGS="$xorg_testset_save_CFLAGS" 8386fi 8387 8388found="no" 8389 8390 if test $found = "no" ; then 8391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8393 fi 8394 8395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8397 fi 8398 8399 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8400 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8402$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8403 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8404 if eval \${$cacheid+:} false; then : 8405 $as_echo_n "(cached) " >&6 8406else 8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8408/* end confdefs.h. */ 8409int i; 8410int 8411main () 8412{ 8413 8414 ; 8415 return 0; 8416} 8417_ACEOF 8418if ac_fn_c_try_link "$LINENO"; then : 8419 eval $cacheid=yes 8420else 8421 eval $cacheid=no 8422fi 8423rm -f core conftest.err conftest.$ac_objext \ 8424 conftest$ac_exeext conftest.$ac_ext 8425fi 8426 8427 8428 CFLAGS="$xorg_testset_save_CFLAGS" 8429 8430 eval supported=\$$cacheid 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8432$as_echo "$supported" >&6; } 8433 if test "$supported" = "yes" ; then 8434 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8435 found="yes" 8436 fi 8437 fi 8438 8439 if test $found = "no" ; then 8440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8442 fi 8443 8444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8446 fi 8447 8448 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8449 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8451$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8452 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8453 if eval \${$cacheid+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8457/* end confdefs.h. */ 8458int i; 8459int 8460main () 8461{ 8462 8463 ; 8464 return 0; 8465} 8466_ACEOF 8467if ac_fn_c_try_link "$LINENO"; then : 8468 eval $cacheid=yes 8469else 8470 eval $cacheid=no 8471fi 8472rm -f core conftest.err conftest.$ac_objext \ 8473 conftest$ac_exeext conftest.$ac_ext 8474fi 8475 8476 8477 CFLAGS="$xorg_testset_save_CFLAGS" 8478 8479 eval supported=\$$cacheid 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8481$as_echo "$supported" >&6; } 8482 if test "$supported" = "yes" ; then 8483 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8484 found="yes" 8485 fi 8486 fi 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502xorg_testset_save_CFLAGS="$CFLAGS" 8503 8504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8509 $as_echo_n "(cached) " >&6 8510else 8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8512/* end confdefs.h. */ 8513int i; 8514_ACEOF 8515if ac_fn_c_try_compile "$LINENO"; then : 8516 xorg_cv_cc_flag_unknown_warning_option=yes 8517else 8518 xorg_cv_cc_flag_unknown_warning_option=no 8519fi 8520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8521fi 8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8525 CFLAGS="$xorg_testset_save_CFLAGS" 8526fi 8527 8528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8531 fi 8532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8536 $as_echo_n "(cached) " >&6 8537else 8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8539/* end confdefs.h. */ 8540int i; 8541_ACEOF 8542if ac_fn_c_try_compile "$LINENO"; then : 8543 xorg_cv_cc_flag_unused_command_line_argument=yes 8544else 8545 xorg_cv_cc_flag_unused_command_line_argument=no 8546fi 8547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8548fi 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8552 CFLAGS="$xorg_testset_save_CFLAGS" 8553fi 8554 8555found="no" 8556 8557 if test $found = "no" ; then 8558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8560 fi 8561 8562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8564 fi 8565 8566 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8567 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8569$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8570 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8571 if eval \${$cacheid+:} false; then : 8572 $as_echo_n "(cached) " >&6 8573else 8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8575/* end confdefs.h. */ 8576int i; 8577int 8578main () 8579{ 8580 8581 ; 8582 return 0; 8583} 8584_ACEOF 8585if ac_fn_c_try_link "$LINENO"; then : 8586 eval $cacheid=yes 8587else 8588 eval $cacheid=no 8589fi 8590rm -f core conftest.err conftest.$ac_objext \ 8591 conftest$ac_exeext conftest.$ac_ext 8592fi 8593 8594 8595 CFLAGS="$xorg_testset_save_CFLAGS" 8596 8597 eval supported=\$$cacheid 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8599$as_echo "$supported" >&6; } 8600 if test "$supported" = "yes" ; then 8601 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8602 found="yes" 8603 fi 8604 fi 8605 8606 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8607else 8608{ $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 8609$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;} 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623xorg_testset_save_CFLAGS="$CFLAGS" 8624 8625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8633/* end confdefs.h. */ 8634int i; 8635_ACEOF 8636if ac_fn_c_try_compile "$LINENO"; then : 8637 xorg_cv_cc_flag_unknown_warning_option=yes 8638else 8639 xorg_cv_cc_flag_unknown_warning_option=no 8640fi 8641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8642fi 8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8646 CFLAGS="$xorg_testset_save_CFLAGS" 8647fi 8648 8649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8652 fi 8653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8657 $as_echo_n "(cached) " >&6 8658else 8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8660/* end confdefs.h. */ 8661int i; 8662_ACEOF 8663if ac_fn_c_try_compile "$LINENO"; then : 8664 xorg_cv_cc_flag_unused_command_line_argument=yes 8665else 8666 xorg_cv_cc_flag_unused_command_line_argument=no 8667fi 8668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8669fi 8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8673 CFLAGS="$xorg_testset_save_CFLAGS" 8674fi 8675 8676found="no" 8677 8678 if test $found = "no" ; then 8679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8681 fi 8682 8683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8685 fi 8686 8687 CFLAGS="$CFLAGS -Wimplicit" 8688 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8690$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8691 cacheid=xorg_cv_cc_flag__Wimplicit 8692 if eval \${$cacheid+:} false; then : 8693 $as_echo_n "(cached) " >&6 8694else 8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8696/* end confdefs.h. */ 8697int i; 8698int 8699main () 8700{ 8701 8702 ; 8703 return 0; 8704} 8705_ACEOF 8706if ac_fn_c_try_link "$LINENO"; then : 8707 eval $cacheid=yes 8708else 8709 eval $cacheid=no 8710fi 8711rm -f core conftest.err conftest.$ac_objext \ 8712 conftest$ac_exeext conftest.$ac_ext 8713fi 8714 8715 8716 CFLAGS="$xorg_testset_save_CFLAGS" 8717 8718 eval supported=\$$cacheid 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8720$as_echo "$supported" >&6; } 8721 if test "$supported" = "yes" ; then 8722 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8723 found="yes" 8724 fi 8725 fi 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741xorg_testset_save_CFLAGS="$CFLAGS" 8742 8743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8748 $as_echo_n "(cached) " >&6 8749else 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752int i; 8753_ACEOF 8754if ac_fn_c_try_compile "$LINENO"; then : 8755 xorg_cv_cc_flag_unknown_warning_option=yes 8756else 8757 xorg_cv_cc_flag_unknown_warning_option=no 8758fi 8759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8760fi 8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8764 CFLAGS="$xorg_testset_save_CFLAGS" 8765fi 8766 8767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8770 fi 8771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776else 8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8778/* end confdefs.h. */ 8779int i; 8780_ACEOF 8781if ac_fn_c_try_compile "$LINENO"; then : 8782 xorg_cv_cc_flag_unused_command_line_argument=yes 8783else 8784 xorg_cv_cc_flag_unused_command_line_argument=no 8785fi 8786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8787fi 8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8791 CFLAGS="$xorg_testset_save_CFLAGS" 8792fi 8793 8794found="no" 8795 8796 if test $found = "no" ; then 8797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8799 fi 8800 8801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8803 fi 8804 8805 CFLAGS="$CFLAGS -Wnonnull" 8806 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8808$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8809 cacheid=xorg_cv_cc_flag__Wnonnull 8810 if eval \${$cacheid+:} false; then : 8811 $as_echo_n "(cached) " >&6 8812else 8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8814/* end confdefs.h. */ 8815int i; 8816int 8817main () 8818{ 8819 8820 ; 8821 return 0; 8822} 8823_ACEOF 8824if ac_fn_c_try_link "$LINENO"; then : 8825 eval $cacheid=yes 8826else 8827 eval $cacheid=no 8828fi 8829rm -f core conftest.err conftest.$ac_objext \ 8830 conftest$ac_exeext conftest.$ac_ext 8831fi 8832 8833 8834 CFLAGS="$xorg_testset_save_CFLAGS" 8835 8836 eval supported=\$$cacheid 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8838$as_echo "$supported" >&6; } 8839 if test "$supported" = "yes" ; then 8840 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8841 found="yes" 8842 fi 8843 fi 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859xorg_testset_save_CFLAGS="$CFLAGS" 8860 8861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8866 $as_echo_n "(cached) " >&6 8867else 8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8869/* end confdefs.h. */ 8870int i; 8871_ACEOF 8872if ac_fn_c_try_compile "$LINENO"; then : 8873 xorg_cv_cc_flag_unknown_warning_option=yes 8874else 8875 xorg_cv_cc_flag_unknown_warning_option=no 8876fi 8877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8878fi 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8882 CFLAGS="$xorg_testset_save_CFLAGS" 8883fi 8884 8885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8888 fi 8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8893 $as_echo_n "(cached) " >&6 8894else 8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896/* end confdefs.h. */ 8897int i; 8898_ACEOF 8899if ac_fn_c_try_compile "$LINENO"; then : 8900 xorg_cv_cc_flag_unused_command_line_argument=yes 8901else 8902 xorg_cv_cc_flag_unused_command_line_argument=no 8903fi 8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8905fi 8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8909 CFLAGS="$xorg_testset_save_CFLAGS" 8910fi 8911 8912found="no" 8913 8914 if test $found = "no" ; then 8915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8917 fi 8918 8919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8921 fi 8922 8923 CFLAGS="$CFLAGS -Winit-self" 8924 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8926$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8927 cacheid=xorg_cv_cc_flag__Winit_self 8928 if eval \${$cacheid+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8932/* end confdefs.h. */ 8933int i; 8934int 8935main () 8936{ 8937 8938 ; 8939 return 0; 8940} 8941_ACEOF 8942if ac_fn_c_try_link "$LINENO"; then : 8943 eval $cacheid=yes 8944else 8945 eval $cacheid=no 8946fi 8947rm -f core conftest.err conftest.$ac_objext \ 8948 conftest$ac_exeext conftest.$ac_ext 8949fi 8950 8951 8952 CFLAGS="$xorg_testset_save_CFLAGS" 8953 8954 eval supported=\$$cacheid 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8956$as_echo "$supported" >&6; } 8957 if test "$supported" = "yes" ; then 8958 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8959 found="yes" 8960 fi 8961 fi 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977xorg_testset_save_CFLAGS="$CFLAGS" 8978 8979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8984 $as_echo_n "(cached) " >&6 8985else 8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8987/* end confdefs.h. */ 8988int i; 8989_ACEOF 8990if ac_fn_c_try_compile "$LINENO"; then : 8991 xorg_cv_cc_flag_unknown_warning_option=yes 8992else 8993 xorg_cv_cc_flag_unknown_warning_option=no 8994fi 8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8996fi 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9000 CFLAGS="$xorg_testset_save_CFLAGS" 9001fi 9002 9003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9006 fi 9007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012else 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015int i; 9016_ACEOF 9017if ac_fn_c_try_compile "$LINENO"; then : 9018 xorg_cv_cc_flag_unused_command_line_argument=yes 9019else 9020 xorg_cv_cc_flag_unused_command_line_argument=no 9021fi 9022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9023fi 9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9027 CFLAGS="$xorg_testset_save_CFLAGS" 9028fi 9029 9030found="no" 9031 9032 if test $found = "no" ; then 9033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9035 fi 9036 9037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9039 fi 9040 9041 CFLAGS="$CFLAGS -Wmain" 9042 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9044$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9045 cacheid=xorg_cv_cc_flag__Wmain 9046 if eval \${$cacheid+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048else 9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9050/* end confdefs.h. */ 9051int i; 9052int 9053main () 9054{ 9055 9056 ; 9057 return 0; 9058} 9059_ACEOF 9060if ac_fn_c_try_link "$LINENO"; then : 9061 eval $cacheid=yes 9062else 9063 eval $cacheid=no 9064fi 9065rm -f core conftest.err conftest.$ac_objext \ 9066 conftest$ac_exeext conftest.$ac_ext 9067fi 9068 9069 9070 CFLAGS="$xorg_testset_save_CFLAGS" 9071 9072 eval supported=\$$cacheid 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9074$as_echo "$supported" >&6; } 9075 if test "$supported" = "yes" ; then 9076 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9077 found="yes" 9078 fi 9079 fi 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095xorg_testset_save_CFLAGS="$CFLAGS" 9096 9097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9102 $as_echo_n "(cached) " >&6 9103else 9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9105/* end confdefs.h. */ 9106int i; 9107_ACEOF 9108if ac_fn_c_try_compile "$LINENO"; then : 9109 xorg_cv_cc_flag_unknown_warning_option=yes 9110else 9111 xorg_cv_cc_flag_unknown_warning_option=no 9112fi 9113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9114fi 9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9118 CFLAGS="$xorg_testset_save_CFLAGS" 9119fi 9120 9121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9124 fi 9125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9129 $as_echo_n "(cached) " >&6 9130else 9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9132/* end confdefs.h. */ 9133int i; 9134_ACEOF 9135if ac_fn_c_try_compile "$LINENO"; then : 9136 xorg_cv_cc_flag_unused_command_line_argument=yes 9137else 9138 xorg_cv_cc_flag_unused_command_line_argument=no 9139fi 9140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9141fi 9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9145 CFLAGS="$xorg_testset_save_CFLAGS" 9146fi 9147 9148found="no" 9149 9150 if test $found = "no" ; then 9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9153 fi 9154 9155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9157 fi 9158 9159 CFLAGS="$CFLAGS -Wmissing-braces" 9160 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9162$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9163 cacheid=xorg_cv_cc_flag__Wmissing_braces 9164 if eval \${$cacheid+:} false; then : 9165 $as_echo_n "(cached) " >&6 9166else 9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169int i; 9170int 9171main () 9172{ 9173 9174 ; 9175 return 0; 9176} 9177_ACEOF 9178if ac_fn_c_try_link "$LINENO"; then : 9179 eval $cacheid=yes 9180else 9181 eval $cacheid=no 9182fi 9183rm -f core conftest.err conftest.$ac_objext \ 9184 conftest$ac_exeext conftest.$ac_ext 9185fi 9186 9187 9188 CFLAGS="$xorg_testset_save_CFLAGS" 9189 9190 eval supported=\$$cacheid 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9192$as_echo "$supported" >&6; } 9193 if test "$supported" = "yes" ; then 9194 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9195 found="yes" 9196 fi 9197 fi 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213xorg_testset_save_CFLAGS="$CFLAGS" 9214 9215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9220 $as_echo_n "(cached) " >&6 9221else 9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9223/* end confdefs.h. */ 9224int i; 9225_ACEOF 9226if ac_fn_c_try_compile "$LINENO"; then : 9227 xorg_cv_cc_flag_unknown_warning_option=yes 9228else 9229 xorg_cv_cc_flag_unknown_warning_option=no 9230fi 9231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9232fi 9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9236 CFLAGS="$xorg_testset_save_CFLAGS" 9237fi 9238 9239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9242 fi 9243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9247 $as_echo_n "(cached) " >&6 9248else 9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250/* end confdefs.h. */ 9251int i; 9252_ACEOF 9253if ac_fn_c_try_compile "$LINENO"; then : 9254 xorg_cv_cc_flag_unused_command_line_argument=yes 9255else 9256 xorg_cv_cc_flag_unused_command_line_argument=no 9257fi 9258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9259fi 9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9263 CFLAGS="$xorg_testset_save_CFLAGS" 9264fi 9265 9266found="no" 9267 9268 if test $found = "no" ; then 9269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9271 fi 9272 9273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9275 fi 9276 9277 CFLAGS="$CFLAGS -Wsequence-point" 9278 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9280$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9281 cacheid=xorg_cv_cc_flag__Wsequence_point 9282 if eval \${$cacheid+:} false; then : 9283 $as_echo_n "(cached) " >&6 9284else 9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9286/* end confdefs.h. */ 9287int i; 9288int 9289main () 9290{ 9291 9292 ; 9293 return 0; 9294} 9295_ACEOF 9296if ac_fn_c_try_link "$LINENO"; then : 9297 eval $cacheid=yes 9298else 9299 eval $cacheid=no 9300fi 9301rm -f core conftest.err conftest.$ac_objext \ 9302 conftest$ac_exeext conftest.$ac_ext 9303fi 9304 9305 9306 CFLAGS="$xorg_testset_save_CFLAGS" 9307 9308 eval supported=\$$cacheid 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9310$as_echo "$supported" >&6; } 9311 if test "$supported" = "yes" ; then 9312 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9313 found="yes" 9314 fi 9315 fi 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331xorg_testset_save_CFLAGS="$CFLAGS" 9332 9333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9338 $as_echo_n "(cached) " >&6 9339else 9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9341/* end confdefs.h. */ 9342int i; 9343_ACEOF 9344if ac_fn_c_try_compile "$LINENO"; then : 9345 xorg_cv_cc_flag_unknown_warning_option=yes 9346else 9347 xorg_cv_cc_flag_unknown_warning_option=no 9348fi 9349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9350fi 9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9354 CFLAGS="$xorg_testset_save_CFLAGS" 9355fi 9356 9357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9360 fi 9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366else 9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9368/* end confdefs.h. */ 9369int i; 9370_ACEOF 9371if ac_fn_c_try_compile "$LINENO"; then : 9372 xorg_cv_cc_flag_unused_command_line_argument=yes 9373else 9374 xorg_cv_cc_flag_unused_command_line_argument=no 9375fi 9376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9377fi 9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9381 CFLAGS="$xorg_testset_save_CFLAGS" 9382fi 9383 9384found="no" 9385 9386 if test $found = "no" ; then 9387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9389 fi 9390 9391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9393 fi 9394 9395 CFLAGS="$CFLAGS -Wreturn-type" 9396 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9398$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9399 cacheid=xorg_cv_cc_flag__Wreturn_type 9400 if eval \${$cacheid+:} false; then : 9401 $as_echo_n "(cached) " >&6 9402else 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405int i; 9406int 9407main () 9408{ 9409 9410 ; 9411 return 0; 9412} 9413_ACEOF 9414if ac_fn_c_try_link "$LINENO"; then : 9415 eval $cacheid=yes 9416else 9417 eval $cacheid=no 9418fi 9419rm -f core conftest.err conftest.$ac_objext \ 9420 conftest$ac_exeext conftest.$ac_ext 9421fi 9422 9423 9424 CFLAGS="$xorg_testset_save_CFLAGS" 9425 9426 eval supported=\$$cacheid 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9428$as_echo "$supported" >&6; } 9429 if test "$supported" = "yes" ; then 9430 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9431 found="yes" 9432 fi 9433 fi 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449xorg_testset_save_CFLAGS="$CFLAGS" 9450 9451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9456 $as_echo_n "(cached) " >&6 9457else 9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459/* end confdefs.h. */ 9460int i; 9461_ACEOF 9462if ac_fn_c_try_compile "$LINENO"; then : 9463 xorg_cv_cc_flag_unknown_warning_option=yes 9464else 9465 xorg_cv_cc_flag_unknown_warning_option=no 9466fi 9467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9468fi 9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9472 CFLAGS="$xorg_testset_save_CFLAGS" 9473fi 9474 9475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9478 fi 9479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9483 $as_echo_n "(cached) " >&6 9484else 9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9486/* end confdefs.h. */ 9487int i; 9488_ACEOF 9489if ac_fn_c_try_compile "$LINENO"; then : 9490 xorg_cv_cc_flag_unused_command_line_argument=yes 9491else 9492 xorg_cv_cc_flag_unused_command_line_argument=no 9493fi 9494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9495fi 9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9499 CFLAGS="$xorg_testset_save_CFLAGS" 9500fi 9501 9502found="no" 9503 9504 if test $found = "no" ; then 9505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9507 fi 9508 9509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9511 fi 9512 9513 CFLAGS="$CFLAGS -Wtrigraphs" 9514 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9516$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9517 cacheid=xorg_cv_cc_flag__Wtrigraphs 9518 if eval \${$cacheid+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9522/* end confdefs.h. */ 9523int i; 9524int 9525main () 9526{ 9527 9528 ; 9529 return 0; 9530} 9531_ACEOF 9532if ac_fn_c_try_link "$LINENO"; then : 9533 eval $cacheid=yes 9534else 9535 eval $cacheid=no 9536fi 9537rm -f core conftest.err conftest.$ac_objext \ 9538 conftest$ac_exeext conftest.$ac_ext 9539fi 9540 9541 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543 9544 eval supported=\$$cacheid 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9546$as_echo "$supported" >&6; } 9547 if test "$supported" = "yes" ; then 9548 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9549 found="yes" 9550 fi 9551 fi 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567xorg_testset_save_CFLAGS="$CFLAGS" 9568 9569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9574 $as_echo_n "(cached) " >&6 9575else 9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577/* end confdefs.h. */ 9578int i; 9579_ACEOF 9580if ac_fn_c_try_compile "$LINENO"; then : 9581 xorg_cv_cc_flag_unknown_warning_option=yes 9582else 9583 xorg_cv_cc_flag_unknown_warning_option=no 9584fi 9585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9586fi 9587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9590 CFLAGS="$xorg_testset_save_CFLAGS" 9591fi 9592 9593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9596 fi 9597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9601 $as_echo_n "(cached) " >&6 9602else 9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9604/* end confdefs.h. */ 9605int i; 9606_ACEOF 9607if ac_fn_c_try_compile "$LINENO"; then : 9608 xorg_cv_cc_flag_unused_command_line_argument=yes 9609else 9610 xorg_cv_cc_flag_unused_command_line_argument=no 9611fi 9612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9613fi 9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9617 CFLAGS="$xorg_testset_save_CFLAGS" 9618fi 9619 9620found="no" 9621 9622 if test $found = "no" ; then 9623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9625 fi 9626 9627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9629 fi 9630 9631 CFLAGS="$CFLAGS -Warray-bounds" 9632 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9634$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9635 cacheid=xorg_cv_cc_flag__Warray_bounds 9636 if eval \${$cacheid+:} false; then : 9637 $as_echo_n "(cached) " >&6 9638else 9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9640/* end confdefs.h. */ 9641int i; 9642int 9643main () 9644{ 9645 9646 ; 9647 return 0; 9648} 9649_ACEOF 9650if ac_fn_c_try_link "$LINENO"; then : 9651 eval $cacheid=yes 9652else 9653 eval $cacheid=no 9654fi 9655rm -f core conftest.err conftest.$ac_objext \ 9656 conftest$ac_exeext conftest.$ac_ext 9657fi 9658 9659 9660 CFLAGS="$xorg_testset_save_CFLAGS" 9661 9662 eval supported=\$$cacheid 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9664$as_echo "$supported" >&6; } 9665 if test "$supported" = "yes" ; then 9666 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9667 found="yes" 9668 fi 9669 fi 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685xorg_testset_save_CFLAGS="$CFLAGS" 9686 9687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9692 $as_echo_n "(cached) " >&6 9693else 9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9695/* end confdefs.h. */ 9696int i; 9697_ACEOF 9698if ac_fn_c_try_compile "$LINENO"; then : 9699 xorg_cv_cc_flag_unknown_warning_option=yes 9700else 9701 xorg_cv_cc_flag_unknown_warning_option=no 9702fi 9703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9704fi 9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9708 CFLAGS="$xorg_testset_save_CFLAGS" 9709fi 9710 9711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9714 fi 9715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723int i; 9724_ACEOF 9725if ac_fn_c_try_compile "$LINENO"; then : 9726 xorg_cv_cc_flag_unused_command_line_argument=yes 9727else 9728 xorg_cv_cc_flag_unused_command_line_argument=no 9729fi 9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9731fi 9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9735 CFLAGS="$xorg_testset_save_CFLAGS" 9736fi 9737 9738found="no" 9739 9740 if test $found = "no" ; then 9741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9743 fi 9744 9745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9747 fi 9748 9749 CFLAGS="$CFLAGS -Wwrite-strings" 9750 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9752$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9753 cacheid=xorg_cv_cc_flag__Wwrite_strings 9754 if eval \${$cacheid+:} false; then : 9755 $as_echo_n "(cached) " >&6 9756else 9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9758/* end confdefs.h. */ 9759int i; 9760int 9761main () 9762{ 9763 9764 ; 9765 return 0; 9766} 9767_ACEOF 9768if ac_fn_c_try_link "$LINENO"; then : 9769 eval $cacheid=yes 9770else 9771 eval $cacheid=no 9772fi 9773rm -f core conftest.err conftest.$ac_objext \ 9774 conftest$ac_exeext conftest.$ac_ext 9775fi 9776 9777 9778 CFLAGS="$xorg_testset_save_CFLAGS" 9779 9780 eval supported=\$$cacheid 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9782$as_echo "$supported" >&6; } 9783 if test "$supported" = "yes" ; then 9784 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9785 found="yes" 9786 fi 9787 fi 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803xorg_testset_save_CFLAGS="$CFLAGS" 9804 9805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9810 $as_echo_n "(cached) " >&6 9811else 9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9813/* end confdefs.h. */ 9814int i; 9815_ACEOF 9816if ac_fn_c_try_compile "$LINENO"; then : 9817 xorg_cv_cc_flag_unknown_warning_option=yes 9818else 9819 xorg_cv_cc_flag_unknown_warning_option=no 9820fi 9821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9822fi 9823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9826 CFLAGS="$xorg_testset_save_CFLAGS" 9827fi 9828 9829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9832 fi 9833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838else 9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9840/* end confdefs.h. */ 9841int i; 9842_ACEOF 9843if ac_fn_c_try_compile "$LINENO"; then : 9844 xorg_cv_cc_flag_unused_command_line_argument=yes 9845else 9846 xorg_cv_cc_flag_unused_command_line_argument=no 9847fi 9848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9849fi 9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9853 CFLAGS="$xorg_testset_save_CFLAGS" 9854fi 9855 9856found="no" 9857 9858 if test $found = "no" ; then 9859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9861 fi 9862 9863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9865 fi 9866 9867 CFLAGS="$CFLAGS -Waddress" 9868 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9870$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9871 cacheid=xorg_cv_cc_flag__Waddress 9872 if eval \${$cacheid+:} false; then : 9873 $as_echo_n "(cached) " >&6 9874else 9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9876/* end confdefs.h. */ 9877int i; 9878int 9879main () 9880{ 9881 9882 ; 9883 return 0; 9884} 9885_ACEOF 9886if ac_fn_c_try_link "$LINENO"; then : 9887 eval $cacheid=yes 9888else 9889 eval $cacheid=no 9890fi 9891rm -f core conftest.err conftest.$ac_objext \ 9892 conftest$ac_exeext conftest.$ac_ext 9893fi 9894 9895 9896 CFLAGS="$xorg_testset_save_CFLAGS" 9897 9898 eval supported=\$$cacheid 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9900$as_echo "$supported" >&6; } 9901 if test "$supported" = "yes" ; then 9902 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9903 found="yes" 9904 fi 9905 fi 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921xorg_testset_save_CFLAGS="$CFLAGS" 9922 9923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9928 $as_echo_n "(cached) " >&6 9929else 9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9931/* end confdefs.h. */ 9932int i; 9933_ACEOF 9934if ac_fn_c_try_compile "$LINENO"; then : 9935 xorg_cv_cc_flag_unknown_warning_option=yes 9936else 9937 xorg_cv_cc_flag_unknown_warning_option=no 9938fi 9939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9940fi 9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9944 CFLAGS="$xorg_testset_save_CFLAGS" 9945fi 9946 9947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9950 fi 9951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9955 $as_echo_n "(cached) " >&6 9956else 9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9958/* end confdefs.h. */ 9959int i; 9960_ACEOF 9961if ac_fn_c_try_compile "$LINENO"; then : 9962 xorg_cv_cc_flag_unused_command_line_argument=yes 9963else 9964 xorg_cv_cc_flag_unused_command_line_argument=no 9965fi 9966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9967fi 9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9971 CFLAGS="$xorg_testset_save_CFLAGS" 9972fi 9973 9974found="no" 9975 9976 if test $found = "no" ; then 9977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9979 fi 9980 9981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9983 fi 9984 9985 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9986 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9988$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9989 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9990 if eval \${$cacheid+:} false; then : 9991 $as_echo_n "(cached) " >&6 9992else 9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994/* end confdefs.h. */ 9995int i; 9996int 9997main () 9998{ 9999 10000 ; 10001 return 0; 10002} 10003_ACEOF 10004if ac_fn_c_try_link "$LINENO"; then : 10005 eval $cacheid=yes 10006else 10007 eval $cacheid=no 10008fi 10009rm -f core conftest.err conftest.$ac_objext \ 10010 conftest$ac_exeext conftest.$ac_ext 10011fi 10012 10013 10014 CFLAGS="$xorg_testset_save_CFLAGS" 10015 10016 eval supported=\$$cacheid 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10018$as_echo "$supported" >&6; } 10019 if test "$supported" = "yes" ; then 10020 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10021 found="yes" 10022 fi 10023 fi 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039xorg_testset_save_CFLAGS="$CFLAGS" 10040 10041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10046 $as_echo_n "(cached) " >&6 10047else 10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10049/* end confdefs.h. */ 10050int i; 10051_ACEOF 10052if ac_fn_c_try_compile "$LINENO"; then : 10053 xorg_cv_cc_flag_unknown_warning_option=yes 10054else 10055 xorg_cv_cc_flag_unknown_warning_option=no 10056fi 10057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10058fi 10059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10062 CFLAGS="$xorg_testset_save_CFLAGS" 10063fi 10064 10065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10068 fi 10069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10073 $as_echo_n "(cached) " >&6 10074else 10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10076/* end confdefs.h. */ 10077int i; 10078_ACEOF 10079if ac_fn_c_try_compile "$LINENO"; then : 10080 xorg_cv_cc_flag_unused_command_line_argument=yes 10081else 10082 xorg_cv_cc_flag_unused_command_line_argument=no 10083fi 10084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10085fi 10086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10089 CFLAGS="$xorg_testset_save_CFLAGS" 10090fi 10091 10092found="no" 10093 10094 if test $found = "no" ; then 10095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10097 fi 10098 10099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10101 fi 10102 10103 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10104 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10106$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10107 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10108 if eval \${$cacheid+:} false; then : 10109 $as_echo_n "(cached) " >&6 10110else 10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10112/* end confdefs.h. */ 10113int i; 10114int 10115main () 10116{ 10117 10118 ; 10119 return 0; 10120} 10121_ACEOF 10122if ac_fn_c_try_link "$LINENO"; then : 10123 eval $cacheid=yes 10124else 10125 eval $cacheid=no 10126fi 10127rm -f core conftest.err conftest.$ac_objext \ 10128 conftest$ac_exeext conftest.$ac_ext 10129fi 10130 10131 10132 CFLAGS="$xorg_testset_save_CFLAGS" 10133 10134 eval supported=\$$cacheid 10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10136$as_echo "$supported" >&6; } 10137 if test "$supported" = "yes" ; then 10138 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10139 found="yes" 10140 fi 10141 fi 10142 10143 10144fi 10145 10146 10147 10148 10149 10150 10151 10152 CWARNFLAGS="$BASE_CFLAGS" 10153 if test "x$GCC" = xyes ; then 10154 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10155 fi 10156 10157 10158 10159 10160 10161 10162 10163 10164# Check whether --enable-strict-compilation was given. 10165if test "${enable_strict_compilation+set}" = set; then : 10166 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10167else 10168 STRICT_COMPILE=no 10169fi 10170 10171 10172 10173 10174 10175 10176STRICT_CFLAGS="" 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190xorg_testset_save_CFLAGS="$CFLAGS" 10191 10192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10197 $as_echo_n "(cached) " >&6 10198else 10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10200/* end confdefs.h. */ 10201int i; 10202_ACEOF 10203if ac_fn_c_try_compile "$LINENO"; then : 10204 xorg_cv_cc_flag_unknown_warning_option=yes 10205else 10206 xorg_cv_cc_flag_unknown_warning_option=no 10207fi 10208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10209fi 10210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10213 CFLAGS="$xorg_testset_save_CFLAGS" 10214fi 10215 10216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10219 fi 10220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10224 $as_echo_n "(cached) " >&6 10225else 10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228int i; 10229_ACEOF 10230if ac_fn_c_try_compile "$LINENO"; then : 10231 xorg_cv_cc_flag_unused_command_line_argument=yes 10232else 10233 xorg_cv_cc_flag_unused_command_line_argument=no 10234fi 10235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10236fi 10237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10240 CFLAGS="$xorg_testset_save_CFLAGS" 10241fi 10242 10243found="no" 10244 10245 if test $found = "no" ; then 10246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10248 fi 10249 10250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10252 fi 10253 10254 CFLAGS="$CFLAGS -pedantic" 10255 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10257$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10258 cacheid=xorg_cv_cc_flag__pedantic 10259 if eval \${$cacheid+:} false; then : 10260 $as_echo_n "(cached) " >&6 10261else 10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10263/* end confdefs.h. */ 10264int i; 10265int 10266main () 10267{ 10268 10269 ; 10270 return 0; 10271} 10272_ACEOF 10273if ac_fn_c_try_link "$LINENO"; then : 10274 eval $cacheid=yes 10275else 10276 eval $cacheid=no 10277fi 10278rm -f core conftest.err conftest.$ac_objext \ 10279 conftest$ac_exeext conftest.$ac_ext 10280fi 10281 10282 10283 CFLAGS="$xorg_testset_save_CFLAGS" 10284 10285 eval supported=\$$cacheid 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10287$as_echo "$supported" >&6; } 10288 if test "$supported" = "yes" ; then 10289 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10290 found="yes" 10291 fi 10292 fi 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308xorg_testset_save_CFLAGS="$CFLAGS" 10309 10310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10314if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10315 $as_echo_n "(cached) " >&6 10316else 10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10318/* end confdefs.h. */ 10319int i; 10320_ACEOF 10321if ac_fn_c_try_compile "$LINENO"; then : 10322 xorg_cv_cc_flag_unknown_warning_option=yes 10323else 10324 xorg_cv_cc_flag_unknown_warning_option=no 10325fi 10326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10327fi 10328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10329$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10331 CFLAGS="$xorg_testset_save_CFLAGS" 10332fi 10333 10334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10337 fi 10338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10341if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10342 $as_echo_n "(cached) " >&6 10343else 10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10345/* end confdefs.h. */ 10346int i; 10347_ACEOF 10348if ac_fn_c_try_compile "$LINENO"; then : 10349 xorg_cv_cc_flag_unused_command_line_argument=yes 10350else 10351 xorg_cv_cc_flag_unused_command_line_argument=no 10352fi 10353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10354fi 10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10356$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10358 CFLAGS="$xorg_testset_save_CFLAGS" 10359fi 10360 10361found="no" 10362 10363 if test $found = "no" ; then 10364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10366 fi 10367 10368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10370 fi 10371 10372 CFLAGS="$CFLAGS -Werror" 10373 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10375$as_echo_n "checking if $CC supports -Werror... " >&6; } 10376 cacheid=xorg_cv_cc_flag__Werror 10377 if eval \${$cacheid+:} false; then : 10378 $as_echo_n "(cached) " >&6 10379else 10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10381/* end confdefs.h. */ 10382int i; 10383int 10384main () 10385{ 10386 10387 ; 10388 return 0; 10389} 10390_ACEOF 10391if ac_fn_c_try_link "$LINENO"; then : 10392 eval $cacheid=yes 10393else 10394 eval $cacheid=no 10395fi 10396rm -f core conftest.err conftest.$ac_objext \ 10397 conftest$ac_exeext conftest.$ac_ext 10398fi 10399 10400 10401 CFLAGS="$xorg_testset_save_CFLAGS" 10402 10403 eval supported=\$$cacheid 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10405$as_echo "$supported" >&6; } 10406 if test "$supported" = "yes" ; then 10407 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10408 found="yes" 10409 fi 10410 fi 10411 10412 if test $found = "no" ; then 10413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10415 fi 10416 10417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10419 fi 10420 10421 CFLAGS="$CFLAGS -errwarn" 10422 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10424$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10425 cacheid=xorg_cv_cc_flag__errwarn 10426 if eval \${$cacheid+:} false; then : 10427 $as_echo_n "(cached) " >&6 10428else 10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10430/* end confdefs.h. */ 10431int i; 10432int 10433main () 10434{ 10435 10436 ; 10437 return 0; 10438} 10439_ACEOF 10440if ac_fn_c_try_link "$LINENO"; then : 10441 eval $cacheid=yes 10442else 10443 eval $cacheid=no 10444fi 10445rm -f core conftest.err conftest.$ac_objext \ 10446 conftest$ac_exeext conftest.$ac_ext 10447fi 10448 10449 10450 CFLAGS="$xorg_testset_save_CFLAGS" 10451 10452 eval supported=\$$cacheid 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10454$as_echo "$supported" >&6; } 10455 if test "$supported" = "yes" ; then 10456 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10457 found="yes" 10458 fi 10459 fi 10460 10461 10462 10463# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10464# activate it with -Werror, so we add it here explicitly. 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478xorg_testset_save_CFLAGS="$CFLAGS" 10479 10480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10483$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10484if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10485 $as_echo_n "(cached) " >&6 10486else 10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10488/* end confdefs.h. */ 10489int i; 10490_ACEOF 10491if ac_fn_c_try_compile "$LINENO"; then : 10492 xorg_cv_cc_flag_unknown_warning_option=yes 10493else 10494 xorg_cv_cc_flag_unknown_warning_option=no 10495fi 10496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10497fi 10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10499$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10501 CFLAGS="$xorg_testset_save_CFLAGS" 10502fi 10503 10504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10507 fi 10508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10510$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10511if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10512 $as_echo_n "(cached) " >&6 10513else 10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10515/* end confdefs.h. */ 10516int i; 10517_ACEOF 10518if ac_fn_c_try_compile "$LINENO"; then : 10519 xorg_cv_cc_flag_unused_command_line_argument=yes 10520else 10521 xorg_cv_cc_flag_unused_command_line_argument=no 10522fi 10523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10524fi 10525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10526$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10528 CFLAGS="$xorg_testset_save_CFLAGS" 10529fi 10530 10531found="no" 10532 10533 if test $found = "no" ; then 10534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10536 fi 10537 10538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10540 fi 10541 10542 CFLAGS="$CFLAGS -Werror=attributes" 10543 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10545$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10546 cacheid=xorg_cv_cc_flag__Werror_attributes 10547 if eval \${$cacheid+:} false; then : 10548 $as_echo_n "(cached) " >&6 10549else 10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10551/* end confdefs.h. */ 10552int i; 10553int 10554main () 10555{ 10556 10557 ; 10558 return 0; 10559} 10560_ACEOF 10561if ac_fn_c_try_link "$LINENO"; then : 10562 eval $cacheid=yes 10563else 10564 eval $cacheid=no 10565fi 10566rm -f core conftest.err conftest.$ac_objext \ 10567 conftest$ac_exeext conftest.$ac_ext 10568fi 10569 10570 10571 CFLAGS="$xorg_testset_save_CFLAGS" 10572 10573 eval supported=\$$cacheid 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10575$as_echo "$supported" >&6; } 10576 if test "$supported" = "yes" ; then 10577 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10578 found="yes" 10579 fi 10580 fi 10581 10582 10583 10584if test "x$STRICT_COMPILE" = "xyes"; then 10585 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10586 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10587fi 10588 10589 10590 10591 10592 10593 10594cat >>confdefs.h <<_ACEOF 10595#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10596_ACEOF 10597 10598 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10599 if test "x$PVM" = "x"; then 10600 PVM="0" 10601 fi 10602 10603cat >>confdefs.h <<_ACEOF 10604#define PACKAGE_VERSION_MINOR $PVM 10605_ACEOF 10606 10607 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10608 if test "x$PVP" = "x"; then 10609 PVP="0" 10610 fi 10611 10612cat >>confdefs.h <<_ACEOF 10613#define PACKAGE_VERSION_PATCHLEVEL $PVP 10614_ACEOF 10615 10616 10617 10618CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10619mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10620|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10621echo 'git directory not found: installing possibly empty changelog.' >&2)" 10622 10623 10624 10625 10626macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10627INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10628mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10629|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10630echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10631 10632 10633 10634 10635 10636 10637if test x$APP_MAN_SUFFIX = x ; then 10638 APP_MAN_SUFFIX=1 10639fi 10640if test x$APP_MAN_DIR = x ; then 10641 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10642fi 10643 10644if test x$LIB_MAN_SUFFIX = x ; then 10645 LIB_MAN_SUFFIX=3 10646fi 10647if test x$LIB_MAN_DIR = x ; then 10648 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10649fi 10650 10651if test x$FILE_MAN_SUFFIX = x ; then 10652 case $host_os in 10653 solaris*) FILE_MAN_SUFFIX=4 ;; 10654 *) FILE_MAN_SUFFIX=5 ;; 10655 esac 10656fi 10657if test x$FILE_MAN_DIR = x ; then 10658 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10659fi 10660 10661if test x$MISC_MAN_SUFFIX = x ; then 10662 case $host_os in 10663 solaris*) MISC_MAN_SUFFIX=5 ;; 10664 *) MISC_MAN_SUFFIX=7 ;; 10665 esac 10666fi 10667if test x$MISC_MAN_DIR = x ; then 10668 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10669fi 10670 10671if test x$DRIVER_MAN_SUFFIX = x ; then 10672 case $host_os in 10673 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10674 *) DRIVER_MAN_SUFFIX=4 ;; 10675 esac 10676fi 10677if test x$DRIVER_MAN_DIR = x ; then 10678 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10679fi 10680 10681if test x$ADMIN_MAN_SUFFIX = x ; then 10682 case $host_os in 10683 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10684 *) ADMIN_MAN_SUFFIX=8 ;; 10685 esac 10686fi 10687if test x$ADMIN_MAN_DIR = x ; then 10688 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10689fi 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705XORG_MAN_PAGE="X Version 11" 10706 10707MAN_SUBSTS="\ 10708 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10709 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10710 -e 's|__xservername__|Xorg|g' \ 10711 -e 's|__xconfigfile__|xorg.conf|g' \ 10712 -e 's|__projectroot__|\$(prefix)|g' \ 10713 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10714 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10715 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10716 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10717 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10718 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10719 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10720 10721 10722 10723# Check whether --enable-silent-rules was given. 10724if test "${enable_silent_rules+set}" = set; then : 10725 enableval=$enable_silent_rules; 10726fi 10727 10728case $enable_silent_rules in # ((( 10729 yes) AM_DEFAULT_VERBOSITY=0;; 10730 no) AM_DEFAULT_VERBOSITY=1;; 10731 *) AM_DEFAULT_VERBOSITY=0;; 10732esac 10733am_make=${MAKE-make} 10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10735$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10736if ${am_cv_make_support_nested_variables+:} false; then : 10737 $as_echo_n "(cached) " >&6 10738else 10739 if $as_echo 'TRUE=$(BAR$(V)) 10740BAR0=false 10741BAR1=true 10742V=1 10743am__doit: 10744 @$(TRUE) 10745.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10746 am_cv_make_support_nested_variables=yes 10747else 10748 am_cv_make_support_nested_variables=no 10749fi 10750fi 10751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10752$as_echo "$am_cv_make_support_nested_variables" >&6; } 10753if test $am_cv_make_support_nested_variables = yes; then 10754 AM_V='$(V)' 10755 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10756else 10757 AM_V=$AM_DEFAULT_VERBOSITY 10758 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10759fi 10760AM_BACKSLASH='\' 10761 10762 10763 10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 10765$as_echo_n "checking for gzopen in -lz... " >&6; } 10766if ${ac_cv_lib_z_gzopen+:} false; then : 10767 $as_echo_n "(cached) " >&6 10768else 10769 ac_check_lib_save_LIBS=$LIBS 10770LIBS="-lz $LIBS" 10771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10772/* end confdefs.h. */ 10773 10774/* Override any GCC internal prototype to avoid an error. 10775 Use char because int might match the return type of a GCC 10776 builtin and then its argument prototype would still apply. */ 10777#ifdef __cplusplus 10778extern "C" 10779#endif 10780char gzopen (); 10781int 10782main () 10783{ 10784return gzopen (); 10785 ; 10786 return 0; 10787} 10788_ACEOF 10789if ac_fn_c_try_link "$LINENO"; then : 10790 ac_cv_lib_z_gzopen=yes 10791else 10792 ac_cv_lib_z_gzopen=no 10793fi 10794rm -f core conftest.err conftest.$ac_objext \ 10795 conftest$ac_exeext conftest.$ac_ext 10796LIBS=$ac_check_lib_save_LIBS 10797fi 10798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 10799$as_echo "$ac_cv_lib_z_gzopen" >&6; } 10800if test "x$ac_cv_lib_z_gzopen" = xyes; then : 10801 cat >>confdefs.h <<_ACEOF 10802#define HAVE_LIBZ 1 10803_ACEOF 10804 10805 LIBS="-lz $LIBS" 10806 10807else 10808 as_fn_error $? "zlib is required, but was not found." "$LINENO" 5 10809fi 10810 10811 10812 10813# Check whether --with-bzip2 was given. 10814if test "${with_bzip2+set}" = set; then : 10815 withval=$with_bzip2; 10816else 10817 with_bzip2=no 10818fi 10819 10820if test "x$with_bzip2" = xyes; then 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5 10822$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; } 10823if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then : 10824 $as_echo_n "(cached) " >&6 10825else 10826 ac_check_lib_save_LIBS=$LIBS 10827LIBS="-lbz2 $LIBS" 10828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10829/* end confdefs.h. */ 10830 10831/* Override any GCC internal prototype to avoid an error. 10832 Use char because int might match the return type of a GCC 10833 builtin and then its argument prototype would still apply. */ 10834#ifdef __cplusplus 10835extern "C" 10836#endif 10837char BZ2_bzopen (); 10838int 10839main () 10840{ 10841return BZ2_bzopen (); 10842 ; 10843 return 0; 10844} 10845_ACEOF 10846if ac_fn_c_try_link "$LINENO"; then : 10847 ac_cv_lib_bz2_BZ2_bzopen=yes 10848else 10849 ac_cv_lib_bz2_BZ2_bzopen=no 10850fi 10851rm -f core conftest.err conftest.$ac_objext \ 10852 conftest$ac_exeext conftest.$ac_ext 10853LIBS=$ac_check_lib_save_LIBS 10854fi 10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 10856$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; } 10857if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then : 10858 cat >>confdefs.h <<_ACEOF 10859#define HAVE_LIBBZ2 1 10860_ACEOF 10861 10862 LIBS="-lbz2 $LIBS" 10863 10864else 10865 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 10866fi 10867 10868 10869$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h 10870 10871fi 10872 10873# Checks for pkg-config packages 10874 10875pkg_failed=no 10876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5 10877$as_echo_n "checking for MKFONTSCALE... " >&6; } 10878 10879if test -n "$MKFONTSCALE_CFLAGS"; then 10880 pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS" 10881 elif test -n "$PKG_CONFIG"; then 10882 if test -n "$PKG_CONFIG" && \ 10883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5 10884 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5 10885 ac_status=$? 10886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10887 test $ac_status = 0; }; then 10888 pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null` 10889else 10890 pkg_failed=yes 10891fi 10892 else 10893 pkg_failed=untried 10894fi 10895if test -n "$MKFONTSCALE_LIBS"; then 10896 pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS" 10897 elif test -n "$PKG_CONFIG"; then 10898 if test -n "$PKG_CONFIG" && \ 10899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5 10900 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5 10901 ac_status=$? 10902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10903 test $ac_status = 0; }; then 10904 pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null` 10905else 10906 pkg_failed=yes 10907fi 10908 else 10909 pkg_failed=untried 10910fi 10911 10912 10913 10914if test $pkg_failed = yes; then 10915 10916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10917 _pkg_short_errors_supported=yes 10918else 10919 _pkg_short_errors_supported=no 10920fi 10921 if test $_pkg_short_errors_supported = yes; then 10922 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc freetype2" 2>&1` 10923 else 10924 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc freetype2" 2>&1` 10925 fi 10926 # Put the nasty error message in config.log where it belongs 10927 echo "$MKFONTSCALE_PKG_ERRORS" >&5 10928 10929 as_fn_error $? "Package requirements (fontenc freetype2) were not met: 10930 10931$MKFONTSCALE_PKG_ERRORS 10932 10933Consider adjusting the PKG_CONFIG_PATH environment variable if you 10934installed software in a non-standard prefix. 10935 10936Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS 10937and MKFONTSCALE_LIBS to avoid the need to call pkg-config. 10938See the pkg-config man page for more details. 10939" "$LINENO" 5 10940elif test $pkg_failed = untried; then 10941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10943as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10944is in your PATH or set the PKG_CONFIG environment variable to the full 10945path to pkg-config. 10946 10947Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS 10948and MKFONTSCALE_LIBS to avoid the need to call pkg-config. 10949See the pkg-config man page for more details. 10950 10951To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10952See \`config.log' for more details" "$LINENO" 5; } 10953else 10954 MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS 10955 MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10957$as_echo "yes" >&6; } 10958 : 10959fi 10960 10961pkg_failed=no 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 10963$as_echo_n "checking for X11... " >&6; } 10964 10965if test -n "$X11_CFLAGS"; then 10966 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 10967 elif test -n "$PKG_CONFIG"; then 10968 if test -n "$PKG_CONFIG" && \ 10969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 10970 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 10971 ac_status=$? 10972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10973 test $ac_status = 0; }; then 10974 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null` 10975else 10976 pkg_failed=yes 10977fi 10978 else 10979 pkg_failed=untried 10980fi 10981if test -n "$X11_LIBS"; then 10982 pkg_cv_X11_LIBS="$X11_LIBS" 10983 elif test -n "$PKG_CONFIG"; then 10984 if test -n "$PKG_CONFIG" && \ 10985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 10986 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 10987 ac_status=$? 10988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10989 test $ac_status = 0; }; then 10990 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null` 10991else 10992 pkg_failed=yes 10993fi 10994 else 10995 pkg_failed=untried 10996fi 10997 10998 10999 11000if test $pkg_failed = yes; then 11001 11002if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11003 _pkg_short_errors_supported=yes 11004else 11005 _pkg_short_errors_supported=no 11006fi 11007 if test $_pkg_short_errors_supported = yes; then 11008 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.25" 2>&1` 11009 else 11010 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.25" 2>&1` 11011 fi 11012 # Put the nasty error message in config.log where it belongs 11013 echo "$X11_PKG_ERRORS" >&5 11014 11015 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met: 11016 11017$X11_PKG_ERRORS 11018 11019Consider adjusting the PKG_CONFIG_PATH environment variable if you 11020installed software in a non-standard prefix. 11021 11022Alternatively, you may set the environment variables X11_CFLAGS 11023and X11_LIBS to avoid the need to call pkg-config. 11024See the pkg-config man page for more details. 11025" "$LINENO" 5 11026elif test $pkg_failed = untried; then 11027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11029as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11030is in your PATH or set the PKG_CONFIG environment variable to the full 11031path to pkg-config. 11032 11033Alternatively, you may set the environment variables X11_CFLAGS 11034and X11_LIBS to avoid the need to call pkg-config. 11035See the pkg-config man page for more details. 11036 11037To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11038See \`config.log' for more details" "$LINENO" 5; } 11039else 11040 X11_CFLAGS=$pkg_cv_X11_CFLAGS 11041 X11_LIBS=$pkg_cv_X11_LIBS 11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11043$as_echo "yes" >&6; } 11044 : 11045fi 11046 11047 11048 11049 11050 11051 11052# Check whether --with-lint was given. 11053if test "${with_lint+set}" = set; then : 11054 withval=$with_lint; use_lint=$withval 11055else 11056 use_lint=no 11057fi 11058 11059 11060# Obtain platform specific info like program name and options 11061# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11062case $host_os in 11063 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11064 lint_name=splint 11065 lint_options="-badflag" 11066 ;; 11067 *freebsd* | *netbsd*) 11068 lint_name=lint 11069 lint_options="-u -b" 11070 ;; 11071 *solaris*) 11072 lint_name=lint 11073 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11074 ;; 11075esac 11076 11077# Test for the presence of the program (either guessed by the code or spelled out by the user) 11078if test "x$use_lint" = x"yes" ; then 11079 # Extract the first word of "$lint_name", so it can be a program name with args. 11080set dummy $lint_name; ac_word=$2 11081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11082$as_echo_n "checking for $ac_word... " >&6; } 11083if ${ac_cv_path_LINT+:} false; then : 11084 $as_echo_n "(cached) " >&6 11085else 11086 case $LINT in 11087 [\\/]* | ?:[\\/]*) 11088 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11089 ;; 11090 *) 11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11092for as_dir in $PATH 11093do 11094 IFS=$as_save_IFS 11095 test -z "$as_dir" && as_dir=. 11096 for ac_exec_ext in '' $ac_executable_extensions; do 11097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11098 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11100 break 2 11101 fi 11102done 11103 done 11104IFS=$as_save_IFS 11105 11106 ;; 11107esac 11108fi 11109LINT=$ac_cv_path_LINT 11110if test -n "$LINT"; then 11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11112$as_echo "$LINT" >&6; } 11113else 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11115$as_echo "no" >&6; } 11116fi 11117 11118 11119 if test "x$LINT" = "x"; then 11120 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11121 fi 11122elif test "x$use_lint" = x"no" ; then 11123 if test "x$LINT" != "x"; then 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11125$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11126 fi 11127else 11128 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11129fi 11130 11131# User supplied flags override default flags 11132if test "x$LINT_FLAGS" != "x"; then 11133 lint_options=$LINT_FLAGS 11134fi 11135 11136LINT_FLAGS=$lint_options 11137 11138 if test "x$LINT" != x; then 11139 LINT_TRUE= 11140 LINT_FALSE='#' 11141else 11142 LINT_TRUE='#' 11143 LINT_FALSE= 11144fi 11145 11146 11147 11148 11149ac_config_files="$ac_config_files Makefile man/Makefile" 11150 11151cat >confcache <<\_ACEOF 11152# This file is a shell script that caches the results of configure 11153# tests run on this system so they can be shared between configure 11154# scripts and configure runs, see configure's option --config-cache. 11155# It is not useful on other systems. If it contains results you don't 11156# want to keep, you may remove or edit it. 11157# 11158# config.status only pays attention to the cache file if you give it 11159# the --recheck option to rerun configure. 11160# 11161# `ac_cv_env_foo' variables (set or unset) will be overridden when 11162# loading this file, other *unset* `ac_cv_foo' will be assigned the 11163# following values. 11164 11165_ACEOF 11166 11167# The following way of writing the cache mishandles newlines in values, 11168# but we know of no workaround that is simple, portable, and efficient. 11169# So, we kill variables containing newlines. 11170# Ultrix sh set writes to stderr and can't be redirected directly, 11171# and sets the high bit in the cache file unless we assign to the vars. 11172( 11173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11174 eval ac_val=\$$ac_var 11175 case $ac_val in #( 11176 *${as_nl}*) 11177 case $ac_var in #( 11178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11179$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11180 esac 11181 case $ac_var in #( 11182 _ | IFS | as_nl) ;; #( 11183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11184 *) { eval $ac_var=; unset $ac_var;} ;; 11185 esac ;; 11186 esac 11187 done 11188 11189 (set) 2>&1 | 11190 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11191 *${as_nl}ac_space=\ *) 11192 # `set' does not quote correctly, so add quotes: double-quote 11193 # substitution turns \\\\ into \\, and sed turns \\ into \. 11194 sed -n \ 11195 "s/'/'\\\\''/g; 11196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11197 ;; #( 11198 *) 11199 # `set' quotes correctly as required by POSIX, so do not add quotes. 11200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11201 ;; 11202 esac | 11203 sort 11204) | 11205 sed ' 11206 /^ac_cv_env_/b end 11207 t clear 11208 :clear 11209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11210 t end 11211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11212 :end' >>confcache 11213if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11214 if test -w "$cache_file"; then 11215 if test "x$cache_file" != "x/dev/null"; then 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11217$as_echo "$as_me: updating cache $cache_file" >&6;} 11218 if test ! -f "$cache_file" || test -h "$cache_file"; then 11219 cat confcache >"$cache_file" 11220 else 11221 case $cache_file in #( 11222 */* | ?:*) 11223 mv -f confcache "$cache_file"$$ && 11224 mv -f "$cache_file"$$ "$cache_file" ;; #( 11225 *) 11226 mv -f confcache "$cache_file" ;; 11227 esac 11228 fi 11229 fi 11230 else 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11232$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11233 fi 11234fi 11235rm -f confcache 11236 11237test "x$prefix" = xNONE && prefix=$ac_default_prefix 11238# Let make expand exec_prefix. 11239test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11240 11241DEFS=-DHAVE_CONFIG_H 11242 11243ac_libobjs= 11244ac_ltlibobjs= 11245U= 11246for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11247 # 1. Remove the extension, and $U if already installed. 11248 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11249 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11251 # will be set to the directory where LIBOBJS objects are built. 11252 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11253 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11254done 11255LIBOBJS=$ac_libobjs 11256 11257LTLIBOBJS=$ac_ltlibobjs 11258 11259 11260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11261$as_echo_n "checking that generated files are newer than configure... " >&6; } 11262 if test -n "$am_sleep_pid"; then 11263 # Hide warnings about reused PIDs. 11264 wait $am_sleep_pid 2>/dev/null 11265 fi 11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11267$as_echo "done" >&6; } 11268if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11269 as_fn_error $? "conditional \"AMDEP\" was never defined. 11270Usually this means the macro was only invoked conditionally." "$LINENO" 5 11271fi 11272if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11273 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11274Usually this means the macro was only invoked conditionally." "$LINENO" 5 11275fi 11276 if test -n "$EXEEXT"; then 11277 am__EXEEXT_TRUE= 11278 am__EXEEXT_FALSE='#' 11279else 11280 am__EXEEXT_TRUE='#' 11281 am__EXEEXT_FALSE= 11282fi 11283 11284if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11285 as_fn_error $? "conditional \"LINT\" was never defined. 11286Usually this means the macro was only invoked conditionally." "$LINENO" 5 11287fi 11288 11289: "${CONFIG_STATUS=./config.status}" 11290ac_write_fail=0 11291ac_clean_files_save=$ac_clean_files 11292ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11294$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11295as_write_fail=0 11296cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11297#! $SHELL 11298# Generated by $as_me. 11299# Run this file to recreate the current configuration. 11300# Compiler output produced by configure, useful for debugging 11301# configure, is in config.log if it exists. 11302 11303debug=false 11304ac_cs_recheck=false 11305ac_cs_silent=false 11306 11307SHELL=\${CONFIG_SHELL-$SHELL} 11308export SHELL 11309_ASEOF 11310cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11311## -------------------- ## 11312## M4sh Initialization. ## 11313## -------------------- ## 11314 11315# Be more Bourne compatible 11316DUALCASE=1; export DUALCASE # for MKS sh 11317if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11318 emulate sh 11319 NULLCMD=: 11320 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11321 # is contrary to our usage. Disable this feature. 11322 alias -g '${1+"$@"}'='"$@"' 11323 setopt NO_GLOB_SUBST 11324else 11325 case `(set -o) 2>/dev/null` in #( 11326 *posix*) : 11327 set -o posix ;; #( 11328 *) : 11329 ;; 11330esac 11331fi 11332 11333 11334as_nl=' 11335' 11336export as_nl 11337# Printing a long string crashes Solaris 7 /usr/bin/printf. 11338as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11339as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11340as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11341# Prefer a ksh shell builtin over an external printf program on Solaris, 11342# but without wasting forks for bash or zsh. 11343if test -z "$BASH_VERSION$ZSH_VERSION" \ 11344 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11345 as_echo='print -r --' 11346 as_echo_n='print -rn --' 11347elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11348 as_echo='printf %s\n' 11349 as_echo_n='printf %s' 11350else 11351 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11352 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11353 as_echo_n='/usr/ucb/echo -n' 11354 else 11355 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11356 as_echo_n_body='eval 11357 arg=$1; 11358 case $arg in #( 11359 *"$as_nl"*) 11360 expr "X$arg" : "X\\(.*\\)$as_nl"; 11361 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11362 esac; 11363 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11364 ' 11365 export as_echo_n_body 11366 as_echo_n='sh -c $as_echo_n_body as_echo' 11367 fi 11368 export as_echo_body 11369 as_echo='sh -c $as_echo_body as_echo' 11370fi 11371 11372# The user is always right. 11373if test "${PATH_SEPARATOR+set}" != set; then 11374 PATH_SEPARATOR=: 11375 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11376 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11377 PATH_SEPARATOR=';' 11378 } 11379fi 11380 11381 11382# IFS 11383# We need space, tab and new line, in precisely that order. Quoting is 11384# there to prevent editors from complaining about space-tab. 11385# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11386# splitting by setting IFS to empty value.) 11387IFS=" "" $as_nl" 11388 11389# Find who we are. Look in the path if we contain no directory separator. 11390as_myself= 11391case $0 in #(( 11392 *[\\/]* ) as_myself=$0 ;; 11393 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11394for as_dir in $PATH 11395do 11396 IFS=$as_save_IFS 11397 test -z "$as_dir" && as_dir=. 11398 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11399 done 11400IFS=$as_save_IFS 11401 11402 ;; 11403esac 11404# We did not find ourselves, most probably we were run as `sh COMMAND' 11405# in which case we are not to be found in the path. 11406if test "x$as_myself" = x; then 11407 as_myself=$0 11408fi 11409if test ! -f "$as_myself"; then 11410 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11411 exit 1 11412fi 11413 11414# Unset variables that we do not need and which cause bugs (e.g. in 11415# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11416# suppresses any "Segmentation fault" message there. '((' could 11417# trigger a bug in pdksh 5.2.14. 11418for as_var in BASH_ENV ENV MAIL MAILPATH 11419do eval test x\${$as_var+set} = xset \ 11420 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11421done 11422PS1='$ ' 11423PS2='> ' 11424PS4='+ ' 11425 11426# NLS nuisances. 11427LC_ALL=C 11428export LC_ALL 11429LANGUAGE=C 11430export LANGUAGE 11431 11432# CDPATH. 11433(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11434 11435 11436# as_fn_error STATUS ERROR [LINENO LOG_FD] 11437# ---------------------------------------- 11438# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11439# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11440# script with STATUS, using 1 if that was 0. 11441as_fn_error () 11442{ 11443 as_status=$1; test $as_status -eq 0 && as_status=1 11444 if test "$4"; then 11445 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11446 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11447 fi 11448 $as_echo "$as_me: error: $2" >&2 11449 as_fn_exit $as_status 11450} # as_fn_error 11451 11452 11453# as_fn_set_status STATUS 11454# ----------------------- 11455# Set $? to STATUS, without forking. 11456as_fn_set_status () 11457{ 11458 return $1 11459} # as_fn_set_status 11460 11461# as_fn_exit STATUS 11462# ----------------- 11463# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11464as_fn_exit () 11465{ 11466 set +e 11467 as_fn_set_status $1 11468 exit $1 11469} # as_fn_exit 11470 11471# as_fn_unset VAR 11472# --------------- 11473# Portably unset VAR. 11474as_fn_unset () 11475{ 11476 { eval $1=; unset $1;} 11477} 11478as_unset=as_fn_unset 11479# as_fn_append VAR VALUE 11480# ---------------------- 11481# Append the text in VALUE to the end of the definition contained in VAR. Take 11482# advantage of any shell optimizations that allow amortized linear growth over 11483# repeated appends, instead of the typical quadratic growth present in naive 11484# implementations. 11485if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11486 eval 'as_fn_append () 11487 { 11488 eval $1+=\$2 11489 }' 11490else 11491 as_fn_append () 11492 { 11493 eval $1=\$$1\$2 11494 } 11495fi # as_fn_append 11496 11497# as_fn_arith ARG... 11498# ------------------ 11499# Perform arithmetic evaluation on the ARGs, and store the result in the 11500# global $as_val. Take advantage of shells that can avoid forks. The arguments 11501# must be portable across $(()) and expr. 11502if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11503 eval 'as_fn_arith () 11504 { 11505 as_val=$(( $* )) 11506 }' 11507else 11508 as_fn_arith () 11509 { 11510 as_val=`expr "$@" || test $? -eq 1` 11511 } 11512fi # as_fn_arith 11513 11514 11515if expr a : '\(a\)' >/dev/null 2>&1 && 11516 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11517 as_expr=expr 11518else 11519 as_expr=false 11520fi 11521 11522if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11523 as_basename=basename 11524else 11525 as_basename=false 11526fi 11527 11528if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11529 as_dirname=dirname 11530else 11531 as_dirname=false 11532fi 11533 11534as_me=`$as_basename -- "$0" || 11535$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11536 X"$0" : 'X\(//\)$' \| \ 11537 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11538$as_echo X/"$0" | 11539 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11540 s//\1/ 11541 q 11542 } 11543 /^X\/\(\/\/\)$/{ 11544 s//\1/ 11545 q 11546 } 11547 /^X\/\(\/\).*/{ 11548 s//\1/ 11549 q 11550 } 11551 s/.*/./; q'` 11552 11553# Avoid depending upon Character Ranges. 11554as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11555as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11556as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11557as_cr_digits='0123456789' 11558as_cr_alnum=$as_cr_Letters$as_cr_digits 11559 11560ECHO_C= ECHO_N= ECHO_T= 11561case `echo -n x` in #((((( 11562-n*) 11563 case `echo 'xy\c'` in 11564 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11565 xy) ECHO_C='\c';; 11566 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11567 ECHO_T=' ';; 11568 esac;; 11569*) 11570 ECHO_N='-n';; 11571esac 11572 11573rm -f conf$$ conf$$.exe conf$$.file 11574if test -d conf$$.dir; then 11575 rm -f conf$$.dir/conf$$.file 11576else 11577 rm -f conf$$.dir 11578 mkdir conf$$.dir 2>/dev/null 11579fi 11580if (echo >conf$$.file) 2>/dev/null; then 11581 if ln -s conf$$.file conf$$ 2>/dev/null; then 11582 as_ln_s='ln -s' 11583 # ... but there are two gotchas: 11584 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11585 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11586 # In both cases, we have to default to `cp -pR'. 11587 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11588 as_ln_s='cp -pR' 11589 elif ln conf$$.file conf$$ 2>/dev/null; then 11590 as_ln_s=ln 11591 else 11592 as_ln_s='cp -pR' 11593 fi 11594else 11595 as_ln_s='cp -pR' 11596fi 11597rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11598rmdir conf$$.dir 2>/dev/null 11599 11600 11601# as_fn_mkdir_p 11602# ------------- 11603# Create "$as_dir" as a directory, including parents if necessary. 11604as_fn_mkdir_p () 11605{ 11606 11607 case $as_dir in #( 11608 -*) as_dir=./$as_dir;; 11609 esac 11610 test -d "$as_dir" || eval $as_mkdir_p || { 11611 as_dirs= 11612 while :; do 11613 case $as_dir in #( 11614 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11615 *) as_qdir=$as_dir;; 11616 esac 11617 as_dirs="'$as_qdir' $as_dirs" 11618 as_dir=`$as_dirname -- "$as_dir" || 11619$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11620 X"$as_dir" : 'X\(//\)[^/]' \| \ 11621 X"$as_dir" : 'X\(//\)$' \| \ 11622 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11623$as_echo X"$as_dir" | 11624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11625 s//\1/ 11626 q 11627 } 11628 /^X\(\/\/\)[^/].*/{ 11629 s//\1/ 11630 q 11631 } 11632 /^X\(\/\/\)$/{ 11633 s//\1/ 11634 q 11635 } 11636 /^X\(\/\).*/{ 11637 s//\1/ 11638 q 11639 } 11640 s/.*/./; q'` 11641 test -d "$as_dir" && break 11642 done 11643 test -z "$as_dirs" || eval "mkdir $as_dirs" 11644 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11645 11646 11647} # as_fn_mkdir_p 11648if mkdir -p . 2>/dev/null; then 11649 as_mkdir_p='mkdir -p "$as_dir"' 11650else 11651 test -d ./-p && rmdir ./-p 11652 as_mkdir_p=false 11653fi 11654 11655 11656# as_fn_executable_p FILE 11657# ----------------------- 11658# Test if FILE is an executable regular file. 11659as_fn_executable_p () 11660{ 11661 test -f "$1" && test -x "$1" 11662} # as_fn_executable_p 11663as_test_x='test -x' 11664as_executable_p=as_fn_executable_p 11665 11666# Sed expression to map a string onto a valid CPP name. 11667as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11668 11669# Sed expression to map a string onto a valid variable name. 11670as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11671 11672 11673exec 6>&1 11674## ----------------------------------- ## 11675## Main body of $CONFIG_STATUS script. ## 11676## ----------------------------------- ## 11677_ASEOF 11678test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11679 11680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11681# Save the log message, to keep $0 and so on meaningful, and to 11682# report actual input values of CONFIG_FILES etc. instead of their 11683# values after options handling. 11684ac_log=" 11685This file was extended by mkfontscale $as_me 1.1.2, which was 11686generated by GNU Autoconf 2.69. Invocation command line was 11687 11688 CONFIG_FILES = $CONFIG_FILES 11689 CONFIG_HEADERS = $CONFIG_HEADERS 11690 CONFIG_LINKS = $CONFIG_LINKS 11691 CONFIG_COMMANDS = $CONFIG_COMMANDS 11692 $ $0 $@ 11693 11694on `(hostname || uname -n) 2>/dev/null | sed 1q` 11695" 11696 11697_ACEOF 11698 11699case $ac_config_files in *" 11700"*) set x $ac_config_files; shift; ac_config_files=$*;; 11701esac 11702 11703case $ac_config_headers in *" 11704"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11705esac 11706 11707 11708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11709# Files that config.status was made for. 11710config_files="$ac_config_files" 11711config_headers="$ac_config_headers" 11712config_commands="$ac_config_commands" 11713 11714_ACEOF 11715 11716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11717ac_cs_usage="\ 11718\`$as_me' instantiates files and other configuration actions 11719from templates according to the current configuration. Unless the files 11720and actions are specified as TAGs, all are instantiated by default. 11721 11722Usage: $0 [OPTION]... [TAG]... 11723 11724 -h, --help print this help, then exit 11725 -V, --version print version number and configuration settings, then exit 11726 --config print configuration, then exit 11727 -q, --quiet, --silent 11728 do not print progress messages 11729 -d, --debug don't remove temporary files 11730 --recheck update $as_me by reconfiguring in the same conditions 11731 --file=FILE[:TEMPLATE] 11732 instantiate the configuration file FILE 11733 --header=FILE[:TEMPLATE] 11734 instantiate the configuration header FILE 11735 11736Configuration files: 11737$config_files 11738 11739Configuration headers: 11740$config_headers 11741 11742Configuration commands: 11743$config_commands 11744 11745Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11746 11747_ACEOF 11748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11749ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11750ac_cs_version="\\ 11751mkfontscale config.status 1.1.2 11752configured by $0, generated by GNU Autoconf 2.69, 11753 with options \\"\$ac_cs_config\\" 11754 11755Copyright (C) 2012 Free Software Foundation, Inc. 11756This config.status script is free software; the Free Software Foundation 11757gives unlimited permission to copy, distribute and modify it." 11758 11759ac_pwd='$ac_pwd' 11760srcdir='$srcdir' 11761INSTALL='$INSTALL' 11762MKDIR_P='$MKDIR_P' 11763AWK='$AWK' 11764test -n "\$AWK" || AWK=awk 11765_ACEOF 11766 11767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11768# The default lists apply if the user does not specify any file. 11769ac_need_defaults=: 11770while test $# != 0 11771do 11772 case $1 in 11773 --*=?*) 11774 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11775 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11776 ac_shift=: 11777 ;; 11778 --*=) 11779 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11780 ac_optarg= 11781 ac_shift=: 11782 ;; 11783 *) 11784 ac_option=$1 11785 ac_optarg=$2 11786 ac_shift=shift 11787 ;; 11788 esac 11789 11790 case $ac_option in 11791 # Handling of the options. 11792 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11793 ac_cs_recheck=: ;; 11794 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11795 $as_echo "$ac_cs_version"; exit ;; 11796 --config | --confi | --conf | --con | --co | --c ) 11797 $as_echo "$ac_cs_config"; exit ;; 11798 --debug | --debu | --deb | --de | --d | -d ) 11799 debug=: ;; 11800 --file | --fil | --fi | --f ) 11801 $ac_shift 11802 case $ac_optarg in 11803 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11804 '') as_fn_error $? "missing file argument" ;; 11805 esac 11806 as_fn_append CONFIG_FILES " '$ac_optarg'" 11807 ac_need_defaults=false;; 11808 --header | --heade | --head | --hea ) 11809 $ac_shift 11810 case $ac_optarg in 11811 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11812 esac 11813 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11814 ac_need_defaults=false;; 11815 --he | --h) 11816 # Conflict between --help and --header 11817 as_fn_error $? "ambiguous option: \`$1' 11818Try \`$0 --help' for more information.";; 11819 --help | --hel | -h ) 11820 $as_echo "$ac_cs_usage"; exit ;; 11821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11822 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11823 ac_cs_silent=: ;; 11824 11825 # This is an error. 11826 -*) as_fn_error $? "unrecognized option: \`$1' 11827Try \`$0 --help' for more information." ;; 11828 11829 *) as_fn_append ac_config_targets " $1" 11830 ac_need_defaults=false ;; 11831 11832 esac 11833 shift 11834done 11835 11836ac_configure_extra_args= 11837 11838if $ac_cs_silent; then 11839 exec 6>/dev/null 11840 ac_configure_extra_args="$ac_configure_extra_args --silent" 11841fi 11842 11843_ACEOF 11844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11845if \$ac_cs_recheck; then 11846 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11847 shift 11848 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11849 CONFIG_SHELL='$SHELL' 11850 export CONFIG_SHELL 11851 exec "\$@" 11852fi 11853 11854_ACEOF 11855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11856exec 5>>config.log 11857{ 11858 echo 11859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11860## Running $as_me. ## 11861_ASBOX 11862 $as_echo "$ac_log" 11863} >&5 11864 11865_ACEOF 11866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11867# 11868# INIT-COMMANDS 11869# 11870AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11871 11872_ACEOF 11873 11874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11875 11876# Handling of arguments. 11877for ac_config_target in $ac_config_targets 11878do 11879 case $ac_config_target in 11880 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11881 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11882 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11883 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11884 11885 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11886 esac 11887done 11888 11889 11890# If the user did not use the arguments to specify the items to instantiate, 11891# then the envvar interface is used. Set only those that are not. 11892# We use the long form for the default assignment because of an extremely 11893# bizarre bug on SunOS 4.1.3. 11894if $ac_need_defaults; then 11895 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11896 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11897 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11898fi 11899 11900# Have a temporary directory for convenience. Make it in the build tree 11901# simply because there is no reason against having it here, and in addition, 11902# creating and moving files from /tmp can sometimes cause problems. 11903# Hook for its removal unless debugging. 11904# Note that there is a small window in which the directory will not be cleaned: 11905# after its creation but before its name has been assigned to `$tmp'. 11906$debug || 11907{ 11908 tmp= ac_tmp= 11909 trap 'exit_status=$? 11910 : "${ac_tmp:=$tmp}" 11911 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11912' 0 11913 trap 'as_fn_exit 1' 1 2 13 15 11914} 11915# Create a (secure) tmp directory for tmp files. 11916 11917{ 11918 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11919 test -d "$tmp" 11920} || 11921{ 11922 tmp=./conf$$-$RANDOM 11923 (umask 077 && mkdir "$tmp") 11924} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11925ac_tmp=$tmp 11926 11927# Set up the scripts for CONFIG_FILES section. 11928# No need to generate them if there are no CONFIG_FILES. 11929# This happens for instance with `./config.status config.h'. 11930if test -n "$CONFIG_FILES"; then 11931 11932 11933ac_cr=`echo X | tr X '\015'` 11934# On cygwin, bash can eat \r inside `` if the user requested igncr. 11935# But we know of no other shell where ac_cr would be empty at this 11936# point, so we can use a bashism as a fallback. 11937if test "x$ac_cr" = x; then 11938 eval ac_cr=\$\'\\r\' 11939fi 11940ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11941if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11942 ac_cs_awk_cr='\\r' 11943else 11944 ac_cs_awk_cr=$ac_cr 11945fi 11946 11947echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11948_ACEOF 11949 11950 11951{ 11952 echo "cat >conf$$subs.awk <<_ACEOF" && 11953 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11954 echo "_ACEOF" 11955} >conf$$subs.sh || 11956 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11957ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11958ac_delim='%!_!# ' 11959for ac_last_try in false false false false false :; do 11960 . ./conf$$subs.sh || 11961 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11962 11963 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11964 if test $ac_delim_n = $ac_delim_num; then 11965 break 11966 elif $ac_last_try; then 11967 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11968 else 11969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11970 fi 11971done 11972rm -f conf$$subs.sh 11973 11974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11975cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11976_ACEOF 11977sed -n ' 11978h 11979s/^/S["/; s/!.*/"]=/ 11980p 11981g 11982s/^[^!]*!// 11983:repl 11984t repl 11985s/'"$ac_delim"'$// 11986t delim 11987:nl 11988h 11989s/\(.\{148\}\)..*/\1/ 11990t more1 11991s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11992p 11993n 11994b repl 11995:more1 11996s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11997p 11998g 11999s/.\{148\}// 12000t nl 12001:delim 12002h 12003s/\(.\{148\}\)..*/\1/ 12004t more2 12005s/["\\]/\\&/g; s/^/"/; s/$/"/ 12006p 12007b 12008:more2 12009s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12010p 12011g 12012s/.\{148\}// 12013t delim 12014' <conf$$subs.awk | sed ' 12015/^[^""]/{ 12016 N 12017 s/\n// 12018} 12019' >>$CONFIG_STATUS || ac_write_fail=1 12020rm -f conf$$subs.awk 12021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12022_ACAWK 12023cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12024 for (key in S) S_is_set[key] = 1 12025 FS = "" 12026 12027} 12028{ 12029 line = $ 0 12030 nfields = split(line, field, "@") 12031 substed = 0 12032 len = length(field[1]) 12033 for (i = 2; i < nfields; i++) { 12034 key = field[i] 12035 keylen = length(key) 12036 if (S_is_set[key]) { 12037 value = S[key] 12038 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12039 len += length(value) + length(field[++i]) 12040 substed = 1 12041 } else 12042 len += 1 + keylen 12043 } 12044 12045 print line 12046} 12047 12048_ACAWK 12049_ACEOF 12050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12051if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12052 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12053else 12054 cat 12055fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12056 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12057_ACEOF 12058 12059# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12060# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12061# trailing colons and then remove the whole line if VPATH becomes empty 12062# (actually we leave an empty line to preserve line numbers). 12063if test "x$srcdir" = x.; then 12064 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12065h 12066s/// 12067s/^/:/ 12068s/[ ]*$/:/ 12069s/:\$(srcdir):/:/g 12070s/:\${srcdir}:/:/g 12071s/:@srcdir@:/:/g 12072s/^:*// 12073s/:*$// 12074x 12075s/\(=[ ]*\).*/\1/ 12076G 12077s/\n// 12078s/^[^=]*=[ ]*$// 12079}' 12080fi 12081 12082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12083fi # test -n "$CONFIG_FILES" 12084 12085# Set up the scripts for CONFIG_HEADERS section. 12086# No need to generate them if there are no CONFIG_HEADERS. 12087# This happens for instance with `./config.status Makefile'. 12088if test -n "$CONFIG_HEADERS"; then 12089cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12090BEGIN { 12091_ACEOF 12092 12093# Transform confdefs.h into an awk script `defines.awk', embedded as 12094# here-document in config.status, that substitutes the proper values into 12095# config.h.in to produce config.h. 12096 12097# Create a delimiter string that does not exist in confdefs.h, to ease 12098# handling of long lines. 12099ac_delim='%!_!# ' 12100for ac_last_try in false false :; do 12101 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12102 if test -z "$ac_tt"; then 12103 break 12104 elif $ac_last_try; then 12105 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12106 else 12107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12108 fi 12109done 12110 12111# For the awk script, D is an array of macro values keyed by name, 12112# likewise P contains macro parameters if any. Preserve backslash 12113# newline sequences. 12114 12115ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12116sed -n ' 12117s/.\{148\}/&'"$ac_delim"'/g 12118t rset 12119:rset 12120s/^[ ]*#[ ]*define[ ][ ]*/ / 12121t def 12122d 12123:def 12124s/\\$// 12125t bsnl 12126s/["\\]/\\&/g 12127s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12128D["\1"]=" \3"/p 12129s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12130d 12131:bsnl 12132s/["\\]/\\&/g 12133s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12134D["\1"]=" \3\\\\\\n"\\/p 12135t cont 12136s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12137t cont 12138d 12139:cont 12140n 12141s/.\{148\}/&'"$ac_delim"'/g 12142t clear 12143:clear 12144s/\\$// 12145t bsnlc 12146s/["\\]/\\&/g; s/^/"/; s/$/"/p 12147d 12148:bsnlc 12149s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12150b cont 12151' <confdefs.h | sed ' 12152s/'"$ac_delim"'/"\\\ 12153"/g' >>$CONFIG_STATUS || ac_write_fail=1 12154 12155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12156 for (key in D) D_is_set[key] = 1 12157 FS = "" 12158} 12159/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12160 line = \$ 0 12161 split(line, arg, " ") 12162 if (arg[1] == "#") { 12163 defundef = arg[2] 12164 mac1 = arg[3] 12165 } else { 12166 defundef = substr(arg[1], 2) 12167 mac1 = arg[2] 12168 } 12169 split(mac1, mac2, "(") #) 12170 macro = mac2[1] 12171 prefix = substr(line, 1, index(line, defundef) - 1) 12172 if (D_is_set[macro]) { 12173 # Preserve the white space surrounding the "#". 12174 print prefix "define", macro P[macro] D[macro] 12175 next 12176 } else { 12177 # Replace #undef with comments. This is necessary, for example, 12178 # in the case of _POSIX_SOURCE, which is predefined and required 12179 # on some systems where configure will not decide to define it. 12180 if (defundef == "undef") { 12181 print "/*", prefix defundef, macro, "*/" 12182 next 12183 } 12184 } 12185} 12186{ print } 12187_ACAWK 12188_ACEOF 12189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12190 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12191fi # test -n "$CONFIG_HEADERS" 12192 12193 12194eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12195shift 12196for ac_tag 12197do 12198 case $ac_tag in 12199 :[FHLC]) ac_mode=$ac_tag; continue;; 12200 esac 12201 case $ac_mode$ac_tag in 12202 :[FHL]*:*);; 12203 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12204 :[FH]-) ac_tag=-:-;; 12205 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12206 esac 12207 ac_save_IFS=$IFS 12208 IFS=: 12209 set x $ac_tag 12210 IFS=$ac_save_IFS 12211 shift 12212 ac_file=$1 12213 shift 12214 12215 case $ac_mode in 12216 :L) ac_source=$1;; 12217 :[FH]) 12218 ac_file_inputs= 12219 for ac_f 12220 do 12221 case $ac_f in 12222 -) ac_f="$ac_tmp/stdin";; 12223 *) # Look for the file first in the build tree, then in the source tree 12224 # (if the path is not absolute). The absolute path cannot be DOS-style, 12225 # because $ac_f cannot contain `:'. 12226 test -f "$ac_f" || 12227 case $ac_f in 12228 [\\/$]*) false;; 12229 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12230 esac || 12231 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12232 esac 12233 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12234 as_fn_append ac_file_inputs " '$ac_f'" 12235 done 12236 12237 # Let's still pretend it is `configure' which instantiates (i.e., don't 12238 # use $as_me), people would be surprised to read: 12239 # /* config.h. Generated by config.status. */ 12240 configure_input='Generated from '` 12241 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12242 `' by configure.' 12243 if test x"$ac_file" != x-; then 12244 configure_input="$ac_file. $configure_input" 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12246$as_echo "$as_me: creating $ac_file" >&6;} 12247 fi 12248 # Neutralize special characters interpreted by sed in replacement strings. 12249 case $configure_input in #( 12250 *\&* | *\|* | *\\* ) 12251 ac_sed_conf_input=`$as_echo "$configure_input" | 12252 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12253 *) ac_sed_conf_input=$configure_input;; 12254 esac 12255 12256 case $ac_tag in 12257 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12259 esac 12260 ;; 12261 esac 12262 12263 ac_dir=`$as_dirname -- "$ac_file" || 12264$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12265 X"$ac_file" : 'X\(//\)[^/]' \| \ 12266 X"$ac_file" : 'X\(//\)$' \| \ 12267 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12268$as_echo X"$ac_file" | 12269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12270 s//\1/ 12271 q 12272 } 12273 /^X\(\/\/\)[^/].*/{ 12274 s//\1/ 12275 q 12276 } 12277 /^X\(\/\/\)$/{ 12278 s//\1/ 12279 q 12280 } 12281 /^X\(\/\).*/{ 12282 s//\1/ 12283 q 12284 } 12285 s/.*/./; q'` 12286 as_dir="$ac_dir"; as_fn_mkdir_p 12287 ac_builddir=. 12288 12289case "$ac_dir" in 12290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12291*) 12292 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12293 # A ".." for each directory in $ac_dir_suffix. 12294 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12295 case $ac_top_builddir_sub in 12296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12298 esac ;; 12299esac 12300ac_abs_top_builddir=$ac_pwd 12301ac_abs_builddir=$ac_pwd$ac_dir_suffix 12302# for backward compatibility: 12303ac_top_builddir=$ac_top_build_prefix 12304 12305case $srcdir in 12306 .) # We are building in place. 12307 ac_srcdir=. 12308 ac_top_srcdir=$ac_top_builddir_sub 12309 ac_abs_top_srcdir=$ac_pwd ;; 12310 [\\/]* | ?:[\\/]* ) # Absolute name. 12311 ac_srcdir=$srcdir$ac_dir_suffix; 12312 ac_top_srcdir=$srcdir 12313 ac_abs_top_srcdir=$srcdir ;; 12314 *) # Relative name. 12315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12316 ac_top_srcdir=$ac_top_build_prefix$srcdir 12317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12318esac 12319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12320 12321 12322 case $ac_mode in 12323 :F) 12324 # 12325 # CONFIG_FILE 12326 # 12327 12328 case $INSTALL in 12329 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12330 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12331 esac 12332 ac_MKDIR_P=$MKDIR_P 12333 case $MKDIR_P in 12334 [\\/$]* | ?:[\\/]* ) ;; 12335 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12336 esac 12337_ACEOF 12338 12339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12340# If the template does not know about datarootdir, expand it. 12341# FIXME: This hack should be removed a few years after 2.60. 12342ac_datarootdir_hack=; ac_datarootdir_seen= 12343ac_sed_dataroot=' 12344/datarootdir/ { 12345 p 12346 q 12347} 12348/@datadir@/p 12349/@docdir@/p 12350/@infodir@/p 12351/@localedir@/p 12352/@mandir@/p' 12353case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12354*datarootdir*) ac_datarootdir_seen=yes;; 12355*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12357$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12358_ACEOF 12359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12360 ac_datarootdir_hack=' 12361 s&@datadir@&$datadir&g 12362 s&@docdir@&$docdir&g 12363 s&@infodir@&$infodir&g 12364 s&@localedir@&$localedir&g 12365 s&@mandir@&$mandir&g 12366 s&\\\${datarootdir}&$datarootdir&g' ;; 12367esac 12368_ACEOF 12369 12370# Neutralize VPATH when `$srcdir' = `.'. 12371# Shell code in configure.ac might set extrasub. 12372# FIXME: do we really want to maintain this feature? 12373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12374ac_sed_extra="$ac_vpsub 12375$extrasub 12376_ACEOF 12377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12378:t 12379/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12380s|@configure_input@|$ac_sed_conf_input|;t t 12381s&@top_builddir@&$ac_top_builddir_sub&;t t 12382s&@top_build_prefix@&$ac_top_build_prefix&;t t 12383s&@srcdir@&$ac_srcdir&;t t 12384s&@abs_srcdir@&$ac_abs_srcdir&;t t 12385s&@top_srcdir@&$ac_top_srcdir&;t t 12386s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12387s&@builddir@&$ac_builddir&;t t 12388s&@abs_builddir@&$ac_abs_builddir&;t t 12389s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12390s&@INSTALL@&$ac_INSTALL&;t t 12391s&@MKDIR_P@&$ac_MKDIR_P&;t t 12392$ac_datarootdir_hack 12393" 12394eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12395 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12396 12397test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12398 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12399 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12400 "$ac_tmp/out"`; test -z "$ac_out"; } && 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12402which seems to be undefined. Please make sure it is defined" >&5 12403$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12404which seems to be undefined. Please make sure it is defined" >&2;} 12405 12406 rm -f "$ac_tmp/stdin" 12407 case $ac_file in 12408 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12409 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12410 esac \ 12411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12412 ;; 12413 :H) 12414 # 12415 # CONFIG_HEADER 12416 # 12417 if test x"$ac_file" != x-; then 12418 { 12419 $as_echo "/* $configure_input */" \ 12420 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12421 } >"$ac_tmp/config.h" \ 12422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12423 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12425$as_echo "$as_me: $ac_file is unchanged" >&6;} 12426 else 12427 rm -f "$ac_file" 12428 mv "$ac_tmp/config.h" "$ac_file" \ 12429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12430 fi 12431 else 12432 $as_echo "/* $configure_input */" \ 12433 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12434 || as_fn_error $? "could not create -" "$LINENO" 5 12435 fi 12436# Compute "$ac_file"'s index in $config_headers. 12437_am_arg="$ac_file" 12438_am_stamp_count=1 12439for _am_header in $config_headers :; do 12440 case $_am_header in 12441 $_am_arg | $_am_arg:* ) 12442 break ;; 12443 * ) 12444 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12445 esac 12446done 12447echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12448$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12449 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12450 X"$_am_arg" : 'X\(//\)$' \| \ 12451 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12452$as_echo X"$_am_arg" | 12453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12454 s//\1/ 12455 q 12456 } 12457 /^X\(\/\/\)[^/].*/{ 12458 s//\1/ 12459 q 12460 } 12461 /^X\(\/\/\)$/{ 12462 s//\1/ 12463 q 12464 } 12465 /^X\(\/\).*/{ 12466 s//\1/ 12467 q 12468 } 12469 s/.*/./; q'`/stamp-h$_am_stamp_count 12470 ;; 12471 12472 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12473$as_echo "$as_me: executing $ac_file commands" >&6;} 12474 ;; 12475 esac 12476 12477 12478 case $ac_file$ac_mode in 12479 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12480 # Older Autoconf quotes --file arguments for eval, but not when files 12481 # are listed without --file. Let's play safe and only enable the eval 12482 # if we detect the quoting. 12483 case $CONFIG_FILES in 12484 *\'*) eval set x "$CONFIG_FILES" ;; 12485 *) set x $CONFIG_FILES ;; 12486 esac 12487 shift 12488 for mf 12489 do 12490 # Strip MF so we end up with the name of the file. 12491 mf=`echo "$mf" | sed -e 's/:.*$//'` 12492 # Check whether this is an Automake generated Makefile or not. 12493 # We used to match only the files named 'Makefile.in', but 12494 # some people rename them; so instead we look at the file content. 12495 # Grep'ing the first line is not enough: some people post-process 12496 # each Makefile.in and add a new line on top of each file to say so. 12497 # Grep'ing the whole file is not good either: AIX grep has a line 12498 # limit of 2048, but all sed's we know have understand at least 4000. 12499 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12500 dirpart=`$as_dirname -- "$mf" || 12501$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12502 X"$mf" : 'X\(//\)[^/]' \| \ 12503 X"$mf" : 'X\(//\)$' \| \ 12504 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12505$as_echo X"$mf" | 12506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12507 s//\1/ 12508 q 12509 } 12510 /^X\(\/\/\)[^/].*/{ 12511 s//\1/ 12512 q 12513 } 12514 /^X\(\/\/\)$/{ 12515 s//\1/ 12516 q 12517 } 12518 /^X\(\/\).*/{ 12519 s//\1/ 12520 q 12521 } 12522 s/.*/./; q'` 12523 else 12524 continue 12525 fi 12526 # Extract the definition of DEPDIR, am__include, and am__quote 12527 # from the Makefile without running 'make'. 12528 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12529 test -z "$DEPDIR" && continue 12530 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12531 test -z "$am__include" && continue 12532 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12533 # Find all dependency output files, they are included files with 12534 # $(DEPDIR) in their names. We invoke sed twice because it is the 12535 # simplest approach to changing $(DEPDIR) to its actual value in the 12536 # expansion. 12537 for file in `sed -n " 12538 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12539 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12540 # Make sure the directory exists. 12541 test -f "$dirpart/$file" && continue 12542 fdir=`$as_dirname -- "$file" || 12543$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12544 X"$file" : 'X\(//\)[^/]' \| \ 12545 X"$file" : 'X\(//\)$' \| \ 12546 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12547$as_echo X"$file" | 12548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12549 s//\1/ 12550 q 12551 } 12552 /^X\(\/\/\)[^/].*/{ 12553 s//\1/ 12554 q 12555 } 12556 /^X\(\/\/\)$/{ 12557 s//\1/ 12558 q 12559 } 12560 /^X\(\/\).*/{ 12561 s//\1/ 12562 q 12563 } 12564 s/.*/./; q'` 12565 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12566 # echo "creating $dirpart/$file" 12567 echo '# dummy' > "$dirpart/$file" 12568 done 12569 done 12570} 12571 ;; 12572 12573 esac 12574done # for ac_tag 12575 12576 12577as_fn_exit 0 12578_ACEOF 12579ac_clean_files=$ac_clean_files_save 12580 12581test $ac_write_fail = 0 || 12582 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12583 12584 12585# configure is writing to config.log, and then calls config.status. 12586# config.status does its own redirection, appending to config.log. 12587# Unfortunately, on DOS this fails, as config.log is still kept open 12588# by configure, so config.status won't be able to write to it; its 12589# output is simply discarded. So we exec the FD to /dev/null, 12590# effectively closing config.log, so it can be properly (re)opened and 12591# appended to by config.status. When coming back to configure, we 12592# need to make the FD available again. 12593if test "$no_create" != yes; then 12594 ac_cs_success=: 12595 ac_config_status_args= 12596 test "$silent" = yes && 12597 ac_config_status_args="$ac_config_status_args --quiet" 12598 exec 5>/dev/null 12599 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12600 exec 5>>config.log 12601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12602 # would make configure fail if this is the last instruction. 12603 $ac_cs_success || as_fn_exit 1 12604fi 12605if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12607$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12608fi 12609 12610