configure revision 12458b28
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for mkfontscale 1.2.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/mkfontscale/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://gitlab.freedesktop.org/xorg/app/mkfontscale/issues 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='mkfontscale' 583PACKAGE_TARNAME='mkfontscale' 584PACKAGE_VERSION='1.2.0' 585PACKAGE_STRING='mkfontscale 1.2.0' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/mkfontscale/issues' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 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_LIBDIR 663PKG_CONFIG_PATH 664PKG_CONFIG 665CHANGELOG_CMD 666STRICT_CFLAGS 667CWARNFLAGS 668BASE_CFLAGS 669AM_BACKSLASH 670AM_DEFAULT_VERBOSITY 671AM_DEFAULT_V 672AM_V 673am__fastdepCC_FALSE 674am__fastdepCC_TRUE 675CCDEPMODE 676am__nodep 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683am__untar 684am__tar 685AMTAR 686am__leading_dot 687SET_MAKE 688AWK 689mkdir_p 690MKDIR_P 691INSTALL_STRIP_PROGRAM 692STRIP 693install_sh 694MAKEINFO 695AUTOHEADER 696AUTOMAKE 697AUTOCONF 698ACLOCAL 699VERSION 700PACKAGE 701CYGPATH_W 702am__isrc 703INSTALL_DATA 704INSTALL_SCRIPT 705INSTALL_PROGRAM 706EGREP 707GREP 708CPP 709OBJEXT 710EXEEXT 711ac_ct_CC 712CPPFLAGS 713LDFLAGS 714CFLAGS 715CC 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_dependency_tracking 758enable_silent_rules 759enable_selective_werror 760enable_strict_compilation 761with_bzip2 762with_lint 763' 764 ac_precious_vars='build_alias 765host_alias 766target_alias 767CC 768CFLAGS 769LDFLAGS 770LIBS 771CPPFLAGS 772CPP 773PKG_CONFIG 774PKG_CONFIG_PATH 775PKG_CONFIG_LIBDIR 776MKFONTSCALE_CFLAGS 777MKFONTSCALE_LIBS 778X11_CFLAGS 779X11_LIBS 780LINT 781LINT_FLAGS' 782 783 784# Initialize some variables set by options. 785ac_init_help= 786ac_init_version=false 787ac_unrecognized_opts= 788ac_unrecognized_sep= 789# The variables have the same names as the options, with 790# dashes changed to underlines. 791cache_file=/dev/null 792exec_prefix=NONE 793no_create= 794no_recursion= 795prefix=NONE 796program_prefix=NONE 797program_suffix=NONE 798program_transform_name=s,x,x, 799silent= 800site= 801srcdir= 802verbose= 803x_includes=NONE 804x_libraries=NONE 805 806# Installation directory options. 807# These are left unexpanded so users can "make install exec_prefix=/foo" 808# and all the variables that are supposed to be based on exec_prefix 809# by default will actually change. 810# Use braces instead of parens because sh, perl, etc. also accept them. 811# (The list follows the same order as the GNU Coding Standards.) 812bindir='${exec_prefix}/bin' 813sbindir='${exec_prefix}/sbin' 814libexecdir='${exec_prefix}/libexec' 815datarootdir='${prefix}/share' 816datadir='${datarootdir}' 817sysconfdir='${prefix}/etc' 818sharedstatedir='${prefix}/com' 819localstatedir='${prefix}/var' 820includedir='${prefix}/include' 821oldincludedir='/usr/include' 822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 823infodir='${datarootdir}/info' 824htmldir='${docdir}' 825dvidir='${docdir}' 826pdfdir='${docdir}' 827psdir='${docdir}' 828libdir='${exec_prefix}/lib' 829localedir='${datarootdir}/locale' 830mandir='${datarootdir}/man' 831 832ac_prev= 833ac_dashdash= 834for ac_option 835do 836 # If the previous option needs an argument, assign it. 837 if test -n "$ac_prev"; then 838 eval $ac_prev=\$ac_option 839 ac_prev= 840 continue 841 fi 842 843 case $ac_option in 844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 845 *=) ac_optarg= ;; 846 *) ac_optarg=yes ;; 847 esac 848 849 # Accept the important Cygnus configure options, so we can diagnose typos. 850 851 case $ac_dashdash$ac_option in 852 --) 853 ac_dashdash=yes ;; 854 855 -bindir | --bindir | --bindi | --bind | --bin | --bi) 856 ac_prev=bindir ;; 857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 858 bindir=$ac_optarg ;; 859 860 -build | --build | --buil | --bui | --bu) 861 ac_prev=build_alias ;; 862 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 863 build_alias=$ac_optarg ;; 864 865 -cache-file | --cache-file | --cache-fil | --cache-fi \ 866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 867 ac_prev=cache_file ;; 868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 870 cache_file=$ac_optarg ;; 871 872 --config-cache | -C) 873 cache_file=config.cache ;; 874 875 -datadir | --datadir | --datadi | --datad) 876 ac_prev=datadir ;; 877 -datadir=* | --datadir=* | --datadi=* | --datad=*) 878 datadir=$ac_optarg ;; 879 880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 881 | --dataroo | --dataro | --datar) 882 ac_prev=datarootdir ;; 883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 885 datarootdir=$ac_optarg ;; 886 887 -disable-* | --disable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 as_fn_error $? "invalid feature name: $ac_useropt" 892 ac_useropt_orig=$ac_useropt 893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 894 case $ac_user_opts in 895 *" 896"enable_$ac_useropt" 897"*) ;; 898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 899 ac_unrecognized_sep=', ';; 900 esac 901 eval enable_$ac_useropt=no ;; 902 903 -docdir | --docdir | --docdi | --doc | --do) 904 ac_prev=docdir ;; 905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 906 docdir=$ac_optarg ;; 907 908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 909 ac_prev=dvidir ;; 910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 911 dvidir=$ac_optarg ;; 912 913 -enable-* | --enable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=\$ac_optarg ;; 928 929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 931 | --exec | --exe | --ex) 932 ac_prev=exec_prefix ;; 933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 935 | --exec=* | --exe=* | --ex=*) 936 exec_prefix=$ac_optarg ;; 937 938 -gas | --gas | --ga | --g) 939 # Obsolete; use --with-gas. 940 with_gas=yes ;; 941 942 -help | --help | --hel | --he | -h) 943 ac_init_help=long ;; 944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 945 ac_init_help=recursive ;; 946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 947 ac_init_help=short ;; 948 949 -host | --host | --hos | --ho) 950 ac_prev=host_alias ;; 951 -host=* | --host=* | --hos=* | --ho=*) 952 host_alias=$ac_optarg ;; 953 954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 955 ac_prev=htmldir ;; 956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 957 | --ht=*) 958 htmldir=$ac_optarg ;; 959 960 -includedir | --includedir | --includedi | --included | --include \ 961 | --includ | --inclu | --incl | --inc) 962 ac_prev=includedir ;; 963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 964 | --includ=* | --inclu=* | --incl=* | --inc=*) 965 includedir=$ac_optarg ;; 966 967 -infodir | --infodir | --infodi | --infod | --info | --inf) 968 ac_prev=infodir ;; 969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 970 infodir=$ac_optarg ;; 971 972 -libdir | --libdir | --libdi | --libd) 973 ac_prev=libdir ;; 974 -libdir=* | --libdir=* | --libdi=* | --libd=*) 975 libdir=$ac_optarg ;; 976 977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 978 | --libexe | --libex | --libe) 979 ac_prev=libexecdir ;; 980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 981 | --libexe=* | --libex=* | --libe=*) 982 libexecdir=$ac_optarg ;; 983 984 -localedir | --localedir | --localedi | --localed | --locale) 985 ac_prev=localedir ;; 986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 987 localedir=$ac_optarg ;; 988 989 -localstatedir | --localstatedir | --localstatedi | --localstated \ 990 | --localstate | --localstat | --localsta | --localst | --locals) 991 ac_prev=localstatedir ;; 992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 994 localstatedir=$ac_optarg ;; 995 996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 997 ac_prev=mandir ;; 998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 999 mandir=$ac_optarg ;; 1000 1001 -nfp | --nfp | --nf) 1002 # Obsolete; use --without-fp. 1003 with_fp=no ;; 1004 1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1006 | --no-cr | --no-c | -n) 1007 no_create=yes ;; 1008 1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1011 no_recursion=yes ;; 1012 1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1015 | --oldin | --oldi | --old | --ol | --o) 1016 ac_prev=oldincludedir ;; 1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1020 oldincludedir=$ac_optarg ;; 1021 1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1023 ac_prev=prefix ;; 1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1025 prefix=$ac_optarg ;; 1026 1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1028 | --program-pre | --program-pr | --program-p) 1029 ac_prev=program_prefix ;; 1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1032 program_prefix=$ac_optarg ;; 1033 1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1035 | --program-suf | --program-su | --program-s) 1036 ac_prev=program_suffix ;; 1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1039 program_suffix=$ac_optarg ;; 1040 1041 -program-transform-name | --program-transform-name \ 1042 | --program-transform-nam | --program-transform-na \ 1043 | --program-transform-n | --program-transform- \ 1044 | --program-transform | --program-transfor \ 1045 | --program-transfo | --program-transf \ 1046 | --program-trans | --program-tran \ 1047 | --progr-tra | --program-tr | --program-t) 1048 ac_prev=program_transform_name ;; 1049 -program-transform-name=* | --program-transform-name=* \ 1050 | --program-transform-nam=* | --program-transform-na=* \ 1051 | --program-transform-n=* | --program-transform-=* \ 1052 | --program-transform=* | --program-transfor=* \ 1053 | --program-transfo=* | --program-transf=* \ 1054 | --program-trans=* | --program-tran=* \ 1055 | --progr-tra=* | --program-tr=* | --program-t=*) 1056 program_transform_name=$ac_optarg ;; 1057 1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1059 ac_prev=pdfdir ;; 1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1061 pdfdir=$ac_optarg ;; 1062 1063 -psdir | --psdir | --psdi | --psd | --ps) 1064 ac_prev=psdir ;; 1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1066 psdir=$ac_optarg ;; 1067 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1069 | -silent | --silent | --silen | --sile | --sil) 1070 silent=yes ;; 1071 1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1073 ac_prev=sbindir ;; 1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1075 | --sbi=* | --sb=*) 1076 sbindir=$ac_optarg ;; 1077 1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1080 | --sharedst | --shareds | --shared | --share | --shar \ 1081 | --sha | --sh) 1082 ac_prev=sharedstatedir ;; 1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1086 | --sha=* | --sh=*) 1087 sharedstatedir=$ac_optarg ;; 1088 1089 -site | --site | --sit) 1090 ac_prev=site ;; 1091 -site=* | --site=* | --sit=*) 1092 site=$ac_optarg ;; 1093 1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1095 ac_prev=srcdir ;; 1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1097 srcdir=$ac_optarg ;; 1098 1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1100 | --syscon | --sysco | --sysc | --sys | --sy) 1101 ac_prev=sysconfdir ;; 1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1104 sysconfdir=$ac_optarg ;; 1105 1106 -target | --target | --targe | --targ | --tar | --ta | --t) 1107 ac_prev=target_alias ;; 1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1109 target_alias=$ac_optarg ;; 1110 1111 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1112 verbose=yes ;; 1113 1114 -version | --version | --versio | --versi | --vers | -V) 1115 ac_init_version=: ;; 1116 1117 -with-* | --with-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=\$ac_optarg ;; 1132 1133 -without-* | --without-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: $ac_useropt" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=no ;; 1148 1149 --x) 1150 # Obsolete; use --with-x. 1151 with_x=yes ;; 1152 1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1154 | --x-incl | --x-inc | --x-in | --x-i) 1155 ac_prev=x_includes ;; 1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1158 x_includes=$ac_optarg ;; 1159 1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1162 ac_prev=x_libraries ;; 1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1165 x_libraries=$ac_optarg ;; 1166 1167 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1168Try \`$0 --help' for more information" 1169 ;; 1170 1171 *=*) 1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1173 # Reject names that are not valid shell variable names. 1174 case $ac_envvar in #( 1175 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1177 esac 1178 eval $ac_envvar=\$ac_optarg 1179 export $ac_envvar ;; 1180 1181 *) 1182 # FIXME: should be removed in autoconf 3.0. 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1187 ;; 1188 1189 esac 1190done 1191 1192if test -n "$ac_prev"; then 1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1194 as_fn_error $? "missing argument to $ac_option" 1195fi 1196 1197if test -n "$ac_unrecognized_opts"; then 1198 case $enable_option_checking in 1199 no) ;; 1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1202 esac 1203fi 1204 1205# Check all directory arguments for consistency. 1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1207 datadir sysconfdir sharedstatedir localstatedir includedir \ 1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1209 libdir localedir mandir 1210do 1211 eval ac_val=\$$ac_var 1212 # Remove trailing slashes. 1213 case $ac_val in 1214 */ ) 1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1216 eval $ac_var=\$ac_val;; 1217 esac 1218 # Be sure to have absolute directory names. 1219 case $ac_val in 1220 [\\/$]* | ?:[\\/]* ) continue;; 1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1222 esac 1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1224done 1225 1226# There might be people who depend on the old broken behavior: `$host' 1227# used to hold the argument of --host etc. 1228# FIXME: To remove some day. 1229build=$build_alias 1230host=$host_alias 1231target=$target_alias 1232 1233# FIXME: To remove some day. 1234if test "x$host_alias" != x; then 1235 if test "x$build_alias" = x; then 1236 cross_compiling=maybe 1237 elif test "x$build_alias" != "x$host_alias"; then 1238 cross_compiling=yes 1239 fi 1240fi 1241 1242ac_tool_prefix= 1243test -n "$host_alias" && ac_tool_prefix=$host_alias- 1244 1245test "$silent" = yes && exec 6>/dev/null 1246 1247 1248ac_pwd=`pwd` && test -n "$ac_pwd" && 1249ac_ls_di=`ls -di .` && 1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1251 as_fn_error $? "working directory cannot be determined" 1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1253 as_fn_error $? "pwd does not report name of working directory" 1254 1255 1256# Find the source files, if location was not specified. 1257if test -z "$srcdir"; then 1258 ac_srcdir_defaulted=yes 1259 # Try the directory containing this script, then the parent directory. 1260 ac_confdir=`$as_dirname -- "$as_myself" || 1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1262 X"$as_myself" : 'X\(//\)[^/]' \| \ 1263 X"$as_myself" : 'X\(//\)$' \| \ 1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1265$as_echo X"$as_myself" | 1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)[^/].*/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\/\)$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\).*/{ 1279 s//\1/ 1280 q 1281 } 1282 s/.*/./; q'` 1283 srcdir=$ac_confdir 1284 if test ! -r "$srcdir/$ac_unique_file"; then 1285 srcdir=.. 1286 fi 1287else 1288 ac_srcdir_defaulted=no 1289fi 1290if test ! -r "$srcdir/$ac_unique_file"; then 1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1293fi 1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1295ac_abs_confdir=`( 1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1297 pwd)` 1298# When building in place, set srcdir=. 1299if test "$ac_abs_confdir" = "$ac_pwd"; then 1300 srcdir=. 1301fi 1302# Remove unnecessary trailing slashes from srcdir. 1303# Double slashes in file names in object file debugging info 1304# mess up M-x gdb in Emacs. 1305case $srcdir in 1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1307esac 1308for ac_var in $ac_precious_vars; do 1309 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_env_${ac_var}_value=\$${ac_var} 1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1313done 1314 1315# 1316# Report the --help message. 1317# 1318if test "$ac_init_help" = "long"; then 1319 # Omit some internal or obsolete options to make the list less imposing. 1320 # This message is too long to be a string in the A/UX 3.1 sh. 1321 cat <<_ACEOF 1322\`configure' configures mkfontscale 1.2.0 to adapt to many kinds of systems. 1323 1324Usage: $0 [OPTION]... [VAR=VALUE]... 1325 1326To assign environment variables (e.g., CC, CFLAGS...), specify them as 1327VAR=VALUE. See below for descriptions of some of the useful variables. 1328 1329Defaults for the options are specified in brackets. 1330 1331Configuration: 1332 -h, --help display this help and exit 1333 --help=short display options specific to this package 1334 --help=recursive display the short help of all the included packages 1335 -V, --version display version information and exit 1336 -q, --quiet, --silent do not print \`checking ...' messages 1337 --cache-file=FILE cache test results in FILE [disabled] 1338 -C, --config-cache alias for \`--cache-file=config.cache' 1339 -n, --no-create do not create output files 1340 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1341 1342Installation directories: 1343 --prefix=PREFIX install architecture-independent files in PREFIX 1344 [$ac_default_prefix] 1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1346 [PREFIX] 1347 1348By default, \`make install' will install all the files in 1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1350an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1351for instance \`--prefix=\$HOME'. 1352 1353For better control, use the options below. 1354 1355Fine tuning of the installation directories: 1356 --bindir=DIR user executables [EPREFIX/bin] 1357 --sbindir=DIR system admin executables [EPREFIX/sbin] 1358 --libexecdir=DIR program executables [EPREFIX/libexec] 1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1362 --libdir=DIR object code libraries [EPREFIX/lib] 1363 --includedir=DIR C header files [PREFIX/include] 1364 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1367 --infodir=DIR info documentation [DATAROOTDIR/info] 1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1369 --mandir=DIR man documentation [DATAROOTDIR/man] 1370 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontscale] 1371 --htmldir=DIR html documentation [DOCDIR] 1372 --dvidir=DIR dvi documentation [DOCDIR] 1373 --pdfdir=DIR pdf documentation [DOCDIR] 1374 --psdir=DIR ps documentation [DOCDIR] 1375_ACEOF 1376 1377 cat <<\_ACEOF 1378 1379Program names: 1380 --program-prefix=PREFIX prepend PREFIX to installed program names 1381 --program-suffix=SUFFIX append SUFFIX to installed program names 1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1383 1384System types: 1385 --build=BUILD configure for building on BUILD [guessed] 1386 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1387_ACEOF 1388fi 1389 1390if test -n "$ac_init_help"; then 1391 case $ac_init_help in 1392 short | recursive ) echo "Configuration of mkfontscale 1.2.0:";; 1393 esac 1394 cat <<\_ACEOF 1395 1396Optional Features: 1397 --disable-option-checking ignore unrecognized --enable/--with options 1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1400 --enable-dependency-tracking 1401 do not reject slow dependency extractors 1402 --disable-dependency-tracking 1403 speeds up one-time build 1404 --enable-silent-rules less verbose build output (undo: "make V=1") 1405 --disable-silent-rules verbose build output (undo: "make V=0") 1406 --disable-selective-werror 1407 Turn off selective compiler errors. (default: 1408 enabled) 1409 --enable-strict-compilation 1410 Enable all warnings from compiler and make them 1411 errors (default: disabled) 1412 1413Optional Packages: 1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1416 --with-bzip2 Support bzip2 compressed bitmap fonts 1417 --with-lint Use a lint-style source code checker (default: 1418 disabled) 1419 1420Some influential environment variables: 1421 CC C compiler command 1422 CFLAGS C compiler flags 1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1424 nonstandard directory <lib dir> 1425 LIBS libraries to pass to the linker, e.g. -l<library> 1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1427 you have headers in a nonstandard directory <include dir> 1428 CPP C preprocessor 1429 PKG_CONFIG path to pkg-config utility 1430 PKG_CONFIG_PATH 1431 directories to add to pkg-config's search path 1432 PKG_CONFIG_LIBDIR 1433 path overriding pkg-config's built-in search path 1434 MKFONTSCALE_CFLAGS 1435 C compiler flags for MKFONTSCALE, overriding pkg-config 1436 MKFONTSCALE_LIBS 1437 linker flags for MKFONTSCALE, overriding pkg-config 1438 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1439 X11_LIBS linker flags for X11, overriding pkg-config 1440 LINT Path to a lint-style command 1441 LINT_FLAGS Flags for the lint-style command 1442 1443Use these variables to override the choices made by `configure' or to help 1444it to find libraries and programs with nonstandard names/locations. 1445 1446Report bugs to <https://gitlab.freedesktop.org/xorg/app/mkfontscale/issues>. 1447_ACEOF 1448ac_status=$? 1449fi 1450 1451if test "$ac_init_help" = "recursive"; then 1452 # If there are subdirs, report their specific --help. 1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1454 test -d "$ac_dir" || 1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1456 continue 1457 ac_builddir=. 1458 1459case "$ac_dir" in 1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1461*) 1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1463 # A ".." for each directory in $ac_dir_suffix. 1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1465 case $ac_top_builddir_sub in 1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1468 esac ;; 1469esac 1470ac_abs_top_builddir=$ac_pwd 1471ac_abs_builddir=$ac_pwd$ac_dir_suffix 1472# for backward compatibility: 1473ac_top_builddir=$ac_top_build_prefix 1474 1475case $srcdir in 1476 .) # We are building in place. 1477 ac_srcdir=. 1478 ac_top_srcdir=$ac_top_builddir_sub 1479 ac_abs_top_srcdir=$ac_pwd ;; 1480 [\\/]* | ?:[\\/]* ) # Absolute name. 1481 ac_srcdir=$srcdir$ac_dir_suffix; 1482 ac_top_srcdir=$srcdir 1483 ac_abs_top_srcdir=$srcdir ;; 1484 *) # Relative name. 1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1486 ac_top_srcdir=$ac_top_build_prefix$srcdir 1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1488esac 1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1490 1491 cd "$ac_dir" || { ac_status=$?; continue; } 1492 # Check for guested configure. 1493 if test -f "$ac_srcdir/configure.gnu"; then 1494 echo && 1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1496 elif test -f "$ac_srcdir/configure"; then 1497 echo && 1498 $SHELL "$ac_srcdir/configure" --help=recursive 1499 else 1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1501 fi || ac_status=$? 1502 cd "$ac_pwd" || { ac_status=$?; break; } 1503 done 1504fi 1505 1506test -n "$ac_init_help" && exit $ac_status 1507if $ac_init_version; then 1508 cat <<\_ACEOF 1509mkfontscale configure 1.2.0 1510generated by GNU Autoconf 2.69 1511 1512Copyright (C) 2012 Free Software Foundation, Inc. 1513This configure script is free software; the Free Software Foundation 1514gives unlimited permission to copy, distribute and modify it. 1515_ACEOF 1516 exit 1517fi 1518 1519## ------------------------ ## 1520## Autoconf initialization. ## 1521## ------------------------ ## 1522 1523# ac_fn_c_try_compile LINENO 1524# -------------------------- 1525# Try to compile conftest.$ac_ext, and return whether this succeeded. 1526ac_fn_c_try_compile () 1527{ 1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1529 rm -f conftest.$ac_objext 1530 if { { ac_try="$ac_compile" 1531case "(($ac_try" in 1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1533 *) ac_try_echo=$ac_try;; 1534esac 1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1536$as_echo "$ac_try_echo"; } >&5 1537 (eval "$ac_compile") 2>conftest.err 1538 ac_status=$? 1539 if test -s conftest.err; then 1540 grep -v '^ *+' conftest.err >conftest.er1 1541 cat conftest.er1 >&5 1542 mv -f conftest.er1 conftest.err 1543 fi 1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1545 test $ac_status = 0; } && { 1546 test -z "$ac_c_werror_flag" || 1547 test ! -s conftest.err 1548 } && test -s conftest.$ac_objext; then : 1549 ac_retval=0 1550else 1551 $as_echo "$as_me: failed program was:" >&5 1552sed 's/^/| /' conftest.$ac_ext >&5 1553 1554 ac_retval=1 1555fi 1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1557 as_fn_set_status $ac_retval 1558 1559} # ac_fn_c_try_compile 1560 1561# ac_fn_c_try_cpp LINENO 1562# ---------------------- 1563# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1564ac_fn_c_try_cpp () 1565{ 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 if { { ac_try="$ac_cpp conftest.$ac_ext" 1568case "(($ac_try" in 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *) ac_try_echo=$ac_try;; 1571esac 1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573$as_echo "$ac_try_echo"; } >&5 1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1575 ac_status=$? 1576 if test -s conftest.err; then 1577 grep -v '^ *+' conftest.err >conftest.er1 1578 cat conftest.er1 >&5 1579 mv -f conftest.er1 conftest.err 1580 fi 1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } > conftest.i && { 1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1584 test ! -s conftest.err 1585 }; then : 1586 ac_retval=0 1587else 1588 $as_echo "$as_me: failed program was:" >&5 1589sed 's/^/| /' conftest.$ac_ext >&5 1590 1591 ac_retval=1 1592fi 1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1594 as_fn_set_status $ac_retval 1595 1596} # ac_fn_c_try_cpp 1597 1598# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1599# ------------------------------------------------------- 1600# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1601# the include files in INCLUDES and setting the cache variable VAR 1602# accordingly. 1603ac_fn_c_check_header_mongrel () 1604{ 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 if eval \${$3+:} false; then : 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1608$as_echo_n "checking for $2... " >&6; } 1609if eval \${$3+:} false; then : 1610 $as_echo_n "(cached) " >&6 1611fi 1612eval ac_res=\$$3 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1614$as_echo "$ac_res" >&6; } 1615else 1616 # Is the header compilable? 1617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1618$as_echo_n "checking $2 usability... " >&6; } 1619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1620/* end confdefs.h. */ 1621$4 1622#include <$2> 1623_ACEOF 1624if ac_fn_c_try_compile "$LINENO"; then : 1625 ac_header_compiler=yes 1626else 1627 ac_header_compiler=no 1628fi 1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1631$as_echo "$ac_header_compiler" >&6; } 1632 1633# Is the header present? 1634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1635$as_echo_n "checking $2 presence... " >&6; } 1636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1637/* end confdefs.h. */ 1638#include <$2> 1639_ACEOF 1640if ac_fn_c_try_cpp "$LINENO"; then : 1641 ac_header_preproc=yes 1642else 1643 ac_header_preproc=no 1644fi 1645rm -f conftest.err conftest.i conftest.$ac_ext 1646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1647$as_echo "$ac_header_preproc" >&6; } 1648 1649# So? What about this header? 1650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1651 yes:no: ) 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1653$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1655$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1656 ;; 1657 no:yes:* ) 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1659$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1661$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1663$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1665$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1667$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1668( $as_echo "## ------------------------------------------------------------------------- ## 1669## Report this to https://gitlab.freedesktop.org/xorg/app/mkfontscale/issues ## 1670## ------------------------------------------------------------------------- ##" 1671 ) | sed "s/^/$as_me: WARNING: /" >&2 1672 ;; 1673esac 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1675$as_echo_n "checking for $2... " >&6; } 1676if eval \${$3+:} false; then : 1677 $as_echo_n "(cached) " >&6 1678else 1679 eval "$3=\$ac_header_compiler" 1680fi 1681eval ac_res=\$$3 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1683$as_echo "$ac_res" >&6; } 1684fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 1687} # ac_fn_c_check_header_mongrel 1688 1689# ac_fn_c_try_run LINENO 1690# ---------------------- 1691# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1692# that executables *can* be run. 1693ac_fn_c_try_run () 1694{ 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 if { { ac_try="$ac_link" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_link") 2>&5 1704 ac_status=$? 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1707 { { case "(($ac_try" in 1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1709 *) ac_try_echo=$ac_try;; 1710esac 1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1712$as_echo "$ac_try_echo"; } >&5 1713 (eval "$ac_try") 2>&5 1714 ac_status=$? 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; }; }; then : 1717 ac_retval=0 1718else 1719 $as_echo "$as_me: program exited with status $ac_status" >&5 1720 $as_echo "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=$ac_status 1724fi 1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 as_fn_set_status $ac_retval 1728 1729} # ac_fn_c_try_run 1730 1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1732# ------------------------------------------------------- 1733# Tests whether HEADER exists and can be compiled using the include files in 1734# INCLUDES, setting the cache variable VAR accordingly. 1735ac_fn_c_check_header_compile () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739$as_echo_n "checking for $2... " >&6; } 1740if eval \${$3+:} false; then : 1741 $as_echo_n "(cached) " >&6 1742else 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745$4 1746#include <$2> 1747_ACEOF 1748if ac_fn_c_try_compile "$LINENO"; then : 1749 eval "$3=yes" 1750else 1751 eval "$3=no" 1752fi 1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1754fi 1755eval ac_res=\$$3 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1757$as_echo "$ac_res" >&6; } 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 1760} # ac_fn_c_check_header_compile 1761 1762# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1763# --------------------------------------------- 1764# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1765# accordingly. 1766ac_fn_c_check_decl () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 as_decl_name=`echo $2|sed 's/ *(.*//'` 1770 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1772$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1773if eval \${$3+:} false; then : 1774 $as_echo_n "(cached) " >&6 1775else 1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1777/* end confdefs.h. */ 1778$4 1779int 1780main () 1781{ 1782#ifndef $as_decl_name 1783#ifdef __cplusplus 1784 (void) $as_decl_use; 1785#else 1786 (void) $as_decl_name; 1787#endif 1788#endif 1789 1790 ; 1791 return 0; 1792} 1793_ACEOF 1794if ac_fn_c_try_compile "$LINENO"; then : 1795 eval "$3=yes" 1796else 1797 eval "$3=no" 1798fi 1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1800fi 1801eval ac_res=\$$3 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1803$as_echo "$ac_res" >&6; } 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 1806} # ac_fn_c_check_decl 1807 1808# ac_fn_c_try_link LINENO 1809# ----------------------- 1810# Try to link conftest.$ac_ext, and return whether this succeeded. 1811ac_fn_c_try_link () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 rm -f conftest.$ac_objext conftest$ac_exeext 1815 if { { ac_try="$ac_link" 1816case "(($ac_try" in 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818 *) ac_try_echo=$ac_try;; 1819esac 1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821$as_echo "$ac_try_echo"; } >&5 1822 (eval "$ac_link") 2>conftest.err 1823 ac_status=$? 1824 if test -s conftest.err; then 1825 grep -v '^ *+' conftest.err >conftest.er1 1826 cat conftest.er1 >&5 1827 mv -f conftest.er1 conftest.err 1828 fi 1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1830 test $ac_status = 0; } && { 1831 test -z "$ac_c_werror_flag" || 1832 test ! -s conftest.err 1833 } && test -s conftest$ac_exeext && { 1834 test "$cross_compiling" = yes || 1835 test -x conftest$ac_exeext 1836 }; then : 1837 ac_retval=0 1838else 1839 $as_echo "$as_me: failed program was:" >&5 1840sed 's/^/| /' conftest.$ac_ext >&5 1841 1842 ac_retval=1 1843fi 1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1846 # interfere with the next link command; also delete a directory that is 1847 # left behind by Apple's compiler. We do this before executing the actions. 1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 as_fn_set_status $ac_retval 1851 1852} # ac_fn_c_try_link 1853 1854# ac_fn_c_check_func LINENO FUNC VAR 1855# ---------------------------------- 1856# Tests whether FUNC exists, setting the cache variable VAR accordingly 1857ac_fn_c_check_func () 1858{ 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1861$as_echo_n "checking for $2... " >&6; } 1862if eval \${$3+:} false; then : 1863 $as_echo_n "(cached) " >&6 1864else 1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866/* end confdefs.h. */ 1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1869#define $2 innocuous_$2 1870 1871/* System header to define __stub macros and hopefully few prototypes, 1872 which can conflict with char $2 (); below. 1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1874 <limits.h> exists even on freestanding compilers. */ 1875 1876#ifdef __STDC__ 1877# include <limits.h> 1878#else 1879# include <assert.h> 1880#endif 1881 1882#undef $2 1883 1884/* Override any GCC internal prototype to avoid an error. 1885 Use char because int might match the return type of a GCC 1886 builtin and then its argument prototype would still apply. */ 1887#ifdef __cplusplus 1888extern "C" 1889#endif 1890char $2 (); 1891/* The GNU C library defines this for functions which it implements 1892 to always fail with ENOSYS. Some functions are actually named 1893 something starting with __ and the normal name is an alias. */ 1894#if defined __stub_$2 || defined __stub___$2 1895choke me 1896#endif 1897 1898int 1899main () 1900{ 1901return $2 (); 1902 ; 1903 return 0; 1904} 1905_ACEOF 1906if ac_fn_c_try_link "$LINENO"; then : 1907 eval "$3=yes" 1908else 1909 eval "$3=no" 1910fi 1911rm -f core conftest.err conftest.$ac_objext \ 1912 conftest$ac_exeext conftest.$ac_ext 1913fi 1914eval ac_res=\$$3 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1916$as_echo "$ac_res" >&6; } 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1918 1919} # ac_fn_c_check_func 1920cat >config.log <<_ACEOF 1921This file contains any messages produced by compilers while 1922running configure, to aid debugging if configure makes a mistake. 1923 1924It was created by mkfontscale $as_me 1.2.0, which was 1925generated by GNU Autoconf 2.69. Invocation command line was 1926 1927 $ $0 $@ 1928 1929_ACEOF 1930exec 5>>config.log 1931{ 1932cat <<_ASUNAME 1933## --------- ## 1934## Platform. ## 1935## --------- ## 1936 1937hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1938uname -m = `(uname -m) 2>/dev/null || echo unknown` 1939uname -r = `(uname -r) 2>/dev/null || echo unknown` 1940uname -s = `(uname -s) 2>/dev/null || echo unknown` 1941uname -v = `(uname -v) 2>/dev/null || echo unknown` 1942 1943/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1944/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1945 1946/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1947/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1948/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1949/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1950/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1951/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1952/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1953 1954_ASUNAME 1955 1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1957for as_dir in $PATH 1958do 1959 IFS=$as_save_IFS 1960 test -z "$as_dir" && as_dir=. 1961 $as_echo "PATH: $as_dir" 1962 done 1963IFS=$as_save_IFS 1964 1965} >&5 1966 1967cat >&5 <<_ACEOF 1968 1969 1970## ----------- ## 1971## Core tests. ## 1972## ----------- ## 1973 1974_ACEOF 1975 1976 1977# Keep a trace of the command line. 1978# Strip out --no-create and --no-recursion so they do not pile up. 1979# Strip out --silent because we don't want to record it for future runs. 1980# Also quote any args containing shell meta-characters. 1981# Make two passes to allow for proper duplicate-argument suppression. 1982ac_configure_args= 1983ac_configure_args0= 1984ac_configure_args1= 1985ac_must_keep_next=false 1986for ac_pass in 1 2 1987do 1988 for ac_arg 1989 do 1990 case $ac_arg in 1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1993 | -silent | --silent | --silen | --sile | --sil) 1994 continue ;; 1995 *\'*) 1996 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1997 esac 1998 case $ac_pass in 1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2000 2) 2001 as_fn_append ac_configure_args1 " '$ac_arg'" 2002 if test $ac_must_keep_next = true; then 2003 ac_must_keep_next=false # Got value, back to normal. 2004 else 2005 case $ac_arg in 2006 *=* | --config-cache | -C | -disable-* | --disable-* \ 2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2009 | -with-* | --with-* | -without-* | --without-* | --x) 2010 case "$ac_configure_args0 " in 2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2012 esac 2013 ;; 2014 -* ) ac_must_keep_next=true ;; 2015 esac 2016 fi 2017 as_fn_append ac_configure_args " '$ac_arg'" 2018 ;; 2019 esac 2020 done 2021done 2022{ ac_configure_args0=; unset ac_configure_args0;} 2023{ ac_configure_args1=; unset ac_configure_args1;} 2024 2025# When interrupted or exit'd, cleanup temporary files, and complete 2026# config.log. We remove comments because anyway the quotes in there 2027# would cause problems or look ugly. 2028# WARNING: Use '\'' to represent an apostrophe within the trap. 2029# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2030trap 'exit_status=$? 2031 # Save into config.log some information that might help in debugging. 2032 { 2033 echo 2034 2035 $as_echo "## ---------------- ## 2036## Cache variables. ## 2037## ---------------- ##" 2038 echo 2039 # The following way of writing the cache mishandles newlines in values, 2040( 2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2042 eval ac_val=\$$ac_var 2043 case $ac_val in #( 2044 *${as_nl}*) 2045 case $ac_var in #( 2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2048 esac 2049 case $ac_var in #( 2050 _ | IFS | as_nl) ;; #( 2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2052 *) { eval $ac_var=; unset $ac_var;} ;; 2053 esac ;; 2054 esac 2055 done 2056 (set) 2>&1 | 2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2058 *${as_nl}ac_space=\ *) 2059 sed -n \ 2060 "s/'\''/'\''\\\\'\'''\''/g; 2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2062 ;; #( 2063 *) 2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2065 ;; 2066 esac | 2067 sort 2068) 2069 echo 2070 2071 $as_echo "## ----------------- ## 2072## Output variables. ## 2073## ----------------- ##" 2074 echo 2075 for ac_var in $ac_subst_vars 2076 do 2077 eval ac_val=\$$ac_var 2078 case $ac_val in 2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2080 esac 2081 $as_echo "$ac_var='\''$ac_val'\''" 2082 done | sort 2083 echo 2084 2085 if test -n "$ac_subst_files"; then 2086 $as_echo "## ------------------- ## 2087## File substitutions. ## 2088## ------------------- ##" 2089 echo 2090 for ac_var in $ac_subst_files 2091 do 2092 eval ac_val=\$$ac_var 2093 case $ac_val in 2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2095 esac 2096 $as_echo "$ac_var='\''$ac_val'\''" 2097 done | sort 2098 echo 2099 fi 2100 2101 if test -s confdefs.h; then 2102 $as_echo "## ----------- ## 2103## confdefs.h. ## 2104## ----------- ##" 2105 echo 2106 cat confdefs.h 2107 echo 2108 fi 2109 test "$ac_signal" != 0 && 2110 $as_echo "$as_me: caught signal $ac_signal" 2111 $as_echo "$as_me: exit $exit_status" 2112 } >&5 2113 rm -f core *.core core.conftest.* && 2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2115 exit $exit_status 2116' 0 2117for ac_signal in 1 2 13 15; do 2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2119done 2120ac_signal=0 2121 2122# confdefs.h avoids OS command line length limits that DEFS can exceed. 2123rm -f -r conftest* confdefs.h 2124 2125$as_echo "/* confdefs.h */" > confdefs.h 2126 2127# Predefined preprocessor variables. 2128 2129cat >>confdefs.h <<_ACEOF 2130#define PACKAGE_NAME "$PACKAGE_NAME" 2131_ACEOF 2132 2133cat >>confdefs.h <<_ACEOF 2134#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2135_ACEOF 2136 2137cat >>confdefs.h <<_ACEOF 2138#define PACKAGE_VERSION "$PACKAGE_VERSION" 2139_ACEOF 2140 2141cat >>confdefs.h <<_ACEOF 2142#define PACKAGE_STRING "$PACKAGE_STRING" 2143_ACEOF 2144 2145cat >>confdefs.h <<_ACEOF 2146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2147_ACEOF 2148 2149cat >>confdefs.h <<_ACEOF 2150#define PACKAGE_URL "$PACKAGE_URL" 2151_ACEOF 2152 2153 2154# Let the site file select an alternate cache file if it wants to. 2155# Prefer an explicitly selected file to automatically selected ones. 2156ac_site_file1=NONE 2157ac_site_file2=NONE 2158if test -n "$CONFIG_SITE"; then 2159 # We do not want a PATH search for config.site. 2160 case $CONFIG_SITE in #(( 2161 -*) ac_site_file1=./$CONFIG_SITE;; 2162 */*) ac_site_file1=$CONFIG_SITE;; 2163 *) ac_site_file1=./$CONFIG_SITE;; 2164 esac 2165elif test "x$prefix" != xNONE; then 2166 ac_site_file1=$prefix/share/config.site 2167 ac_site_file2=$prefix/etc/config.site 2168else 2169 ac_site_file1=$ac_default_prefix/share/config.site 2170 ac_site_file2=$ac_default_prefix/etc/config.site 2171fi 2172for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2173do 2174 test "x$ac_site_file" = xNONE && continue 2175 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2177$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2178 sed 's/^/| /' "$ac_site_file" >&5 2179 . "$ac_site_file" \ 2180 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2182as_fn_error $? "failed to load site script $ac_site_file 2183See \`config.log' for more details" "$LINENO" 5; } 2184 fi 2185done 2186 2187if test -r "$cache_file"; then 2188 # Some versions of bash will fail to source /dev/null (special files 2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2190 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2192$as_echo "$as_me: loading cache $cache_file" >&6;} 2193 case $cache_file in 2194 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2195 *) . "./$cache_file";; 2196 esac 2197 fi 2198else 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2200$as_echo "$as_me: creating cache $cache_file" >&6;} 2201 >$cache_file 2202fi 2203 2204# Check that the precious variables saved in the cache have kept the same 2205# value. 2206ac_cache_corrupted=false 2207for ac_var in $ac_precious_vars; do 2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2209 eval ac_new_set=\$ac_env_${ac_var}_set 2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2211 eval ac_new_val=\$ac_env_${ac_var}_value 2212 case $ac_old_set,$ac_new_set in 2213 set,) 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2215$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2216 ac_cache_corrupted=: ;; 2217 ,set) 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2219$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2220 ac_cache_corrupted=: ;; 2221 ,);; 2222 *) 2223 if test "x$ac_old_val" != "x$ac_new_val"; then 2224 # differences in whitespace do not lead to failure. 2225 ac_old_val_w=`echo x $ac_old_val` 2226 ac_new_val_w=`echo x $ac_new_val` 2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2229$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2230 ac_cache_corrupted=: 2231 else 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2233$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2234 eval $ac_var=\$ac_old_val 2235 fi 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2237$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2239$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2240 fi;; 2241 esac 2242 # Pass precious variables to config.status. 2243 if test "$ac_new_set" = set; then 2244 case $ac_new_val in 2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2246 *) ac_arg=$ac_var=$ac_new_val ;; 2247 esac 2248 case " $ac_configure_args " in 2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2251 esac 2252 fi 2253done 2254if $ac_cache_corrupted; then 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2258$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2259 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2260fi 2261## -------------------- ## 2262## Main body of script. ## 2263## -------------------- ## 2264 2265ac_ext=c 2266ac_cpp='$CPP $CPPFLAGS' 2267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2269ac_compiler_gnu=$ac_cv_c_compiler_gnu 2270 2271 2272 2273ac_config_headers="$ac_config_headers config.h" 2274 2275ac_aux_dir= 2276for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2277 if test -f "$ac_dir/install-sh"; then 2278 ac_aux_dir=$ac_dir 2279 ac_install_sh="$ac_aux_dir/install-sh -c" 2280 break 2281 elif test -f "$ac_dir/install.sh"; then 2282 ac_aux_dir=$ac_dir 2283 ac_install_sh="$ac_aux_dir/install.sh -c" 2284 break 2285 elif test -f "$ac_dir/shtool"; then 2286 ac_aux_dir=$ac_dir 2287 ac_install_sh="$ac_aux_dir/shtool install -c" 2288 break 2289 fi 2290done 2291if test -z "$ac_aux_dir"; then 2292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2293fi 2294 2295# These three variables are undocumented and unsupported, 2296# and are intended to be withdrawn in a future Autoconf release. 2297# They can cause serious problems if a builder's source tree is in a directory 2298# whose full name contains unusual characters. 2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2302 2303 2304# Expand $ac_aux_dir to an absolute path. 2305am_aux_dir=`cd "$ac_aux_dir" && pwd` 2306 2307ac_ext=c 2308ac_cpp='$CPP $CPPFLAGS' 2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2311ac_compiler_gnu=$ac_cv_c_compiler_gnu 2312if test -n "$ac_tool_prefix"; then 2313 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2314set dummy ${ac_tool_prefix}gcc; ac_word=$2 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2316$as_echo_n "checking for $ac_word... " >&6; } 2317if ${ac_cv_prog_CC+:} false; then : 2318 $as_echo_n "(cached) " >&6 2319else 2320 if test -n "$CC"; then 2321 ac_cv_prog_CC="$CC" # Let the user override the test. 2322else 2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2324for as_dir in $PATH 2325do 2326 IFS=$as_save_IFS 2327 test -z "$as_dir" && as_dir=. 2328 for ac_exec_ext in '' $ac_executable_extensions; do 2329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2330 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2332 break 2 2333 fi 2334done 2335 done 2336IFS=$as_save_IFS 2337 2338fi 2339fi 2340CC=$ac_cv_prog_CC 2341if test -n "$CC"; then 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2343$as_echo "$CC" >&6; } 2344else 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2346$as_echo "no" >&6; } 2347fi 2348 2349 2350fi 2351if test -z "$ac_cv_prog_CC"; then 2352 ac_ct_CC=$CC 2353 # Extract the first word of "gcc", so it can be a program name with args. 2354set dummy gcc; ac_word=$2 2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2356$as_echo_n "checking for $ac_word... " >&6; } 2357if ${ac_cv_prog_ac_ct_CC+:} false; then : 2358 $as_echo_n "(cached) " >&6 2359else 2360 if test -n "$ac_ct_CC"; then 2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2362else 2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2364for as_dir in $PATH 2365do 2366 IFS=$as_save_IFS 2367 test -z "$as_dir" && as_dir=. 2368 for ac_exec_ext in '' $ac_executable_extensions; do 2369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2370 ac_cv_prog_ac_ct_CC="gcc" 2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2372 break 2 2373 fi 2374done 2375 done 2376IFS=$as_save_IFS 2377 2378fi 2379fi 2380ac_ct_CC=$ac_cv_prog_ac_ct_CC 2381if test -n "$ac_ct_CC"; then 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2383$as_echo "$ac_ct_CC" >&6; } 2384else 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2386$as_echo "no" >&6; } 2387fi 2388 2389 if test "x$ac_ct_CC" = x; then 2390 CC="" 2391 else 2392 case $cross_compiling:$ac_tool_warned in 2393yes:) 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2396ac_tool_warned=yes ;; 2397esac 2398 CC=$ac_ct_CC 2399 fi 2400else 2401 CC="$ac_cv_prog_CC" 2402fi 2403 2404if test -z "$CC"; then 2405 if test -n "$ac_tool_prefix"; then 2406 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2407set dummy ${ac_tool_prefix}cc; ac_word=$2 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2409$as_echo_n "checking for $ac_word... " >&6; } 2410if ${ac_cv_prog_CC+:} false; then : 2411 $as_echo_n "(cached) " >&6 2412else 2413 if test -n "$CC"; then 2414 ac_cv_prog_CC="$CC" # Let the user override the test. 2415else 2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2417for as_dir in $PATH 2418do 2419 IFS=$as_save_IFS 2420 test -z "$as_dir" && as_dir=. 2421 for ac_exec_ext in '' $ac_executable_extensions; do 2422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2423 ac_cv_prog_CC="${ac_tool_prefix}cc" 2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2425 break 2 2426 fi 2427done 2428 done 2429IFS=$as_save_IFS 2430 2431fi 2432fi 2433CC=$ac_cv_prog_CC 2434if test -n "$CC"; then 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2436$as_echo "$CC" >&6; } 2437else 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2439$as_echo "no" >&6; } 2440fi 2441 2442 2443 fi 2444fi 2445if test -z "$CC"; then 2446 # Extract the first word of "cc", so it can be a program name with args. 2447set dummy cc; ac_word=$2 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2449$as_echo_n "checking for $ac_word... " >&6; } 2450if ${ac_cv_prog_CC+:} false; then : 2451 $as_echo_n "(cached) " >&6 2452else 2453 if test -n "$CC"; then 2454 ac_cv_prog_CC="$CC" # Let the user override the test. 2455else 2456 ac_prog_rejected=no 2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2458for as_dir in $PATH 2459do 2460 IFS=$as_save_IFS 2461 test -z "$as_dir" && as_dir=. 2462 for ac_exec_ext in '' $ac_executable_extensions; do 2463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2465 ac_prog_rejected=yes 2466 continue 2467 fi 2468 ac_cv_prog_CC="cc" 2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2470 break 2 2471 fi 2472done 2473 done 2474IFS=$as_save_IFS 2475 2476if test $ac_prog_rejected = yes; then 2477 # We found a bogon in the path, so make sure we never use it. 2478 set dummy $ac_cv_prog_CC 2479 shift 2480 if test $# != 0; then 2481 # We chose a different compiler from the bogus one. 2482 # However, it has the same basename, so the bogon will be chosen 2483 # first if we set CC to just the basename; use the full file name. 2484 shift 2485 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2486 fi 2487fi 2488fi 2489fi 2490CC=$ac_cv_prog_CC 2491if test -n "$CC"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2493$as_echo "$CC" >&6; } 2494else 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2496$as_echo "no" >&6; } 2497fi 2498 2499 2500fi 2501if test -z "$CC"; then 2502 if test -n "$ac_tool_prefix"; then 2503 for ac_prog in cl.exe 2504 do 2505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2506set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2508$as_echo_n "checking for $ac_word... " >&6; } 2509if ${ac_cv_prog_CC+:} false; then : 2510 $as_echo_n "(cached) " >&6 2511else 2512 if test -n "$CC"; then 2513 ac_cv_prog_CC="$CC" # Let the user override the test. 2514else 2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2516for as_dir in $PATH 2517do 2518 IFS=$as_save_IFS 2519 test -z "$as_dir" && as_dir=. 2520 for ac_exec_ext in '' $ac_executable_extensions; do 2521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2524 break 2 2525 fi 2526done 2527 done 2528IFS=$as_save_IFS 2529 2530fi 2531fi 2532CC=$ac_cv_prog_CC 2533if test -n "$CC"; then 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2535$as_echo "$CC" >&6; } 2536else 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2538$as_echo "no" >&6; } 2539fi 2540 2541 2542 test -n "$CC" && break 2543 done 2544fi 2545if test -z "$CC"; then 2546 ac_ct_CC=$CC 2547 for ac_prog in cl.exe 2548do 2549 # Extract the first word of "$ac_prog", so it can be a program name with args. 2550set dummy $ac_prog; ac_word=$2 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2552$as_echo_n "checking for $ac_word... " >&6; } 2553if ${ac_cv_prog_ac_ct_CC+:} false; then : 2554 $as_echo_n "(cached) " >&6 2555else 2556 if test -n "$ac_ct_CC"; then 2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2558else 2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2560for as_dir in $PATH 2561do 2562 IFS=$as_save_IFS 2563 test -z "$as_dir" && as_dir=. 2564 for ac_exec_ext in '' $ac_executable_extensions; do 2565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2566 ac_cv_prog_ac_ct_CC="$ac_prog" 2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2568 break 2 2569 fi 2570done 2571 done 2572IFS=$as_save_IFS 2573 2574fi 2575fi 2576ac_ct_CC=$ac_cv_prog_ac_ct_CC 2577if test -n "$ac_ct_CC"; then 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2579$as_echo "$ac_ct_CC" >&6; } 2580else 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2582$as_echo "no" >&6; } 2583fi 2584 2585 2586 test -n "$ac_ct_CC" && break 2587done 2588 2589 if test "x$ac_ct_CC" = x; then 2590 CC="" 2591 else 2592 case $cross_compiling:$ac_tool_warned in 2593yes:) 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2596ac_tool_warned=yes ;; 2597esac 2598 CC=$ac_ct_CC 2599 fi 2600fi 2601 2602fi 2603 2604 2605test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2607as_fn_error $? "no acceptable C compiler found in \$PATH 2608See \`config.log' for more details" "$LINENO" 5; } 2609 2610# Provide some information about the compiler. 2611$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2612set X $ac_compile 2613ac_compiler=$2 2614for ac_option in --version -v -V -qversion; do 2615 { { ac_try="$ac_compiler $ac_option >&5" 2616case "(($ac_try" in 2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2618 *) ac_try_echo=$ac_try;; 2619esac 2620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2621$as_echo "$ac_try_echo"; } >&5 2622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2623 ac_status=$? 2624 if test -s conftest.err; then 2625 sed '10a\ 2626... rest of stderr output deleted ... 2627 10q' conftest.err >conftest.er1 2628 cat conftest.er1 >&5 2629 fi 2630 rm -f conftest.er1 conftest.err 2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2632 test $ac_status = 0; } 2633done 2634 2635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2636/* end confdefs.h. */ 2637 2638int 2639main () 2640{ 2641 2642 ; 2643 return 0; 2644} 2645_ACEOF 2646ac_clean_files_save=$ac_clean_files 2647ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2648# Try to create an executable without -o first, disregard a.out. 2649# It will help us diagnose broken compilers, and finding out an intuition 2650# of exeext. 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2652$as_echo_n "checking whether the C compiler works... " >&6; } 2653ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2654 2655# The possible output files: 2656ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2657 2658ac_rmfiles= 2659for ac_file in $ac_files 2660do 2661 case $ac_file in 2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2663 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2664 esac 2665done 2666rm -f $ac_rmfiles 2667 2668if { { ac_try="$ac_link_default" 2669case "(($ac_try" in 2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2671 *) ac_try_echo=$ac_try;; 2672esac 2673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2674$as_echo "$ac_try_echo"; } >&5 2675 (eval "$ac_link_default") 2>&5 2676 ac_status=$? 2677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2678 test $ac_status = 0; }; then : 2679 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2680# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2681# in a Makefile. We should not override ac_cv_exeext if it was cached, 2682# so that the user can short-circuit this test for compilers unknown to 2683# Autoconf. 2684for ac_file in $ac_files '' 2685do 2686 test -f "$ac_file" || continue 2687 case $ac_file in 2688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2689 ;; 2690 [ab].out ) 2691 # We found the default executable, but exeext='' is most 2692 # certainly right. 2693 break;; 2694 *.* ) 2695 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2696 then :; else 2697 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2698 fi 2699 # We set ac_cv_exeext here because the later test for it is not 2700 # safe: cross compilers may not add the suffix if given an `-o' 2701 # argument, so we may need to know it at that point already. 2702 # Even if this section looks crufty: it has the advantage of 2703 # actually working. 2704 break;; 2705 * ) 2706 break;; 2707 esac 2708done 2709test "$ac_cv_exeext" = no && ac_cv_exeext= 2710 2711else 2712 ac_file='' 2713fi 2714if test -z "$ac_file"; then : 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2716$as_echo "no" >&6; } 2717$as_echo "$as_me: failed program was:" >&5 2718sed 's/^/| /' conftest.$ac_ext >&5 2719 2720{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2722as_fn_error 77 "C compiler cannot create executables 2723See \`config.log' for more details" "$LINENO" 5; } 2724else 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2726$as_echo "yes" >&6; } 2727fi 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2729$as_echo_n "checking for C compiler default output file name... " >&6; } 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2731$as_echo "$ac_file" >&6; } 2732ac_exeext=$ac_cv_exeext 2733 2734rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2735ac_clean_files=$ac_clean_files_save 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2737$as_echo_n "checking for suffix of executables... " >&6; } 2738if { { ac_try="$ac_link" 2739case "(($ac_try" in 2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2741 *) ac_try_echo=$ac_try;; 2742esac 2743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2744$as_echo "$ac_try_echo"; } >&5 2745 (eval "$ac_link") 2>&5 2746 ac_status=$? 2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2748 test $ac_status = 0; }; then : 2749 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2750# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2751# work properly (i.e., refer to `conftest.exe'), while it won't with 2752# `rm'. 2753for ac_file in conftest.exe conftest conftest.*; do 2754 test -f "$ac_file" || continue 2755 case $ac_file in 2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2758 break;; 2759 * ) break;; 2760 esac 2761done 2762else 2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2765as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2766See \`config.log' for more details" "$LINENO" 5; } 2767fi 2768rm -f conftest conftest$ac_cv_exeext 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2770$as_echo "$ac_cv_exeext" >&6; } 2771 2772rm -f conftest.$ac_ext 2773EXEEXT=$ac_cv_exeext 2774ac_exeext=$EXEEXT 2775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2776/* end confdefs.h. */ 2777#include <stdio.h> 2778int 2779main () 2780{ 2781FILE *f = fopen ("conftest.out", "w"); 2782 return ferror (f) || fclose (f) != 0; 2783 2784 ; 2785 return 0; 2786} 2787_ACEOF 2788ac_clean_files="$ac_clean_files conftest.out" 2789# Check that the compiler produces executables we can run. If not, either 2790# the compiler is broken, or we cross compile. 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2792$as_echo_n "checking whether we are cross compiling... " >&6; } 2793if test "$cross_compiling" != yes; then 2794 { { ac_try="$ac_link" 2795case "(($ac_try" in 2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2797 *) ac_try_echo=$ac_try;; 2798esac 2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2800$as_echo "$ac_try_echo"; } >&5 2801 (eval "$ac_link") 2>&5 2802 ac_status=$? 2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2804 test $ac_status = 0; } 2805 if { ac_try='./conftest$ac_cv_exeext' 2806 { { case "(($ac_try" in 2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2808 *) ac_try_echo=$ac_try;; 2809esac 2810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2811$as_echo "$ac_try_echo"; } >&5 2812 (eval "$ac_try") 2>&5 2813 ac_status=$? 2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2815 test $ac_status = 0; }; }; then 2816 cross_compiling=no 2817 else 2818 if test "$cross_compiling" = maybe; then 2819 cross_compiling=yes 2820 else 2821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2823as_fn_error $? "cannot run C compiled programs. 2824If you meant to cross compile, use \`--host'. 2825See \`config.log' for more details" "$LINENO" 5; } 2826 fi 2827 fi 2828fi 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2830$as_echo "$cross_compiling" >&6; } 2831 2832rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2833ac_clean_files=$ac_clean_files_save 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2835$as_echo_n "checking for suffix of object files... " >&6; } 2836if ${ac_cv_objext+:} false; then : 2837 $as_echo_n "(cached) " >&6 2838else 2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2840/* end confdefs.h. */ 2841 2842int 2843main () 2844{ 2845 2846 ; 2847 return 0; 2848} 2849_ACEOF 2850rm -f conftest.o conftest.obj 2851if { { ac_try="$ac_compile" 2852case "(($ac_try" in 2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2854 *) ac_try_echo=$ac_try;; 2855esac 2856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2857$as_echo "$ac_try_echo"; } >&5 2858 (eval "$ac_compile") 2>&5 2859 ac_status=$? 2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2861 test $ac_status = 0; }; then : 2862 for ac_file in conftest.o conftest.obj conftest.*; do 2863 test -f "$ac_file" || continue; 2864 case $ac_file in 2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2867 break;; 2868 esac 2869done 2870else 2871 $as_echo "$as_me: failed program was:" >&5 2872sed 's/^/| /' conftest.$ac_ext >&5 2873 2874{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2876as_fn_error $? "cannot compute suffix of object files: cannot compile 2877See \`config.log' for more details" "$LINENO" 5; } 2878fi 2879rm -f conftest.$ac_cv_objext conftest.$ac_ext 2880fi 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2882$as_echo "$ac_cv_objext" >&6; } 2883OBJEXT=$ac_cv_objext 2884ac_objext=$OBJEXT 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2886$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2887if ${ac_cv_c_compiler_gnu+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2891/* end confdefs.h. */ 2892 2893int 2894main () 2895{ 2896#ifndef __GNUC__ 2897 choke me 2898#endif 2899 2900 ; 2901 return 0; 2902} 2903_ACEOF 2904if ac_fn_c_try_compile "$LINENO"; then : 2905 ac_compiler_gnu=yes 2906else 2907 ac_compiler_gnu=no 2908fi 2909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2910ac_cv_c_compiler_gnu=$ac_compiler_gnu 2911 2912fi 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2914$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2915if test $ac_compiler_gnu = yes; then 2916 GCC=yes 2917else 2918 GCC= 2919fi 2920ac_test_CFLAGS=${CFLAGS+set} 2921ac_save_CFLAGS=$CFLAGS 2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2923$as_echo_n "checking whether $CC accepts -g... " >&6; } 2924if ${ac_cv_prog_cc_g+:} false; then : 2925 $as_echo_n "(cached) " >&6 2926else 2927 ac_save_c_werror_flag=$ac_c_werror_flag 2928 ac_c_werror_flag=yes 2929 ac_cv_prog_cc_g=no 2930 CFLAGS="-g" 2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2932/* end confdefs.h. */ 2933 2934int 2935main () 2936{ 2937 2938 ; 2939 return 0; 2940} 2941_ACEOF 2942if ac_fn_c_try_compile "$LINENO"; then : 2943 ac_cv_prog_cc_g=yes 2944else 2945 CFLAGS="" 2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2947/* end confdefs.h. */ 2948 2949int 2950main () 2951{ 2952 2953 ; 2954 return 0; 2955} 2956_ACEOF 2957if ac_fn_c_try_compile "$LINENO"; then : 2958 2959else 2960 ac_c_werror_flag=$ac_save_c_werror_flag 2961 CFLAGS="-g" 2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2963/* end confdefs.h. */ 2964 2965int 2966main () 2967{ 2968 2969 ; 2970 return 0; 2971} 2972_ACEOF 2973if ac_fn_c_try_compile "$LINENO"; then : 2974 ac_cv_prog_cc_g=yes 2975fi 2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2977fi 2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2979fi 2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2981 ac_c_werror_flag=$ac_save_c_werror_flag 2982fi 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2984$as_echo "$ac_cv_prog_cc_g" >&6; } 2985if test "$ac_test_CFLAGS" = set; then 2986 CFLAGS=$ac_save_CFLAGS 2987elif test $ac_cv_prog_cc_g = yes; then 2988 if test "$GCC" = yes; then 2989 CFLAGS="-g -O2" 2990 else 2991 CFLAGS="-g" 2992 fi 2993else 2994 if test "$GCC" = yes; then 2995 CFLAGS="-O2" 2996 else 2997 CFLAGS= 2998 fi 2999fi 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3001$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3002if ${ac_cv_prog_cc_c89+:} false; then : 3003 $as_echo_n "(cached) " >&6 3004else 3005 ac_cv_prog_cc_c89=no 3006ac_save_CC=$CC 3007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3008/* end confdefs.h. */ 3009#include <stdarg.h> 3010#include <stdio.h> 3011struct stat; 3012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3013struct buf { int x; }; 3014FILE * (*rcsopen) (struct buf *, struct stat *, int); 3015static char *e (p, i) 3016 char **p; 3017 int i; 3018{ 3019 return p[i]; 3020} 3021static char *f (char * (*g) (char **, int), char **p, ...) 3022{ 3023 char *s; 3024 va_list v; 3025 va_start (v,p); 3026 s = g (p, va_arg (v,int)); 3027 va_end (v); 3028 return s; 3029} 3030 3031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3032 function prototypes and stuff, but not '\xHH' hex character constants. 3033 These don't provoke an error unfortunately, instead are silently treated 3034 as 'x'. The following induces an error, until -std is added to get 3035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3036 array size at least. It's necessary to write '\x00'==0 to get something 3037 that's true only with -std. */ 3038int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3039 3040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3041 inside strings and character constants. */ 3042#define FOO(x) 'x' 3043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3044 3045int test (int i, double x); 3046struct s1 {int (*f) (int a);}; 3047struct s2 {int (*f) (double a);}; 3048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3049int argc; 3050char **argv; 3051int 3052main () 3053{ 3054return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3055 ; 3056 return 0; 3057} 3058_ACEOF 3059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3061do 3062 CC="$ac_save_CC $ac_arg" 3063 if ac_fn_c_try_compile "$LINENO"; then : 3064 ac_cv_prog_cc_c89=$ac_arg 3065fi 3066rm -f core conftest.err conftest.$ac_objext 3067 test "x$ac_cv_prog_cc_c89" != "xno" && break 3068done 3069rm -f conftest.$ac_ext 3070CC=$ac_save_CC 3071 3072fi 3073# AC_CACHE_VAL 3074case "x$ac_cv_prog_cc_c89" in 3075 x) 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3077$as_echo "none needed" >&6; } ;; 3078 xno) 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3080$as_echo "unsupported" >&6; } ;; 3081 *) 3082 CC="$CC $ac_cv_prog_cc_c89" 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3084$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3085esac 3086if test "x$ac_cv_prog_cc_c89" != xno; then : 3087 3088fi 3089 3090ac_ext=c 3091ac_cpp='$CPP $CPPFLAGS' 3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3094ac_compiler_gnu=$ac_cv_c_compiler_gnu 3095 3096ac_ext=c 3097ac_cpp='$CPP $CPPFLAGS' 3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3100ac_compiler_gnu=$ac_cv_c_compiler_gnu 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3102$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3103if ${am_cv_prog_cc_c_o+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105else 3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3107/* end confdefs.h. */ 3108 3109int 3110main () 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117 # Make sure it works both with $CC and with simple cc. 3118 # Following AC_PROG_CC_C_O, we do the test twice because some 3119 # compilers refuse to overwrite an existing .o file with -o, 3120 # though they will create one. 3121 am_cv_prog_cc_c_o=yes 3122 for am_i in 1 2; do 3123 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3124 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3125 ac_status=$? 3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } \ 3128 && test -f conftest2.$ac_objext; then 3129 : OK 3130 else 3131 am_cv_prog_cc_c_o=no 3132 break 3133 fi 3134 done 3135 rm -f core conftest* 3136 unset am_i 3137fi 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3139$as_echo "$am_cv_prog_cc_c_o" >&6; } 3140if test "$am_cv_prog_cc_c_o" != yes; then 3141 # Losing compiler, so override with the script. 3142 # FIXME: It is wrong to rewrite CC. 3143 # But if we don't then we get into trouble of one sort or another. 3144 # A longer-term fix would be to have automake use am__CC in this case, 3145 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3146 CC="$am_aux_dir/compile $CC" 3147fi 3148ac_ext=c 3149ac_cpp='$CPP $CPPFLAGS' 3150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3152ac_compiler_gnu=$ac_cv_c_compiler_gnu 3153 3154 3155 3156ac_ext=c 3157ac_cpp='$CPP $CPPFLAGS' 3158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3160ac_compiler_gnu=$ac_cv_c_compiler_gnu 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3162$as_echo_n "checking how to run the C preprocessor... " >&6; } 3163# On Suns, sometimes $CPP names a directory. 3164if test -n "$CPP" && test -d "$CPP"; then 3165 CPP= 3166fi 3167if test -z "$CPP"; then 3168 if ${ac_cv_prog_CPP+:} false; then : 3169 $as_echo_n "(cached) " >&6 3170else 3171 # Double quotes because CPP needs to be expanded 3172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3173 do 3174 ac_preproc_ok=false 3175for ac_c_preproc_warn_flag in '' yes 3176do 3177 # Use a header file that comes with gcc, so configuring glibc 3178 # with a fresh cross-compiler works. 3179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3180 # <limits.h> exists even on freestanding compilers. 3181 # On the NeXT, cc -E runs the code through the compiler's parser, 3182 # not just through cpp. "Syntax error" is here to catch this case. 3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3184/* end confdefs.h. */ 3185#ifdef __STDC__ 3186# include <limits.h> 3187#else 3188# include <assert.h> 3189#endif 3190 Syntax error 3191_ACEOF 3192if ac_fn_c_try_cpp "$LINENO"; then : 3193 3194else 3195 # Broken: fails on valid input. 3196continue 3197fi 3198rm -f conftest.err conftest.i conftest.$ac_ext 3199 3200 # OK, works on sane cases. Now check whether nonexistent headers 3201 # can be detected and how. 3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3203/* end confdefs.h. */ 3204#include <ac_nonexistent.h> 3205_ACEOF 3206if ac_fn_c_try_cpp "$LINENO"; then : 3207 # Broken: success on invalid input. 3208continue 3209else 3210 # Passes both tests. 3211ac_preproc_ok=: 3212break 3213fi 3214rm -f conftest.err conftest.i conftest.$ac_ext 3215 3216done 3217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3218rm -f conftest.i conftest.err conftest.$ac_ext 3219if $ac_preproc_ok; then : 3220 break 3221fi 3222 3223 done 3224 ac_cv_prog_CPP=$CPP 3225 3226fi 3227 CPP=$ac_cv_prog_CPP 3228else 3229 ac_cv_prog_CPP=$CPP 3230fi 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3232$as_echo "$CPP" >&6; } 3233ac_preproc_ok=false 3234for ac_c_preproc_warn_flag in '' yes 3235do 3236 # Use a header file that comes with gcc, so configuring glibc 3237 # with a fresh cross-compiler works. 3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3239 # <limits.h> exists even on freestanding compilers. 3240 # On the NeXT, cc -E runs the code through the compiler's parser, 3241 # not just through cpp. "Syntax error" is here to catch this case. 3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3243/* end confdefs.h. */ 3244#ifdef __STDC__ 3245# include <limits.h> 3246#else 3247# include <assert.h> 3248#endif 3249 Syntax error 3250_ACEOF 3251if ac_fn_c_try_cpp "$LINENO"; then : 3252 3253else 3254 # Broken: fails on valid input. 3255continue 3256fi 3257rm -f conftest.err conftest.i conftest.$ac_ext 3258 3259 # OK, works on sane cases. Now check whether nonexistent headers 3260 # can be detected and how. 3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3262/* end confdefs.h. */ 3263#include <ac_nonexistent.h> 3264_ACEOF 3265if ac_fn_c_try_cpp "$LINENO"; then : 3266 # Broken: success on invalid input. 3267continue 3268else 3269 # Passes both tests. 3270ac_preproc_ok=: 3271break 3272fi 3273rm -f conftest.err conftest.i conftest.$ac_ext 3274 3275done 3276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3277rm -f conftest.i conftest.err conftest.$ac_ext 3278if $ac_preproc_ok; then : 3279 3280else 3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3283as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3284See \`config.log' for more details" "$LINENO" 5; } 3285fi 3286 3287ac_ext=c 3288ac_cpp='$CPP $CPPFLAGS' 3289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3291ac_compiler_gnu=$ac_cv_c_compiler_gnu 3292 3293 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3295$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3296if ${ac_cv_path_GREP+:} false; then : 3297 $as_echo_n "(cached) " >&6 3298else 3299 if test -z "$GREP"; then 3300 ac_path_GREP_found=false 3301 # Loop through the user's path and test for each of PROGNAME-LIST 3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3303for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3304do 3305 IFS=$as_save_IFS 3306 test -z "$as_dir" && as_dir=. 3307 for ac_prog in grep ggrep; do 3308 for ac_exec_ext in '' $ac_executable_extensions; do 3309 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3310 as_fn_executable_p "$ac_path_GREP" || continue 3311# Check for GNU ac_path_GREP and select it if it is found. 3312 # Check for GNU $ac_path_GREP 3313case `"$ac_path_GREP" --version 2>&1` in 3314*GNU*) 3315 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3316*) 3317 ac_count=0 3318 $as_echo_n 0123456789 >"conftest.in" 3319 while : 3320 do 3321 cat "conftest.in" "conftest.in" >"conftest.tmp" 3322 mv "conftest.tmp" "conftest.in" 3323 cp "conftest.in" "conftest.nl" 3324 $as_echo 'GREP' >> "conftest.nl" 3325 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3327 as_fn_arith $ac_count + 1 && ac_count=$as_val 3328 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3329 # Best one so far, save it but keep looking for a better one 3330 ac_cv_path_GREP="$ac_path_GREP" 3331 ac_path_GREP_max=$ac_count 3332 fi 3333 # 10*(2^10) chars as input seems more than enough 3334 test $ac_count -gt 10 && break 3335 done 3336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3337esac 3338 3339 $ac_path_GREP_found && break 3 3340 done 3341 done 3342 done 3343IFS=$as_save_IFS 3344 if test -z "$ac_cv_path_GREP"; then 3345 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3346 fi 3347else 3348 ac_cv_path_GREP=$GREP 3349fi 3350 3351fi 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3353$as_echo "$ac_cv_path_GREP" >&6; } 3354 GREP="$ac_cv_path_GREP" 3355 3356 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3358$as_echo_n "checking for egrep... " >&6; } 3359if ${ac_cv_path_EGREP+:} false; then : 3360 $as_echo_n "(cached) " >&6 3361else 3362 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3363 then ac_cv_path_EGREP="$GREP -E" 3364 else 3365 if test -z "$EGREP"; then 3366 ac_path_EGREP_found=false 3367 # Loop through the user's path and test for each of PROGNAME-LIST 3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3369for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3370do 3371 IFS=$as_save_IFS 3372 test -z "$as_dir" && as_dir=. 3373 for ac_prog in egrep; do 3374 for ac_exec_ext in '' $ac_executable_extensions; do 3375 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3376 as_fn_executable_p "$ac_path_EGREP" || continue 3377# Check for GNU ac_path_EGREP and select it if it is found. 3378 # Check for GNU $ac_path_EGREP 3379case `"$ac_path_EGREP" --version 2>&1` in 3380*GNU*) 3381 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3382*) 3383 ac_count=0 3384 $as_echo_n 0123456789 >"conftest.in" 3385 while : 3386 do 3387 cat "conftest.in" "conftest.in" >"conftest.tmp" 3388 mv "conftest.tmp" "conftest.in" 3389 cp "conftest.in" "conftest.nl" 3390 $as_echo 'EGREP' >> "conftest.nl" 3391 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3393 as_fn_arith $ac_count + 1 && ac_count=$as_val 3394 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3395 # Best one so far, save it but keep looking for a better one 3396 ac_cv_path_EGREP="$ac_path_EGREP" 3397 ac_path_EGREP_max=$ac_count 3398 fi 3399 # 10*(2^10) chars as input seems more than enough 3400 test $ac_count -gt 10 && break 3401 done 3402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3403esac 3404 3405 $ac_path_EGREP_found && break 3 3406 done 3407 done 3408 done 3409IFS=$as_save_IFS 3410 if test -z "$ac_cv_path_EGREP"; then 3411 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3412 fi 3413else 3414 ac_cv_path_EGREP=$EGREP 3415fi 3416 3417 fi 3418fi 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3420$as_echo "$ac_cv_path_EGREP" >&6; } 3421 EGREP="$ac_cv_path_EGREP" 3422 3423 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3425$as_echo_n "checking for ANSI C header files... " >&6; } 3426if ${ac_cv_header_stdc+:} false; then : 3427 $as_echo_n "(cached) " >&6 3428else 3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3430/* end confdefs.h. */ 3431#include <stdlib.h> 3432#include <stdarg.h> 3433#include <string.h> 3434#include <float.h> 3435 3436int 3437main () 3438{ 3439 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444if ac_fn_c_try_compile "$LINENO"; then : 3445 ac_cv_header_stdc=yes 3446else 3447 ac_cv_header_stdc=no 3448fi 3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450 3451if test $ac_cv_header_stdc = yes; then 3452 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455#include <string.h> 3456 3457_ACEOF 3458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3459 $EGREP "memchr" >/dev/null 2>&1; then : 3460 3461else 3462 ac_cv_header_stdc=no 3463fi 3464rm -f conftest* 3465 3466fi 3467 3468if test $ac_cv_header_stdc = yes; then 3469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3471/* end confdefs.h. */ 3472#include <stdlib.h> 3473 3474_ACEOF 3475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3476 $EGREP "free" >/dev/null 2>&1; then : 3477 3478else 3479 ac_cv_header_stdc=no 3480fi 3481rm -f conftest* 3482 3483fi 3484 3485if test $ac_cv_header_stdc = yes; then 3486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3487 if test "$cross_compiling" = yes; then : 3488 : 3489else 3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3491/* end confdefs.h. */ 3492#include <ctype.h> 3493#include <stdlib.h> 3494#if ((' ' & 0x0FF) == 0x020) 3495# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3496# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3497#else 3498# define ISLOWER(c) \ 3499 (('a' <= (c) && (c) <= 'i') \ 3500 || ('j' <= (c) && (c) <= 'r') \ 3501 || ('s' <= (c) && (c) <= 'z')) 3502# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3503#endif 3504 3505#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3506int 3507main () 3508{ 3509 int i; 3510 for (i = 0; i < 256; i++) 3511 if (XOR (islower (i), ISLOWER (i)) 3512 || toupper (i) != TOUPPER (i)) 3513 return 2; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_c_try_run "$LINENO"; then : 3518 3519else 3520 ac_cv_header_stdc=no 3521fi 3522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3523 conftest.$ac_objext conftest.beam conftest.$ac_ext 3524fi 3525 3526fi 3527fi 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3529$as_echo "$ac_cv_header_stdc" >&6; } 3530if test $ac_cv_header_stdc = yes; then 3531 3532$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3533 3534fi 3535 3536# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3537for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3538 inttypes.h stdint.h unistd.h 3539do : 3540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3541ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3542" 3543if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3544 cat >>confdefs.h <<_ACEOF 3545#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3546_ACEOF 3547 3548fi 3549 3550done 3551 3552 3553 3554 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3555if test "x$ac_cv_header_minix_config_h" = xyes; then : 3556 MINIX=yes 3557else 3558 MINIX= 3559fi 3560 3561 3562 if test "$MINIX" = yes; then 3563 3564$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3565 3566 3567$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3568 3569 3570$as_echo "#define _MINIX 1" >>confdefs.h 3571 3572 fi 3573 3574 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3576$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3577if ${ac_cv_safe_to_define___extensions__+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3581/* end confdefs.h. */ 3582 3583# define __EXTENSIONS__ 1 3584 $ac_includes_default 3585int 3586main () 3587{ 3588 3589 ; 3590 return 0; 3591} 3592_ACEOF 3593if ac_fn_c_try_compile "$LINENO"; then : 3594 ac_cv_safe_to_define___extensions__=yes 3595else 3596 ac_cv_safe_to_define___extensions__=no 3597fi 3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3599fi 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3601$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3602 test $ac_cv_safe_to_define___extensions__ = yes && 3603 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3604 3605 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3606 3607 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3608 3609 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3610 3611 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3612 3613 3614 3615# Initialize Automake 3616am__api_version='1.15' 3617 3618# Find a good install program. We prefer a C program (faster), 3619# so one script is as good as another. But avoid the broken or 3620# incompatible versions: 3621# SysV /etc/install, /usr/sbin/install 3622# SunOS /usr/etc/install 3623# IRIX /sbin/install 3624# AIX /bin/install 3625# AmigaOS /C/install, which installs bootblocks on floppy discs 3626# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3627# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3628# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3629# OS/2's system install, which has a completely different semantic 3630# ./install, which can be erroneously created by make from ./install.sh. 3631# Reject install programs that cannot install multiple files. 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3633$as_echo_n "checking for a BSD-compatible install... " >&6; } 3634if test -z "$INSTALL"; then 3635if ${ac_cv_path_install+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3639for as_dir in $PATH 3640do 3641 IFS=$as_save_IFS 3642 test -z "$as_dir" && as_dir=. 3643 # Account for people who put trailing slashes in PATH elements. 3644case $as_dir/ in #(( 3645 ./ | .// | /[cC]/* | \ 3646 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3647 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3648 /usr/ucb/* ) ;; 3649 *) 3650 # OSF1 and SCO ODT 3.0 have their own names for install. 3651 # Don't use installbsd from OSF since it installs stuff as root 3652 # by default. 3653 for ac_prog in ginstall scoinst install; do 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3656 if test $ac_prog = install && 3657 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3658 # AIX install. It has an incompatible calling convention. 3659 : 3660 elif test $ac_prog = install && 3661 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3662 # program-specific install script used by HP pwplus--don't use. 3663 : 3664 else 3665 rm -rf conftest.one conftest.two conftest.dir 3666 echo one > conftest.one 3667 echo two > conftest.two 3668 mkdir conftest.dir 3669 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3670 test -s conftest.one && test -s conftest.two && 3671 test -s conftest.dir/conftest.one && 3672 test -s conftest.dir/conftest.two 3673 then 3674 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3675 break 3 3676 fi 3677 fi 3678 fi 3679 done 3680 done 3681 ;; 3682esac 3683 3684 done 3685IFS=$as_save_IFS 3686 3687rm -rf conftest.one conftest.two conftest.dir 3688 3689fi 3690 if test "${ac_cv_path_install+set}" = set; then 3691 INSTALL=$ac_cv_path_install 3692 else 3693 # As a last resort, use the slow shell script. Don't cache a 3694 # value for INSTALL within a source directory, because that will 3695 # break other packages using the cache if that directory is 3696 # removed, or if the value is a relative name. 3697 INSTALL=$ac_install_sh 3698 fi 3699fi 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3701$as_echo "$INSTALL" >&6; } 3702 3703# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3704# It thinks the first close brace ends the variable substitution. 3705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3706 3707test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3708 3709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3710 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3712$as_echo_n "checking whether build environment is sane... " >&6; } 3713# Reject unsafe characters in $srcdir or the absolute working directory 3714# name. Accept space and tab only in the latter. 3715am_lf=' 3716' 3717case `pwd` in 3718 *[\\\"\#\$\&\'\`$am_lf]*) 3719 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3720esac 3721case $srcdir in 3722 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3723 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3724esac 3725 3726# Do 'set' in a subshell so we don't clobber the current shell's 3727# arguments. Must try -L first in case configure is actually a 3728# symlink; some systems play weird games with the mod time of symlinks 3729# (eg FreeBSD returns the mod time of the symlink's containing 3730# directory). 3731if ( 3732 am_has_slept=no 3733 for am_try in 1 2; do 3734 echo "timestamp, slept: $am_has_slept" > conftest.file 3735 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3736 if test "$*" = "X"; then 3737 # -L didn't work. 3738 set X `ls -t "$srcdir/configure" conftest.file` 3739 fi 3740 if test "$*" != "X $srcdir/configure conftest.file" \ 3741 && test "$*" != "X conftest.file $srcdir/configure"; then 3742 3743 # If neither matched, then we have a broken ls. This can happen 3744 # if, for instance, CONFIG_SHELL is bash and it inherits a 3745 # broken ls alias from the environment. This has actually 3746 # happened. Such a system could not be considered "sane". 3747 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3748 alias in your environment" "$LINENO" 5 3749 fi 3750 if test "$2" = conftest.file || test $am_try -eq 2; then 3751 break 3752 fi 3753 # Just in case. 3754 sleep 1 3755 am_has_slept=yes 3756 done 3757 test "$2" = conftest.file 3758 ) 3759then 3760 # Ok. 3761 : 3762else 3763 as_fn_error $? "newly created file is older than distributed files! 3764Check your system clock" "$LINENO" 5 3765fi 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3767$as_echo "yes" >&6; } 3768# If we didn't sleep, we still need to ensure time stamps of config.status and 3769# generated files are strictly newer. 3770am_sleep_pid= 3771if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3772 ( sleep 1 ) & 3773 am_sleep_pid=$! 3774fi 3775 3776rm -f conftest.file 3777 3778test "$program_prefix" != NONE && 3779 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3780# Use a double $ so make ignores it. 3781test "$program_suffix" != NONE && 3782 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3783# Double any \ or $. 3784# By default was `s,x,x', remove it if useless. 3785ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3786program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3787 3788if test x"${MISSING+set}" != xset; then 3789 case $am_aux_dir in 3790 *\ * | *\ *) 3791 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3792 *) 3793 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3794 esac 3795fi 3796# Use eval to expand $SHELL 3797if eval "$MISSING --is-lightweight"; then 3798 am_missing_run="$MISSING " 3799else 3800 am_missing_run= 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3802$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3803fi 3804 3805if test x"${install_sh+set}" != xset; then 3806 case $am_aux_dir in 3807 *\ * | *\ *) 3808 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3809 *) 3810 install_sh="\${SHELL} $am_aux_dir/install-sh" 3811 esac 3812fi 3813 3814# Installed binaries are usually stripped using 'strip' when the user 3815# run "make install-strip". However 'strip' might not be the right 3816# tool to use in cross-compilation environments, therefore Automake 3817# will honor the 'STRIP' environment variable to overrule this program. 3818if test "$cross_compiling" != no; then 3819 if test -n "$ac_tool_prefix"; then 3820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3821set dummy ${ac_tool_prefix}strip; ac_word=$2 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3823$as_echo_n "checking for $ac_word... " >&6; } 3824if ${ac_cv_prog_STRIP+:} false; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 if test -n "$STRIP"; then 3828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3829else 3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3831for as_dir in $PATH 3832do 3833 IFS=$as_save_IFS 3834 test -z "$as_dir" && as_dir=. 3835 for ac_exec_ext in '' $ac_executable_extensions; do 3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3837 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3839 break 2 3840 fi 3841done 3842 done 3843IFS=$as_save_IFS 3844 3845fi 3846fi 3847STRIP=$ac_cv_prog_STRIP 3848if test -n "$STRIP"; then 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3850$as_echo "$STRIP" >&6; } 3851else 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3853$as_echo "no" >&6; } 3854fi 3855 3856 3857fi 3858if test -z "$ac_cv_prog_STRIP"; then 3859 ac_ct_STRIP=$STRIP 3860 # Extract the first word of "strip", so it can be a program name with args. 3861set dummy strip; ac_word=$2 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3863$as_echo_n "checking for $ac_word... " >&6; } 3864if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866else 3867 if test -n "$ac_ct_STRIP"; then 3868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3869else 3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3871for as_dir in $PATH 3872do 3873 IFS=$as_save_IFS 3874 test -z "$as_dir" && as_dir=. 3875 for ac_exec_ext in '' $ac_executable_extensions; do 3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3877 ac_cv_prog_ac_ct_STRIP="strip" 3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3879 break 2 3880 fi 3881done 3882 done 3883IFS=$as_save_IFS 3884 3885fi 3886fi 3887ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3888if test -n "$ac_ct_STRIP"; then 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3890$as_echo "$ac_ct_STRIP" >&6; } 3891else 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3893$as_echo "no" >&6; } 3894fi 3895 3896 if test "x$ac_ct_STRIP" = x; then 3897 STRIP=":" 3898 else 3899 case $cross_compiling:$ac_tool_warned in 3900yes:) 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3903ac_tool_warned=yes ;; 3904esac 3905 STRIP=$ac_ct_STRIP 3906 fi 3907else 3908 STRIP="$ac_cv_prog_STRIP" 3909fi 3910 3911fi 3912INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3913 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3915$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3916if test -z "$MKDIR_P"; then 3917 if ${ac_cv_path_mkdir+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3921for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3922do 3923 IFS=$as_save_IFS 3924 test -z "$as_dir" && as_dir=. 3925 for ac_prog in mkdir gmkdir; do 3926 for ac_exec_ext in '' $ac_executable_extensions; do 3927 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3928 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3929 'mkdir (GNU coreutils) '* | \ 3930 'mkdir (coreutils) '* | \ 3931 'mkdir (fileutils) '4.1*) 3932 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3933 break 3;; 3934 esac 3935 done 3936 done 3937 done 3938IFS=$as_save_IFS 3939 3940fi 3941 3942 test -d ./--version && rmdir ./--version 3943 if test "${ac_cv_path_mkdir+set}" = set; then 3944 MKDIR_P="$ac_cv_path_mkdir -p" 3945 else 3946 # As a last resort, use the slow shell script. Don't cache a 3947 # value for MKDIR_P within a source directory, because that will 3948 # break other packages using the cache if that directory is 3949 # removed, or if the value is a relative name. 3950 MKDIR_P="$ac_install_sh -d" 3951 fi 3952fi 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3954$as_echo "$MKDIR_P" >&6; } 3955 3956for ac_prog in gawk mawk nawk awk 3957do 3958 # Extract the first word of "$ac_prog", so it can be a program name with args. 3959set dummy $ac_prog; ac_word=$2 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3961$as_echo_n "checking for $ac_word... " >&6; } 3962if ${ac_cv_prog_AWK+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if test -n "$AWK"; then 3966 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3967else 3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3969for as_dir in $PATH 3970do 3971 IFS=$as_save_IFS 3972 test -z "$as_dir" && as_dir=. 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3975 ac_cv_prog_AWK="$ac_prog" 3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3977 break 2 3978 fi 3979done 3980 done 3981IFS=$as_save_IFS 3982 3983fi 3984fi 3985AWK=$ac_cv_prog_AWK 3986if test -n "$AWK"; then 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3988$as_echo "$AWK" >&6; } 3989else 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3991$as_echo "no" >&6; } 3992fi 3993 3994 3995 test -n "$AWK" && break 3996done 3997 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3999$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4000set x ${MAKE-make} 4001ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4002if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004else 4005 cat >conftest.make <<\_ACEOF 4006SHELL = /bin/sh 4007all: 4008 @echo '@@@%%%=$(MAKE)=@@@%%%' 4009_ACEOF 4010# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4011case `${MAKE-make} -f conftest.make 2>/dev/null` in 4012 *@@@%%%=?*=@@@%%%*) 4013 eval ac_cv_prog_make_${ac_make}_set=yes;; 4014 *) 4015 eval ac_cv_prog_make_${ac_make}_set=no;; 4016esac 4017rm -f conftest.make 4018fi 4019if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4021$as_echo "yes" >&6; } 4022 SET_MAKE= 4023else 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4025$as_echo "no" >&6; } 4026 SET_MAKE="MAKE=${MAKE-make}" 4027fi 4028 4029rm -rf .tst 2>/dev/null 4030mkdir .tst 2>/dev/null 4031if test -d .tst; then 4032 am__leading_dot=. 4033else 4034 am__leading_dot=_ 4035fi 4036rmdir .tst 2>/dev/null 4037 4038DEPDIR="${am__leading_dot}deps" 4039 4040ac_config_commands="$ac_config_commands depfiles" 4041 4042 4043am_make=${MAKE-make} 4044cat > confinc << 'END' 4045am__doit: 4046 @echo this is the am__doit target 4047.PHONY: am__doit 4048END 4049# If we don't find an include directive, just comment out the code. 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4051$as_echo_n "checking for style of include used by $am_make... " >&6; } 4052am__include="#" 4053am__quote= 4054_am_result=none 4055# First try GNU make style include. 4056echo "include confinc" > confmf 4057# Ignore all kinds of additional output from 'make'. 4058case `$am_make -s -f confmf 2> /dev/null` in #( 4059*the\ am__doit\ target*) 4060 am__include=include 4061 am__quote= 4062 _am_result=GNU 4063 ;; 4064esac 4065# Now try BSD make style include. 4066if test "$am__include" = "#"; then 4067 echo '.include "confinc"' > confmf 4068 case `$am_make -s -f confmf 2> /dev/null` in #( 4069 *the\ am__doit\ target*) 4070 am__include=.include 4071 am__quote="\"" 4072 _am_result=BSD 4073 ;; 4074 esac 4075fi 4076 4077 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4079$as_echo "$_am_result" >&6; } 4080rm -f confinc confmf 4081 4082# Check whether --enable-dependency-tracking was given. 4083if test "${enable_dependency_tracking+set}" = set; then : 4084 enableval=$enable_dependency_tracking; 4085fi 4086 4087if test "x$enable_dependency_tracking" != xno; then 4088 am_depcomp="$ac_aux_dir/depcomp" 4089 AMDEPBACKSLASH='\' 4090 am__nodep='_no' 4091fi 4092 if test "x$enable_dependency_tracking" != xno; then 4093 AMDEP_TRUE= 4094 AMDEP_FALSE='#' 4095else 4096 AMDEP_TRUE='#' 4097 AMDEP_FALSE= 4098fi 4099 4100 4101# Check whether --enable-silent-rules was given. 4102if test "${enable_silent_rules+set}" = set; then : 4103 enableval=$enable_silent_rules; 4104fi 4105 4106case $enable_silent_rules in # ((( 4107 yes) AM_DEFAULT_VERBOSITY=0;; 4108 no) AM_DEFAULT_VERBOSITY=1;; 4109 *) AM_DEFAULT_VERBOSITY=1;; 4110esac 4111am_make=${MAKE-make} 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4113$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4114if ${am_cv_make_support_nested_variables+:} false; then : 4115 $as_echo_n "(cached) " >&6 4116else 4117 if $as_echo 'TRUE=$(BAR$(V)) 4118BAR0=false 4119BAR1=true 4120V=1 4121am__doit: 4122 @$(TRUE) 4123.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4124 am_cv_make_support_nested_variables=yes 4125else 4126 am_cv_make_support_nested_variables=no 4127fi 4128fi 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4130$as_echo "$am_cv_make_support_nested_variables" >&6; } 4131if test $am_cv_make_support_nested_variables = yes; then 4132 AM_V='$(V)' 4133 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4134else 4135 AM_V=$AM_DEFAULT_VERBOSITY 4136 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4137fi 4138AM_BACKSLASH='\' 4139 4140if test "`cd $srcdir && pwd`" != "`pwd`"; then 4141 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4142 # is not polluted with repeated "-I." 4143 am__isrc=' -I$(srcdir)' 4144 # test to see if srcdir already configured 4145 if test -f $srcdir/config.status; then 4146 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4147 fi 4148fi 4149 4150# test whether we have cygpath 4151if test -z "$CYGPATH_W"; then 4152 if (cygpath --version) >/dev/null 2>/dev/null; then 4153 CYGPATH_W='cygpath -w' 4154 else 4155 CYGPATH_W=echo 4156 fi 4157fi 4158 4159 4160# Define the identity of the package. 4161 PACKAGE='mkfontscale' 4162 VERSION='1.2.0' 4163 4164 4165cat >>confdefs.h <<_ACEOF 4166#define PACKAGE "$PACKAGE" 4167_ACEOF 4168 4169 4170cat >>confdefs.h <<_ACEOF 4171#define VERSION "$VERSION" 4172_ACEOF 4173 4174# Some tools Automake needs. 4175 4176ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4177 4178 4179AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4180 4181 4182AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4183 4184 4185AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4186 4187 4188MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4189 4190# For better backward compatibility. To be removed once Automake 1.9.x 4191# dies out for good. For more background, see: 4192# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4193# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4194mkdir_p='$(MKDIR_P)' 4195 4196# We need awk for the "check" target (and possibly the TAP driver). The 4197# system "awk" is bad on some platforms. 4198# Always define AMTAR for backward compatibility. Yes, it's still used 4199# in the wild :-( We should find a proper way to deprecate it ... 4200AMTAR='$${TAR-tar}' 4201 4202 4203# We'll loop over all known methods to create a tar archive until one works. 4204_am_tools='gnutar pax cpio none' 4205 4206am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4207 4208 4209 4210 4211 4212depcc="$CC" am_compiler_list= 4213 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4215$as_echo_n "checking dependency style of $depcc... " >&6; } 4216if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4217 $as_echo_n "(cached) " >&6 4218else 4219 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4220 # We make a subdir and do the tests there. Otherwise we can end up 4221 # making bogus files that we don't know about and never remove. For 4222 # instance it was reported that on HP-UX the gcc test will end up 4223 # making a dummy file named 'D' -- because '-MD' means "put the output 4224 # in D". 4225 rm -rf conftest.dir 4226 mkdir conftest.dir 4227 # Copy depcomp to subdir because otherwise we won't find it if we're 4228 # using a relative directory. 4229 cp "$am_depcomp" conftest.dir 4230 cd conftest.dir 4231 # We will build objects and dependencies in a subdirectory because 4232 # it helps to detect inapplicable dependency modes. For instance 4233 # both Tru64's cc and ICC support -MD to output dependencies as a 4234 # side effect of compilation, but ICC will put the dependencies in 4235 # the current directory while Tru64 will put them in the object 4236 # directory. 4237 mkdir sub 4238 4239 am_cv_CC_dependencies_compiler_type=none 4240 if test "$am_compiler_list" = ""; then 4241 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4242 fi 4243 am__universal=false 4244 case " $depcc " in #( 4245 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4246 esac 4247 4248 for depmode in $am_compiler_list; do 4249 # Setup a source with many dependencies, because some compilers 4250 # like to wrap large dependency lists on column 80 (with \), and 4251 # we should not choose a depcomp mode which is confused by this. 4252 # 4253 # We need to recreate these files for each test, as the compiler may 4254 # overwrite some of them when testing with obscure command lines. 4255 # This happens at least with the AIX C compiler. 4256 : > sub/conftest.c 4257 for i in 1 2 3 4 5 6; do 4258 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4259 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4260 # Solaris 10 /bin/sh. 4261 echo '/* dummy */' > sub/conftst$i.h 4262 done 4263 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4264 4265 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4266 # mode. It turns out that the SunPro C++ compiler does not properly 4267 # handle '-M -o', and we need to detect this. Also, some Intel 4268 # versions had trouble with output in subdirs. 4269 am__obj=sub/conftest.${OBJEXT-o} 4270 am__minus_obj="-o $am__obj" 4271 case $depmode in 4272 gcc) 4273 # This depmode causes a compiler race in universal mode. 4274 test "$am__universal" = false || continue 4275 ;; 4276 nosideeffect) 4277 # After this tag, mechanisms are not by side-effect, so they'll 4278 # only be used when explicitly requested. 4279 if test "x$enable_dependency_tracking" = xyes; then 4280 continue 4281 else 4282 break 4283 fi 4284 ;; 4285 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4286 # This compiler won't grok '-c -o', but also, the minuso test has 4287 # not run yet. These depmodes are late enough in the game, and 4288 # so weak that their functioning should not be impacted. 4289 am__obj=conftest.${OBJEXT-o} 4290 am__minus_obj= 4291 ;; 4292 none) break ;; 4293 esac 4294 if depmode=$depmode \ 4295 source=sub/conftest.c object=$am__obj \ 4296 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4297 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4298 >/dev/null 2>conftest.err && 4299 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4300 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4301 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4302 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4303 # icc doesn't choke on unknown options, it will just issue warnings 4304 # or remarks (even with -Werror). So we grep stderr for any message 4305 # that says an option was ignored or not supported. 4306 # When given -MP, icc 7.0 and 7.1 complain thusly: 4307 # icc: Command line warning: ignoring option '-M'; no argument required 4308 # The diagnosis changed in icc 8.0: 4309 # icc: Command line remark: option '-MP' not supported 4310 if (grep 'ignoring option' conftest.err || 4311 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4312 am_cv_CC_dependencies_compiler_type=$depmode 4313 break 4314 fi 4315 fi 4316 done 4317 4318 cd .. 4319 rm -rf conftest.dir 4320else 4321 am_cv_CC_dependencies_compiler_type=none 4322fi 4323 4324fi 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4326$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4327CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4328 4329 if 4330 test "x$enable_dependency_tracking" != xno \ 4331 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4332 am__fastdepCC_TRUE= 4333 am__fastdepCC_FALSE='#' 4334else 4335 am__fastdepCC_TRUE='#' 4336 am__fastdepCC_FALSE= 4337fi 4338 4339 4340 4341# POSIX will say in a future version that running "rm -f" with no argument 4342# is OK; and we want to be able to make that assumption in our Makefile 4343# recipes. So use an aggressive probe to check that the usage we want is 4344# actually supported "in the wild" to an acceptable degree. 4345# See automake bug#10828. 4346# To make any issue more visible, cause the running configure to be aborted 4347# by default if the 'rm' program in use doesn't match our expectations; the 4348# user can still override this though. 4349if rm -f && rm -fr && rm -rf; then : OK; else 4350 cat >&2 <<'END' 4351Oops! 4352 4353Your 'rm' program seems unable to run without file operands specified 4354on the command line, even when the '-f' option is present. This is contrary 4355to the behaviour of most rm programs out there, and not conforming with 4356the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4357 4358Please tell bug-automake@gnu.org about your system, including the value 4359of your $PATH and any error possibly output before this message. This 4360can help us improve future automake versions. 4361 4362END 4363 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4364 echo 'Configuration will proceed anyway, since you have set the' >&2 4365 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4366 echo >&2 4367 else 4368 cat >&2 <<'END' 4369Aborting the configuration process, to ensure you take notice of the issue. 4370 4371You can download and install GNU coreutils to get an 'rm' implementation 4372that behaves properly: <http://www.gnu.org/software/coreutils/>. 4373 4374If you want to complete the configuration process using your problematic 4375'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4376to "yes", and re-run configure. 4377 4378END 4379 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4380 fi 4381fi 4382 4383 4384# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4397$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4398if ${ac_cv_prog_cc_c99+:} false; then : 4399 $as_echo_n "(cached) " >&6 4400else 4401 ac_cv_prog_cc_c99=no 4402ac_save_CC=$CC 4403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4404/* end confdefs.h. */ 4405#include <stdarg.h> 4406#include <stdbool.h> 4407#include <stdlib.h> 4408#include <wchar.h> 4409#include <stdio.h> 4410 4411// Check varargs macros. These examples are taken from C99 6.10.3.5. 4412#define debug(...) fprintf (stderr, __VA_ARGS__) 4413#define showlist(...) puts (#__VA_ARGS__) 4414#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4415static void 4416test_varargs_macros (void) 4417{ 4418 int x = 1234; 4419 int y = 5678; 4420 debug ("Flag"); 4421 debug ("X = %d\n", x); 4422 showlist (The first, second, and third items.); 4423 report (x>y, "x is %d but y is %d", x, y); 4424} 4425 4426// Check long long types. 4427#define BIG64 18446744073709551615ull 4428#define BIG32 4294967295ul 4429#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4430#if !BIG_OK 4431 your preprocessor is broken; 4432#endif 4433#if BIG_OK 4434#else 4435 your preprocessor is broken; 4436#endif 4437static long long int bignum = -9223372036854775807LL; 4438static unsigned long long int ubignum = BIG64; 4439 4440struct incomplete_array 4441{ 4442 int datasize; 4443 double data[]; 4444}; 4445 4446struct named_init { 4447 int number; 4448 const wchar_t *name; 4449 double average; 4450}; 4451 4452typedef const char *ccp; 4453 4454static inline int 4455test_restrict (ccp restrict text) 4456{ 4457 // See if C++-style comments work. 4458 // Iterate through items via the restricted pointer. 4459 // Also check for declarations in for loops. 4460 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4461 continue; 4462 return 0; 4463} 4464 4465// Check varargs and va_copy. 4466static void 4467test_varargs (const char *format, ...) 4468{ 4469 va_list args; 4470 va_start (args, format); 4471 va_list args_copy; 4472 va_copy (args_copy, args); 4473 4474 const char *str; 4475 int number; 4476 float fnumber; 4477 4478 while (*format) 4479 { 4480 switch (*format++) 4481 { 4482 case 's': // string 4483 str = va_arg (args_copy, const char *); 4484 break; 4485 case 'd': // int 4486 number = va_arg (args_copy, int); 4487 break; 4488 case 'f': // float 4489 fnumber = va_arg (args_copy, double); 4490 break; 4491 default: 4492 break; 4493 } 4494 } 4495 va_end (args_copy); 4496 va_end (args); 4497} 4498 4499int 4500main () 4501{ 4502 4503 // Check bool. 4504 _Bool success = false; 4505 4506 // Check restrict. 4507 if (test_restrict ("String literal") == 0) 4508 success = true; 4509 char *restrict newvar = "Another string"; 4510 4511 // Check varargs. 4512 test_varargs ("s, d' f .", "string", 65, 34.234); 4513 test_varargs_macros (); 4514 4515 // Check flexible array members. 4516 struct incomplete_array *ia = 4517 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4518 ia->datasize = 10; 4519 for (int i = 0; i < ia->datasize; ++i) 4520 ia->data[i] = i * 1.234; 4521 4522 // Check named initializers. 4523 struct named_init ni = { 4524 .number = 34, 4525 .name = L"Test wide string", 4526 .average = 543.34343, 4527 }; 4528 4529 ni.number = 58; 4530 4531 int dynamic_array[ni.number]; 4532 dynamic_array[ni.number - 1] = 543; 4533 4534 // work around unused variable warnings 4535 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4536 || dynamic_array[ni.number - 1] != 543); 4537 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4543do 4544 CC="$ac_save_CC $ac_arg" 4545 if ac_fn_c_try_compile "$LINENO"; then : 4546 ac_cv_prog_cc_c99=$ac_arg 4547fi 4548rm -f core conftest.err conftest.$ac_objext 4549 test "x$ac_cv_prog_cc_c99" != "xno" && break 4550done 4551rm -f conftest.$ac_ext 4552CC=$ac_save_CC 4553 4554fi 4555# AC_CACHE_VAL 4556case "x$ac_cv_prog_cc_c99" in 4557 x) 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4559$as_echo "none needed" >&6; } ;; 4560 xno) 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4562$as_echo "unsupported" >&6; } ;; 4563 *) 4564 CC="$CC $ac_cv_prog_cc_c99" 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4566$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4567esac 4568if test "x$ac_cv_prog_cc_c99" != xno; then : 4569 4570fi 4571 4572 4573 4574 4575 4576 4577ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4578if test "x$ac_cv_have_decl___clang__" = xyes; then : 4579 CLANGCC="yes" 4580else 4581 CLANGCC="no" 4582fi 4583 4584ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4585if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4586 INTELCC="yes" 4587else 4588 INTELCC="no" 4589fi 4590 4591ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4592if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4593 SUNCC="yes" 4594else 4595 SUNCC="no" 4596fi 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4607 if test -n "$ac_tool_prefix"; then 4608 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4609set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4611$as_echo_n "checking for $ac_word... " >&6; } 4612if ${ac_cv_path_PKG_CONFIG+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 case $PKG_CONFIG in 4616 [\\/]* | ?:[\\/]*) 4617 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4618 ;; 4619 *) 4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4621for as_dir in $PATH 4622do 4623 IFS=$as_save_IFS 4624 test -z "$as_dir" && as_dir=. 4625 for ac_exec_ext in '' $ac_executable_extensions; do 4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4627 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4629 break 2 4630 fi 4631done 4632 done 4633IFS=$as_save_IFS 4634 4635 ;; 4636esac 4637fi 4638PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4639if test -n "$PKG_CONFIG"; then 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4641$as_echo "$PKG_CONFIG" >&6; } 4642else 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4644$as_echo "no" >&6; } 4645fi 4646 4647 4648fi 4649if test -z "$ac_cv_path_PKG_CONFIG"; then 4650 ac_pt_PKG_CONFIG=$PKG_CONFIG 4651 # Extract the first word of "pkg-config", so it can be a program name with args. 4652set dummy pkg-config; ac_word=$2 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4654$as_echo_n "checking for $ac_word... " >&6; } 4655if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 case $ac_pt_PKG_CONFIG in 4659 [\\/]* | ?:[\\/]*) 4660 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4661 ;; 4662 *) 4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4664for as_dir in $PATH 4665do 4666 IFS=$as_save_IFS 4667 test -z "$as_dir" && as_dir=. 4668 for ac_exec_ext in '' $ac_executable_extensions; do 4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4670 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4672 break 2 4673 fi 4674done 4675 done 4676IFS=$as_save_IFS 4677 4678 ;; 4679esac 4680fi 4681ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4682if test -n "$ac_pt_PKG_CONFIG"; then 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4684$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4685else 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4687$as_echo "no" >&6; } 4688fi 4689 4690 if test "x$ac_pt_PKG_CONFIG" = x; then 4691 PKG_CONFIG="" 4692 else 4693 case $cross_compiling:$ac_tool_warned in 4694yes:) 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4697ac_tool_warned=yes ;; 4698esac 4699 PKG_CONFIG=$ac_pt_PKG_CONFIG 4700 fi 4701else 4702 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4703fi 4704 4705fi 4706if test -n "$PKG_CONFIG"; then 4707 _pkg_min_version=0.9.0 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4709$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4710 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4712$as_echo "yes" >&6; } 4713 else 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4715$as_echo "no" >&6; } 4716 PKG_CONFIG="" 4717 fi 4718fi 4719# Make sure we can run config.sub. 4720$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4721 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4722 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4724$as_echo_n "checking build system type... " >&6; } 4725if ${ac_cv_build+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 ac_build_alias=$build_alias 4729test "x$ac_build_alias" = x && 4730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4731test "x$ac_build_alias" = x && 4732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4733ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4735 4736fi 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4738$as_echo "$ac_cv_build" >&6; } 4739case $ac_cv_build in 4740*-*-*) ;; 4741*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4742esac 4743build=$ac_cv_build 4744ac_save_IFS=$IFS; IFS='-' 4745set x $ac_cv_build 4746shift 4747build_cpu=$1 4748build_vendor=$2 4749shift; shift 4750# Remember, the first character of IFS is used to create $*, 4751# except with old shells: 4752build_os=$* 4753IFS=$ac_save_IFS 4754case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4755 4756 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4758$as_echo_n "checking host system type... " >&6; } 4759if ${ac_cv_host+:} false; then : 4760 $as_echo_n "(cached) " >&6 4761else 4762 if test "x$host_alias" = x; then 4763 ac_cv_host=$ac_cv_build 4764else 4765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4767fi 4768 4769fi 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4771$as_echo "$ac_cv_host" >&6; } 4772case $ac_cv_host in 4773*-*-*) ;; 4774*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4775esac 4776host=$ac_cv_host 4777ac_save_IFS=$IFS; IFS='-' 4778set x $ac_cv_host 4779shift 4780host_cpu=$1 4781host_vendor=$2 4782shift; shift 4783# Remember, the first character of IFS is used to create $*, 4784# except with old shells: 4785host_os=$* 4786IFS=$ac_save_IFS 4787case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4788 4789 4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4791$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4792if ${ac_cv_path_SED+:} false; then : 4793 $as_echo_n "(cached) " >&6 4794else 4795 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4796 for ac_i in 1 2 3 4 5 6 7; do 4797 ac_script="$ac_script$as_nl$ac_script" 4798 done 4799 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4800 { ac_script=; unset ac_script;} 4801 if test -z "$SED"; then 4802 ac_path_SED_found=false 4803 # Loop through the user's path and test for each of PROGNAME-LIST 4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4805for as_dir in $PATH 4806do 4807 IFS=$as_save_IFS 4808 test -z "$as_dir" && as_dir=. 4809 for ac_prog in sed gsed; do 4810 for ac_exec_ext in '' $ac_executable_extensions; do 4811 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4812 as_fn_executable_p "$ac_path_SED" || continue 4813# Check for GNU ac_path_SED and select it if it is found. 4814 # Check for GNU $ac_path_SED 4815case `"$ac_path_SED" --version 2>&1` in 4816*GNU*) 4817 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4818*) 4819 ac_count=0 4820 $as_echo_n 0123456789 >"conftest.in" 4821 while : 4822 do 4823 cat "conftest.in" "conftest.in" >"conftest.tmp" 4824 mv "conftest.tmp" "conftest.in" 4825 cp "conftest.in" "conftest.nl" 4826 $as_echo '' >> "conftest.nl" 4827 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4829 as_fn_arith $ac_count + 1 && ac_count=$as_val 4830 if test $ac_count -gt ${ac_path_SED_max-0}; then 4831 # Best one so far, save it but keep looking for a better one 4832 ac_cv_path_SED="$ac_path_SED" 4833 ac_path_SED_max=$ac_count 4834 fi 4835 # 10*(2^10) chars as input seems more than enough 4836 test $ac_count -gt 10 && break 4837 done 4838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4839esac 4840 4841 $ac_path_SED_found && break 3 4842 done 4843 done 4844 done 4845IFS=$as_save_IFS 4846 if test -z "$ac_cv_path_SED"; then 4847 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4848 fi 4849else 4850 ac_cv_path_SED=$SED 4851fi 4852 4853fi 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4855$as_echo "$ac_cv_path_SED" >&6; } 4856 SED="$ac_cv_path_SED" 4857 rm -f conftest.sed 4858 4859 4860 4861 4862 4863 4864# Check whether --enable-selective-werror was given. 4865if test "${enable_selective_werror+set}" = set; then : 4866 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4867else 4868 SELECTIVE_WERROR=yes 4869fi 4870 4871 4872 4873 4874 4875# -v is too short to test reliably with XORG_TESTSET_CFLAG 4876if test "x$SUNCC" = "xyes"; then 4877 BASE_CFLAGS="-v" 4878else 4879 BASE_CFLAGS="" 4880fi 4881 4882# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896xorg_testset_save_CFLAGS="$CFLAGS" 4897 4898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906/* end confdefs.h. */ 4907int i; 4908_ACEOF 4909if ac_fn_c_try_compile "$LINENO"; then : 4910 xorg_cv_cc_flag_unknown_warning_option=yes 4911else 4912 xorg_cv_cc_flag_unknown_warning_option=no 4913fi 4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4915fi 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4919 CFLAGS="$xorg_testset_save_CFLAGS" 4920fi 4921 4922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4925 fi 4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4930 $as_echo_n "(cached) " >&6 4931else 4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4933/* end confdefs.h. */ 4934int i; 4935_ACEOF 4936if ac_fn_c_try_compile "$LINENO"; then : 4937 xorg_cv_cc_flag_unused_command_line_argument=yes 4938else 4939 xorg_cv_cc_flag_unused_command_line_argument=no 4940fi 4941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4942fi 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4946 CFLAGS="$xorg_testset_save_CFLAGS" 4947fi 4948 4949found="no" 4950 4951 if test $found = "no" ; then 4952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4954 fi 4955 4956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4958 fi 4959 4960 CFLAGS="$CFLAGS -Wall" 4961 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4963$as_echo_n "checking if $CC supports -Wall... " >&6; } 4964 cacheid=xorg_cv_cc_flag__Wall 4965 if eval \${$cacheid+:} false; then : 4966 $as_echo_n "(cached) " >&6 4967else 4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4969/* end confdefs.h. */ 4970int i; 4971int 4972main () 4973{ 4974 4975 ; 4976 return 0; 4977} 4978_ACEOF 4979if ac_fn_c_try_link "$LINENO"; then : 4980 eval $cacheid=yes 4981else 4982 eval $cacheid=no 4983fi 4984rm -f core conftest.err conftest.$ac_objext \ 4985 conftest$ac_exeext conftest.$ac_ext 4986fi 4987 4988 4989 CFLAGS="$xorg_testset_save_CFLAGS" 4990 4991 eval supported=\$$cacheid 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4993$as_echo "$supported" >&6; } 4994 if test "$supported" = "yes" ; then 4995 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4996 found="yes" 4997 fi 4998 fi 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014xorg_testset_save_CFLAGS="$CFLAGS" 5015 5016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5021 $as_echo_n "(cached) " >&6 5022else 5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5024/* end confdefs.h. */ 5025int i; 5026_ACEOF 5027if ac_fn_c_try_compile "$LINENO"; then : 5028 xorg_cv_cc_flag_unknown_warning_option=yes 5029else 5030 xorg_cv_cc_flag_unknown_warning_option=no 5031fi 5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5033fi 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5037 CFLAGS="$xorg_testset_save_CFLAGS" 5038fi 5039 5040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5043 fi 5044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5048 $as_echo_n "(cached) " >&6 5049else 5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5051/* end confdefs.h. */ 5052int i; 5053_ACEOF 5054if ac_fn_c_try_compile "$LINENO"; then : 5055 xorg_cv_cc_flag_unused_command_line_argument=yes 5056else 5057 xorg_cv_cc_flag_unused_command_line_argument=no 5058fi 5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5060fi 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5064 CFLAGS="$xorg_testset_save_CFLAGS" 5065fi 5066 5067found="no" 5068 5069 if test $found = "no" ; then 5070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5072 fi 5073 5074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5076 fi 5077 5078 CFLAGS="$CFLAGS -Wpointer-arith" 5079 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5081$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5082 cacheid=xorg_cv_cc_flag__Wpointer_arith 5083 if eval \${$cacheid+:} false; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088int i; 5089int 5090main () 5091{ 5092 5093 ; 5094 return 0; 5095} 5096_ACEOF 5097if ac_fn_c_try_link "$LINENO"; then : 5098 eval $cacheid=yes 5099else 5100 eval $cacheid=no 5101fi 5102rm -f core conftest.err conftest.$ac_objext \ 5103 conftest$ac_exeext conftest.$ac_ext 5104fi 5105 5106 5107 CFLAGS="$xorg_testset_save_CFLAGS" 5108 5109 eval supported=\$$cacheid 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5111$as_echo "$supported" >&6; } 5112 if test "$supported" = "yes" ; then 5113 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5114 found="yes" 5115 fi 5116 fi 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132xorg_testset_save_CFLAGS="$CFLAGS" 5133 5134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5139 $as_echo_n "(cached) " >&6 5140else 5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5142/* end confdefs.h. */ 5143int i; 5144_ACEOF 5145if ac_fn_c_try_compile "$LINENO"; then : 5146 xorg_cv_cc_flag_unknown_warning_option=yes 5147else 5148 xorg_cv_cc_flag_unknown_warning_option=no 5149fi 5150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5151fi 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5155 CFLAGS="$xorg_testset_save_CFLAGS" 5156fi 5157 5158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5161 fi 5162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167else 5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170int i; 5171_ACEOF 5172if ac_fn_c_try_compile "$LINENO"; then : 5173 xorg_cv_cc_flag_unused_command_line_argument=yes 5174else 5175 xorg_cv_cc_flag_unused_command_line_argument=no 5176fi 5177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5178fi 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5182 CFLAGS="$xorg_testset_save_CFLAGS" 5183fi 5184 5185found="no" 5186 5187 if test $found = "no" ; then 5188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5190 fi 5191 5192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5194 fi 5195 5196 CFLAGS="$CFLAGS -Wmissing-declarations" 5197 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5199$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5200 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5201 if eval \${$cacheid+:} false; then : 5202 $as_echo_n "(cached) " >&6 5203else 5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5205/* end confdefs.h. */ 5206int i; 5207int 5208main () 5209{ 5210 5211 ; 5212 return 0; 5213} 5214_ACEOF 5215if ac_fn_c_try_link "$LINENO"; then : 5216 eval $cacheid=yes 5217else 5218 eval $cacheid=no 5219fi 5220rm -f core conftest.err conftest.$ac_objext \ 5221 conftest$ac_exeext conftest.$ac_ext 5222fi 5223 5224 5225 CFLAGS="$xorg_testset_save_CFLAGS" 5226 5227 eval supported=\$$cacheid 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5229$as_echo "$supported" >&6; } 5230 if test "$supported" = "yes" ; then 5231 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5232 found="yes" 5233 fi 5234 fi 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250xorg_testset_save_CFLAGS="$CFLAGS" 5251 5252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5257 $as_echo_n "(cached) " >&6 5258else 5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260/* end confdefs.h. */ 5261int i; 5262_ACEOF 5263if ac_fn_c_try_compile "$LINENO"; then : 5264 xorg_cv_cc_flag_unknown_warning_option=yes 5265else 5266 xorg_cv_cc_flag_unknown_warning_option=no 5267fi 5268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5269fi 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5273 CFLAGS="$xorg_testset_save_CFLAGS" 5274fi 5275 5276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5279 fi 5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5284 $as_echo_n "(cached) " >&6 5285else 5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5287/* end confdefs.h. */ 5288int i; 5289_ACEOF 5290if ac_fn_c_try_compile "$LINENO"; then : 5291 xorg_cv_cc_flag_unused_command_line_argument=yes 5292else 5293 xorg_cv_cc_flag_unused_command_line_argument=no 5294fi 5295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5296fi 5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5300 CFLAGS="$xorg_testset_save_CFLAGS" 5301fi 5302 5303found="no" 5304 5305 if test $found = "no" ; then 5306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5308 fi 5309 5310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5312 fi 5313 5314 CFLAGS="$CFLAGS -Wformat=2" 5315 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5317$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5318 cacheid=xorg_cv_cc_flag__Wformat_2 5319 if eval \${$cacheid+:} false; then : 5320 $as_echo_n "(cached) " >&6 5321else 5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5323/* end confdefs.h. */ 5324int i; 5325int 5326main () 5327{ 5328 5329 ; 5330 return 0; 5331} 5332_ACEOF 5333if ac_fn_c_try_link "$LINENO"; then : 5334 eval $cacheid=yes 5335else 5336 eval $cacheid=no 5337fi 5338rm -f core conftest.err conftest.$ac_objext \ 5339 conftest$ac_exeext conftest.$ac_ext 5340fi 5341 5342 5343 CFLAGS="$xorg_testset_save_CFLAGS" 5344 5345 eval supported=\$$cacheid 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5347$as_echo "$supported" >&6; } 5348 if test "$supported" = "yes" ; then 5349 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5350 found="yes" 5351 fi 5352 fi 5353 5354 if test $found = "no" ; then 5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5357 fi 5358 5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5361 fi 5362 5363 CFLAGS="$CFLAGS -Wformat" 5364 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5366$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5367 cacheid=xorg_cv_cc_flag__Wformat 5368 if eval \${$cacheid+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370else 5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373int i; 5374int 5375main () 5376{ 5377 5378 ; 5379 return 0; 5380} 5381_ACEOF 5382if ac_fn_c_try_link "$LINENO"; then : 5383 eval $cacheid=yes 5384else 5385 eval $cacheid=no 5386fi 5387rm -f core conftest.err conftest.$ac_objext \ 5388 conftest$ac_exeext conftest.$ac_ext 5389fi 5390 5391 5392 CFLAGS="$xorg_testset_save_CFLAGS" 5393 5394 eval supported=\$$cacheid 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5396$as_echo "$supported" >&6; } 5397 if test "$supported" = "yes" ; then 5398 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5399 found="yes" 5400 fi 5401 fi 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419xorg_testset_save_CFLAGS="$CFLAGS" 5420 5421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5426 $as_echo_n "(cached) " >&6 5427else 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429/* end confdefs.h. */ 5430int i; 5431_ACEOF 5432if ac_fn_c_try_compile "$LINENO"; then : 5433 xorg_cv_cc_flag_unknown_warning_option=yes 5434else 5435 xorg_cv_cc_flag_unknown_warning_option=no 5436fi 5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5438fi 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5442 CFLAGS="$xorg_testset_save_CFLAGS" 5443fi 5444 5445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5448 fi 5449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5453 $as_echo_n "(cached) " >&6 5454else 5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5456/* end confdefs.h. */ 5457int i; 5458_ACEOF 5459if ac_fn_c_try_compile "$LINENO"; then : 5460 xorg_cv_cc_flag_unused_command_line_argument=yes 5461else 5462 xorg_cv_cc_flag_unused_command_line_argument=no 5463fi 5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5465fi 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5469 CFLAGS="$xorg_testset_save_CFLAGS" 5470fi 5471 5472found="no" 5473 5474 if test $found = "no" ; then 5475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5477 fi 5478 5479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5481 fi 5482 5483 CFLAGS="$CFLAGS -Wstrict-prototypes" 5484 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5486$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5487 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5488 if eval \${$cacheid+:} false; then : 5489 $as_echo_n "(cached) " >&6 5490else 5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5492/* end confdefs.h. */ 5493int i; 5494int 5495main () 5496{ 5497 5498 ; 5499 return 0; 5500} 5501_ACEOF 5502if ac_fn_c_try_link "$LINENO"; then : 5503 eval $cacheid=yes 5504else 5505 eval $cacheid=no 5506fi 5507rm -f core conftest.err conftest.$ac_objext \ 5508 conftest$ac_exeext conftest.$ac_ext 5509fi 5510 5511 5512 CFLAGS="$xorg_testset_save_CFLAGS" 5513 5514 eval supported=\$$cacheid 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5516$as_echo "$supported" >&6; } 5517 if test "$supported" = "yes" ; then 5518 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5519 found="yes" 5520 fi 5521 fi 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537xorg_testset_save_CFLAGS="$CFLAGS" 5538 5539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5547/* end confdefs.h. */ 5548int i; 5549_ACEOF 5550if ac_fn_c_try_compile "$LINENO"; then : 5551 xorg_cv_cc_flag_unknown_warning_option=yes 5552else 5553 xorg_cv_cc_flag_unknown_warning_option=no 5554fi 5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5556fi 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5560 CFLAGS="$xorg_testset_save_CFLAGS" 5561fi 5562 5563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5566 fi 5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5571 $as_echo_n "(cached) " >&6 5572else 5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574/* end confdefs.h. */ 5575int i; 5576_ACEOF 5577if ac_fn_c_try_compile "$LINENO"; then : 5578 xorg_cv_cc_flag_unused_command_line_argument=yes 5579else 5580 xorg_cv_cc_flag_unused_command_line_argument=no 5581fi 5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5583fi 5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5587 CFLAGS="$xorg_testset_save_CFLAGS" 5588fi 5589 5590found="no" 5591 5592 if test $found = "no" ; then 5593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5595 fi 5596 5597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5599 fi 5600 5601 CFLAGS="$CFLAGS -Wmissing-prototypes" 5602 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5604$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5605 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5606 if eval \${$cacheid+:} false; then : 5607 $as_echo_n "(cached) " >&6 5608else 5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5610/* end confdefs.h. */ 5611int i; 5612int 5613main () 5614{ 5615 5616 ; 5617 return 0; 5618} 5619_ACEOF 5620if ac_fn_c_try_link "$LINENO"; then : 5621 eval $cacheid=yes 5622else 5623 eval $cacheid=no 5624fi 5625rm -f core conftest.err conftest.$ac_objext \ 5626 conftest$ac_exeext conftest.$ac_ext 5627fi 5628 5629 5630 CFLAGS="$xorg_testset_save_CFLAGS" 5631 5632 eval supported=\$$cacheid 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5634$as_echo "$supported" >&6; } 5635 if test "$supported" = "yes" ; then 5636 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5637 found="yes" 5638 fi 5639 fi 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655xorg_testset_save_CFLAGS="$CFLAGS" 5656 5657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665/* end confdefs.h. */ 5666int i; 5667_ACEOF 5668if ac_fn_c_try_compile "$LINENO"; then : 5669 xorg_cv_cc_flag_unknown_warning_option=yes 5670else 5671 xorg_cv_cc_flag_unknown_warning_option=no 5672fi 5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5674fi 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5678 CFLAGS="$xorg_testset_save_CFLAGS" 5679fi 5680 5681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5684 fi 5685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5692/* end confdefs.h. */ 5693int i; 5694_ACEOF 5695if ac_fn_c_try_compile "$LINENO"; then : 5696 xorg_cv_cc_flag_unused_command_line_argument=yes 5697else 5698 xorg_cv_cc_flag_unused_command_line_argument=no 5699fi 5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5701fi 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5705 CFLAGS="$xorg_testset_save_CFLAGS" 5706fi 5707 5708found="no" 5709 5710 if test $found = "no" ; then 5711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5713 fi 5714 5715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5717 fi 5718 5719 CFLAGS="$CFLAGS -Wnested-externs" 5720 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5722$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5723 cacheid=xorg_cv_cc_flag__Wnested_externs 5724 if eval \${$cacheid+:} false; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5728/* end confdefs.h. */ 5729int i; 5730int 5731main () 5732{ 5733 5734 ; 5735 return 0; 5736} 5737_ACEOF 5738if ac_fn_c_try_link "$LINENO"; then : 5739 eval $cacheid=yes 5740else 5741 eval $cacheid=no 5742fi 5743rm -f core conftest.err conftest.$ac_objext \ 5744 conftest$ac_exeext conftest.$ac_ext 5745fi 5746 5747 5748 CFLAGS="$xorg_testset_save_CFLAGS" 5749 5750 eval supported=\$$cacheid 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5752$as_echo "$supported" >&6; } 5753 if test "$supported" = "yes" ; then 5754 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5755 found="yes" 5756 fi 5757 fi 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773xorg_testset_save_CFLAGS="$CFLAGS" 5774 5775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781else 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783/* end confdefs.h. */ 5784int i; 5785_ACEOF 5786if ac_fn_c_try_compile "$LINENO"; then : 5787 xorg_cv_cc_flag_unknown_warning_option=yes 5788else 5789 xorg_cv_cc_flag_unknown_warning_option=no 5790fi 5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5792fi 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5796 CFLAGS="$xorg_testset_save_CFLAGS" 5797fi 5798 5799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5802 fi 5803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808else 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5810/* end confdefs.h. */ 5811int i; 5812_ACEOF 5813if ac_fn_c_try_compile "$LINENO"; then : 5814 xorg_cv_cc_flag_unused_command_line_argument=yes 5815else 5816 xorg_cv_cc_flag_unused_command_line_argument=no 5817fi 5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5819fi 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5823 CFLAGS="$xorg_testset_save_CFLAGS" 5824fi 5825 5826found="no" 5827 5828 if test $found = "no" ; then 5829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5831 fi 5832 5833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5835 fi 5836 5837 CFLAGS="$CFLAGS -Wbad-function-cast" 5838 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5840$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5841 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5842 if eval \${$cacheid+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844else 5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847int i; 5848int 5849main () 5850{ 5851 5852 ; 5853 return 0; 5854} 5855_ACEOF 5856if ac_fn_c_try_link "$LINENO"; then : 5857 eval $cacheid=yes 5858else 5859 eval $cacheid=no 5860fi 5861rm -f core conftest.err conftest.$ac_objext \ 5862 conftest$ac_exeext conftest.$ac_ext 5863fi 5864 5865 5866 CFLAGS="$xorg_testset_save_CFLAGS" 5867 5868 eval supported=\$$cacheid 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5870$as_echo "$supported" >&6; } 5871 if test "$supported" = "yes" ; then 5872 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5873 found="yes" 5874 fi 5875 fi 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891xorg_testset_save_CFLAGS="$CFLAGS" 5892 5893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5898 $as_echo_n "(cached) " >&6 5899else 5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5901/* end confdefs.h. */ 5902int i; 5903_ACEOF 5904if ac_fn_c_try_compile "$LINENO"; then : 5905 xorg_cv_cc_flag_unknown_warning_option=yes 5906else 5907 xorg_cv_cc_flag_unknown_warning_option=no 5908fi 5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5910fi 5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5914 CFLAGS="$xorg_testset_save_CFLAGS" 5915fi 5916 5917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5920 fi 5921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929int i; 5930_ACEOF 5931if ac_fn_c_try_compile "$LINENO"; then : 5932 xorg_cv_cc_flag_unused_command_line_argument=yes 5933else 5934 xorg_cv_cc_flag_unused_command_line_argument=no 5935fi 5936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5937fi 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5941 CFLAGS="$xorg_testset_save_CFLAGS" 5942fi 5943 5944found="no" 5945 5946 if test $found = "no" ; then 5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5949 fi 5950 5951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5953 fi 5954 5955 CFLAGS="$CFLAGS -Wold-style-definition" 5956 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5958$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5959 cacheid=xorg_cv_cc_flag__Wold_style_definition 5960 if eval \${$cacheid+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5964/* end confdefs.h. */ 5965int i; 5966int 5967main () 5968{ 5969 5970 ; 5971 return 0; 5972} 5973_ACEOF 5974if ac_fn_c_try_link "$LINENO"; then : 5975 eval $cacheid=yes 5976else 5977 eval $cacheid=no 5978fi 5979rm -f core conftest.err conftest.$ac_objext \ 5980 conftest$ac_exeext conftest.$ac_ext 5981fi 5982 5983 5984 CFLAGS="$xorg_testset_save_CFLAGS" 5985 5986 eval supported=\$$cacheid 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5988$as_echo "$supported" >&6; } 5989 if test "$supported" = "yes" ; then 5990 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5991 found="yes" 5992 fi 5993 fi 5994 5995 if test $found = "no" ; then 5996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5998 fi 5999 6000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6002 fi 6003 6004 CFLAGS="$CFLAGS -fd" 6005 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6007$as_echo_n "checking if $CC supports -fd... " >&6; } 6008 cacheid=xorg_cv_cc_flag__fd 6009 if eval \${$cacheid+:} false; then : 6010 $as_echo_n "(cached) " >&6 6011else 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013/* end confdefs.h. */ 6014int i; 6015int 6016main () 6017{ 6018 6019 ; 6020 return 0; 6021} 6022_ACEOF 6023if ac_fn_c_try_link "$LINENO"; then : 6024 eval $cacheid=yes 6025else 6026 eval $cacheid=no 6027fi 6028rm -f core conftest.err conftest.$ac_objext \ 6029 conftest$ac_exeext conftest.$ac_ext 6030fi 6031 6032 6033 CFLAGS="$xorg_testset_save_CFLAGS" 6034 6035 eval supported=\$$cacheid 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6037$as_echo "$supported" >&6; } 6038 if test "$supported" = "yes" ; then 6039 BASE_CFLAGS="$BASE_CFLAGS -fd" 6040 found="yes" 6041 fi 6042 fi 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058xorg_testset_save_CFLAGS="$CFLAGS" 6059 6060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6065 $as_echo_n "(cached) " >&6 6066else 6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6068/* end confdefs.h. */ 6069int i; 6070_ACEOF 6071if ac_fn_c_try_compile "$LINENO"; then : 6072 xorg_cv_cc_flag_unknown_warning_option=yes 6073else 6074 xorg_cv_cc_flag_unknown_warning_option=no 6075fi 6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6077fi 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6081 CFLAGS="$xorg_testset_save_CFLAGS" 6082fi 6083 6084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6087 fi 6088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096int i; 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO"; then : 6099 xorg_cv_cc_flag_unused_command_line_argument=yes 6100else 6101 xorg_cv_cc_flag_unused_command_line_argument=no 6102fi 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104fi 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6108 CFLAGS="$xorg_testset_save_CFLAGS" 6109fi 6110 6111found="no" 6112 6113 if test $found = "no" ; then 6114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6116 fi 6117 6118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6120 fi 6121 6122 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6123 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6125$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6126 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6127 if eval \${$cacheid+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131/* end confdefs.h. */ 6132int i; 6133int 6134main () 6135{ 6136 6137 ; 6138 return 0; 6139} 6140_ACEOF 6141if ac_fn_c_try_link "$LINENO"; then : 6142 eval $cacheid=yes 6143else 6144 eval $cacheid=no 6145fi 6146rm -f core conftest.err conftest.$ac_objext \ 6147 conftest$ac_exeext conftest.$ac_ext 6148fi 6149 6150 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152 6153 eval supported=\$$cacheid 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6155$as_echo "$supported" >&6; } 6156 if test "$supported" = "yes" ; then 6157 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6158 found="yes" 6159 fi 6160 fi 6161 6162 6163 6164 6165 6166# This chunk adds additional warnings that could catch undesired effects. 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180xorg_testset_save_CFLAGS="$CFLAGS" 6181 6182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6187 $as_echo_n "(cached) " >&6 6188else 6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6190/* end confdefs.h. */ 6191int i; 6192_ACEOF 6193if ac_fn_c_try_compile "$LINENO"; then : 6194 xorg_cv_cc_flag_unknown_warning_option=yes 6195else 6196 xorg_cv_cc_flag_unknown_warning_option=no 6197fi 6198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6199fi 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6203 CFLAGS="$xorg_testset_save_CFLAGS" 6204fi 6205 6206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6209 fi 6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6214 $as_echo_n "(cached) " >&6 6215else 6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6217/* end confdefs.h. */ 6218int i; 6219_ACEOF 6220if ac_fn_c_try_compile "$LINENO"; then : 6221 xorg_cv_cc_flag_unused_command_line_argument=yes 6222else 6223 xorg_cv_cc_flag_unused_command_line_argument=no 6224fi 6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6226fi 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6230 CFLAGS="$xorg_testset_save_CFLAGS" 6231fi 6232 6233found="no" 6234 6235 if test $found = "no" ; then 6236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6238 fi 6239 6240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6242 fi 6243 6244 CFLAGS="$CFLAGS -Wunused" 6245 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6247$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6248 cacheid=xorg_cv_cc_flag__Wunused 6249 if eval \${$cacheid+:} false; then : 6250 $as_echo_n "(cached) " >&6 6251else 6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6253/* end confdefs.h. */ 6254int i; 6255int 6256main () 6257{ 6258 6259 ; 6260 return 0; 6261} 6262_ACEOF 6263if ac_fn_c_try_link "$LINENO"; then : 6264 eval $cacheid=yes 6265else 6266 eval $cacheid=no 6267fi 6268rm -f core conftest.err conftest.$ac_objext \ 6269 conftest$ac_exeext conftest.$ac_ext 6270fi 6271 6272 6273 CFLAGS="$xorg_testset_save_CFLAGS" 6274 6275 eval supported=\$$cacheid 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6277$as_echo "$supported" >&6; } 6278 if test "$supported" = "yes" ; then 6279 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6280 found="yes" 6281 fi 6282 fi 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298xorg_testset_save_CFLAGS="$CFLAGS" 6299 6300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6305 $as_echo_n "(cached) " >&6 6306else 6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6308/* end confdefs.h. */ 6309int i; 6310_ACEOF 6311if ac_fn_c_try_compile "$LINENO"; then : 6312 xorg_cv_cc_flag_unknown_warning_option=yes 6313else 6314 xorg_cv_cc_flag_unknown_warning_option=no 6315fi 6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6317fi 6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6321 CFLAGS="$xorg_testset_save_CFLAGS" 6322fi 6323 6324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6327 fi 6328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6335/* end confdefs.h. */ 6336int i; 6337_ACEOF 6338if ac_fn_c_try_compile "$LINENO"; then : 6339 xorg_cv_cc_flag_unused_command_line_argument=yes 6340else 6341 xorg_cv_cc_flag_unused_command_line_argument=no 6342fi 6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6344fi 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6348 CFLAGS="$xorg_testset_save_CFLAGS" 6349fi 6350 6351found="no" 6352 6353 if test $found = "no" ; then 6354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6356 fi 6357 6358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6360 fi 6361 6362 CFLAGS="$CFLAGS -Wuninitialized" 6363 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6365$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6366 cacheid=xorg_cv_cc_flag__Wuninitialized 6367 if eval \${$cacheid+:} false; then : 6368 $as_echo_n "(cached) " >&6 6369else 6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6371/* end confdefs.h. */ 6372int i; 6373int 6374main () 6375{ 6376 6377 ; 6378 return 0; 6379} 6380_ACEOF 6381if ac_fn_c_try_link "$LINENO"; then : 6382 eval $cacheid=yes 6383else 6384 eval $cacheid=no 6385fi 6386rm -f core conftest.err conftest.$ac_objext \ 6387 conftest$ac_exeext conftest.$ac_ext 6388fi 6389 6390 6391 CFLAGS="$xorg_testset_save_CFLAGS" 6392 6393 eval supported=\$$cacheid 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6395$as_echo "$supported" >&6; } 6396 if test "$supported" = "yes" ; then 6397 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6398 found="yes" 6399 fi 6400 fi 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416xorg_testset_save_CFLAGS="$CFLAGS" 6417 6418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6423 $as_echo_n "(cached) " >&6 6424else 6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426/* end confdefs.h. */ 6427int i; 6428_ACEOF 6429if ac_fn_c_try_compile "$LINENO"; then : 6430 xorg_cv_cc_flag_unknown_warning_option=yes 6431else 6432 xorg_cv_cc_flag_unknown_warning_option=no 6433fi 6434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6435fi 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6439 CFLAGS="$xorg_testset_save_CFLAGS" 6440fi 6441 6442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6445 fi 6446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6450 $as_echo_n "(cached) " >&6 6451else 6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6453/* end confdefs.h. */ 6454int i; 6455_ACEOF 6456if ac_fn_c_try_compile "$LINENO"; then : 6457 xorg_cv_cc_flag_unused_command_line_argument=yes 6458else 6459 xorg_cv_cc_flag_unused_command_line_argument=no 6460fi 6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6462fi 6463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6466 CFLAGS="$xorg_testset_save_CFLAGS" 6467fi 6468 6469found="no" 6470 6471 if test $found = "no" ; then 6472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6474 fi 6475 6476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6478 fi 6479 6480 CFLAGS="$CFLAGS -Wshadow" 6481 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6483$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6484 cacheid=xorg_cv_cc_flag__Wshadow 6485 if eval \${$cacheid+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6489/* end confdefs.h. */ 6490int i; 6491int 6492main () 6493{ 6494 6495 ; 6496 return 0; 6497} 6498_ACEOF 6499if ac_fn_c_try_link "$LINENO"; then : 6500 eval $cacheid=yes 6501else 6502 eval $cacheid=no 6503fi 6504rm -f core conftest.err conftest.$ac_objext \ 6505 conftest$ac_exeext conftest.$ac_ext 6506fi 6507 6508 6509 CFLAGS="$xorg_testset_save_CFLAGS" 6510 6511 eval supported=\$$cacheid 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6513$as_echo "$supported" >&6; } 6514 if test "$supported" = "yes" ; then 6515 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6516 found="yes" 6517 fi 6518 fi 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534xorg_testset_save_CFLAGS="$CFLAGS" 6535 6536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6541 $as_echo_n "(cached) " >&6 6542else 6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544/* end confdefs.h. */ 6545int i; 6546_ACEOF 6547if ac_fn_c_try_compile "$LINENO"; then : 6548 xorg_cv_cc_flag_unknown_warning_option=yes 6549else 6550 xorg_cv_cc_flag_unknown_warning_option=no 6551fi 6552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6553fi 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6557 CFLAGS="$xorg_testset_save_CFLAGS" 6558fi 6559 6560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6563 fi 6564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6571/* end confdefs.h. */ 6572int i; 6573_ACEOF 6574if ac_fn_c_try_compile "$LINENO"; then : 6575 xorg_cv_cc_flag_unused_command_line_argument=yes 6576else 6577 xorg_cv_cc_flag_unused_command_line_argument=no 6578fi 6579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6580fi 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6585fi 6586 6587found="no" 6588 6589 if test $found = "no" ; then 6590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6592 fi 6593 6594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6596 fi 6597 6598 CFLAGS="$CFLAGS -Wmissing-noreturn" 6599 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6601$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6602 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6603 if eval \${$cacheid+:} false; then : 6604 $as_echo_n "(cached) " >&6 6605else 6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6607/* end confdefs.h. */ 6608int i; 6609int 6610main () 6611{ 6612 6613 ; 6614 return 0; 6615} 6616_ACEOF 6617if ac_fn_c_try_link "$LINENO"; then : 6618 eval $cacheid=yes 6619else 6620 eval $cacheid=no 6621fi 6622rm -f core conftest.err conftest.$ac_objext \ 6623 conftest$ac_exeext conftest.$ac_ext 6624fi 6625 6626 6627 CFLAGS="$xorg_testset_save_CFLAGS" 6628 6629 eval supported=\$$cacheid 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6631$as_echo "$supported" >&6; } 6632 if test "$supported" = "yes" ; then 6633 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6634 found="yes" 6635 fi 6636 fi 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652xorg_testset_save_CFLAGS="$CFLAGS" 6653 6654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663int i; 6664_ACEOF 6665if ac_fn_c_try_compile "$LINENO"; then : 6666 xorg_cv_cc_flag_unknown_warning_option=yes 6667else 6668 xorg_cv_cc_flag_unknown_warning_option=no 6669fi 6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6671fi 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6675 CFLAGS="$xorg_testset_save_CFLAGS" 6676fi 6677 6678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6681 fi 6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6689/* end confdefs.h. */ 6690int i; 6691_ACEOF 6692if ac_fn_c_try_compile "$LINENO"; then : 6693 xorg_cv_cc_flag_unused_command_line_argument=yes 6694else 6695 xorg_cv_cc_flag_unused_command_line_argument=no 6696fi 6697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6698fi 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6702 CFLAGS="$xorg_testset_save_CFLAGS" 6703fi 6704 6705found="no" 6706 6707 if test $found = "no" ; then 6708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6710 fi 6711 6712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6714 fi 6715 6716 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6717 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6719$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6720 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6721 if eval \${$cacheid+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725/* end confdefs.h. */ 6726int i; 6727int 6728main () 6729{ 6730 6731 ; 6732 return 0; 6733} 6734_ACEOF 6735if ac_fn_c_try_link "$LINENO"; then : 6736 eval $cacheid=yes 6737else 6738 eval $cacheid=no 6739fi 6740rm -f core conftest.err conftest.$ac_objext \ 6741 conftest$ac_exeext conftest.$ac_ext 6742fi 6743 6744 6745 CFLAGS="$xorg_testset_save_CFLAGS" 6746 6747 eval supported=\$$cacheid 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6749$as_echo "$supported" >&6; } 6750 if test "$supported" = "yes" ; then 6751 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6752 found="yes" 6753 fi 6754 fi 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770xorg_testset_save_CFLAGS="$CFLAGS" 6771 6772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6777 $as_echo_n "(cached) " >&6 6778else 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6780/* end confdefs.h. */ 6781int i; 6782_ACEOF 6783if ac_fn_c_try_compile "$LINENO"; then : 6784 xorg_cv_cc_flag_unknown_warning_option=yes 6785else 6786 xorg_cv_cc_flag_unknown_warning_option=no 6787fi 6788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6789fi 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6793 CFLAGS="$xorg_testset_save_CFLAGS" 6794fi 6795 6796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6799 fi 6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6807/* end confdefs.h. */ 6808int i; 6809_ACEOF 6810if ac_fn_c_try_compile "$LINENO"; then : 6811 xorg_cv_cc_flag_unused_command_line_argument=yes 6812else 6813 xorg_cv_cc_flag_unused_command_line_argument=no 6814fi 6815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6816fi 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6820 CFLAGS="$xorg_testset_save_CFLAGS" 6821fi 6822 6823found="no" 6824 6825 if test $found = "no" ; then 6826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6828 fi 6829 6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6832 fi 6833 6834 CFLAGS="$CFLAGS -Wredundant-decls" 6835 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6837$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6838 cacheid=xorg_cv_cc_flag__Wredundant_decls 6839 if eval \${$cacheid+:} false; then : 6840 $as_echo_n "(cached) " >&6 6841else 6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6843/* end confdefs.h. */ 6844int i; 6845int 6846main () 6847{ 6848 6849 ; 6850 return 0; 6851} 6852_ACEOF 6853if ac_fn_c_try_link "$LINENO"; then : 6854 eval $cacheid=yes 6855else 6856 eval $cacheid=no 6857fi 6858rm -f core conftest.err conftest.$ac_objext \ 6859 conftest$ac_exeext conftest.$ac_ext 6860fi 6861 6862 6863 CFLAGS="$xorg_testset_save_CFLAGS" 6864 6865 eval supported=\$$cacheid 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6867$as_echo "$supported" >&6; } 6868 if test "$supported" = "yes" ; then 6869 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6870 found="yes" 6871 fi 6872 fi 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888xorg_testset_save_CFLAGS="$CFLAGS" 6889 6890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6898/* end confdefs.h. */ 6899int i; 6900_ACEOF 6901if ac_fn_c_try_compile "$LINENO"; then : 6902 xorg_cv_cc_flag_unknown_warning_option=yes 6903else 6904 xorg_cv_cc_flag_unknown_warning_option=no 6905fi 6906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6907fi 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6911 CFLAGS="$xorg_testset_save_CFLAGS" 6912fi 6913 6914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6917 fi 6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6922 $as_echo_n "(cached) " >&6 6923else 6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925/* end confdefs.h. */ 6926int i; 6927_ACEOF 6928if ac_fn_c_try_compile "$LINENO"; then : 6929 xorg_cv_cc_flag_unused_command_line_argument=yes 6930else 6931 xorg_cv_cc_flag_unused_command_line_argument=no 6932fi 6933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6934fi 6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6938 CFLAGS="$xorg_testset_save_CFLAGS" 6939fi 6940 6941found="no" 6942 6943 if test $found = "no" ; then 6944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6946 fi 6947 6948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6950 fi 6951 6952 CFLAGS="$CFLAGS -Wlogical-op" 6953 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6955$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6956 cacheid=xorg_cv_cc_flag__Wlogical_op 6957 if eval \${$cacheid+:} false; then : 6958 $as_echo_n "(cached) " >&6 6959else 6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6961/* end confdefs.h. */ 6962int i; 6963int 6964main () 6965{ 6966 6967 ; 6968 return 0; 6969} 6970_ACEOF 6971if ac_fn_c_try_link "$LINENO"; then : 6972 eval $cacheid=yes 6973else 6974 eval $cacheid=no 6975fi 6976rm -f core conftest.err conftest.$ac_objext \ 6977 conftest$ac_exeext conftest.$ac_ext 6978fi 6979 6980 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982 6983 eval supported=\$$cacheid 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6985$as_echo "$supported" >&6; } 6986 if test "$supported" = "yes" ; then 6987 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6988 found="yes" 6989 fi 6990 fi 6991 6992 6993 6994# These are currently disabled because they are noisy. They will be enabled 6995# in the future once the codebase is sufficiently modernized to silence 6996# them. For now, I don't want them to drown out the other warnings. 6997# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6998# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6999# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7000 7001# Turn some warnings into errors, so we don't accidently get successful builds 7002# when there are problems that should be fixed. 7003 7004if test "x$SELECTIVE_WERROR" = "xyes" ; then 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018xorg_testset_save_CFLAGS="$CFLAGS" 7019 7020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7028/* end confdefs.h. */ 7029int i; 7030_ACEOF 7031if ac_fn_c_try_compile "$LINENO"; then : 7032 xorg_cv_cc_flag_unknown_warning_option=yes 7033else 7034 xorg_cv_cc_flag_unknown_warning_option=no 7035fi 7036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7037fi 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7041 CFLAGS="$xorg_testset_save_CFLAGS" 7042fi 7043 7044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 fi 7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7052 $as_echo_n "(cached) " >&6 7053else 7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7055/* end confdefs.h. */ 7056int i; 7057_ACEOF 7058if ac_fn_c_try_compile "$LINENO"; then : 7059 xorg_cv_cc_flag_unused_command_line_argument=yes 7060else 7061 xorg_cv_cc_flag_unused_command_line_argument=no 7062fi 7063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7064fi 7065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7068 CFLAGS="$xorg_testset_save_CFLAGS" 7069fi 7070 7071found="no" 7072 7073 if test $found = "no" ; then 7074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7076 fi 7077 7078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7080 fi 7081 7082 CFLAGS="$CFLAGS -Werror=implicit" 7083 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7085$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7086 cacheid=xorg_cv_cc_flag__Werror_implicit 7087 if eval \${$cacheid+:} false; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092int i; 7093int 7094main () 7095{ 7096 7097 ; 7098 return 0; 7099} 7100_ACEOF 7101if ac_fn_c_try_link "$LINENO"; then : 7102 eval $cacheid=yes 7103else 7104 eval $cacheid=no 7105fi 7106rm -f core conftest.err conftest.$ac_objext \ 7107 conftest$ac_exeext conftest.$ac_ext 7108fi 7109 7110 7111 CFLAGS="$xorg_testset_save_CFLAGS" 7112 7113 eval supported=\$$cacheid 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7115$as_echo "$supported" >&6; } 7116 if test "$supported" = "yes" ; then 7117 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7118 found="yes" 7119 fi 7120 fi 7121 7122 if test $found = "no" ; then 7123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7125 fi 7126 7127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7129 fi 7130 7131 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7132 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7134$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7135 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7136 if eval \${$cacheid+:} false; then : 7137 $as_echo_n "(cached) " >&6 7138else 7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7140/* end confdefs.h. */ 7141int i; 7142int 7143main () 7144{ 7145 7146 ; 7147 return 0; 7148} 7149_ACEOF 7150if ac_fn_c_try_link "$LINENO"; then : 7151 eval $cacheid=yes 7152else 7153 eval $cacheid=no 7154fi 7155rm -f core conftest.err conftest.$ac_objext \ 7156 conftest$ac_exeext conftest.$ac_ext 7157fi 7158 7159 7160 CFLAGS="$xorg_testset_save_CFLAGS" 7161 7162 eval supported=\$$cacheid 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7164$as_echo "$supported" >&6; } 7165 if test "$supported" = "yes" ; then 7166 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7167 found="yes" 7168 fi 7169 fi 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185xorg_testset_save_CFLAGS="$CFLAGS" 7186 7187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7195/* end confdefs.h. */ 7196int i; 7197_ACEOF 7198if ac_fn_c_try_compile "$LINENO"; then : 7199 xorg_cv_cc_flag_unknown_warning_option=yes 7200else 7201 xorg_cv_cc_flag_unknown_warning_option=no 7202fi 7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7204fi 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7208 CFLAGS="$xorg_testset_save_CFLAGS" 7209fi 7210 7211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7214 fi 7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7219 $as_echo_n "(cached) " >&6 7220else 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222/* end confdefs.h. */ 7223int i; 7224_ACEOF 7225if ac_fn_c_try_compile "$LINENO"; then : 7226 xorg_cv_cc_flag_unused_command_line_argument=yes 7227else 7228 xorg_cv_cc_flag_unused_command_line_argument=no 7229fi 7230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7231fi 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7235 CFLAGS="$xorg_testset_save_CFLAGS" 7236fi 7237 7238found="no" 7239 7240 if test $found = "no" ; then 7241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7243 fi 7244 7245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7247 fi 7248 7249 CFLAGS="$CFLAGS -Werror=nonnull" 7250 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7252$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7253 cacheid=xorg_cv_cc_flag__Werror_nonnull 7254 if eval \${$cacheid+:} false; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7258/* end confdefs.h. */ 7259int i; 7260int 7261main () 7262{ 7263 7264 ; 7265 return 0; 7266} 7267_ACEOF 7268if ac_fn_c_try_link "$LINENO"; then : 7269 eval $cacheid=yes 7270else 7271 eval $cacheid=no 7272fi 7273rm -f core conftest.err conftest.$ac_objext \ 7274 conftest$ac_exeext conftest.$ac_ext 7275fi 7276 7277 7278 CFLAGS="$xorg_testset_save_CFLAGS" 7279 7280 eval supported=\$$cacheid 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7282$as_echo "$supported" >&6; } 7283 if test "$supported" = "yes" ; then 7284 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7285 found="yes" 7286 fi 7287 fi 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303xorg_testset_save_CFLAGS="$CFLAGS" 7304 7305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7310 $as_echo_n "(cached) " >&6 7311else 7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313/* end confdefs.h. */ 7314int i; 7315_ACEOF 7316if ac_fn_c_try_compile "$LINENO"; then : 7317 xorg_cv_cc_flag_unknown_warning_option=yes 7318else 7319 xorg_cv_cc_flag_unknown_warning_option=no 7320fi 7321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7322fi 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7326 CFLAGS="$xorg_testset_save_CFLAGS" 7327fi 7328 7329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7332 fi 7333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7337 $as_echo_n "(cached) " >&6 7338else 7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7340/* end confdefs.h. */ 7341int i; 7342_ACEOF 7343if ac_fn_c_try_compile "$LINENO"; then : 7344 xorg_cv_cc_flag_unused_command_line_argument=yes 7345else 7346 xorg_cv_cc_flag_unused_command_line_argument=no 7347fi 7348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7349fi 7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7353 CFLAGS="$xorg_testset_save_CFLAGS" 7354fi 7355 7356found="no" 7357 7358 if test $found = "no" ; then 7359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7361 fi 7362 7363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7365 fi 7366 7367 CFLAGS="$CFLAGS -Werror=init-self" 7368 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7370$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7371 cacheid=xorg_cv_cc_flag__Werror_init_self 7372 if eval \${$cacheid+:} false; then : 7373 $as_echo_n "(cached) " >&6 7374else 7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7376/* end confdefs.h. */ 7377int i; 7378int 7379main () 7380{ 7381 7382 ; 7383 return 0; 7384} 7385_ACEOF 7386if ac_fn_c_try_link "$LINENO"; then : 7387 eval $cacheid=yes 7388else 7389 eval $cacheid=no 7390fi 7391rm -f core conftest.err conftest.$ac_objext \ 7392 conftest$ac_exeext conftest.$ac_ext 7393fi 7394 7395 7396 CFLAGS="$xorg_testset_save_CFLAGS" 7397 7398 eval supported=\$$cacheid 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7400$as_echo "$supported" >&6; } 7401 if test "$supported" = "yes" ; then 7402 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7403 found="yes" 7404 fi 7405 fi 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421xorg_testset_save_CFLAGS="$CFLAGS" 7422 7423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7428 $as_echo_n "(cached) " >&6 7429else 7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7431/* end confdefs.h. */ 7432int i; 7433_ACEOF 7434if ac_fn_c_try_compile "$LINENO"; then : 7435 xorg_cv_cc_flag_unknown_warning_option=yes 7436else 7437 xorg_cv_cc_flag_unknown_warning_option=no 7438fi 7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7440fi 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7444 CFLAGS="$xorg_testset_save_CFLAGS" 7445fi 7446 7447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7450 fi 7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7455 $as_echo_n "(cached) " >&6 7456else 7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7458/* end confdefs.h. */ 7459int i; 7460_ACEOF 7461if ac_fn_c_try_compile "$LINENO"; then : 7462 xorg_cv_cc_flag_unused_command_line_argument=yes 7463else 7464 xorg_cv_cc_flag_unused_command_line_argument=no 7465fi 7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7467fi 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7471 CFLAGS="$xorg_testset_save_CFLAGS" 7472fi 7473 7474found="no" 7475 7476 if test $found = "no" ; then 7477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7479 fi 7480 7481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7483 fi 7484 7485 CFLAGS="$CFLAGS -Werror=main" 7486 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7488$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7489 cacheid=xorg_cv_cc_flag__Werror_main 7490 if eval \${$cacheid+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7494/* end confdefs.h. */ 7495int i; 7496int 7497main () 7498{ 7499 7500 ; 7501 return 0; 7502} 7503_ACEOF 7504if ac_fn_c_try_link "$LINENO"; then : 7505 eval $cacheid=yes 7506else 7507 eval $cacheid=no 7508fi 7509rm -f core conftest.err conftest.$ac_objext \ 7510 conftest$ac_exeext conftest.$ac_ext 7511fi 7512 7513 7514 CFLAGS="$xorg_testset_save_CFLAGS" 7515 7516 eval supported=\$$cacheid 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7518$as_echo "$supported" >&6; } 7519 if test "$supported" = "yes" ; then 7520 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7521 found="yes" 7522 fi 7523 fi 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539xorg_testset_save_CFLAGS="$CFLAGS" 7540 7541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7546 $as_echo_n "(cached) " >&6 7547else 7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550int i; 7551_ACEOF 7552if ac_fn_c_try_compile "$LINENO"; then : 7553 xorg_cv_cc_flag_unknown_warning_option=yes 7554else 7555 xorg_cv_cc_flag_unknown_warning_option=no 7556fi 7557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7558fi 7559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7562 CFLAGS="$xorg_testset_save_CFLAGS" 7563fi 7564 7565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7568 fi 7569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7573 $as_echo_n "(cached) " >&6 7574else 7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7576/* end confdefs.h. */ 7577int i; 7578_ACEOF 7579if ac_fn_c_try_compile "$LINENO"; then : 7580 xorg_cv_cc_flag_unused_command_line_argument=yes 7581else 7582 xorg_cv_cc_flag_unused_command_line_argument=no 7583fi 7584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7585fi 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7589 CFLAGS="$xorg_testset_save_CFLAGS" 7590fi 7591 7592found="no" 7593 7594 if test $found = "no" ; then 7595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7597 fi 7598 7599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7601 fi 7602 7603 CFLAGS="$CFLAGS -Werror=missing-braces" 7604 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7606$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7607 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7608 if eval \${$cacheid+:} false; then : 7609 $as_echo_n "(cached) " >&6 7610else 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613int i; 7614int 7615main () 7616{ 7617 7618 ; 7619 return 0; 7620} 7621_ACEOF 7622if ac_fn_c_try_link "$LINENO"; then : 7623 eval $cacheid=yes 7624else 7625 eval $cacheid=no 7626fi 7627rm -f core conftest.err conftest.$ac_objext \ 7628 conftest$ac_exeext conftest.$ac_ext 7629fi 7630 7631 7632 CFLAGS="$xorg_testset_save_CFLAGS" 7633 7634 eval supported=\$$cacheid 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7636$as_echo "$supported" >&6; } 7637 if test "$supported" = "yes" ; then 7638 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7639 found="yes" 7640 fi 7641 fi 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657xorg_testset_save_CFLAGS="$CFLAGS" 7658 7659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7664 $as_echo_n "(cached) " >&6 7665else 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668int i; 7669_ACEOF 7670if ac_fn_c_try_compile "$LINENO"; then : 7671 xorg_cv_cc_flag_unknown_warning_option=yes 7672else 7673 xorg_cv_cc_flag_unknown_warning_option=no 7674fi 7675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7676fi 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7680 CFLAGS="$xorg_testset_save_CFLAGS" 7681fi 7682 7683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7686 fi 7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7691 $as_echo_n "(cached) " >&6 7692else 7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7694/* end confdefs.h. */ 7695int i; 7696_ACEOF 7697if ac_fn_c_try_compile "$LINENO"; then : 7698 xorg_cv_cc_flag_unused_command_line_argument=yes 7699else 7700 xorg_cv_cc_flag_unused_command_line_argument=no 7701fi 7702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7703fi 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7707 CFLAGS="$xorg_testset_save_CFLAGS" 7708fi 7709 7710found="no" 7711 7712 if test $found = "no" ; then 7713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7715 fi 7716 7717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7719 fi 7720 7721 CFLAGS="$CFLAGS -Werror=sequence-point" 7722 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7724$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7725 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7726 if eval \${$cacheid+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7730/* end confdefs.h. */ 7731int i; 7732int 7733main () 7734{ 7735 7736 ; 7737 return 0; 7738} 7739_ACEOF 7740if ac_fn_c_try_link "$LINENO"; then : 7741 eval $cacheid=yes 7742else 7743 eval $cacheid=no 7744fi 7745rm -f core conftest.err conftest.$ac_objext \ 7746 conftest$ac_exeext conftest.$ac_ext 7747fi 7748 7749 7750 CFLAGS="$xorg_testset_save_CFLAGS" 7751 7752 eval supported=\$$cacheid 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7754$as_echo "$supported" >&6; } 7755 if test "$supported" = "yes" ; then 7756 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7757 found="yes" 7758 fi 7759 fi 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775xorg_testset_save_CFLAGS="$CFLAGS" 7776 7777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7785/* end confdefs.h. */ 7786int i; 7787_ACEOF 7788if ac_fn_c_try_compile "$LINENO"; then : 7789 xorg_cv_cc_flag_unknown_warning_option=yes 7790else 7791 xorg_cv_cc_flag_unknown_warning_option=no 7792fi 7793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7794fi 7795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7798 CFLAGS="$xorg_testset_save_CFLAGS" 7799fi 7800 7801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7804 fi 7805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7809 $as_echo_n "(cached) " >&6 7810else 7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7812/* end confdefs.h. */ 7813int i; 7814_ACEOF 7815if ac_fn_c_try_compile "$LINENO"; then : 7816 xorg_cv_cc_flag_unused_command_line_argument=yes 7817else 7818 xorg_cv_cc_flag_unused_command_line_argument=no 7819fi 7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7821fi 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7825 CFLAGS="$xorg_testset_save_CFLAGS" 7826fi 7827 7828found="no" 7829 7830 if test $found = "no" ; then 7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7833 fi 7834 7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7837 fi 7838 7839 CFLAGS="$CFLAGS -Werror=return-type" 7840 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7842$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7843 cacheid=xorg_cv_cc_flag__Werror_return_type 7844 if eval \${$cacheid+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846else 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848/* end confdefs.h. */ 7849int i; 7850int 7851main () 7852{ 7853 7854 ; 7855 return 0; 7856} 7857_ACEOF 7858if ac_fn_c_try_link "$LINENO"; then : 7859 eval $cacheid=yes 7860else 7861 eval $cacheid=no 7862fi 7863rm -f core conftest.err conftest.$ac_objext \ 7864 conftest$ac_exeext conftest.$ac_ext 7865fi 7866 7867 7868 CFLAGS="$xorg_testset_save_CFLAGS" 7869 7870 eval supported=\$$cacheid 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7872$as_echo "$supported" >&6; } 7873 if test "$supported" = "yes" ; then 7874 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7875 found="yes" 7876 fi 7877 fi 7878 7879 if test $found = "no" ; then 7880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882 fi 7883 7884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7886 fi 7887 7888 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7889 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7891$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7892 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7893 if eval \${$cacheid+:} false; then : 7894 $as_echo_n "(cached) " >&6 7895else 7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7897/* end confdefs.h. */ 7898int i; 7899int 7900main () 7901{ 7902 7903 ; 7904 return 0; 7905} 7906_ACEOF 7907if ac_fn_c_try_link "$LINENO"; then : 7908 eval $cacheid=yes 7909else 7910 eval $cacheid=no 7911fi 7912rm -f core conftest.err conftest.$ac_objext \ 7913 conftest$ac_exeext conftest.$ac_ext 7914fi 7915 7916 7917 CFLAGS="$xorg_testset_save_CFLAGS" 7918 7919 eval supported=\$$cacheid 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7921$as_echo "$supported" >&6; } 7922 if test "$supported" = "yes" ; then 7923 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7924 found="yes" 7925 fi 7926 fi 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942xorg_testset_save_CFLAGS="$CFLAGS" 7943 7944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7949 $as_echo_n "(cached) " >&6 7950else 7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952/* end confdefs.h. */ 7953int i; 7954_ACEOF 7955if ac_fn_c_try_compile "$LINENO"; then : 7956 xorg_cv_cc_flag_unknown_warning_option=yes 7957else 7958 xorg_cv_cc_flag_unknown_warning_option=no 7959fi 7960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7961fi 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7965 CFLAGS="$xorg_testset_save_CFLAGS" 7966fi 7967 7968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7971 fi 7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7976 $as_echo_n "(cached) " >&6 7977else 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980int i; 7981_ACEOF 7982if ac_fn_c_try_compile "$LINENO"; then : 7983 xorg_cv_cc_flag_unused_command_line_argument=yes 7984else 7985 xorg_cv_cc_flag_unused_command_line_argument=no 7986fi 7987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7988fi 7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7992 CFLAGS="$xorg_testset_save_CFLAGS" 7993fi 7994 7995found="no" 7996 7997 if test $found = "no" ; then 7998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8000 fi 8001 8002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8004 fi 8005 8006 CFLAGS="$CFLAGS -Werror=trigraphs" 8007 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8009$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8010 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8011 if eval \${$cacheid+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8015/* end confdefs.h. */ 8016int i; 8017int 8018main () 8019{ 8020 8021 ; 8022 return 0; 8023} 8024_ACEOF 8025if ac_fn_c_try_link "$LINENO"; then : 8026 eval $cacheid=yes 8027else 8028 eval $cacheid=no 8029fi 8030rm -f core conftest.err conftest.$ac_objext \ 8031 conftest$ac_exeext conftest.$ac_ext 8032fi 8033 8034 8035 CFLAGS="$xorg_testset_save_CFLAGS" 8036 8037 eval supported=\$$cacheid 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8039$as_echo "$supported" >&6; } 8040 if test "$supported" = "yes" ; then 8041 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8042 found="yes" 8043 fi 8044 fi 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060xorg_testset_save_CFLAGS="$CFLAGS" 8061 8062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072_ACEOF 8073if ac_fn_c_try_compile "$LINENO"; then : 8074 xorg_cv_cc_flag_unknown_warning_option=yes 8075else 8076 xorg_cv_cc_flag_unknown_warning_option=no 8077fi 8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8079fi 8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8083 CFLAGS="$xorg_testset_save_CFLAGS" 8084fi 8085 8086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8089 fi 8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095else 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097/* end confdefs.h. */ 8098int i; 8099_ACEOF 8100if ac_fn_c_try_compile "$LINENO"; then : 8101 xorg_cv_cc_flag_unused_command_line_argument=yes 8102else 8103 xorg_cv_cc_flag_unused_command_line_argument=no 8104fi 8105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8106fi 8107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8108$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111fi 8112 8113found="no" 8114 8115 if test $found = "no" ; then 8116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8118 fi 8119 8120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8122 fi 8123 8124 CFLAGS="$CFLAGS -Werror=array-bounds" 8125 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8127$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8128 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8129 if eval \${$cacheid+:} false; then : 8130 $as_echo_n "(cached) " >&6 8131else 8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8133/* end confdefs.h. */ 8134int i; 8135int 8136main () 8137{ 8138 8139 ; 8140 return 0; 8141} 8142_ACEOF 8143if ac_fn_c_try_link "$LINENO"; then : 8144 eval $cacheid=yes 8145else 8146 eval $cacheid=no 8147fi 8148rm -f core conftest.err conftest.$ac_objext \ 8149 conftest$ac_exeext conftest.$ac_ext 8150fi 8151 8152 8153 CFLAGS="$xorg_testset_save_CFLAGS" 8154 8155 eval supported=\$$cacheid 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8157$as_echo "$supported" >&6; } 8158 if test "$supported" = "yes" ; then 8159 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8160 found="yes" 8161 fi 8162 fi 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178xorg_testset_save_CFLAGS="$CFLAGS" 8179 8180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189int i; 8190_ACEOF 8191if ac_fn_c_try_compile "$LINENO"; then : 8192 xorg_cv_cc_flag_unknown_warning_option=yes 8193else 8194 xorg_cv_cc_flag_unknown_warning_option=no 8195fi 8196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8197fi 8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8201 CFLAGS="$xorg_testset_save_CFLAGS" 8202fi 8203 8204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8207 fi 8208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8212 $as_echo_n "(cached) " >&6 8213else 8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8215/* end confdefs.h. */ 8216int i; 8217_ACEOF 8218if ac_fn_c_try_compile "$LINENO"; then : 8219 xorg_cv_cc_flag_unused_command_line_argument=yes 8220else 8221 xorg_cv_cc_flag_unused_command_line_argument=no 8222fi 8223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8224fi 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8228 CFLAGS="$xorg_testset_save_CFLAGS" 8229fi 8230 8231found="no" 8232 8233 if test $found = "no" ; then 8234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8236 fi 8237 8238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8240 fi 8241 8242 CFLAGS="$CFLAGS -Werror=write-strings" 8243 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8245$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8246 cacheid=xorg_cv_cc_flag__Werror_write_strings 8247 if eval \${$cacheid+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249else 8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8251/* end confdefs.h. */ 8252int i; 8253int 8254main () 8255{ 8256 8257 ; 8258 return 0; 8259} 8260_ACEOF 8261if ac_fn_c_try_link "$LINENO"; then : 8262 eval $cacheid=yes 8263else 8264 eval $cacheid=no 8265fi 8266rm -f core conftest.err conftest.$ac_objext \ 8267 conftest$ac_exeext conftest.$ac_ext 8268fi 8269 8270 8271 CFLAGS="$xorg_testset_save_CFLAGS" 8272 8273 eval supported=\$$cacheid 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8275$as_echo "$supported" >&6; } 8276 if test "$supported" = "yes" ; then 8277 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8278 found="yes" 8279 fi 8280 fi 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296xorg_testset_save_CFLAGS="$CFLAGS" 8297 8298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307int i; 8308_ACEOF 8309if ac_fn_c_try_compile "$LINENO"; then : 8310 xorg_cv_cc_flag_unknown_warning_option=yes 8311else 8312 xorg_cv_cc_flag_unknown_warning_option=no 8313fi 8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8315fi 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8319 CFLAGS="$xorg_testset_save_CFLAGS" 8320fi 8321 8322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8325 fi 8326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8330 $as_echo_n "(cached) " >&6 8331else 8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8333/* end confdefs.h. */ 8334int i; 8335_ACEOF 8336if ac_fn_c_try_compile "$LINENO"; then : 8337 xorg_cv_cc_flag_unused_command_line_argument=yes 8338else 8339 xorg_cv_cc_flag_unused_command_line_argument=no 8340fi 8341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8342fi 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8346 CFLAGS="$xorg_testset_save_CFLAGS" 8347fi 8348 8349found="no" 8350 8351 if test $found = "no" ; then 8352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8354 fi 8355 8356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8358 fi 8359 8360 CFLAGS="$CFLAGS -Werror=address" 8361 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8363$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8364 cacheid=xorg_cv_cc_flag__Werror_address 8365 if eval \${$cacheid+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370int i; 8371int 8372main () 8373{ 8374 8375 ; 8376 return 0; 8377} 8378_ACEOF 8379if ac_fn_c_try_link "$LINENO"; then : 8380 eval $cacheid=yes 8381else 8382 eval $cacheid=no 8383fi 8384rm -f core conftest.err conftest.$ac_objext \ 8385 conftest$ac_exeext conftest.$ac_ext 8386fi 8387 8388 8389 CFLAGS="$xorg_testset_save_CFLAGS" 8390 8391 eval supported=\$$cacheid 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8393$as_echo "$supported" >&6; } 8394 if test "$supported" = "yes" ; then 8395 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8396 found="yes" 8397 fi 8398 fi 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414xorg_testset_save_CFLAGS="$CFLAGS" 8415 8416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8424/* end confdefs.h. */ 8425int i; 8426_ACEOF 8427if ac_fn_c_try_compile "$LINENO"; then : 8428 xorg_cv_cc_flag_unknown_warning_option=yes 8429else 8430 xorg_cv_cc_flag_unknown_warning_option=no 8431fi 8432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8433fi 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8437 CFLAGS="$xorg_testset_save_CFLAGS" 8438fi 8439 8440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8443 fi 8444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8448 $as_echo_n "(cached) " >&6 8449else 8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8451/* end confdefs.h. */ 8452int i; 8453_ACEOF 8454if ac_fn_c_try_compile "$LINENO"; then : 8455 xorg_cv_cc_flag_unused_command_line_argument=yes 8456else 8457 xorg_cv_cc_flag_unused_command_line_argument=no 8458fi 8459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8460fi 8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8464 CFLAGS="$xorg_testset_save_CFLAGS" 8465fi 8466 8467found="no" 8468 8469 if test $found = "no" ; then 8470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8472 fi 8473 8474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8476 fi 8477 8478 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8479 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8481$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8482 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8483 if eval \${$cacheid+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488int i; 8489int 8490main () 8491{ 8492 8493 ; 8494 return 0; 8495} 8496_ACEOF 8497if ac_fn_c_try_link "$LINENO"; then : 8498 eval $cacheid=yes 8499else 8500 eval $cacheid=no 8501fi 8502rm -f core conftest.err conftest.$ac_objext \ 8503 conftest$ac_exeext conftest.$ac_ext 8504fi 8505 8506 8507 CFLAGS="$xorg_testset_save_CFLAGS" 8508 8509 eval supported=\$$cacheid 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8511$as_echo "$supported" >&6; } 8512 if test "$supported" = "yes" ; then 8513 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8514 found="yes" 8515 fi 8516 fi 8517 8518 if test $found = "no" ; then 8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8521 fi 8522 8523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8525 fi 8526 8527 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8528 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8530$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8531 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8532 if eval \${$cacheid+:} false; then : 8533 $as_echo_n "(cached) " >&6 8534else 8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8536/* end confdefs.h. */ 8537int i; 8538int 8539main () 8540{ 8541 8542 ; 8543 return 0; 8544} 8545_ACEOF 8546if ac_fn_c_try_link "$LINENO"; then : 8547 eval $cacheid=yes 8548else 8549 eval $cacheid=no 8550fi 8551rm -f core conftest.err conftest.$ac_objext \ 8552 conftest$ac_exeext conftest.$ac_ext 8553fi 8554 8555 8556 CFLAGS="$xorg_testset_save_CFLAGS" 8557 8558 eval supported=\$$cacheid 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8560$as_echo "$supported" >&6; } 8561 if test "$supported" = "yes" ; then 8562 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8563 found="yes" 8564 fi 8565 fi 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581xorg_testset_save_CFLAGS="$CFLAGS" 8582 8583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8588 $as_echo_n "(cached) " >&6 8589else 8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8591/* end confdefs.h. */ 8592int i; 8593_ACEOF 8594if ac_fn_c_try_compile "$LINENO"; then : 8595 xorg_cv_cc_flag_unknown_warning_option=yes 8596else 8597 xorg_cv_cc_flag_unknown_warning_option=no 8598fi 8599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8600fi 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8604 CFLAGS="$xorg_testset_save_CFLAGS" 8605fi 8606 8607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8610 fi 8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8615 $as_echo_n "(cached) " >&6 8616else 8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8618/* end confdefs.h. */ 8619int i; 8620_ACEOF 8621if ac_fn_c_try_compile "$LINENO"; then : 8622 xorg_cv_cc_flag_unused_command_line_argument=yes 8623else 8624 xorg_cv_cc_flag_unused_command_line_argument=no 8625fi 8626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8627fi 8628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8631 CFLAGS="$xorg_testset_save_CFLAGS" 8632fi 8633 8634found="no" 8635 8636 if test $found = "no" ; then 8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8639 fi 8640 8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8643 fi 8644 8645 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8646 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8648$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8649 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8650 if eval \${$cacheid+:} false; then : 8651 $as_echo_n "(cached) " >&6 8652else 8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8654/* end confdefs.h. */ 8655int i; 8656int 8657main () 8658{ 8659 8660 ; 8661 return 0; 8662} 8663_ACEOF 8664if ac_fn_c_try_link "$LINENO"; then : 8665 eval $cacheid=yes 8666else 8667 eval $cacheid=no 8668fi 8669rm -f core conftest.err conftest.$ac_objext \ 8670 conftest$ac_exeext conftest.$ac_ext 8671fi 8672 8673 8674 CFLAGS="$xorg_testset_save_CFLAGS" 8675 8676 eval supported=\$$cacheid 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8678$as_echo "$supported" >&6; } 8679 if test "$supported" = "yes" ; then 8680 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8681 found="yes" 8682 fi 8683 fi 8684 8685 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8686else 8687{ $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 8688$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;} 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702xorg_testset_save_CFLAGS="$CFLAGS" 8703 8704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8709 $as_echo_n "(cached) " >&6 8710else 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8712/* end confdefs.h. */ 8713int i; 8714_ACEOF 8715if ac_fn_c_try_compile "$LINENO"; then : 8716 xorg_cv_cc_flag_unknown_warning_option=yes 8717else 8718 xorg_cv_cc_flag_unknown_warning_option=no 8719fi 8720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8721fi 8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8725 CFLAGS="$xorg_testset_save_CFLAGS" 8726fi 8727 8728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8731 fi 8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737else 8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739/* end confdefs.h. */ 8740int i; 8741_ACEOF 8742if ac_fn_c_try_compile "$LINENO"; then : 8743 xorg_cv_cc_flag_unused_command_line_argument=yes 8744else 8745 xorg_cv_cc_flag_unused_command_line_argument=no 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8748fi 8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8752 CFLAGS="$xorg_testset_save_CFLAGS" 8753fi 8754 8755found="no" 8756 8757 if test $found = "no" ; then 8758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8760 fi 8761 8762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8764 fi 8765 8766 CFLAGS="$CFLAGS -Wimplicit" 8767 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8769$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8770 cacheid=xorg_cv_cc_flag__Wimplicit 8771 if eval \${$cacheid+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775/* end confdefs.h. */ 8776int i; 8777int 8778main () 8779{ 8780 8781 ; 8782 return 0; 8783} 8784_ACEOF 8785if ac_fn_c_try_link "$LINENO"; then : 8786 eval $cacheid=yes 8787else 8788 eval $cacheid=no 8789fi 8790rm -f core conftest.err conftest.$ac_objext \ 8791 conftest$ac_exeext conftest.$ac_ext 8792fi 8793 8794 8795 CFLAGS="$xorg_testset_save_CFLAGS" 8796 8797 eval supported=\$$cacheid 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8799$as_echo "$supported" >&6; } 8800 if test "$supported" = "yes" ; then 8801 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8802 found="yes" 8803 fi 8804 fi 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820xorg_testset_save_CFLAGS="$CFLAGS" 8821 8822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8827 $as_echo_n "(cached) " >&6 8828else 8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8830/* end confdefs.h. */ 8831int i; 8832_ACEOF 8833if ac_fn_c_try_compile "$LINENO"; then : 8834 xorg_cv_cc_flag_unknown_warning_option=yes 8835else 8836 xorg_cv_cc_flag_unknown_warning_option=no 8837fi 8838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8839fi 8840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8843 CFLAGS="$xorg_testset_save_CFLAGS" 8844fi 8845 8846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8849 fi 8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8854 $as_echo_n "(cached) " >&6 8855else 8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8857/* end confdefs.h. */ 8858int i; 8859_ACEOF 8860if ac_fn_c_try_compile "$LINENO"; then : 8861 xorg_cv_cc_flag_unused_command_line_argument=yes 8862else 8863 xorg_cv_cc_flag_unused_command_line_argument=no 8864fi 8865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8866fi 8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8870 CFLAGS="$xorg_testset_save_CFLAGS" 8871fi 8872 8873found="no" 8874 8875 if test $found = "no" ; then 8876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8878 fi 8879 8880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8882 fi 8883 8884 CFLAGS="$CFLAGS -Wnonnull" 8885 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8887$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8888 cacheid=xorg_cv_cc_flag__Wnonnull 8889 if eval \${$cacheid+:} false; then : 8890 $as_echo_n "(cached) " >&6 8891else 8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8893/* end confdefs.h. */ 8894int i; 8895int 8896main () 8897{ 8898 8899 ; 8900 return 0; 8901} 8902_ACEOF 8903if ac_fn_c_try_link "$LINENO"; then : 8904 eval $cacheid=yes 8905else 8906 eval $cacheid=no 8907fi 8908rm -f core conftest.err conftest.$ac_objext \ 8909 conftest$ac_exeext conftest.$ac_ext 8910fi 8911 8912 8913 CFLAGS="$xorg_testset_save_CFLAGS" 8914 8915 eval supported=\$$cacheid 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8917$as_echo "$supported" >&6; } 8918 if test "$supported" = "yes" ; then 8919 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8920 found="yes" 8921 fi 8922 fi 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938xorg_testset_save_CFLAGS="$CFLAGS" 8939 8940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8945 $as_echo_n "(cached) " >&6 8946else 8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8948/* end confdefs.h. */ 8949int i; 8950_ACEOF 8951if ac_fn_c_try_compile "$LINENO"; then : 8952 xorg_cv_cc_flag_unknown_warning_option=yes 8953else 8954 xorg_cv_cc_flag_unknown_warning_option=no 8955fi 8956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8957fi 8958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8961 CFLAGS="$xorg_testset_save_CFLAGS" 8962fi 8963 8964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8967 fi 8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8972 $as_echo_n "(cached) " >&6 8973else 8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8975/* end confdefs.h. */ 8976int i; 8977_ACEOF 8978if ac_fn_c_try_compile "$LINENO"; then : 8979 xorg_cv_cc_flag_unused_command_line_argument=yes 8980else 8981 xorg_cv_cc_flag_unused_command_line_argument=no 8982fi 8983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8984fi 8985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8988 CFLAGS="$xorg_testset_save_CFLAGS" 8989fi 8990 8991found="no" 8992 8993 if test $found = "no" ; then 8994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8996 fi 8997 8998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9000 fi 9001 9002 CFLAGS="$CFLAGS -Winit-self" 9003 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9005$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9006 cacheid=xorg_cv_cc_flag__Winit_self 9007 if eval \${$cacheid+:} false; then : 9008 $as_echo_n "(cached) " >&6 9009else 9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9011/* end confdefs.h. */ 9012int i; 9013int 9014main () 9015{ 9016 9017 ; 9018 return 0; 9019} 9020_ACEOF 9021if ac_fn_c_try_link "$LINENO"; then : 9022 eval $cacheid=yes 9023else 9024 eval $cacheid=no 9025fi 9026rm -f core conftest.err conftest.$ac_objext \ 9027 conftest$ac_exeext conftest.$ac_ext 9028fi 9029 9030 9031 CFLAGS="$xorg_testset_save_CFLAGS" 9032 9033 eval supported=\$$cacheid 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9035$as_echo "$supported" >&6; } 9036 if test "$supported" = "yes" ; then 9037 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9038 found="yes" 9039 fi 9040 fi 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056xorg_testset_save_CFLAGS="$CFLAGS" 9057 9058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9063 $as_echo_n "(cached) " >&6 9064else 9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9066/* end confdefs.h. */ 9067int i; 9068_ACEOF 9069if ac_fn_c_try_compile "$LINENO"; then : 9070 xorg_cv_cc_flag_unknown_warning_option=yes 9071else 9072 xorg_cv_cc_flag_unknown_warning_option=no 9073fi 9074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9075fi 9076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9079 CFLAGS="$xorg_testset_save_CFLAGS" 9080fi 9081 9082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9085 fi 9086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9090 $as_echo_n "(cached) " >&6 9091else 9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093/* end confdefs.h. */ 9094int i; 9095_ACEOF 9096if ac_fn_c_try_compile "$LINENO"; then : 9097 xorg_cv_cc_flag_unused_command_line_argument=yes 9098else 9099 xorg_cv_cc_flag_unused_command_line_argument=no 9100fi 9101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9102fi 9103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9106 CFLAGS="$xorg_testset_save_CFLAGS" 9107fi 9108 9109found="no" 9110 9111 if test $found = "no" ; then 9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9114 fi 9115 9116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9118 fi 9119 9120 CFLAGS="$CFLAGS -Wmain" 9121 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9123$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9124 cacheid=xorg_cv_cc_flag__Wmain 9125 if eval \${$cacheid+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9129/* end confdefs.h. */ 9130int i; 9131int 9132main () 9133{ 9134 9135 ; 9136 return 0; 9137} 9138_ACEOF 9139if ac_fn_c_try_link "$LINENO"; then : 9140 eval $cacheid=yes 9141else 9142 eval $cacheid=no 9143fi 9144rm -f core conftest.err conftest.$ac_objext \ 9145 conftest$ac_exeext conftest.$ac_ext 9146fi 9147 9148 9149 CFLAGS="$xorg_testset_save_CFLAGS" 9150 9151 eval supported=\$$cacheid 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9153$as_echo "$supported" >&6; } 9154 if test "$supported" = "yes" ; then 9155 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9156 found="yes" 9157 fi 9158 fi 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174xorg_testset_save_CFLAGS="$CFLAGS" 9175 9176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9181 $as_echo_n "(cached) " >&6 9182else 9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184/* end confdefs.h. */ 9185int i; 9186_ACEOF 9187if ac_fn_c_try_compile "$LINENO"; then : 9188 xorg_cv_cc_flag_unknown_warning_option=yes 9189else 9190 xorg_cv_cc_flag_unknown_warning_option=no 9191fi 9192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9193fi 9194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9197 CFLAGS="$xorg_testset_save_CFLAGS" 9198fi 9199 9200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9203 fi 9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9208 $as_echo_n "(cached) " >&6 9209else 9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9211/* end confdefs.h. */ 9212int i; 9213_ACEOF 9214if ac_fn_c_try_compile "$LINENO"; then : 9215 xorg_cv_cc_flag_unused_command_line_argument=yes 9216else 9217 xorg_cv_cc_flag_unused_command_line_argument=no 9218fi 9219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9220fi 9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9224 CFLAGS="$xorg_testset_save_CFLAGS" 9225fi 9226 9227found="no" 9228 9229 if test $found = "no" ; then 9230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9232 fi 9233 9234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9236 fi 9237 9238 CFLAGS="$CFLAGS -Wmissing-braces" 9239 9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9241$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9242 cacheid=xorg_cv_cc_flag__Wmissing_braces 9243 if eval \${$cacheid+:} false; then : 9244 $as_echo_n "(cached) " >&6 9245else 9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247/* end confdefs.h. */ 9248int i; 9249int 9250main () 9251{ 9252 9253 ; 9254 return 0; 9255} 9256_ACEOF 9257if ac_fn_c_try_link "$LINENO"; then : 9258 eval $cacheid=yes 9259else 9260 eval $cacheid=no 9261fi 9262rm -f core conftest.err conftest.$ac_objext \ 9263 conftest$ac_exeext conftest.$ac_ext 9264fi 9265 9266 9267 CFLAGS="$xorg_testset_save_CFLAGS" 9268 9269 eval supported=\$$cacheid 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9271$as_echo "$supported" >&6; } 9272 if test "$supported" = "yes" ; then 9273 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9274 found="yes" 9275 fi 9276 fi 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292xorg_testset_save_CFLAGS="$CFLAGS" 9293 9294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9299 $as_echo_n "(cached) " >&6 9300else 9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9302/* end confdefs.h. */ 9303int i; 9304_ACEOF 9305if ac_fn_c_try_compile "$LINENO"; then : 9306 xorg_cv_cc_flag_unknown_warning_option=yes 9307else 9308 xorg_cv_cc_flag_unknown_warning_option=no 9309fi 9310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9311fi 9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9315 CFLAGS="$xorg_testset_save_CFLAGS" 9316fi 9317 9318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9321 fi 9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9326 $as_echo_n "(cached) " >&6 9327else 9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329/* end confdefs.h. */ 9330int i; 9331_ACEOF 9332if ac_fn_c_try_compile "$LINENO"; then : 9333 xorg_cv_cc_flag_unused_command_line_argument=yes 9334else 9335 xorg_cv_cc_flag_unused_command_line_argument=no 9336fi 9337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9338fi 9339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9342 CFLAGS="$xorg_testset_save_CFLAGS" 9343fi 9344 9345found="no" 9346 9347 if test $found = "no" ; then 9348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9350 fi 9351 9352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9354 fi 9355 9356 CFLAGS="$CFLAGS -Wsequence-point" 9357 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9359$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9360 cacheid=xorg_cv_cc_flag__Wsequence_point 9361 if eval \${$cacheid+:} false; then : 9362 $as_echo_n "(cached) " >&6 9363else 9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9365/* end confdefs.h. */ 9366int i; 9367int 9368main () 9369{ 9370 9371 ; 9372 return 0; 9373} 9374_ACEOF 9375if ac_fn_c_try_link "$LINENO"; then : 9376 eval $cacheid=yes 9377else 9378 eval $cacheid=no 9379fi 9380rm -f core conftest.err conftest.$ac_objext \ 9381 conftest$ac_exeext conftest.$ac_ext 9382fi 9383 9384 9385 CFLAGS="$xorg_testset_save_CFLAGS" 9386 9387 eval supported=\$$cacheid 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9389$as_echo "$supported" >&6; } 9390 if test "$supported" = "yes" ; then 9391 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9392 found="yes" 9393 fi 9394 fi 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410xorg_testset_save_CFLAGS="$CFLAGS" 9411 9412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9417 $as_echo_n "(cached) " >&6 9418else 9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9420/* end confdefs.h. */ 9421int i; 9422_ACEOF 9423if ac_fn_c_try_compile "$LINENO"; then : 9424 xorg_cv_cc_flag_unknown_warning_option=yes 9425else 9426 xorg_cv_cc_flag_unknown_warning_option=no 9427fi 9428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9429fi 9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9433 CFLAGS="$xorg_testset_save_CFLAGS" 9434fi 9435 9436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9439 fi 9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9444 $as_echo_n "(cached) " >&6 9445else 9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447/* end confdefs.h. */ 9448int i; 9449_ACEOF 9450if ac_fn_c_try_compile "$LINENO"; then : 9451 xorg_cv_cc_flag_unused_command_line_argument=yes 9452else 9453 xorg_cv_cc_flag_unused_command_line_argument=no 9454fi 9455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9456fi 9457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9460 CFLAGS="$xorg_testset_save_CFLAGS" 9461fi 9462 9463found="no" 9464 9465 if test $found = "no" ; then 9466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9468 fi 9469 9470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9472 fi 9473 9474 CFLAGS="$CFLAGS -Wreturn-type" 9475 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9477$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9478 cacheid=xorg_cv_cc_flag__Wreturn_type 9479 if eval \${$cacheid+:} false; then : 9480 $as_echo_n "(cached) " >&6 9481else 9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9483/* end confdefs.h. */ 9484int i; 9485int 9486main () 9487{ 9488 9489 ; 9490 return 0; 9491} 9492_ACEOF 9493if ac_fn_c_try_link "$LINENO"; then : 9494 eval $cacheid=yes 9495else 9496 eval $cacheid=no 9497fi 9498rm -f core conftest.err conftest.$ac_objext \ 9499 conftest$ac_exeext conftest.$ac_ext 9500fi 9501 9502 9503 CFLAGS="$xorg_testset_save_CFLAGS" 9504 9505 eval supported=\$$cacheid 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9507$as_echo "$supported" >&6; } 9508 if test "$supported" = "yes" ; then 9509 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9510 found="yes" 9511 fi 9512 fi 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528xorg_testset_save_CFLAGS="$CFLAGS" 9529 9530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536else 9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538/* end confdefs.h. */ 9539int i; 9540_ACEOF 9541if ac_fn_c_try_compile "$LINENO"; then : 9542 xorg_cv_cc_flag_unknown_warning_option=yes 9543else 9544 xorg_cv_cc_flag_unknown_warning_option=no 9545fi 9546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9547fi 9548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9551 CFLAGS="$xorg_testset_save_CFLAGS" 9552fi 9553 9554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9557 fi 9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9562 $as_echo_n "(cached) " >&6 9563else 9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9565/* end confdefs.h. */ 9566int i; 9567_ACEOF 9568if ac_fn_c_try_compile "$LINENO"; then : 9569 xorg_cv_cc_flag_unused_command_line_argument=yes 9570else 9571 xorg_cv_cc_flag_unused_command_line_argument=no 9572fi 9573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9574fi 9575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9578 CFLAGS="$xorg_testset_save_CFLAGS" 9579fi 9580 9581found="no" 9582 9583 if test $found = "no" ; then 9584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9586 fi 9587 9588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9590 fi 9591 9592 CFLAGS="$CFLAGS -Wtrigraphs" 9593 9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9595$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9596 cacheid=xorg_cv_cc_flag__Wtrigraphs 9597 if eval \${$cacheid+:} false; then : 9598 $as_echo_n "(cached) " >&6 9599else 9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9601/* end confdefs.h. */ 9602int i; 9603int 9604main () 9605{ 9606 9607 ; 9608 return 0; 9609} 9610_ACEOF 9611if ac_fn_c_try_link "$LINENO"; then : 9612 eval $cacheid=yes 9613else 9614 eval $cacheid=no 9615fi 9616rm -f core conftest.err conftest.$ac_objext \ 9617 conftest$ac_exeext conftest.$ac_ext 9618fi 9619 9620 9621 CFLAGS="$xorg_testset_save_CFLAGS" 9622 9623 eval supported=\$$cacheid 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9625$as_echo "$supported" >&6; } 9626 if test "$supported" = "yes" ; then 9627 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9628 found="yes" 9629 fi 9630 fi 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646xorg_testset_save_CFLAGS="$CFLAGS" 9647 9648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9653 $as_echo_n "(cached) " >&6 9654else 9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9656/* end confdefs.h. */ 9657int i; 9658_ACEOF 9659if ac_fn_c_try_compile "$LINENO"; then : 9660 xorg_cv_cc_flag_unknown_warning_option=yes 9661else 9662 xorg_cv_cc_flag_unknown_warning_option=no 9663fi 9664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9665fi 9666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9669 CFLAGS="$xorg_testset_save_CFLAGS" 9670fi 9671 9672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9675 fi 9676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9680 $as_echo_n "(cached) " >&6 9681else 9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9683/* end confdefs.h. */ 9684int i; 9685_ACEOF 9686if ac_fn_c_try_compile "$LINENO"; then : 9687 xorg_cv_cc_flag_unused_command_line_argument=yes 9688else 9689 xorg_cv_cc_flag_unused_command_line_argument=no 9690fi 9691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9692fi 9693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9696 CFLAGS="$xorg_testset_save_CFLAGS" 9697fi 9698 9699found="no" 9700 9701 if test $found = "no" ; then 9702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9704 fi 9705 9706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9708 fi 9709 9710 CFLAGS="$CFLAGS -Warray-bounds" 9711 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9713$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9714 cacheid=xorg_cv_cc_flag__Warray_bounds 9715 if eval \${$cacheid+:} false; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719/* end confdefs.h. */ 9720int i; 9721int 9722main () 9723{ 9724 9725 ; 9726 return 0; 9727} 9728_ACEOF 9729if ac_fn_c_try_link "$LINENO"; then : 9730 eval $cacheid=yes 9731else 9732 eval $cacheid=no 9733fi 9734rm -f core conftest.err conftest.$ac_objext \ 9735 conftest$ac_exeext conftest.$ac_ext 9736fi 9737 9738 9739 CFLAGS="$xorg_testset_save_CFLAGS" 9740 9741 eval supported=\$$cacheid 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9743$as_echo "$supported" >&6; } 9744 if test "$supported" = "yes" ; then 9745 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9746 found="yes" 9747 fi 9748 fi 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764xorg_testset_save_CFLAGS="$CFLAGS" 9765 9766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9771 $as_echo_n "(cached) " >&6 9772else 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774/* end confdefs.h. */ 9775int i; 9776_ACEOF 9777if ac_fn_c_try_compile "$LINENO"; then : 9778 xorg_cv_cc_flag_unknown_warning_option=yes 9779else 9780 xorg_cv_cc_flag_unknown_warning_option=no 9781fi 9782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9783fi 9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9787 CFLAGS="$xorg_testset_save_CFLAGS" 9788fi 9789 9790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9793 fi 9794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9798 $as_echo_n "(cached) " >&6 9799else 9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9801/* end confdefs.h. */ 9802int i; 9803_ACEOF 9804if ac_fn_c_try_compile "$LINENO"; then : 9805 xorg_cv_cc_flag_unused_command_line_argument=yes 9806else 9807 xorg_cv_cc_flag_unused_command_line_argument=no 9808fi 9809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9810fi 9811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9814 CFLAGS="$xorg_testset_save_CFLAGS" 9815fi 9816 9817found="no" 9818 9819 if test $found = "no" ; then 9820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9822 fi 9823 9824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9826 fi 9827 9828 CFLAGS="$CFLAGS -Wwrite-strings" 9829 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9831$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9832 cacheid=xorg_cv_cc_flag__Wwrite_strings 9833 if eval \${$cacheid+:} false; then : 9834 $as_echo_n "(cached) " >&6 9835else 9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837/* end confdefs.h. */ 9838int i; 9839int 9840main () 9841{ 9842 9843 ; 9844 return 0; 9845} 9846_ACEOF 9847if ac_fn_c_try_link "$LINENO"; then : 9848 eval $cacheid=yes 9849else 9850 eval $cacheid=no 9851fi 9852rm -f core conftest.err conftest.$ac_objext \ 9853 conftest$ac_exeext conftest.$ac_ext 9854fi 9855 9856 9857 CFLAGS="$xorg_testset_save_CFLAGS" 9858 9859 eval supported=\$$cacheid 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9861$as_echo "$supported" >&6; } 9862 if test "$supported" = "yes" ; then 9863 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9864 found="yes" 9865 fi 9866 fi 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882xorg_testset_save_CFLAGS="$CFLAGS" 9883 9884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9889 $as_echo_n "(cached) " >&6 9890else 9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892/* end confdefs.h. */ 9893int i; 9894_ACEOF 9895if ac_fn_c_try_compile "$LINENO"; then : 9896 xorg_cv_cc_flag_unknown_warning_option=yes 9897else 9898 xorg_cv_cc_flag_unknown_warning_option=no 9899fi 9900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9901fi 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9905 CFLAGS="$xorg_testset_save_CFLAGS" 9906fi 9907 9908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9911 fi 9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9916 $as_echo_n "(cached) " >&6 9917else 9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9919/* end confdefs.h. */ 9920int i; 9921_ACEOF 9922if ac_fn_c_try_compile "$LINENO"; then : 9923 xorg_cv_cc_flag_unused_command_line_argument=yes 9924else 9925 xorg_cv_cc_flag_unused_command_line_argument=no 9926fi 9927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9928fi 9929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9932 CFLAGS="$xorg_testset_save_CFLAGS" 9933fi 9934 9935found="no" 9936 9937 if test $found = "no" ; then 9938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9940 fi 9941 9942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9944 fi 9945 9946 CFLAGS="$CFLAGS -Waddress" 9947 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9949$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9950 cacheid=xorg_cv_cc_flag__Waddress 9951 if eval \${$cacheid+:} false; then : 9952 $as_echo_n "(cached) " >&6 9953else 9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9955/* end confdefs.h. */ 9956int i; 9957int 9958main () 9959{ 9960 9961 ; 9962 return 0; 9963} 9964_ACEOF 9965if ac_fn_c_try_link "$LINENO"; then : 9966 eval $cacheid=yes 9967else 9968 eval $cacheid=no 9969fi 9970rm -f core conftest.err conftest.$ac_objext \ 9971 conftest$ac_exeext conftest.$ac_ext 9972fi 9973 9974 9975 CFLAGS="$xorg_testset_save_CFLAGS" 9976 9977 eval supported=\$$cacheid 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9979$as_echo "$supported" >&6; } 9980 if test "$supported" = "yes" ; then 9981 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9982 found="yes" 9983 fi 9984 fi 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000xorg_testset_save_CFLAGS="$CFLAGS" 10001 10002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10007 $as_echo_n "(cached) " >&6 10008else 10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10010/* end confdefs.h. */ 10011int i; 10012_ACEOF 10013if ac_fn_c_try_compile "$LINENO"; then : 10014 xorg_cv_cc_flag_unknown_warning_option=yes 10015else 10016 xorg_cv_cc_flag_unknown_warning_option=no 10017fi 10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10019fi 10020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10023 CFLAGS="$xorg_testset_save_CFLAGS" 10024fi 10025 10026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10029 fi 10030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10034 $as_echo_n "(cached) " >&6 10035else 10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10037/* end confdefs.h. */ 10038int i; 10039_ACEOF 10040if ac_fn_c_try_compile "$LINENO"; then : 10041 xorg_cv_cc_flag_unused_command_line_argument=yes 10042else 10043 xorg_cv_cc_flag_unused_command_line_argument=no 10044fi 10045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10046fi 10047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10050 CFLAGS="$xorg_testset_save_CFLAGS" 10051fi 10052 10053found="no" 10054 10055 if test $found = "no" ; then 10056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10058 fi 10059 10060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10062 fi 10063 10064 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10065 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10067$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10068 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10069 if eval \${$cacheid+:} false; then : 10070 $as_echo_n "(cached) " >&6 10071else 10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10073/* end confdefs.h. */ 10074int i; 10075int 10076main () 10077{ 10078 10079 ; 10080 return 0; 10081} 10082_ACEOF 10083if ac_fn_c_try_link "$LINENO"; then : 10084 eval $cacheid=yes 10085else 10086 eval $cacheid=no 10087fi 10088rm -f core conftest.err conftest.$ac_objext \ 10089 conftest$ac_exeext conftest.$ac_ext 10090fi 10091 10092 10093 CFLAGS="$xorg_testset_save_CFLAGS" 10094 10095 eval supported=\$$cacheid 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10097$as_echo "$supported" >&6; } 10098 if test "$supported" = "yes" ; then 10099 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10100 found="yes" 10101 fi 10102 fi 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118xorg_testset_save_CFLAGS="$CFLAGS" 10119 10120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10125 $as_echo_n "(cached) " >&6 10126else 10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10128/* end confdefs.h. */ 10129int i; 10130_ACEOF 10131if ac_fn_c_try_compile "$LINENO"; then : 10132 xorg_cv_cc_flag_unknown_warning_option=yes 10133else 10134 xorg_cv_cc_flag_unknown_warning_option=no 10135fi 10136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10137fi 10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10141 CFLAGS="$xorg_testset_save_CFLAGS" 10142fi 10143 10144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10147 fi 10148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10152 $as_echo_n "(cached) " >&6 10153else 10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10155/* end confdefs.h. */ 10156int i; 10157_ACEOF 10158if ac_fn_c_try_compile "$LINENO"; then : 10159 xorg_cv_cc_flag_unused_command_line_argument=yes 10160else 10161 xorg_cv_cc_flag_unused_command_line_argument=no 10162fi 10163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10164fi 10165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10168 CFLAGS="$xorg_testset_save_CFLAGS" 10169fi 10170 10171found="no" 10172 10173 if test $found = "no" ; then 10174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10176 fi 10177 10178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10180 fi 10181 10182 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10183 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10185$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10186 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10187 if eval \${$cacheid+:} false; then : 10188 $as_echo_n "(cached) " >&6 10189else 10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10191/* end confdefs.h. */ 10192int i; 10193int 10194main () 10195{ 10196 10197 ; 10198 return 0; 10199} 10200_ACEOF 10201if ac_fn_c_try_link "$LINENO"; then : 10202 eval $cacheid=yes 10203else 10204 eval $cacheid=no 10205fi 10206rm -f core conftest.err conftest.$ac_objext \ 10207 conftest$ac_exeext conftest.$ac_ext 10208fi 10209 10210 10211 CFLAGS="$xorg_testset_save_CFLAGS" 10212 10213 eval supported=\$$cacheid 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10215$as_echo "$supported" >&6; } 10216 if test "$supported" = "yes" ; then 10217 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10218 found="yes" 10219 fi 10220 fi 10221 10222 10223fi 10224 10225 10226 10227 10228 10229 10230 10231 CWARNFLAGS="$BASE_CFLAGS" 10232 if test "x$GCC" = xyes ; then 10233 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10234 fi 10235 10236 10237 10238 10239 10240 10241 10242 10243# Check whether --enable-strict-compilation was given. 10244if test "${enable_strict_compilation+set}" = set; then : 10245 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10246else 10247 STRICT_COMPILE=no 10248fi 10249 10250 10251 10252 10253 10254 10255STRICT_CFLAGS="" 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269xorg_testset_save_CFLAGS="$CFLAGS" 10270 10271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10276 $as_echo_n "(cached) " >&6 10277else 10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279/* end confdefs.h. */ 10280int i; 10281_ACEOF 10282if ac_fn_c_try_compile "$LINENO"; then : 10283 xorg_cv_cc_flag_unknown_warning_option=yes 10284else 10285 xorg_cv_cc_flag_unknown_warning_option=no 10286fi 10287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10288fi 10289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10292 CFLAGS="$xorg_testset_save_CFLAGS" 10293fi 10294 10295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10298 fi 10299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10303 $as_echo_n "(cached) " >&6 10304else 10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10306/* end confdefs.h. */ 10307int i; 10308_ACEOF 10309if ac_fn_c_try_compile "$LINENO"; then : 10310 xorg_cv_cc_flag_unused_command_line_argument=yes 10311else 10312 xorg_cv_cc_flag_unused_command_line_argument=no 10313fi 10314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10315fi 10316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10319 CFLAGS="$xorg_testset_save_CFLAGS" 10320fi 10321 10322found="no" 10323 10324 if test $found = "no" ; then 10325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10327 fi 10328 10329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10331 fi 10332 10333 CFLAGS="$CFLAGS -pedantic" 10334 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10336$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10337 cacheid=xorg_cv_cc_flag__pedantic 10338 if eval \${$cacheid+:} false; then : 10339 $as_echo_n "(cached) " >&6 10340else 10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10342/* end confdefs.h. */ 10343int i; 10344int 10345main () 10346{ 10347 10348 ; 10349 return 0; 10350} 10351_ACEOF 10352if ac_fn_c_try_link "$LINENO"; then : 10353 eval $cacheid=yes 10354else 10355 eval $cacheid=no 10356fi 10357rm -f core conftest.err conftest.$ac_objext \ 10358 conftest$ac_exeext conftest.$ac_ext 10359fi 10360 10361 10362 CFLAGS="$xorg_testset_save_CFLAGS" 10363 10364 eval supported=\$$cacheid 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10366$as_echo "$supported" >&6; } 10367 if test "$supported" = "yes" ; then 10368 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10369 found="yes" 10370 fi 10371 fi 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387xorg_testset_save_CFLAGS="$CFLAGS" 10388 10389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10394 $as_echo_n "(cached) " >&6 10395else 10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10397/* end confdefs.h. */ 10398int i; 10399_ACEOF 10400if ac_fn_c_try_compile "$LINENO"; then : 10401 xorg_cv_cc_flag_unknown_warning_option=yes 10402else 10403 xorg_cv_cc_flag_unknown_warning_option=no 10404fi 10405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10406fi 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10410 CFLAGS="$xorg_testset_save_CFLAGS" 10411fi 10412 10413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10416 fi 10417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10421 $as_echo_n "(cached) " >&6 10422else 10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10424/* end confdefs.h. */ 10425int i; 10426_ACEOF 10427if ac_fn_c_try_compile "$LINENO"; then : 10428 xorg_cv_cc_flag_unused_command_line_argument=yes 10429else 10430 xorg_cv_cc_flag_unused_command_line_argument=no 10431fi 10432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10433fi 10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10437 CFLAGS="$xorg_testset_save_CFLAGS" 10438fi 10439 10440found="no" 10441 10442 if test $found = "no" ; then 10443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10445 fi 10446 10447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10449 fi 10450 10451 CFLAGS="$CFLAGS -Werror" 10452 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10454$as_echo_n "checking if $CC supports -Werror... " >&6; } 10455 cacheid=xorg_cv_cc_flag__Werror 10456 if eval \${$cacheid+:} false; then : 10457 $as_echo_n "(cached) " >&6 10458else 10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460/* end confdefs.h. */ 10461int i; 10462int 10463main () 10464{ 10465 10466 ; 10467 return 0; 10468} 10469_ACEOF 10470if ac_fn_c_try_link "$LINENO"; then : 10471 eval $cacheid=yes 10472else 10473 eval $cacheid=no 10474fi 10475rm -f core conftest.err conftest.$ac_objext \ 10476 conftest$ac_exeext conftest.$ac_ext 10477fi 10478 10479 10480 CFLAGS="$xorg_testset_save_CFLAGS" 10481 10482 eval supported=\$$cacheid 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10484$as_echo "$supported" >&6; } 10485 if test "$supported" = "yes" ; then 10486 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10487 found="yes" 10488 fi 10489 fi 10490 10491 if test $found = "no" ; then 10492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10494 fi 10495 10496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10498 fi 10499 10500 CFLAGS="$CFLAGS -errwarn" 10501 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10503$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10504 cacheid=xorg_cv_cc_flag__errwarn 10505 if eval \${$cacheid+:} false; then : 10506 $as_echo_n "(cached) " >&6 10507else 10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10509/* end confdefs.h. */ 10510int i; 10511int 10512main () 10513{ 10514 10515 ; 10516 return 0; 10517} 10518_ACEOF 10519if ac_fn_c_try_link "$LINENO"; then : 10520 eval $cacheid=yes 10521else 10522 eval $cacheid=no 10523fi 10524rm -f core conftest.err conftest.$ac_objext \ 10525 conftest$ac_exeext conftest.$ac_ext 10526fi 10527 10528 10529 CFLAGS="$xorg_testset_save_CFLAGS" 10530 10531 eval supported=\$$cacheid 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10533$as_echo "$supported" >&6; } 10534 if test "$supported" = "yes" ; then 10535 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10536 found="yes" 10537 fi 10538 fi 10539 10540 10541 10542# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10543# activate it with -Werror, so we add it here explicitly. 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557xorg_testset_save_CFLAGS="$CFLAGS" 10558 10559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10564 $as_echo_n "(cached) " >&6 10565else 10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10567/* end confdefs.h. */ 10568int i; 10569_ACEOF 10570if ac_fn_c_try_compile "$LINENO"; then : 10571 xorg_cv_cc_flag_unknown_warning_option=yes 10572else 10573 xorg_cv_cc_flag_unknown_warning_option=no 10574fi 10575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10576fi 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10580 CFLAGS="$xorg_testset_save_CFLAGS" 10581fi 10582 10583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10586 fi 10587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10591 $as_echo_n "(cached) " >&6 10592else 10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10594/* end confdefs.h. */ 10595int i; 10596_ACEOF 10597if ac_fn_c_try_compile "$LINENO"; then : 10598 xorg_cv_cc_flag_unused_command_line_argument=yes 10599else 10600 xorg_cv_cc_flag_unused_command_line_argument=no 10601fi 10602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10603fi 10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10607 CFLAGS="$xorg_testset_save_CFLAGS" 10608fi 10609 10610found="no" 10611 10612 if test $found = "no" ; then 10613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10615 fi 10616 10617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10619 fi 10620 10621 CFLAGS="$CFLAGS -Werror=attributes" 10622 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10624$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10625 cacheid=xorg_cv_cc_flag__Werror_attributes 10626 if eval \${$cacheid+:} false; then : 10627 $as_echo_n "(cached) " >&6 10628else 10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10630/* end confdefs.h. */ 10631int i; 10632int 10633main () 10634{ 10635 10636 ; 10637 return 0; 10638} 10639_ACEOF 10640if ac_fn_c_try_link "$LINENO"; then : 10641 eval $cacheid=yes 10642else 10643 eval $cacheid=no 10644fi 10645rm -f core conftest.err conftest.$ac_objext \ 10646 conftest$ac_exeext conftest.$ac_ext 10647fi 10648 10649 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651 10652 eval supported=\$$cacheid 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10654$as_echo "$supported" >&6; } 10655 if test "$supported" = "yes" ; then 10656 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10657 found="yes" 10658 fi 10659 fi 10660 10661 10662 10663if test "x$STRICT_COMPILE" = "xyes"; then 10664 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10665 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10666fi 10667 10668 10669 10670 10671 10672 10673cat >>confdefs.h <<_ACEOF 10674#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10675_ACEOF 10676 10677 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10678 if test "x$PVM" = "x"; then 10679 PVM="0" 10680 fi 10681 10682cat >>confdefs.h <<_ACEOF 10683#define PACKAGE_VERSION_MINOR $PVM 10684_ACEOF 10685 10686 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10687 if test "x$PVP" = "x"; then 10688 PVP="0" 10689 fi 10690 10691cat >>confdefs.h <<_ACEOF 10692#define PACKAGE_VERSION_PATCHLEVEL $PVP 10693_ACEOF 10694 10695 10696 10697CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10698mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10699|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10700echo 'git directory not found: installing possibly empty changelog.' >&2)" 10701 10702 10703 10704 10705macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10706INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10707mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10708|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10709echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10710 10711 10712 10713 10714 10715 10716if test x$APP_MAN_SUFFIX = x ; then 10717 APP_MAN_SUFFIX=1 10718fi 10719if test x$APP_MAN_DIR = x ; then 10720 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10721fi 10722 10723if test x$LIB_MAN_SUFFIX = x ; then 10724 LIB_MAN_SUFFIX=3 10725fi 10726if test x$LIB_MAN_DIR = x ; then 10727 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10728fi 10729 10730if test x$FILE_MAN_SUFFIX = x ; then 10731 case $host_os in 10732 # Solaris 2.0 - 11 use SysV man page sections 10733 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10734 *) FILE_MAN_SUFFIX=5 ;; 10735 esac 10736fi 10737if test x$FILE_MAN_DIR = x ; then 10738 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10739fi 10740 10741if test x$MISC_MAN_SUFFIX = x ; then 10742 case $host_os in 10743 # Solaris 2.0 - 11 use SysV man page sections 10744 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10745 *) MISC_MAN_SUFFIX=7 ;; 10746 esac 10747fi 10748if test x$MISC_MAN_DIR = x ; then 10749 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10750fi 10751 10752if test x$DRIVER_MAN_SUFFIX = x ; then 10753 case $host_os in 10754 # Solaris 2.0 - 11 use SysV man page sections 10755 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10756 *) DRIVER_MAN_SUFFIX=4 ;; 10757 esac 10758fi 10759if test x$DRIVER_MAN_DIR = x ; then 10760 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10761fi 10762 10763if test x$ADMIN_MAN_SUFFIX = x ; then 10764 case $host_os in 10765 # Solaris 2.0 - 11 use SysV man page sections 10766 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10767 *) ADMIN_MAN_SUFFIX=8 ;; 10768 esac 10769fi 10770if test x$ADMIN_MAN_DIR = x ; then 10771 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10772fi 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788XORG_MAN_PAGE="X Version 11" 10789 10790MAN_SUBSTS="\ 10791 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10792 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10793 -e 's|__xservername__|Xorg|g' \ 10794 -e 's|__xconfigfile__|xorg.conf|g' \ 10795 -e 's|__projectroot__|\$(prefix)|g' \ 10796 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10797 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10798 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10799 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10800 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10801 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10802 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10803 10804 10805 10806# Check whether --enable-silent-rules was given. 10807if test "${enable_silent_rules+set}" = set; then : 10808 enableval=$enable_silent_rules; 10809fi 10810 10811case $enable_silent_rules in # ((( 10812 yes) AM_DEFAULT_VERBOSITY=0;; 10813 no) AM_DEFAULT_VERBOSITY=1;; 10814 *) AM_DEFAULT_VERBOSITY=0;; 10815esac 10816am_make=${MAKE-make} 10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10818$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10819if ${am_cv_make_support_nested_variables+:} false; then : 10820 $as_echo_n "(cached) " >&6 10821else 10822 if $as_echo 'TRUE=$(BAR$(V)) 10823BAR0=false 10824BAR1=true 10825V=1 10826am__doit: 10827 @$(TRUE) 10828.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10829 am_cv_make_support_nested_variables=yes 10830else 10831 am_cv_make_support_nested_variables=no 10832fi 10833fi 10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10835$as_echo "$am_cv_make_support_nested_variables" >&6; } 10836if test $am_cv_make_support_nested_variables = yes; then 10837 AM_V='$(V)' 10838 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10839else 10840 AM_V=$AM_DEFAULT_VERBOSITY 10841 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10842fi 10843AM_BACKSLASH='\' 10844 10845 10846 10847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 10848$as_echo_n "checking for gzopen in -lz... " >&6; } 10849if ${ac_cv_lib_z_gzopen+:} false; then : 10850 $as_echo_n "(cached) " >&6 10851else 10852 ac_check_lib_save_LIBS=$LIBS 10853LIBS="-lz $LIBS" 10854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10855/* end confdefs.h. */ 10856 10857/* Override any GCC internal prototype to avoid an error. 10858 Use char because int might match the return type of a GCC 10859 builtin and then its argument prototype would still apply. */ 10860#ifdef __cplusplus 10861extern "C" 10862#endif 10863char gzopen (); 10864int 10865main () 10866{ 10867return gzopen (); 10868 ; 10869 return 0; 10870} 10871_ACEOF 10872if ac_fn_c_try_link "$LINENO"; then : 10873 ac_cv_lib_z_gzopen=yes 10874else 10875 ac_cv_lib_z_gzopen=no 10876fi 10877rm -f core conftest.err conftest.$ac_objext \ 10878 conftest$ac_exeext conftest.$ac_ext 10879LIBS=$ac_check_lib_save_LIBS 10880fi 10881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 10882$as_echo "$ac_cv_lib_z_gzopen" >&6; } 10883if test "x$ac_cv_lib_z_gzopen" = xyes; then : 10884 cat >>confdefs.h <<_ACEOF 10885#define HAVE_LIBZ 1 10886_ACEOF 10887 10888 LIBS="-lz $LIBS" 10889 10890else 10891 as_fn_error $? "zlib is required, but was not found." "$LINENO" 5 10892fi 10893 10894 10895 10896# Check whether --with-bzip2 was given. 10897if test "${with_bzip2+set}" = set; then : 10898 withval=$with_bzip2; 10899else 10900 with_bzip2=no 10901fi 10902 10903if test "x$with_bzip2" = xyes; then 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5 10905$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; } 10906if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then : 10907 $as_echo_n "(cached) " >&6 10908else 10909 ac_check_lib_save_LIBS=$LIBS 10910LIBS="-lbz2 $LIBS" 10911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10912/* end confdefs.h. */ 10913 10914/* Override any GCC internal prototype to avoid an error. 10915 Use char because int might match the return type of a GCC 10916 builtin and then its argument prototype would still apply. */ 10917#ifdef __cplusplus 10918extern "C" 10919#endif 10920char BZ2_bzopen (); 10921int 10922main () 10923{ 10924return BZ2_bzopen (); 10925 ; 10926 return 0; 10927} 10928_ACEOF 10929if ac_fn_c_try_link "$LINENO"; then : 10930 ac_cv_lib_bz2_BZ2_bzopen=yes 10931else 10932 ac_cv_lib_bz2_BZ2_bzopen=no 10933fi 10934rm -f core conftest.err conftest.$ac_objext \ 10935 conftest$ac_exeext conftest.$ac_ext 10936LIBS=$ac_check_lib_save_LIBS 10937fi 10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 10939$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; } 10940if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then : 10941 cat >>confdefs.h <<_ACEOF 10942#define HAVE_LIBBZ2 1 10943_ACEOF 10944 10945 LIBS="-lbz2 $LIBS" 10946 10947else 10948 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 10949fi 10950 10951 10952$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h 10953 10954fi 10955 10956# Checks for system functions / libraries 10957for ac_func in vasprintf 10958do : 10959 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 10960if test "x$ac_cv_func_vasprintf" = xyes; then : 10961 cat >>confdefs.h <<_ACEOF 10962#define HAVE_VASPRINTF 1 10963_ACEOF 10964 10965fi 10966done 10967 10968 10969# Checks for pkg-config packages 10970 10971pkg_failed=no 10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5 10973$as_echo_n "checking for MKFONTSCALE... " >&6; } 10974 10975if test -n "$MKFONTSCALE_CFLAGS"; then 10976 pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS" 10977 elif test -n "$PKG_CONFIG"; then 10978 if test -n "$PKG_CONFIG" && \ 10979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5 10980 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5 10981 ac_status=$? 10982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10983 test $ac_status = 0; }; then 10984 pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null` 10985 test "x$?" != "x0" && pkg_failed=yes 10986else 10987 pkg_failed=yes 10988fi 10989 else 10990 pkg_failed=untried 10991fi 10992if test -n "$MKFONTSCALE_LIBS"; then 10993 pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS" 10994 elif test -n "$PKG_CONFIG"; then 10995 if test -n "$PKG_CONFIG" && \ 10996 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5 10997 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5 10998 ac_status=$? 10999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11000 test $ac_status = 0; }; then 11001 pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null` 11002 test "x$?" != "x0" && pkg_failed=yes 11003else 11004 pkg_failed=yes 11005fi 11006 else 11007 pkg_failed=untried 11008fi 11009 11010 11011 11012if test $pkg_failed = yes; then 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11014$as_echo "no" >&6; } 11015 11016if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11017 _pkg_short_errors_supported=yes 11018else 11019 _pkg_short_errors_supported=no 11020fi 11021 if test $_pkg_short_errors_supported = yes; then 11022 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontenc freetype2" 2>&1` 11023 else 11024 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontenc freetype2" 2>&1` 11025 fi 11026 # Put the nasty error message in config.log where it belongs 11027 echo "$MKFONTSCALE_PKG_ERRORS" >&5 11028 11029 as_fn_error $? "Package requirements (fontenc freetype2) were not met: 11030 11031$MKFONTSCALE_PKG_ERRORS 11032 11033Consider adjusting the PKG_CONFIG_PATH environment variable if you 11034installed software in a non-standard prefix. 11035 11036Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS 11037and MKFONTSCALE_LIBS to avoid the need to call pkg-config. 11038See the pkg-config man page for more details." "$LINENO" 5 11039elif test $pkg_failed = untried; then 11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11041$as_echo "no" >&6; } 11042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11044as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11045is in your PATH or set the PKG_CONFIG environment variable to the full 11046path to pkg-config. 11047 11048Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS 11049and MKFONTSCALE_LIBS to avoid the need to call pkg-config. 11050See the pkg-config man page for more details. 11051 11052To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11053See \`config.log' for more details" "$LINENO" 5; } 11054else 11055 MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS 11056 MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11058$as_echo "yes" >&6; } 11059 11060fi 11061 11062pkg_failed=no 11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 11064$as_echo_n "checking for X11... " >&6; } 11065 11066if test -n "$X11_CFLAGS"; then 11067 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 11068 elif test -n "$PKG_CONFIG"; then 11069 if test -n "$PKG_CONFIG" && \ 11070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 11071 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 11072 ac_status=$? 11073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11074 test $ac_status = 0; }; then 11075 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null` 11076 test "x$?" != "x0" && pkg_failed=yes 11077else 11078 pkg_failed=yes 11079fi 11080 else 11081 pkg_failed=untried 11082fi 11083if test -n "$X11_LIBS"; then 11084 pkg_cv_X11_LIBS="$X11_LIBS" 11085 elif test -n "$PKG_CONFIG"; then 11086 if test -n "$PKG_CONFIG" && \ 11087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 11088 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 11089 ac_status=$? 11090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11091 test $ac_status = 0; }; then 11092 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null` 11093 test "x$?" != "x0" && pkg_failed=yes 11094else 11095 pkg_failed=yes 11096fi 11097 else 11098 pkg_failed=untried 11099fi 11100 11101 11102 11103if test $pkg_failed = yes; then 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11105$as_echo "no" >&6; } 11106 11107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11108 _pkg_short_errors_supported=yes 11109else 11110 _pkg_short_errors_supported=no 11111fi 11112 if test $_pkg_short_errors_supported = yes; then 11113 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 11114 else 11115 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 11116 fi 11117 # Put the nasty error message in config.log where it belongs 11118 echo "$X11_PKG_ERRORS" >&5 11119 11120 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met: 11121 11122$X11_PKG_ERRORS 11123 11124Consider adjusting the PKG_CONFIG_PATH environment variable if you 11125installed software in a non-standard prefix. 11126 11127Alternatively, you may set the environment variables X11_CFLAGS 11128and X11_LIBS to avoid the need to call pkg-config. 11129See the pkg-config man page for more details." "$LINENO" 5 11130elif test $pkg_failed = untried; then 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11132$as_echo "no" >&6; } 11133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11135as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11136is in your PATH or set the PKG_CONFIG environment variable to the full 11137path to pkg-config. 11138 11139Alternatively, you may set the environment variables X11_CFLAGS 11140and X11_LIBS to avoid the need to call pkg-config. 11141See the pkg-config man page for more details. 11142 11143To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11144See \`config.log' for more details" "$LINENO" 5; } 11145else 11146 X11_CFLAGS=$pkg_cv_X11_CFLAGS 11147 X11_LIBS=$pkg_cv_X11_LIBS 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11149$as_echo "yes" >&6; } 11150 11151fi 11152 11153 11154 11155 11156 11157 11158# Check whether --with-lint was given. 11159if test "${with_lint+set}" = set; then : 11160 withval=$with_lint; use_lint=$withval 11161else 11162 use_lint=no 11163fi 11164 11165 11166# Obtain platform specific info like program name and options 11167# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11168case $host_os in 11169 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11170 lint_name=splint 11171 lint_options="-badflag" 11172 ;; 11173 *freebsd* | *netbsd*) 11174 lint_name=lint 11175 lint_options="-u -b" 11176 ;; 11177 *solaris*) 11178 lint_name=lint 11179 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11180 ;; 11181esac 11182 11183# Test for the presence of the program (either guessed by the code or spelled out by the user) 11184if test "x$use_lint" = x"yes" ; then 11185 # Extract the first word of "$lint_name", so it can be a program name with args. 11186set dummy $lint_name; ac_word=$2 11187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11188$as_echo_n "checking for $ac_word... " >&6; } 11189if ${ac_cv_path_LINT+:} false; then : 11190 $as_echo_n "(cached) " >&6 11191else 11192 case $LINT in 11193 [\\/]* | ?:[\\/]*) 11194 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11195 ;; 11196 *) 11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11198for as_dir in $PATH 11199do 11200 IFS=$as_save_IFS 11201 test -z "$as_dir" && as_dir=. 11202 for ac_exec_ext in '' $ac_executable_extensions; do 11203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11204 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11206 break 2 11207 fi 11208done 11209 done 11210IFS=$as_save_IFS 11211 11212 ;; 11213esac 11214fi 11215LINT=$ac_cv_path_LINT 11216if test -n "$LINT"; then 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11218$as_echo "$LINT" >&6; } 11219else 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11221$as_echo "no" >&6; } 11222fi 11223 11224 11225 if test "x$LINT" = "x"; then 11226 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11227 fi 11228elif test "x$use_lint" = x"no" ; then 11229 if test "x$LINT" != "x"; then 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11231$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11232 fi 11233else 11234 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11235fi 11236 11237# User supplied flags override default flags 11238if test "x$LINT_FLAGS" != "x"; then 11239 lint_options=$LINT_FLAGS 11240fi 11241 11242LINT_FLAGS=$lint_options 11243 11244 if test "x$LINT" != x; then 11245 LINT_TRUE= 11246 LINT_FALSE='#' 11247else 11248 LINT_TRUE='#' 11249 LINT_FALSE= 11250fi 11251 11252 11253 11254 11255ac_config_files="$ac_config_files Makefile mkfontdir man/Makefile" 11256 11257cat >confcache <<\_ACEOF 11258# This file is a shell script that caches the results of configure 11259# tests run on this system so they can be shared between configure 11260# scripts and configure runs, see configure's option --config-cache. 11261# It is not useful on other systems. If it contains results you don't 11262# want to keep, you may remove or edit it. 11263# 11264# config.status only pays attention to the cache file if you give it 11265# the --recheck option to rerun configure. 11266# 11267# `ac_cv_env_foo' variables (set or unset) will be overridden when 11268# loading this file, other *unset* `ac_cv_foo' will be assigned the 11269# following values. 11270 11271_ACEOF 11272 11273# The following way of writing the cache mishandles newlines in values, 11274# but we know of no workaround that is simple, portable, and efficient. 11275# So, we kill variables containing newlines. 11276# Ultrix sh set writes to stderr and can't be redirected directly, 11277# and sets the high bit in the cache file unless we assign to the vars. 11278( 11279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11280 eval ac_val=\$$ac_var 11281 case $ac_val in #( 11282 *${as_nl}*) 11283 case $ac_var in #( 11284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11285$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11286 esac 11287 case $ac_var in #( 11288 _ | IFS | as_nl) ;; #( 11289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11290 *) { eval $ac_var=; unset $ac_var;} ;; 11291 esac ;; 11292 esac 11293 done 11294 11295 (set) 2>&1 | 11296 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11297 *${as_nl}ac_space=\ *) 11298 # `set' does not quote correctly, so add quotes: double-quote 11299 # substitution turns \\\\ into \\, and sed turns \\ into \. 11300 sed -n \ 11301 "s/'/'\\\\''/g; 11302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11303 ;; #( 11304 *) 11305 # `set' quotes correctly as required by POSIX, so do not add quotes. 11306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11307 ;; 11308 esac | 11309 sort 11310) | 11311 sed ' 11312 /^ac_cv_env_/b end 11313 t clear 11314 :clear 11315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11316 t end 11317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11318 :end' >>confcache 11319if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11320 if test -w "$cache_file"; then 11321 if test "x$cache_file" != "x/dev/null"; then 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11323$as_echo "$as_me: updating cache $cache_file" >&6;} 11324 if test ! -f "$cache_file" || test -h "$cache_file"; then 11325 cat confcache >"$cache_file" 11326 else 11327 case $cache_file in #( 11328 */* | ?:*) 11329 mv -f confcache "$cache_file"$$ && 11330 mv -f "$cache_file"$$ "$cache_file" ;; #( 11331 *) 11332 mv -f confcache "$cache_file" ;; 11333 esac 11334 fi 11335 fi 11336 else 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11338$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11339 fi 11340fi 11341rm -f confcache 11342 11343test "x$prefix" = xNONE && prefix=$ac_default_prefix 11344# Let make expand exec_prefix. 11345test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11346 11347DEFS=-DHAVE_CONFIG_H 11348 11349ac_libobjs= 11350ac_ltlibobjs= 11351U= 11352for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11353 # 1. Remove the extension, and $U if already installed. 11354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11355 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11357 # will be set to the directory where LIBOBJS objects are built. 11358 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11359 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11360done 11361LIBOBJS=$ac_libobjs 11362 11363LTLIBOBJS=$ac_ltlibobjs 11364 11365 11366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11367$as_echo_n "checking that generated files are newer than configure... " >&6; } 11368 if test -n "$am_sleep_pid"; then 11369 # Hide warnings about reused PIDs. 11370 wait $am_sleep_pid 2>/dev/null 11371 fi 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11373$as_echo "done" >&6; } 11374if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11375 as_fn_error $? "conditional \"AMDEP\" was never defined. 11376Usually this means the macro was only invoked conditionally." "$LINENO" 5 11377fi 11378if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11379 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11380Usually this means the macro was only invoked conditionally." "$LINENO" 5 11381fi 11382 if test -n "$EXEEXT"; then 11383 am__EXEEXT_TRUE= 11384 am__EXEEXT_FALSE='#' 11385else 11386 am__EXEEXT_TRUE='#' 11387 am__EXEEXT_FALSE= 11388fi 11389 11390if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11391 as_fn_error $? "conditional \"LINT\" was never defined. 11392Usually this means the macro was only invoked conditionally." "$LINENO" 5 11393fi 11394 11395: "${CONFIG_STATUS=./config.status}" 11396ac_write_fail=0 11397ac_clean_files_save=$ac_clean_files 11398ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11399{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11400$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11401as_write_fail=0 11402cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11403#! $SHELL 11404# Generated by $as_me. 11405# Run this file to recreate the current configuration. 11406# Compiler output produced by configure, useful for debugging 11407# configure, is in config.log if it exists. 11408 11409debug=false 11410ac_cs_recheck=false 11411ac_cs_silent=false 11412 11413SHELL=\${CONFIG_SHELL-$SHELL} 11414export SHELL 11415_ASEOF 11416cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11417## -------------------- ## 11418## M4sh Initialization. ## 11419## -------------------- ## 11420 11421# Be more Bourne compatible 11422DUALCASE=1; export DUALCASE # for MKS sh 11423if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11424 emulate sh 11425 NULLCMD=: 11426 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11427 # is contrary to our usage. Disable this feature. 11428 alias -g '${1+"$@"}'='"$@"' 11429 setopt NO_GLOB_SUBST 11430else 11431 case `(set -o) 2>/dev/null` in #( 11432 *posix*) : 11433 set -o posix ;; #( 11434 *) : 11435 ;; 11436esac 11437fi 11438 11439 11440as_nl=' 11441' 11442export as_nl 11443# Printing a long string crashes Solaris 7 /usr/bin/printf. 11444as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11445as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11446as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11447# Prefer a ksh shell builtin over an external printf program on Solaris, 11448# but without wasting forks for bash or zsh. 11449if test -z "$BASH_VERSION$ZSH_VERSION" \ 11450 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11451 as_echo='print -r --' 11452 as_echo_n='print -rn --' 11453elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11454 as_echo='printf %s\n' 11455 as_echo_n='printf %s' 11456else 11457 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11458 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11459 as_echo_n='/usr/ucb/echo -n' 11460 else 11461 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11462 as_echo_n_body='eval 11463 arg=$1; 11464 case $arg in #( 11465 *"$as_nl"*) 11466 expr "X$arg" : "X\\(.*\\)$as_nl"; 11467 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11468 esac; 11469 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11470 ' 11471 export as_echo_n_body 11472 as_echo_n='sh -c $as_echo_n_body as_echo' 11473 fi 11474 export as_echo_body 11475 as_echo='sh -c $as_echo_body as_echo' 11476fi 11477 11478# The user is always right. 11479if test "${PATH_SEPARATOR+set}" != set; then 11480 PATH_SEPARATOR=: 11481 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11482 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11483 PATH_SEPARATOR=';' 11484 } 11485fi 11486 11487 11488# IFS 11489# We need space, tab and new line, in precisely that order. Quoting is 11490# there to prevent editors from complaining about space-tab. 11491# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11492# splitting by setting IFS to empty value.) 11493IFS=" "" $as_nl" 11494 11495# Find who we are. Look in the path if we contain no directory separator. 11496as_myself= 11497case $0 in #(( 11498 *[\\/]* ) as_myself=$0 ;; 11499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11500for as_dir in $PATH 11501do 11502 IFS=$as_save_IFS 11503 test -z "$as_dir" && as_dir=. 11504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11505 done 11506IFS=$as_save_IFS 11507 11508 ;; 11509esac 11510# We did not find ourselves, most probably we were run as `sh COMMAND' 11511# in which case we are not to be found in the path. 11512if test "x$as_myself" = x; then 11513 as_myself=$0 11514fi 11515if test ! -f "$as_myself"; then 11516 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11517 exit 1 11518fi 11519 11520# Unset variables that we do not need and which cause bugs (e.g. in 11521# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11522# suppresses any "Segmentation fault" message there. '((' could 11523# trigger a bug in pdksh 5.2.14. 11524for as_var in BASH_ENV ENV MAIL MAILPATH 11525do eval test x\${$as_var+set} = xset \ 11526 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11527done 11528PS1='$ ' 11529PS2='> ' 11530PS4='+ ' 11531 11532# NLS nuisances. 11533LC_ALL=C 11534export LC_ALL 11535LANGUAGE=C 11536export LANGUAGE 11537 11538# CDPATH. 11539(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11540 11541 11542# as_fn_error STATUS ERROR [LINENO LOG_FD] 11543# ---------------------------------------- 11544# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11545# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11546# script with STATUS, using 1 if that was 0. 11547as_fn_error () 11548{ 11549 as_status=$1; test $as_status -eq 0 && as_status=1 11550 if test "$4"; then 11551 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11552 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11553 fi 11554 $as_echo "$as_me: error: $2" >&2 11555 as_fn_exit $as_status 11556} # as_fn_error 11557 11558 11559# as_fn_set_status STATUS 11560# ----------------------- 11561# Set $? to STATUS, without forking. 11562as_fn_set_status () 11563{ 11564 return $1 11565} # as_fn_set_status 11566 11567# as_fn_exit STATUS 11568# ----------------- 11569# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11570as_fn_exit () 11571{ 11572 set +e 11573 as_fn_set_status $1 11574 exit $1 11575} # as_fn_exit 11576 11577# as_fn_unset VAR 11578# --------------- 11579# Portably unset VAR. 11580as_fn_unset () 11581{ 11582 { eval $1=; unset $1;} 11583} 11584as_unset=as_fn_unset 11585# as_fn_append VAR VALUE 11586# ---------------------- 11587# Append the text in VALUE to the end of the definition contained in VAR. Take 11588# advantage of any shell optimizations that allow amortized linear growth over 11589# repeated appends, instead of the typical quadratic growth present in naive 11590# implementations. 11591if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11592 eval 'as_fn_append () 11593 { 11594 eval $1+=\$2 11595 }' 11596else 11597 as_fn_append () 11598 { 11599 eval $1=\$$1\$2 11600 } 11601fi # as_fn_append 11602 11603# as_fn_arith ARG... 11604# ------------------ 11605# Perform arithmetic evaluation on the ARGs, and store the result in the 11606# global $as_val. Take advantage of shells that can avoid forks. The arguments 11607# must be portable across $(()) and expr. 11608if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11609 eval 'as_fn_arith () 11610 { 11611 as_val=$(( $* )) 11612 }' 11613else 11614 as_fn_arith () 11615 { 11616 as_val=`expr "$@" || test $? -eq 1` 11617 } 11618fi # as_fn_arith 11619 11620 11621if expr a : '\(a\)' >/dev/null 2>&1 && 11622 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11623 as_expr=expr 11624else 11625 as_expr=false 11626fi 11627 11628if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11629 as_basename=basename 11630else 11631 as_basename=false 11632fi 11633 11634if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11635 as_dirname=dirname 11636else 11637 as_dirname=false 11638fi 11639 11640as_me=`$as_basename -- "$0" || 11641$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11642 X"$0" : 'X\(//\)$' \| \ 11643 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11644$as_echo X/"$0" | 11645 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11646 s//\1/ 11647 q 11648 } 11649 /^X\/\(\/\/\)$/{ 11650 s//\1/ 11651 q 11652 } 11653 /^X\/\(\/\).*/{ 11654 s//\1/ 11655 q 11656 } 11657 s/.*/./; q'` 11658 11659# Avoid depending upon Character Ranges. 11660as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11661as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11662as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11663as_cr_digits='0123456789' 11664as_cr_alnum=$as_cr_Letters$as_cr_digits 11665 11666ECHO_C= ECHO_N= ECHO_T= 11667case `echo -n x` in #((((( 11668-n*) 11669 case `echo 'xy\c'` in 11670 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11671 xy) ECHO_C='\c';; 11672 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11673 ECHO_T=' ';; 11674 esac;; 11675*) 11676 ECHO_N='-n';; 11677esac 11678 11679rm -f conf$$ conf$$.exe conf$$.file 11680if test -d conf$$.dir; then 11681 rm -f conf$$.dir/conf$$.file 11682else 11683 rm -f conf$$.dir 11684 mkdir conf$$.dir 2>/dev/null 11685fi 11686if (echo >conf$$.file) 2>/dev/null; then 11687 if ln -s conf$$.file conf$$ 2>/dev/null; then 11688 as_ln_s='ln -s' 11689 # ... but there are two gotchas: 11690 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11691 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11692 # In both cases, we have to default to `cp -pR'. 11693 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11694 as_ln_s='cp -pR' 11695 elif ln conf$$.file conf$$ 2>/dev/null; then 11696 as_ln_s=ln 11697 else 11698 as_ln_s='cp -pR' 11699 fi 11700else 11701 as_ln_s='cp -pR' 11702fi 11703rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11704rmdir conf$$.dir 2>/dev/null 11705 11706 11707# as_fn_mkdir_p 11708# ------------- 11709# Create "$as_dir" as a directory, including parents if necessary. 11710as_fn_mkdir_p () 11711{ 11712 11713 case $as_dir in #( 11714 -*) as_dir=./$as_dir;; 11715 esac 11716 test -d "$as_dir" || eval $as_mkdir_p || { 11717 as_dirs= 11718 while :; do 11719 case $as_dir in #( 11720 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11721 *) as_qdir=$as_dir;; 11722 esac 11723 as_dirs="'$as_qdir' $as_dirs" 11724 as_dir=`$as_dirname -- "$as_dir" || 11725$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11726 X"$as_dir" : 'X\(//\)[^/]' \| \ 11727 X"$as_dir" : 'X\(//\)$' \| \ 11728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11729$as_echo X"$as_dir" | 11730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11731 s//\1/ 11732 q 11733 } 11734 /^X\(\/\/\)[^/].*/{ 11735 s//\1/ 11736 q 11737 } 11738 /^X\(\/\/\)$/{ 11739 s//\1/ 11740 q 11741 } 11742 /^X\(\/\).*/{ 11743 s//\1/ 11744 q 11745 } 11746 s/.*/./; q'` 11747 test -d "$as_dir" && break 11748 done 11749 test -z "$as_dirs" || eval "mkdir $as_dirs" 11750 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11751 11752 11753} # as_fn_mkdir_p 11754if mkdir -p . 2>/dev/null; then 11755 as_mkdir_p='mkdir -p "$as_dir"' 11756else 11757 test -d ./-p && rmdir ./-p 11758 as_mkdir_p=false 11759fi 11760 11761 11762# as_fn_executable_p FILE 11763# ----------------------- 11764# Test if FILE is an executable regular file. 11765as_fn_executable_p () 11766{ 11767 test -f "$1" && test -x "$1" 11768} # as_fn_executable_p 11769as_test_x='test -x' 11770as_executable_p=as_fn_executable_p 11771 11772# Sed expression to map a string onto a valid CPP name. 11773as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11774 11775# Sed expression to map a string onto a valid variable name. 11776as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11777 11778 11779exec 6>&1 11780## ----------------------------------- ## 11781## Main body of $CONFIG_STATUS script. ## 11782## ----------------------------------- ## 11783_ASEOF 11784test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11785 11786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11787# Save the log message, to keep $0 and so on meaningful, and to 11788# report actual input values of CONFIG_FILES etc. instead of their 11789# values after options handling. 11790ac_log=" 11791This file was extended by mkfontscale $as_me 1.2.0, which was 11792generated by GNU Autoconf 2.69. Invocation command line was 11793 11794 CONFIG_FILES = $CONFIG_FILES 11795 CONFIG_HEADERS = $CONFIG_HEADERS 11796 CONFIG_LINKS = $CONFIG_LINKS 11797 CONFIG_COMMANDS = $CONFIG_COMMANDS 11798 $ $0 $@ 11799 11800on `(hostname || uname -n) 2>/dev/null | sed 1q` 11801" 11802 11803_ACEOF 11804 11805case $ac_config_files in *" 11806"*) set x $ac_config_files; shift; ac_config_files=$*;; 11807esac 11808 11809case $ac_config_headers in *" 11810"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11811esac 11812 11813 11814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11815# Files that config.status was made for. 11816config_files="$ac_config_files" 11817config_headers="$ac_config_headers" 11818config_commands="$ac_config_commands" 11819 11820_ACEOF 11821 11822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11823ac_cs_usage="\ 11824\`$as_me' instantiates files and other configuration actions 11825from templates according to the current configuration. Unless the files 11826and actions are specified as TAGs, all are instantiated by default. 11827 11828Usage: $0 [OPTION]... [TAG]... 11829 11830 -h, --help print this help, then exit 11831 -V, --version print version number and configuration settings, then exit 11832 --config print configuration, then exit 11833 -q, --quiet, --silent 11834 do not print progress messages 11835 -d, --debug don't remove temporary files 11836 --recheck update $as_me by reconfiguring in the same conditions 11837 --file=FILE[:TEMPLATE] 11838 instantiate the configuration file FILE 11839 --header=FILE[:TEMPLATE] 11840 instantiate the configuration header FILE 11841 11842Configuration files: 11843$config_files 11844 11845Configuration headers: 11846$config_headers 11847 11848Configuration commands: 11849$config_commands 11850 11851Report bugs to <https://gitlab.freedesktop.org/xorg/app/mkfontscale/issues>." 11852 11853_ACEOF 11854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11855ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11856ac_cs_version="\\ 11857mkfontscale config.status 1.2.0 11858configured by $0, generated by GNU Autoconf 2.69, 11859 with options \\"\$ac_cs_config\\" 11860 11861Copyright (C) 2012 Free Software Foundation, Inc. 11862This config.status script is free software; the Free Software Foundation 11863gives unlimited permission to copy, distribute and modify it." 11864 11865ac_pwd='$ac_pwd' 11866srcdir='$srcdir' 11867INSTALL='$INSTALL' 11868MKDIR_P='$MKDIR_P' 11869AWK='$AWK' 11870test -n "\$AWK" || AWK=awk 11871_ACEOF 11872 11873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11874# The default lists apply if the user does not specify any file. 11875ac_need_defaults=: 11876while test $# != 0 11877do 11878 case $1 in 11879 --*=?*) 11880 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11881 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11882 ac_shift=: 11883 ;; 11884 --*=) 11885 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11886 ac_optarg= 11887 ac_shift=: 11888 ;; 11889 *) 11890 ac_option=$1 11891 ac_optarg=$2 11892 ac_shift=shift 11893 ;; 11894 esac 11895 11896 case $ac_option in 11897 # Handling of the options. 11898 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11899 ac_cs_recheck=: ;; 11900 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11901 $as_echo "$ac_cs_version"; exit ;; 11902 --config | --confi | --conf | --con | --co | --c ) 11903 $as_echo "$ac_cs_config"; exit ;; 11904 --debug | --debu | --deb | --de | --d | -d ) 11905 debug=: ;; 11906 --file | --fil | --fi | --f ) 11907 $ac_shift 11908 case $ac_optarg in 11909 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11910 '') as_fn_error $? "missing file argument" ;; 11911 esac 11912 as_fn_append CONFIG_FILES " '$ac_optarg'" 11913 ac_need_defaults=false;; 11914 --header | --heade | --head | --hea ) 11915 $ac_shift 11916 case $ac_optarg in 11917 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11918 esac 11919 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11920 ac_need_defaults=false;; 11921 --he | --h) 11922 # Conflict between --help and --header 11923 as_fn_error $? "ambiguous option: \`$1' 11924Try \`$0 --help' for more information.";; 11925 --help | --hel | -h ) 11926 $as_echo "$ac_cs_usage"; exit ;; 11927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11928 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11929 ac_cs_silent=: ;; 11930 11931 # This is an error. 11932 -*) as_fn_error $? "unrecognized option: \`$1' 11933Try \`$0 --help' for more information." ;; 11934 11935 *) as_fn_append ac_config_targets " $1" 11936 ac_need_defaults=false ;; 11937 11938 esac 11939 shift 11940done 11941 11942ac_configure_extra_args= 11943 11944if $ac_cs_silent; then 11945 exec 6>/dev/null 11946 ac_configure_extra_args="$ac_configure_extra_args --silent" 11947fi 11948 11949_ACEOF 11950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11951if \$ac_cs_recheck; then 11952 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11953 shift 11954 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11955 CONFIG_SHELL='$SHELL' 11956 export CONFIG_SHELL 11957 exec "\$@" 11958fi 11959 11960_ACEOF 11961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11962exec 5>>config.log 11963{ 11964 echo 11965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11966## Running $as_me. ## 11967_ASBOX 11968 $as_echo "$ac_log" 11969} >&5 11970 11971_ACEOF 11972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11973# 11974# INIT-COMMANDS 11975# 11976AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11977 11978_ACEOF 11979 11980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11981 11982# Handling of arguments. 11983for ac_config_target in $ac_config_targets 11984do 11985 case $ac_config_target in 11986 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11987 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11988 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11989 "mkfontdir") CONFIG_FILES="$CONFIG_FILES mkfontdir" ;; 11990 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11991 11992 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11993 esac 11994done 11995 11996 11997# If the user did not use the arguments to specify the items to instantiate, 11998# then the envvar interface is used. Set only those that are not. 11999# We use the long form for the default assignment because of an extremely 12000# bizarre bug on SunOS 4.1.3. 12001if $ac_need_defaults; then 12002 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12003 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12004 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12005fi 12006 12007# Have a temporary directory for convenience. Make it in the build tree 12008# simply because there is no reason against having it here, and in addition, 12009# creating and moving files from /tmp can sometimes cause problems. 12010# Hook for its removal unless debugging. 12011# Note that there is a small window in which the directory will not be cleaned: 12012# after its creation but before its name has been assigned to `$tmp'. 12013$debug || 12014{ 12015 tmp= ac_tmp= 12016 trap 'exit_status=$? 12017 : "${ac_tmp:=$tmp}" 12018 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12019' 0 12020 trap 'as_fn_exit 1' 1 2 13 15 12021} 12022# Create a (secure) tmp directory for tmp files. 12023 12024{ 12025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12026 test -d "$tmp" 12027} || 12028{ 12029 tmp=./conf$$-$RANDOM 12030 (umask 077 && mkdir "$tmp") 12031} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12032ac_tmp=$tmp 12033 12034# Set up the scripts for CONFIG_FILES section. 12035# No need to generate them if there are no CONFIG_FILES. 12036# This happens for instance with `./config.status config.h'. 12037if test -n "$CONFIG_FILES"; then 12038 12039 12040ac_cr=`echo X | tr X '\015'` 12041# On cygwin, bash can eat \r inside `` if the user requested igncr. 12042# But we know of no other shell where ac_cr would be empty at this 12043# point, so we can use a bashism as a fallback. 12044if test "x$ac_cr" = x; then 12045 eval ac_cr=\$\'\\r\' 12046fi 12047ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12048if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12049 ac_cs_awk_cr='\\r' 12050else 12051 ac_cs_awk_cr=$ac_cr 12052fi 12053 12054echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12055_ACEOF 12056 12057 12058{ 12059 echo "cat >conf$$subs.awk <<_ACEOF" && 12060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12061 echo "_ACEOF" 12062} >conf$$subs.sh || 12063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12064ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12065ac_delim='%!_!# ' 12066for ac_last_try in false false false false false :; do 12067 . ./conf$$subs.sh || 12068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12069 12070 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12071 if test $ac_delim_n = $ac_delim_num; then 12072 break 12073 elif $ac_last_try; then 12074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12075 else 12076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12077 fi 12078done 12079rm -f conf$$subs.sh 12080 12081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12082cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12083_ACEOF 12084sed -n ' 12085h 12086s/^/S["/; s/!.*/"]=/ 12087p 12088g 12089s/^[^!]*!// 12090:repl 12091t repl 12092s/'"$ac_delim"'$// 12093t delim 12094:nl 12095h 12096s/\(.\{148\}\)..*/\1/ 12097t more1 12098s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12099p 12100n 12101b repl 12102:more1 12103s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12104p 12105g 12106s/.\{148\}// 12107t nl 12108:delim 12109h 12110s/\(.\{148\}\)..*/\1/ 12111t more2 12112s/["\\]/\\&/g; s/^/"/; s/$/"/ 12113p 12114b 12115:more2 12116s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12117p 12118g 12119s/.\{148\}// 12120t delim 12121' <conf$$subs.awk | sed ' 12122/^[^""]/{ 12123 N 12124 s/\n// 12125} 12126' >>$CONFIG_STATUS || ac_write_fail=1 12127rm -f conf$$subs.awk 12128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12129_ACAWK 12130cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12131 for (key in S) S_is_set[key] = 1 12132 FS = "" 12133 12134} 12135{ 12136 line = $ 0 12137 nfields = split(line, field, "@") 12138 substed = 0 12139 len = length(field[1]) 12140 for (i = 2; i < nfields; i++) { 12141 key = field[i] 12142 keylen = length(key) 12143 if (S_is_set[key]) { 12144 value = S[key] 12145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12146 len += length(value) + length(field[++i]) 12147 substed = 1 12148 } else 12149 len += 1 + keylen 12150 } 12151 12152 print line 12153} 12154 12155_ACAWK 12156_ACEOF 12157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12158if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12160else 12161 cat 12162fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12163 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12164_ACEOF 12165 12166# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12167# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12168# trailing colons and then remove the whole line if VPATH becomes empty 12169# (actually we leave an empty line to preserve line numbers). 12170if test "x$srcdir" = x.; then 12171 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12172h 12173s/// 12174s/^/:/ 12175s/[ ]*$/:/ 12176s/:\$(srcdir):/:/g 12177s/:\${srcdir}:/:/g 12178s/:@srcdir@:/:/g 12179s/^:*// 12180s/:*$// 12181x 12182s/\(=[ ]*\).*/\1/ 12183G 12184s/\n// 12185s/^[^=]*=[ ]*$// 12186}' 12187fi 12188 12189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12190fi # test -n "$CONFIG_FILES" 12191 12192# Set up the scripts for CONFIG_HEADERS section. 12193# No need to generate them if there are no CONFIG_HEADERS. 12194# This happens for instance with `./config.status Makefile'. 12195if test -n "$CONFIG_HEADERS"; then 12196cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12197BEGIN { 12198_ACEOF 12199 12200# Transform confdefs.h into an awk script `defines.awk', embedded as 12201# here-document in config.status, that substitutes the proper values into 12202# config.h.in to produce config.h. 12203 12204# Create a delimiter string that does not exist in confdefs.h, to ease 12205# handling of long lines. 12206ac_delim='%!_!# ' 12207for ac_last_try in false false :; do 12208 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12209 if test -z "$ac_tt"; then 12210 break 12211 elif $ac_last_try; then 12212 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12213 else 12214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12215 fi 12216done 12217 12218# For the awk script, D is an array of macro values keyed by name, 12219# likewise P contains macro parameters if any. Preserve backslash 12220# newline sequences. 12221 12222ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12223sed -n ' 12224s/.\{148\}/&'"$ac_delim"'/g 12225t rset 12226:rset 12227s/^[ ]*#[ ]*define[ ][ ]*/ / 12228t def 12229d 12230:def 12231s/\\$// 12232t bsnl 12233s/["\\]/\\&/g 12234s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12235D["\1"]=" \3"/p 12236s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12237d 12238:bsnl 12239s/["\\]/\\&/g 12240s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12241D["\1"]=" \3\\\\\\n"\\/p 12242t cont 12243s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12244t cont 12245d 12246:cont 12247n 12248s/.\{148\}/&'"$ac_delim"'/g 12249t clear 12250:clear 12251s/\\$// 12252t bsnlc 12253s/["\\]/\\&/g; s/^/"/; s/$/"/p 12254d 12255:bsnlc 12256s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12257b cont 12258' <confdefs.h | sed ' 12259s/'"$ac_delim"'/"\\\ 12260"/g' >>$CONFIG_STATUS || ac_write_fail=1 12261 12262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12263 for (key in D) D_is_set[key] = 1 12264 FS = "" 12265} 12266/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12267 line = \$ 0 12268 split(line, arg, " ") 12269 if (arg[1] == "#") { 12270 defundef = arg[2] 12271 mac1 = arg[3] 12272 } else { 12273 defundef = substr(arg[1], 2) 12274 mac1 = arg[2] 12275 } 12276 split(mac1, mac2, "(") #) 12277 macro = mac2[1] 12278 prefix = substr(line, 1, index(line, defundef) - 1) 12279 if (D_is_set[macro]) { 12280 # Preserve the white space surrounding the "#". 12281 print prefix "define", macro P[macro] D[macro] 12282 next 12283 } else { 12284 # Replace #undef with comments. This is necessary, for example, 12285 # in the case of _POSIX_SOURCE, which is predefined and required 12286 # on some systems where configure will not decide to define it. 12287 if (defundef == "undef") { 12288 print "/*", prefix defundef, macro, "*/" 12289 next 12290 } 12291 } 12292} 12293{ print } 12294_ACAWK 12295_ACEOF 12296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12297 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12298fi # test -n "$CONFIG_HEADERS" 12299 12300 12301eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12302shift 12303for ac_tag 12304do 12305 case $ac_tag in 12306 :[FHLC]) ac_mode=$ac_tag; continue;; 12307 esac 12308 case $ac_mode$ac_tag in 12309 :[FHL]*:*);; 12310 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12311 :[FH]-) ac_tag=-:-;; 12312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12313 esac 12314 ac_save_IFS=$IFS 12315 IFS=: 12316 set x $ac_tag 12317 IFS=$ac_save_IFS 12318 shift 12319 ac_file=$1 12320 shift 12321 12322 case $ac_mode in 12323 :L) ac_source=$1;; 12324 :[FH]) 12325 ac_file_inputs= 12326 for ac_f 12327 do 12328 case $ac_f in 12329 -) ac_f="$ac_tmp/stdin";; 12330 *) # Look for the file first in the build tree, then in the source tree 12331 # (if the path is not absolute). The absolute path cannot be DOS-style, 12332 # because $ac_f cannot contain `:'. 12333 test -f "$ac_f" || 12334 case $ac_f in 12335 [\\/$]*) false;; 12336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12337 esac || 12338 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12339 esac 12340 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12341 as_fn_append ac_file_inputs " '$ac_f'" 12342 done 12343 12344 # Let's still pretend it is `configure' which instantiates (i.e., don't 12345 # use $as_me), people would be surprised to read: 12346 # /* config.h. Generated by config.status. */ 12347 configure_input='Generated from '` 12348 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12349 `' by configure.' 12350 if test x"$ac_file" != x-; then 12351 configure_input="$ac_file. $configure_input" 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12353$as_echo "$as_me: creating $ac_file" >&6;} 12354 fi 12355 # Neutralize special characters interpreted by sed in replacement strings. 12356 case $configure_input in #( 12357 *\&* | *\|* | *\\* ) 12358 ac_sed_conf_input=`$as_echo "$configure_input" | 12359 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12360 *) ac_sed_conf_input=$configure_input;; 12361 esac 12362 12363 case $ac_tag in 12364 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12366 esac 12367 ;; 12368 esac 12369 12370 ac_dir=`$as_dirname -- "$ac_file" || 12371$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12372 X"$ac_file" : 'X\(//\)[^/]' \| \ 12373 X"$ac_file" : 'X\(//\)$' \| \ 12374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12375$as_echo X"$ac_file" | 12376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12377 s//\1/ 12378 q 12379 } 12380 /^X\(\/\/\)[^/].*/{ 12381 s//\1/ 12382 q 12383 } 12384 /^X\(\/\/\)$/{ 12385 s//\1/ 12386 q 12387 } 12388 /^X\(\/\).*/{ 12389 s//\1/ 12390 q 12391 } 12392 s/.*/./; q'` 12393 as_dir="$ac_dir"; as_fn_mkdir_p 12394 ac_builddir=. 12395 12396case "$ac_dir" in 12397.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12398*) 12399 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12400 # A ".." for each directory in $ac_dir_suffix. 12401 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12402 case $ac_top_builddir_sub in 12403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12405 esac ;; 12406esac 12407ac_abs_top_builddir=$ac_pwd 12408ac_abs_builddir=$ac_pwd$ac_dir_suffix 12409# for backward compatibility: 12410ac_top_builddir=$ac_top_build_prefix 12411 12412case $srcdir in 12413 .) # We are building in place. 12414 ac_srcdir=. 12415 ac_top_srcdir=$ac_top_builddir_sub 12416 ac_abs_top_srcdir=$ac_pwd ;; 12417 [\\/]* | ?:[\\/]* ) # Absolute name. 12418 ac_srcdir=$srcdir$ac_dir_suffix; 12419 ac_top_srcdir=$srcdir 12420 ac_abs_top_srcdir=$srcdir ;; 12421 *) # Relative name. 12422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12423 ac_top_srcdir=$ac_top_build_prefix$srcdir 12424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12425esac 12426ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12427 12428 12429 case $ac_mode in 12430 :F) 12431 # 12432 # CONFIG_FILE 12433 # 12434 12435 case $INSTALL in 12436 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12437 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12438 esac 12439 ac_MKDIR_P=$MKDIR_P 12440 case $MKDIR_P in 12441 [\\/$]* | ?:[\\/]* ) ;; 12442 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12443 esac 12444_ACEOF 12445 12446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12447# If the template does not know about datarootdir, expand it. 12448# FIXME: This hack should be removed a few years after 2.60. 12449ac_datarootdir_hack=; ac_datarootdir_seen= 12450ac_sed_dataroot=' 12451/datarootdir/ { 12452 p 12453 q 12454} 12455/@datadir@/p 12456/@docdir@/p 12457/@infodir@/p 12458/@localedir@/p 12459/@mandir@/p' 12460case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12461*datarootdir*) ac_datarootdir_seen=yes;; 12462*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12464$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12465_ACEOF 12466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12467 ac_datarootdir_hack=' 12468 s&@datadir@&$datadir&g 12469 s&@docdir@&$docdir&g 12470 s&@infodir@&$infodir&g 12471 s&@localedir@&$localedir&g 12472 s&@mandir@&$mandir&g 12473 s&\\\${datarootdir}&$datarootdir&g' ;; 12474esac 12475_ACEOF 12476 12477# Neutralize VPATH when `$srcdir' = `.'. 12478# Shell code in configure.ac might set extrasub. 12479# FIXME: do we really want to maintain this feature? 12480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12481ac_sed_extra="$ac_vpsub 12482$extrasub 12483_ACEOF 12484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12485:t 12486/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12487s|@configure_input@|$ac_sed_conf_input|;t t 12488s&@top_builddir@&$ac_top_builddir_sub&;t t 12489s&@top_build_prefix@&$ac_top_build_prefix&;t t 12490s&@srcdir@&$ac_srcdir&;t t 12491s&@abs_srcdir@&$ac_abs_srcdir&;t t 12492s&@top_srcdir@&$ac_top_srcdir&;t t 12493s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12494s&@builddir@&$ac_builddir&;t t 12495s&@abs_builddir@&$ac_abs_builddir&;t t 12496s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12497s&@INSTALL@&$ac_INSTALL&;t t 12498s&@MKDIR_P@&$ac_MKDIR_P&;t t 12499$ac_datarootdir_hack 12500" 12501eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12502 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12503 12504test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12505 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12506 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12507 "$ac_tmp/out"`; test -z "$ac_out"; } && 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12509which seems to be undefined. Please make sure it is defined" >&5 12510$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12511which seems to be undefined. Please make sure it is defined" >&2;} 12512 12513 rm -f "$ac_tmp/stdin" 12514 case $ac_file in 12515 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12516 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12517 esac \ 12518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12519 ;; 12520 :H) 12521 # 12522 # CONFIG_HEADER 12523 # 12524 if test x"$ac_file" != x-; then 12525 { 12526 $as_echo "/* $configure_input */" \ 12527 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12528 } >"$ac_tmp/config.h" \ 12529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12530 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12532$as_echo "$as_me: $ac_file is unchanged" >&6;} 12533 else 12534 rm -f "$ac_file" 12535 mv "$ac_tmp/config.h" "$ac_file" \ 12536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12537 fi 12538 else 12539 $as_echo "/* $configure_input */" \ 12540 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12541 || as_fn_error $? "could not create -" "$LINENO" 5 12542 fi 12543# Compute "$ac_file"'s index in $config_headers. 12544_am_arg="$ac_file" 12545_am_stamp_count=1 12546for _am_header in $config_headers :; do 12547 case $_am_header in 12548 $_am_arg | $_am_arg:* ) 12549 break ;; 12550 * ) 12551 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12552 esac 12553done 12554echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12555$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12556 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12557 X"$_am_arg" : 'X\(//\)$' \| \ 12558 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12559$as_echo X"$_am_arg" | 12560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12561 s//\1/ 12562 q 12563 } 12564 /^X\(\/\/\)[^/].*/{ 12565 s//\1/ 12566 q 12567 } 12568 /^X\(\/\/\)$/{ 12569 s//\1/ 12570 q 12571 } 12572 /^X\(\/\).*/{ 12573 s//\1/ 12574 q 12575 } 12576 s/.*/./; q'`/stamp-h$_am_stamp_count 12577 ;; 12578 12579 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12580$as_echo "$as_me: executing $ac_file commands" >&6;} 12581 ;; 12582 esac 12583 12584 12585 case $ac_file$ac_mode in 12586 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12587 # Older Autoconf quotes --file arguments for eval, but not when files 12588 # are listed without --file. Let's play safe and only enable the eval 12589 # if we detect the quoting. 12590 case $CONFIG_FILES in 12591 *\'*) eval set x "$CONFIG_FILES" ;; 12592 *) set x $CONFIG_FILES ;; 12593 esac 12594 shift 12595 for mf 12596 do 12597 # Strip MF so we end up with the name of the file. 12598 mf=`echo "$mf" | sed -e 's/:.*$//'` 12599 # Check whether this is an Automake generated Makefile or not. 12600 # We used to match only the files named 'Makefile.in', but 12601 # some people rename them; so instead we look at the file content. 12602 # Grep'ing the first line is not enough: some people post-process 12603 # each Makefile.in and add a new line on top of each file to say so. 12604 # Grep'ing the whole file is not good either: AIX grep has a line 12605 # limit of 2048, but all sed's we know have understand at least 4000. 12606 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12607 dirpart=`$as_dirname -- "$mf" || 12608$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12609 X"$mf" : 'X\(//\)[^/]' \| \ 12610 X"$mf" : 'X\(//\)$' \| \ 12611 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12612$as_echo X"$mf" | 12613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12614 s//\1/ 12615 q 12616 } 12617 /^X\(\/\/\)[^/].*/{ 12618 s//\1/ 12619 q 12620 } 12621 /^X\(\/\/\)$/{ 12622 s//\1/ 12623 q 12624 } 12625 /^X\(\/\).*/{ 12626 s//\1/ 12627 q 12628 } 12629 s/.*/./; q'` 12630 else 12631 continue 12632 fi 12633 # Extract the definition of DEPDIR, am__include, and am__quote 12634 # from the Makefile without running 'make'. 12635 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12636 test -z "$DEPDIR" && continue 12637 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12638 test -z "$am__include" && continue 12639 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12640 # Find all dependency output files, they are included files with 12641 # $(DEPDIR) in their names. We invoke sed twice because it is the 12642 # simplest approach to changing $(DEPDIR) to its actual value in the 12643 # expansion. 12644 for file in `sed -n " 12645 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12646 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12647 # Make sure the directory exists. 12648 test -f "$dirpart/$file" && continue 12649 fdir=`$as_dirname -- "$file" || 12650$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12651 X"$file" : 'X\(//\)[^/]' \| \ 12652 X"$file" : 'X\(//\)$' \| \ 12653 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12654$as_echo X"$file" | 12655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12656 s//\1/ 12657 q 12658 } 12659 /^X\(\/\/\)[^/].*/{ 12660 s//\1/ 12661 q 12662 } 12663 /^X\(\/\/\)$/{ 12664 s//\1/ 12665 q 12666 } 12667 /^X\(\/\).*/{ 12668 s//\1/ 12669 q 12670 } 12671 s/.*/./; q'` 12672 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12673 # echo "creating $dirpart/$file" 12674 echo '# dummy' > "$dirpart/$file" 12675 done 12676 done 12677} 12678 ;; 12679 12680 esac 12681done # for ac_tag 12682 12683 12684as_fn_exit 0 12685_ACEOF 12686ac_clean_files=$ac_clean_files_save 12687 12688test $ac_write_fail = 0 || 12689 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12690 12691 12692# configure is writing to config.log, and then calls config.status. 12693# config.status does its own redirection, appending to config.log. 12694# Unfortunately, on DOS this fails, as config.log is still kept open 12695# by configure, so config.status won't be able to write to it; its 12696# output is simply discarded. So we exec the FD to /dev/null, 12697# effectively closing config.log, so it can be properly (re)opened and 12698# appended to by config.status. When coming back to configure, we 12699# need to make the FD available again. 12700if test "$no_create" != yes; then 12701 ac_cs_success=: 12702 ac_config_status_args= 12703 test "$silent" = yes && 12704 ac_config_status_args="$ac_config_status_args --quiet" 12705 exec 5>/dev/null 12706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12707 exec 5>>config.log 12708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12709 # would make configure fail if this is the last instruction. 12710 $ac_cs_success || as_fn_exit 1 12711fi 12712if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12714$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12715fi 12716 12717