configure revision 55476c70
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for mkfontdir 1.0.7. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='mkfontdir' 563PACKAGE_TARNAME='mkfontdir' 564PACKAGE_VERSION='1.0.7' 565PACKAGE_STRING='mkfontdir 1.0.7' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610AM_BACKSLASH 611AM_DEFAULT_VERBOSITY 612MAN_SUBSTS 613XORG_MAN_PAGE 614ADMIN_MAN_DIR 615DRIVER_MAN_DIR 616MISC_MAN_DIR 617FILE_MAN_DIR 618LIB_MAN_DIR 619APP_MAN_DIR 620ADMIN_MAN_SUFFIX 621DRIVER_MAN_SUFFIX 622MISC_MAN_SUFFIX 623FILE_MAN_SUFFIX 624LIB_MAN_SUFFIX 625APP_MAN_SUFFIX 626SED 627host_os 628host_vendor 629host_cpu 630host 631build_os 632build_vendor 633build_cpu 634build 635INSTALL_CMD 636PKG_CONFIG 637CHANGELOG_CMD 638STRICT_CFLAGS 639CWARNFLAGS 640BASE_CFLAGS 641EGREP 642GREP 643CPP 644am__fastdepCC_FALSE 645am__fastdepCC_TRUE 646CCDEPMODE 647AMDEPBACKSLASH 648AMDEP_FALSE 649AMDEP_TRUE 650am__quote 651am__include 652DEPDIR 653OBJEXT 654EXEEXT 655ac_ct_CC 656CPPFLAGS 657LDFLAGS 658CFLAGS 659CC 660MAINT 661MAINTAINER_MODE_FALSE 662MAINTAINER_MODE_TRUE 663am__untar 664am__tar 665AMTAR 666am__leading_dot 667SET_MAKE 668AWK 669mkdir_p 670MKDIR_P 671INSTALL_STRIP_PROGRAM 672STRIP 673install_sh 674MAKEINFO 675AUTOHEADER 676AUTOMAKE 677AUTOCONF 678ACLOCAL 679VERSION 680PACKAGE 681CYGPATH_W 682am__isrc 683INSTALL_DATA 684INSTALL_SCRIPT 685INSTALL_PROGRAM 686target_alias 687host_alias 688build_alias 689LIBS 690ECHO_T 691ECHO_N 692ECHO_C 693DEFS 694mandir 695localedir 696libdir 697psdir 698pdfdir 699dvidir 700htmldir 701infodir 702docdir 703oldincludedir 704includedir 705localstatedir 706sharedstatedir 707sysconfdir 708datadir 709datarootdir 710libexecdir 711sbindir 712bindir 713program_transform_name 714prefix 715exec_prefix 716PACKAGE_URL 717PACKAGE_BUGREPORT 718PACKAGE_STRING 719PACKAGE_VERSION 720PACKAGE_TARNAME 721PACKAGE_NAME 722PATH_SEPARATOR 723SHELL' 724ac_subst_files='' 725ac_user_opts=' 726enable_option_checking 727enable_maintainer_mode 728enable_dependency_tracking 729enable_selective_werror 730enable_strict_compilation 731enable_silent_rules 732' 733 ac_precious_vars='build_alias 734host_alias 735target_alias 736CC 737CFLAGS 738LDFLAGS 739LIBS 740CPPFLAGS 741CPP 742PKG_CONFIG' 743 744 745# Initialize some variables set by options. 746ac_init_help= 747ac_init_version=false 748ac_unrecognized_opts= 749ac_unrecognized_sep= 750# The variables have the same names as the options, with 751# dashes changed to underlines. 752cache_file=/dev/null 753exec_prefix=NONE 754no_create= 755no_recursion= 756prefix=NONE 757program_prefix=NONE 758program_suffix=NONE 759program_transform_name=s,x,x, 760silent= 761site= 762srcdir= 763verbose= 764x_includes=NONE 765x_libraries=NONE 766 767# Installation directory options. 768# These are left unexpanded so users can "make install exec_prefix=/foo" 769# and all the variables that are supposed to be based on exec_prefix 770# by default will actually change. 771# Use braces instead of parens because sh, perl, etc. also accept them. 772# (The list follows the same order as the GNU Coding Standards.) 773bindir='${exec_prefix}/bin' 774sbindir='${exec_prefix}/sbin' 775libexecdir='${exec_prefix}/libexec' 776datarootdir='${prefix}/share' 777datadir='${datarootdir}' 778sysconfdir='${prefix}/etc' 779sharedstatedir='${prefix}/com' 780localstatedir='${prefix}/var' 781includedir='${prefix}/include' 782oldincludedir='/usr/include' 783docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 784infodir='${datarootdir}/info' 785htmldir='${docdir}' 786dvidir='${docdir}' 787pdfdir='${docdir}' 788psdir='${docdir}' 789libdir='${exec_prefix}/lib' 790localedir='${datarootdir}/locale' 791mandir='${datarootdir}/man' 792 793ac_prev= 794ac_dashdash= 795for ac_option 796do 797 # If the previous option needs an argument, assign it. 798 if test -n "$ac_prev"; then 799 eval $ac_prev=\$ac_option 800 ac_prev= 801 continue 802 fi 803 804 case $ac_option in 805 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 806 *=) ac_optarg= ;; 807 *) ac_optarg=yes ;; 808 esac 809 810 # Accept the important Cygnus configure options, so we can diagnose typos. 811 812 case $ac_dashdash$ac_option in 813 --) 814 ac_dashdash=yes ;; 815 816 -bindir | --bindir | --bindi | --bind | --bin | --bi) 817 ac_prev=bindir ;; 818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 819 bindir=$ac_optarg ;; 820 821 -build | --build | --buil | --bui | --bu) 822 ac_prev=build_alias ;; 823 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 824 build_alias=$ac_optarg ;; 825 826 -cache-file | --cache-file | --cache-fil | --cache-fi \ 827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 828 ac_prev=cache_file ;; 829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 831 cache_file=$ac_optarg ;; 832 833 --config-cache | -C) 834 cache_file=config.cache ;; 835 836 -datadir | --datadir | --datadi | --datad) 837 ac_prev=datadir ;; 838 -datadir=* | --datadir=* | --datadi=* | --datad=*) 839 datadir=$ac_optarg ;; 840 841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 842 | --dataroo | --dataro | --datar) 843 ac_prev=datarootdir ;; 844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 846 datarootdir=$ac_optarg ;; 847 848 -disable-* | --disable-*) 849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 850 # Reject names that are not valid shell variable names. 851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 852 as_fn_error $? "invalid feature name: $ac_useropt" 853 ac_useropt_orig=$ac_useropt 854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 855 case $ac_user_opts in 856 *" 857"enable_$ac_useropt" 858"*) ;; 859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 860 ac_unrecognized_sep=', ';; 861 esac 862 eval enable_$ac_useropt=no ;; 863 864 -docdir | --docdir | --docdi | --doc | --do) 865 ac_prev=docdir ;; 866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 867 docdir=$ac_optarg ;; 868 869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 870 ac_prev=dvidir ;; 871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 872 dvidir=$ac_optarg ;; 873 874 -enable-* | --enable-*) 875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 878 as_fn_error $? "invalid feature name: $ac_useropt" 879 ac_useropt_orig=$ac_useropt 880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 881 case $ac_user_opts in 882 *" 883"enable_$ac_useropt" 884"*) ;; 885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 886 ac_unrecognized_sep=', ';; 887 esac 888 eval enable_$ac_useropt=\$ac_optarg ;; 889 890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 892 | --exec | --exe | --ex) 893 ac_prev=exec_prefix ;; 894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 896 | --exec=* | --exe=* | --ex=*) 897 exec_prefix=$ac_optarg ;; 898 899 -gas | --gas | --ga | --g) 900 # Obsolete; use --with-gas. 901 with_gas=yes ;; 902 903 -help | --help | --hel | --he | -h) 904 ac_init_help=long ;; 905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 906 ac_init_help=recursive ;; 907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 908 ac_init_help=short ;; 909 910 -host | --host | --hos | --ho) 911 ac_prev=host_alias ;; 912 -host=* | --host=* | --hos=* | --ho=*) 913 host_alias=$ac_optarg ;; 914 915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 916 ac_prev=htmldir ;; 917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 918 | --ht=*) 919 htmldir=$ac_optarg ;; 920 921 -includedir | --includedir | --includedi | --included | --include \ 922 | --includ | --inclu | --incl | --inc) 923 ac_prev=includedir ;; 924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 925 | --includ=* | --inclu=* | --incl=* | --inc=*) 926 includedir=$ac_optarg ;; 927 928 -infodir | --infodir | --infodi | --infod | --info | --inf) 929 ac_prev=infodir ;; 930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 931 infodir=$ac_optarg ;; 932 933 -libdir | --libdir | --libdi | --libd) 934 ac_prev=libdir ;; 935 -libdir=* | --libdir=* | --libdi=* | --libd=*) 936 libdir=$ac_optarg ;; 937 938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 939 | --libexe | --libex | --libe) 940 ac_prev=libexecdir ;; 941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 942 | --libexe=* | --libex=* | --libe=*) 943 libexecdir=$ac_optarg ;; 944 945 -localedir | --localedir | --localedi | --localed | --locale) 946 ac_prev=localedir ;; 947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 948 localedir=$ac_optarg ;; 949 950 -localstatedir | --localstatedir | --localstatedi | --localstated \ 951 | --localstate | --localstat | --localsta | --localst | --locals) 952 ac_prev=localstatedir ;; 953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 955 localstatedir=$ac_optarg ;; 956 957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 958 ac_prev=mandir ;; 959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 960 mandir=$ac_optarg ;; 961 962 -nfp | --nfp | --nf) 963 # Obsolete; use --without-fp. 964 with_fp=no ;; 965 966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 967 | --no-cr | --no-c | -n) 968 no_create=yes ;; 969 970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 972 no_recursion=yes ;; 973 974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 976 | --oldin | --oldi | --old | --ol | --o) 977 ac_prev=oldincludedir ;; 978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 981 oldincludedir=$ac_optarg ;; 982 983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 984 ac_prev=prefix ;; 985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 986 prefix=$ac_optarg ;; 987 988 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 989 | --program-pre | --program-pr | --program-p) 990 ac_prev=program_prefix ;; 991 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 993 program_prefix=$ac_optarg ;; 994 995 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 996 | --program-suf | --program-su | --program-s) 997 ac_prev=program_suffix ;; 998 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1000 program_suffix=$ac_optarg ;; 1001 1002 -program-transform-name | --program-transform-name \ 1003 | --program-transform-nam | --program-transform-na \ 1004 | --program-transform-n | --program-transform- \ 1005 | --program-transform | --program-transfor \ 1006 | --program-transfo | --program-transf \ 1007 | --program-trans | --program-tran \ 1008 | --progr-tra | --program-tr | --program-t) 1009 ac_prev=program_transform_name ;; 1010 -program-transform-name=* | --program-transform-name=* \ 1011 | --program-transform-nam=* | --program-transform-na=* \ 1012 | --program-transform-n=* | --program-transform-=* \ 1013 | --program-transform=* | --program-transfor=* \ 1014 | --program-transfo=* | --program-transf=* \ 1015 | --program-trans=* | --program-tran=* \ 1016 | --progr-tra=* | --program-tr=* | --program-t=*) 1017 program_transform_name=$ac_optarg ;; 1018 1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1020 ac_prev=pdfdir ;; 1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1022 pdfdir=$ac_optarg ;; 1023 1024 -psdir | --psdir | --psdi | --psd | --ps) 1025 ac_prev=psdir ;; 1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1027 psdir=$ac_optarg ;; 1028 1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1030 | -silent | --silent | --silen | --sile | --sil) 1031 silent=yes ;; 1032 1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1034 ac_prev=sbindir ;; 1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1036 | --sbi=* | --sb=*) 1037 sbindir=$ac_optarg ;; 1038 1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1041 | --sharedst | --shareds | --shared | --share | --shar \ 1042 | --sha | --sh) 1043 ac_prev=sharedstatedir ;; 1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1047 | --sha=* | --sh=*) 1048 sharedstatedir=$ac_optarg ;; 1049 1050 -site | --site | --sit) 1051 ac_prev=site ;; 1052 -site=* | --site=* | --sit=*) 1053 site=$ac_optarg ;; 1054 1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1056 ac_prev=srcdir ;; 1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1058 srcdir=$ac_optarg ;; 1059 1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1061 | --syscon | --sysco | --sysc | --sys | --sy) 1062 ac_prev=sysconfdir ;; 1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1065 sysconfdir=$ac_optarg ;; 1066 1067 -target | --target | --targe | --targ | --tar | --ta | --t) 1068 ac_prev=target_alias ;; 1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1070 target_alias=$ac_optarg ;; 1071 1072 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1073 verbose=yes ;; 1074 1075 -version | --version | --versio | --versi | --vers | -V) 1076 ac_init_version=: ;; 1077 1078 -with-* | --with-*) 1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1080 # Reject names that are not valid shell variable names. 1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1082 as_fn_error $? "invalid package name: $ac_useropt" 1083 ac_useropt_orig=$ac_useropt 1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1085 case $ac_user_opts in 1086 *" 1087"with_$ac_useropt" 1088"*) ;; 1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1090 ac_unrecognized_sep=', ';; 1091 esac 1092 eval with_$ac_useropt=\$ac_optarg ;; 1093 1094 -without-* | --without-*) 1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1098 as_fn_error $? "invalid package name: $ac_useropt" 1099 ac_useropt_orig=$ac_useropt 1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1101 case $ac_user_opts in 1102 *" 1103"with_$ac_useropt" 1104"*) ;; 1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1106 ac_unrecognized_sep=', ';; 1107 esac 1108 eval with_$ac_useropt=no ;; 1109 1110 --x) 1111 # Obsolete; use --with-x. 1112 with_x=yes ;; 1113 1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1115 | --x-incl | --x-inc | --x-in | --x-i) 1116 ac_prev=x_includes ;; 1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1119 x_includes=$ac_optarg ;; 1120 1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1123 ac_prev=x_libraries ;; 1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1126 x_libraries=$ac_optarg ;; 1127 1128 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1129Try \`$0 --help' for more information" 1130 ;; 1131 1132 *=*) 1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1134 # Reject names that are not valid shell variable names. 1135 case $ac_envvar in #( 1136 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1137 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1138 esac 1139 eval $ac_envvar=\$ac_optarg 1140 export $ac_envvar ;; 1141 1142 *) 1143 # FIXME: should be removed in autoconf 3.0. 1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1147 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1148 ;; 1149 1150 esac 1151done 1152 1153if test -n "$ac_prev"; then 1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1155 as_fn_error $? "missing argument to $ac_option" 1156fi 1157 1158if test -n "$ac_unrecognized_opts"; then 1159 case $enable_option_checking in 1160 no) ;; 1161 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1163 esac 1164fi 1165 1166# Check all directory arguments for consistency. 1167for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1168 datadir sysconfdir sharedstatedir localstatedir includedir \ 1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1170 libdir localedir mandir 1171do 1172 eval ac_val=\$$ac_var 1173 # Remove trailing slashes. 1174 case $ac_val in 1175 */ ) 1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1177 eval $ac_var=\$ac_val;; 1178 esac 1179 # Be sure to have absolute directory names. 1180 case $ac_val in 1181 [\\/$]* | ?:[\\/]* ) continue;; 1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1183 esac 1184 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1185done 1186 1187# There might be people who depend on the old broken behavior: `$host' 1188# used to hold the argument of --host etc. 1189# FIXME: To remove some day. 1190build=$build_alias 1191host=$host_alias 1192target=$target_alias 1193 1194# FIXME: To remove some day. 1195if test "x$host_alias" != x; then 1196 if test "x$build_alias" = x; then 1197 cross_compiling=maybe 1198 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1199 If a cross compiler is detected then cross compile mode will be used" >&2 1200 elif test "x$build_alias" != "x$host_alias"; then 1201 cross_compiling=yes 1202 fi 1203fi 1204 1205ac_tool_prefix= 1206test -n "$host_alias" && ac_tool_prefix=$host_alias- 1207 1208test "$silent" = yes && exec 6>/dev/null 1209 1210 1211ac_pwd=`pwd` && test -n "$ac_pwd" && 1212ac_ls_di=`ls -di .` && 1213ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1214 as_fn_error $? "working directory cannot be determined" 1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1216 as_fn_error $? "pwd does not report name of working directory" 1217 1218 1219# Find the source files, if location was not specified. 1220if test -z "$srcdir"; then 1221 ac_srcdir_defaulted=yes 1222 # Try the directory containing this script, then the parent directory. 1223 ac_confdir=`$as_dirname -- "$as_myself" || 1224$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1225 X"$as_myself" : 'X\(//\)[^/]' \| \ 1226 X"$as_myself" : 'X\(//\)$' \| \ 1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1228$as_echo X"$as_myself" | 1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1230 s//\1/ 1231 q 1232 } 1233 /^X\(\/\/\)[^/].*/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\/\)$/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\).*/{ 1242 s//\1/ 1243 q 1244 } 1245 s/.*/./; q'` 1246 srcdir=$ac_confdir 1247 if test ! -r "$srcdir/$ac_unique_file"; then 1248 srcdir=.. 1249 fi 1250else 1251 ac_srcdir_defaulted=no 1252fi 1253if test ! -r "$srcdir/$ac_unique_file"; then 1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1255 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1256fi 1257ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1258ac_abs_confdir=`( 1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1260 pwd)` 1261# When building in place, set srcdir=. 1262if test "$ac_abs_confdir" = "$ac_pwd"; then 1263 srcdir=. 1264fi 1265# Remove unnecessary trailing slashes from srcdir. 1266# Double slashes in file names in object file debugging info 1267# mess up M-x gdb in Emacs. 1268case $srcdir in 1269*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1270esac 1271for ac_var in $ac_precious_vars; do 1272 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1273 eval ac_env_${ac_var}_value=\$${ac_var} 1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1275 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1276done 1277 1278# 1279# Report the --help message. 1280# 1281if test "$ac_init_help" = "long"; then 1282 # Omit some internal or obsolete options to make the list less imposing. 1283 # This message is too long to be a string in the A/UX 3.1 sh. 1284 cat <<_ACEOF 1285\`configure' configures mkfontdir 1.0.7 to adapt to many kinds of systems. 1286 1287Usage: $0 [OPTION]... [VAR=VALUE]... 1288 1289To assign environment variables (e.g., CC, CFLAGS...), specify them as 1290VAR=VALUE. See below for descriptions of some of the useful variables. 1291 1292Defaults for the options are specified in brackets. 1293 1294Configuration: 1295 -h, --help display this help and exit 1296 --help=short display options specific to this package 1297 --help=recursive display the short help of all the included packages 1298 -V, --version display version information and exit 1299 -q, --quiet, --silent do not print \`checking ...' messages 1300 --cache-file=FILE cache test results in FILE [disabled] 1301 -C, --config-cache alias for \`--cache-file=config.cache' 1302 -n, --no-create do not create output files 1303 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1304 1305Installation directories: 1306 --prefix=PREFIX install architecture-independent files in PREFIX 1307 [$ac_default_prefix] 1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1309 [PREFIX] 1310 1311By default, \`make install' will install all the files in 1312\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1313an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1314for instance \`--prefix=\$HOME'. 1315 1316For better control, use the options below. 1317 1318Fine tuning of the installation directories: 1319 --bindir=DIR user executables [EPREFIX/bin] 1320 --sbindir=DIR system admin executables [EPREFIX/sbin] 1321 --libexecdir=DIR program executables [EPREFIX/libexec] 1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1325 --libdir=DIR object code libraries [EPREFIX/lib] 1326 --includedir=DIR C header files [PREFIX/include] 1327 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1330 --infodir=DIR info documentation [DATAROOTDIR/info] 1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1332 --mandir=DIR man documentation [DATAROOTDIR/man] 1333 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontdir] 1334 --htmldir=DIR html documentation [DOCDIR] 1335 --dvidir=DIR dvi documentation [DOCDIR] 1336 --pdfdir=DIR pdf documentation [DOCDIR] 1337 --psdir=DIR ps documentation [DOCDIR] 1338_ACEOF 1339 1340 cat <<\_ACEOF 1341 1342Program names: 1343 --program-prefix=PREFIX prepend PREFIX to installed program names 1344 --program-suffix=SUFFIX append SUFFIX to installed program names 1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1346 1347System types: 1348 --build=BUILD configure for building on BUILD [guessed] 1349 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1350_ACEOF 1351fi 1352 1353if test -n "$ac_init_help"; then 1354 case $ac_init_help in 1355 short | recursive ) echo "Configuration of mkfontdir 1.0.7:";; 1356 esac 1357 cat <<\_ACEOF 1358 1359Optional Features: 1360 --disable-option-checking ignore unrecognized --enable/--with options 1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1363 --enable-maintainer-mode enable make rules and dependencies not useful 1364 (and sometimes confusing) to the casual installer 1365 --disable-dependency-tracking speeds up one-time build 1366 --enable-dependency-tracking do not reject slow dependency extractors 1367 --disable-selective-werror 1368 Turn off selective compiler errors. (default: 1369 enabled) 1370 --enable-strict-compilation 1371 Enable all warnings from compiler and make them 1372 errors (default: disabled) 1373 --enable-silent-rules less verbose build output (undo: `make V=1') 1374 --disable-silent-rules verbose build output (undo: `make V=0') 1375 1376Some influential environment variables: 1377 CC C compiler command 1378 CFLAGS C compiler flags 1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1380 nonstandard directory <lib dir> 1381 LIBS libraries to pass to the linker, e.g. -l<library> 1382 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1383 you have headers in a nonstandard directory <include dir> 1384 CPP C preprocessor 1385 PKG_CONFIG path to pkg-config utility 1386 1387Use these variables to override the choices made by `configure' or to help 1388it to find libraries and programs with nonstandard names/locations. 1389 1390Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1391_ACEOF 1392ac_status=$? 1393fi 1394 1395if test "$ac_init_help" = "recursive"; then 1396 # If there are subdirs, report their specific --help. 1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1398 test -d "$ac_dir" || 1399 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1400 continue 1401 ac_builddir=. 1402 1403case "$ac_dir" in 1404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1405*) 1406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1407 # A ".." for each directory in $ac_dir_suffix. 1408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1409 case $ac_top_builddir_sub in 1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1412 esac ;; 1413esac 1414ac_abs_top_builddir=$ac_pwd 1415ac_abs_builddir=$ac_pwd$ac_dir_suffix 1416# for backward compatibility: 1417ac_top_builddir=$ac_top_build_prefix 1418 1419case $srcdir in 1420 .) # We are building in place. 1421 ac_srcdir=. 1422 ac_top_srcdir=$ac_top_builddir_sub 1423 ac_abs_top_srcdir=$ac_pwd ;; 1424 [\\/]* | ?:[\\/]* ) # Absolute name. 1425 ac_srcdir=$srcdir$ac_dir_suffix; 1426 ac_top_srcdir=$srcdir 1427 ac_abs_top_srcdir=$srcdir ;; 1428 *) # Relative name. 1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1430 ac_top_srcdir=$ac_top_build_prefix$srcdir 1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1432esac 1433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1434 1435 cd "$ac_dir" || { ac_status=$?; continue; } 1436 # Check for guested configure. 1437 if test -f "$ac_srcdir/configure.gnu"; then 1438 echo && 1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1440 elif test -f "$ac_srcdir/configure"; then 1441 echo && 1442 $SHELL "$ac_srcdir/configure" --help=recursive 1443 else 1444 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1445 fi || ac_status=$? 1446 cd "$ac_pwd" || { ac_status=$?; break; } 1447 done 1448fi 1449 1450test -n "$ac_init_help" && exit $ac_status 1451if $ac_init_version; then 1452 cat <<\_ACEOF 1453mkfontdir configure 1.0.7 1454generated by GNU Autoconf 2.68 1455 1456Copyright (C) 2010 Free Software Foundation, Inc. 1457This configure script is free software; the Free Software Foundation 1458gives unlimited permission to copy, distribute and modify it. 1459_ACEOF 1460 exit 1461fi 1462 1463## ------------------------ ## 1464## Autoconf initialization. ## 1465## ------------------------ ## 1466 1467# ac_fn_c_try_compile LINENO 1468# -------------------------- 1469# Try to compile conftest.$ac_ext, and return whether this succeeded. 1470ac_fn_c_try_compile () 1471{ 1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1473 rm -f conftest.$ac_objext 1474 if { { ac_try="$ac_compile" 1475case "(($ac_try" in 1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1477 *) ac_try_echo=$ac_try;; 1478esac 1479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1480$as_echo "$ac_try_echo"; } >&5 1481 (eval "$ac_compile") 2>conftest.err 1482 ac_status=$? 1483 if test -s conftest.err; then 1484 grep -v '^ *+' conftest.err >conftest.er1 1485 cat conftest.er1 >&5 1486 mv -f conftest.er1 conftest.err 1487 fi 1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1489 test $ac_status = 0; } && { 1490 test -z "$ac_c_werror_flag" || 1491 test ! -s conftest.err 1492 } && test -s conftest.$ac_objext; then : 1493 ac_retval=0 1494else 1495 $as_echo "$as_me: failed program was:" >&5 1496sed 's/^/| /' conftest.$ac_ext >&5 1497 1498 ac_retval=1 1499fi 1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1501 as_fn_set_status $ac_retval 1502 1503} # ac_fn_c_try_compile 1504 1505# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1506# --------------------------------------------- 1507# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1508# accordingly. 1509ac_fn_c_check_decl () 1510{ 1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1512 as_decl_name=`echo $2|sed 's/ *(.*//'` 1513 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1515$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1516if eval \${$3+:} false; then : 1517 $as_echo_n "(cached) " >&6 1518else 1519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1520/* end confdefs.h. */ 1521$4 1522int 1523main () 1524{ 1525#ifndef $as_decl_name 1526#ifdef __cplusplus 1527 (void) $as_decl_use; 1528#else 1529 (void) $as_decl_name; 1530#endif 1531#endif 1532 1533 ; 1534 return 0; 1535} 1536_ACEOF 1537if ac_fn_c_try_compile "$LINENO"; then : 1538 eval "$3=yes" 1539else 1540 eval "$3=no" 1541fi 1542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1543fi 1544eval ac_res=\$$3 1545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1546$as_echo "$ac_res" >&6; } 1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1548 1549} # ac_fn_c_check_decl 1550 1551# ac_fn_c_try_cpp LINENO 1552# ---------------------- 1553# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1554ac_fn_c_try_cpp () 1555{ 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 if { { ac_try="$ac_cpp conftest.$ac_ext" 1558case "(($ac_try" in 1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1560 *) ac_try_echo=$ac_try;; 1561esac 1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1563$as_echo "$ac_try_echo"; } >&5 1564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1565 ac_status=$? 1566 if test -s conftest.err; then 1567 grep -v '^ *+' conftest.err >conftest.er1 1568 cat conftest.er1 >&5 1569 mv -f conftest.er1 conftest.err 1570 fi 1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1572 test $ac_status = 0; } > conftest.i && { 1573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1574 test ! -s conftest.err 1575 }; then : 1576 ac_retval=0 1577else 1578 $as_echo "$as_me: failed program was:" >&5 1579sed 's/^/| /' conftest.$ac_ext >&5 1580 1581 ac_retval=1 1582fi 1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1584 as_fn_set_status $ac_retval 1585 1586} # ac_fn_c_try_cpp 1587 1588# ac_fn_c_try_run LINENO 1589# ---------------------- 1590# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1591# that executables *can* be run. 1592ac_fn_c_try_run () 1593{ 1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1595 if { { ac_try="$ac_link" 1596case "(($ac_try" in 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1598 *) ac_try_echo=$ac_try;; 1599esac 1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601$as_echo "$ac_try_echo"; } >&5 1602 (eval "$ac_link") 2>&5 1603 ac_status=$? 1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1605 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1606 { { case "(($ac_try" in 1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1608 *) ac_try_echo=$ac_try;; 1609esac 1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1611$as_echo "$ac_try_echo"; } >&5 1612 (eval "$ac_try") 2>&5 1613 ac_status=$? 1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1615 test $ac_status = 0; }; }; then : 1616 ac_retval=0 1617else 1618 $as_echo "$as_me: program exited with status $ac_status" >&5 1619 $as_echo "$as_me: failed program was:" >&5 1620sed 's/^/| /' conftest.$ac_ext >&5 1621 1622 ac_retval=$ac_status 1623fi 1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 as_fn_set_status $ac_retval 1627 1628} # ac_fn_c_try_run 1629 1630# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1631# ------------------------------------------------------- 1632# Tests whether HEADER exists and can be compiled using the include files in 1633# INCLUDES, setting the cache variable VAR accordingly. 1634ac_fn_c_check_header_compile () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1638$as_echo_n "checking for $2... " >&6; } 1639if eval \${$3+:} false; then : 1640 $as_echo_n "(cached) " >&6 1641else 1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1643/* end confdefs.h. */ 1644$4 1645#include <$2> 1646_ACEOF 1647if ac_fn_c_try_compile "$LINENO"; then : 1648 eval "$3=yes" 1649else 1650 eval "$3=no" 1651fi 1652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1653fi 1654eval ac_res=\$$3 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1656$as_echo "$ac_res" >&6; } 1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1658 1659} # ac_fn_c_check_header_compile 1660 1661# ac_fn_c_try_link LINENO 1662# ----------------------- 1663# Try to link conftest.$ac_ext, and return whether this succeeded. 1664ac_fn_c_try_link () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 rm -f conftest.$ac_objext conftest$ac_exeext 1668 if { { ac_try="$ac_link" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_link") 2>conftest.err 1676 ac_status=$? 1677 if test -s conftest.err; then 1678 grep -v '^ *+' conftest.err >conftest.er1 1679 cat conftest.er1 >&5 1680 mv -f conftest.er1 conftest.err 1681 fi 1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; } && { 1684 test -z "$ac_c_werror_flag" || 1685 test ! -s conftest.err 1686 } && test -s conftest$ac_exeext && { 1687 test "$cross_compiling" = yes || 1688 $as_test_x conftest$ac_exeext 1689 }; then : 1690 ac_retval=0 1691else 1692 $as_echo "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 1696fi 1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1699 # interfere with the next link command; also delete a directory that is 1700 # left behind by Apple's compiler. We do this before executing the actions. 1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_link 1706cat >config.log <<_ACEOF 1707This file contains any messages produced by compilers while 1708running configure, to aid debugging if configure makes a mistake. 1709 1710It was created by mkfontdir $as_me 1.0.7, which was 1711generated by GNU Autoconf 2.68. Invocation command line was 1712 1713 $ $0 $@ 1714 1715_ACEOF 1716exec 5>>config.log 1717{ 1718cat <<_ASUNAME 1719## --------- ## 1720## Platform. ## 1721## --------- ## 1722 1723hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1724uname -m = `(uname -m) 2>/dev/null || echo unknown` 1725uname -r = `(uname -r) 2>/dev/null || echo unknown` 1726uname -s = `(uname -s) 2>/dev/null || echo unknown` 1727uname -v = `(uname -v) 2>/dev/null || echo unknown` 1728 1729/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1730/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1731 1732/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1733/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1734/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1735/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1736/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1737/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1738/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1739 1740_ASUNAME 1741 1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1743for as_dir in $PATH 1744do 1745 IFS=$as_save_IFS 1746 test -z "$as_dir" && as_dir=. 1747 $as_echo "PATH: $as_dir" 1748 done 1749IFS=$as_save_IFS 1750 1751} >&5 1752 1753cat >&5 <<_ACEOF 1754 1755 1756## ----------- ## 1757## Core tests. ## 1758## ----------- ## 1759 1760_ACEOF 1761 1762 1763# Keep a trace of the command line. 1764# Strip out --no-create and --no-recursion so they do not pile up. 1765# Strip out --silent because we don't want to record it for future runs. 1766# Also quote any args containing shell meta-characters. 1767# Make two passes to allow for proper duplicate-argument suppression. 1768ac_configure_args= 1769ac_configure_args0= 1770ac_configure_args1= 1771ac_must_keep_next=false 1772for ac_pass in 1 2 1773do 1774 for ac_arg 1775 do 1776 case $ac_arg in 1777 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1779 | -silent | --silent | --silen | --sile | --sil) 1780 continue ;; 1781 *\'*) 1782 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1783 esac 1784 case $ac_pass in 1785 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1786 2) 1787 as_fn_append ac_configure_args1 " '$ac_arg'" 1788 if test $ac_must_keep_next = true; then 1789 ac_must_keep_next=false # Got value, back to normal. 1790 else 1791 case $ac_arg in 1792 *=* | --config-cache | -C | -disable-* | --disable-* \ 1793 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1794 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1795 | -with-* | --with-* | -without-* | --without-* | --x) 1796 case "$ac_configure_args0 " in 1797 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1798 esac 1799 ;; 1800 -* ) ac_must_keep_next=true ;; 1801 esac 1802 fi 1803 as_fn_append ac_configure_args " '$ac_arg'" 1804 ;; 1805 esac 1806 done 1807done 1808{ ac_configure_args0=; unset ac_configure_args0;} 1809{ ac_configure_args1=; unset ac_configure_args1;} 1810 1811# When interrupted or exit'd, cleanup temporary files, and complete 1812# config.log. We remove comments because anyway the quotes in there 1813# would cause problems or look ugly. 1814# WARNING: Use '\'' to represent an apostrophe within the trap. 1815# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1816trap 'exit_status=$? 1817 # Save into config.log some information that might help in debugging. 1818 { 1819 echo 1820 1821 $as_echo "## ---------------- ## 1822## Cache variables. ## 1823## ---------------- ##" 1824 echo 1825 # The following way of writing the cache mishandles newlines in values, 1826( 1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1828 eval ac_val=\$$ac_var 1829 case $ac_val in #( 1830 *${as_nl}*) 1831 case $ac_var in #( 1832 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1833$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1834 esac 1835 case $ac_var in #( 1836 _ | IFS | as_nl) ;; #( 1837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1838 *) { eval $ac_var=; unset $ac_var;} ;; 1839 esac ;; 1840 esac 1841 done 1842 (set) 2>&1 | 1843 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1844 *${as_nl}ac_space=\ *) 1845 sed -n \ 1846 "s/'\''/'\''\\\\'\'''\''/g; 1847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1848 ;; #( 1849 *) 1850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1851 ;; 1852 esac | 1853 sort 1854) 1855 echo 1856 1857 $as_echo "## ----------------- ## 1858## Output variables. ## 1859## ----------------- ##" 1860 echo 1861 for ac_var in $ac_subst_vars 1862 do 1863 eval ac_val=\$$ac_var 1864 case $ac_val in 1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1866 esac 1867 $as_echo "$ac_var='\''$ac_val'\''" 1868 done | sort 1869 echo 1870 1871 if test -n "$ac_subst_files"; then 1872 $as_echo "## ------------------- ## 1873## File substitutions. ## 1874## ------------------- ##" 1875 echo 1876 for ac_var in $ac_subst_files 1877 do 1878 eval ac_val=\$$ac_var 1879 case $ac_val in 1880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1881 esac 1882 $as_echo "$ac_var='\''$ac_val'\''" 1883 done | sort 1884 echo 1885 fi 1886 1887 if test -s confdefs.h; then 1888 $as_echo "## ----------- ## 1889## confdefs.h. ## 1890## ----------- ##" 1891 echo 1892 cat confdefs.h 1893 echo 1894 fi 1895 test "$ac_signal" != 0 && 1896 $as_echo "$as_me: caught signal $ac_signal" 1897 $as_echo "$as_me: exit $exit_status" 1898 } >&5 1899 rm -f core *.core core.conftest.* && 1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1901 exit $exit_status 1902' 0 1903for ac_signal in 1 2 13 15; do 1904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1905done 1906ac_signal=0 1907 1908# confdefs.h avoids OS command line length limits that DEFS can exceed. 1909rm -f -r conftest* confdefs.h 1910 1911$as_echo "/* confdefs.h */" > confdefs.h 1912 1913# Predefined preprocessor variables. 1914 1915cat >>confdefs.h <<_ACEOF 1916#define PACKAGE_NAME "$PACKAGE_NAME" 1917_ACEOF 1918 1919cat >>confdefs.h <<_ACEOF 1920#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1921_ACEOF 1922 1923cat >>confdefs.h <<_ACEOF 1924#define PACKAGE_VERSION "$PACKAGE_VERSION" 1925_ACEOF 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_STRING "$PACKAGE_STRING" 1929_ACEOF 1930 1931cat >>confdefs.h <<_ACEOF 1932#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1933_ACEOF 1934 1935cat >>confdefs.h <<_ACEOF 1936#define PACKAGE_URL "$PACKAGE_URL" 1937_ACEOF 1938 1939 1940# Let the site file select an alternate cache file if it wants to. 1941# Prefer an explicitly selected file to automatically selected ones. 1942ac_site_file1=NONE 1943ac_site_file2=NONE 1944if test -n "$CONFIG_SITE"; then 1945 # We do not want a PATH search for config.site. 1946 case $CONFIG_SITE in #(( 1947 -*) ac_site_file1=./$CONFIG_SITE;; 1948 */*) ac_site_file1=$CONFIG_SITE;; 1949 *) ac_site_file1=./$CONFIG_SITE;; 1950 esac 1951elif test "x$prefix" != xNONE; then 1952 ac_site_file1=$prefix/share/config.site 1953 ac_site_file2=$prefix/etc/config.site 1954else 1955 ac_site_file1=$ac_default_prefix/share/config.site 1956 ac_site_file2=$ac_default_prefix/etc/config.site 1957fi 1958for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1959do 1960 test "x$ac_site_file" = xNONE && continue 1961 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1963$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1964 sed 's/^/| /' "$ac_site_file" >&5 1965 . "$ac_site_file" \ 1966 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1968as_fn_error $? "failed to load site script $ac_site_file 1969See \`config.log' for more details" "$LINENO" 5; } 1970 fi 1971done 1972 1973if test -r "$cache_file"; then 1974 # Some versions of bash will fail to source /dev/null (special files 1975 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1976 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1978$as_echo "$as_me: loading cache $cache_file" >&6;} 1979 case $cache_file in 1980 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1981 *) . "./$cache_file";; 1982 esac 1983 fi 1984else 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1986$as_echo "$as_me: creating cache $cache_file" >&6;} 1987 >$cache_file 1988fi 1989 1990# Check that the precious variables saved in the cache have kept the same 1991# value. 1992ac_cache_corrupted=false 1993for ac_var in $ac_precious_vars; do 1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1995 eval ac_new_set=\$ac_env_${ac_var}_set 1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1997 eval ac_new_val=\$ac_env_${ac_var}_value 1998 case $ac_old_set,$ac_new_set in 1999 set,) 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2001$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2002 ac_cache_corrupted=: ;; 2003 ,set) 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2005$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2006 ac_cache_corrupted=: ;; 2007 ,);; 2008 *) 2009 if test "x$ac_old_val" != "x$ac_new_val"; then 2010 # differences in whitespace do not lead to failure. 2011 ac_old_val_w=`echo x $ac_old_val` 2012 ac_new_val_w=`echo x $ac_new_val` 2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2015$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2016 ac_cache_corrupted=: 2017 else 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2019$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2020 eval $ac_var=\$ac_old_val 2021 fi 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2023$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2025$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2026 fi;; 2027 esac 2028 # Pass precious variables to config.status. 2029 if test "$ac_new_set" = set; then 2030 case $ac_new_val in 2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2032 *) ac_arg=$ac_var=$ac_new_val ;; 2033 esac 2034 case " $ac_configure_args " in 2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2036 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2037 esac 2038 fi 2039done 2040if $ac_cache_corrupted; then 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2044$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2045 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2046fi 2047## -------------------- ## 2048## Main body of script. ## 2049## -------------------- ## 2050 2051ac_ext=c 2052ac_cpp='$CPP $CPPFLAGS' 2053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2055ac_compiler_gnu=$ac_cv_c_compiler_gnu 2056 2057 2058 2059 2060# Initialize Automake 2061am__api_version='1.11' 2062 2063ac_aux_dir= 2064for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2065 if test -f "$ac_dir/install-sh"; then 2066 ac_aux_dir=$ac_dir 2067 ac_install_sh="$ac_aux_dir/install-sh -c" 2068 break 2069 elif test -f "$ac_dir/install.sh"; then 2070 ac_aux_dir=$ac_dir 2071 ac_install_sh="$ac_aux_dir/install.sh -c" 2072 break 2073 elif test -f "$ac_dir/shtool"; then 2074 ac_aux_dir=$ac_dir 2075 ac_install_sh="$ac_aux_dir/shtool install -c" 2076 break 2077 fi 2078done 2079if test -z "$ac_aux_dir"; then 2080 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2081fi 2082 2083# These three variables are undocumented and unsupported, 2084# and are intended to be withdrawn in a future Autoconf release. 2085# They can cause serious problems if a builder's source tree is in a directory 2086# whose full name contains unusual characters. 2087ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2088ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2089ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2090 2091 2092# Find a good install program. We prefer a C program (faster), 2093# so one script is as good as another. But avoid the broken or 2094# incompatible versions: 2095# SysV /etc/install, /usr/sbin/install 2096# SunOS /usr/etc/install 2097# IRIX /sbin/install 2098# AIX /bin/install 2099# AmigaOS /C/install, which installs bootblocks on floppy discs 2100# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2101# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2102# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2103# OS/2's system install, which has a completely different semantic 2104# ./install, which can be erroneously created by make from ./install.sh. 2105# Reject install programs that cannot install multiple files. 2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2107$as_echo_n "checking for a BSD-compatible install... " >&6; } 2108if test -z "$INSTALL"; then 2109if ${ac_cv_path_install+:} false; then : 2110 $as_echo_n "(cached) " >&6 2111else 2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2113for as_dir in $PATH 2114do 2115 IFS=$as_save_IFS 2116 test -z "$as_dir" && as_dir=. 2117 # Account for people who put trailing slashes in PATH elements. 2118case $as_dir/ in #(( 2119 ./ | .// | /[cC]/* | \ 2120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2121 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2122 /usr/ucb/* ) ;; 2123 *) 2124 # OSF1 and SCO ODT 3.0 have their own names for install. 2125 # Don't use installbsd from OSF since it installs stuff as root 2126 # by default. 2127 for ac_prog in ginstall scoinst install; do 2128 for ac_exec_ext in '' $ac_executable_extensions; do 2129 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2130 if test $ac_prog = install && 2131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2132 # AIX install. It has an incompatible calling convention. 2133 : 2134 elif test $ac_prog = install && 2135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2136 # program-specific install script used by HP pwplus--don't use. 2137 : 2138 else 2139 rm -rf conftest.one conftest.two conftest.dir 2140 echo one > conftest.one 2141 echo two > conftest.two 2142 mkdir conftest.dir 2143 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2144 test -s conftest.one && test -s conftest.two && 2145 test -s conftest.dir/conftest.one && 2146 test -s conftest.dir/conftest.two 2147 then 2148 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2149 break 3 2150 fi 2151 fi 2152 fi 2153 done 2154 done 2155 ;; 2156esac 2157 2158 done 2159IFS=$as_save_IFS 2160 2161rm -rf conftest.one conftest.two conftest.dir 2162 2163fi 2164 if test "${ac_cv_path_install+set}" = set; then 2165 INSTALL=$ac_cv_path_install 2166 else 2167 # As a last resort, use the slow shell script. Don't cache a 2168 # value for INSTALL within a source directory, because that will 2169 # break other packages using the cache if that directory is 2170 # removed, or if the value is a relative name. 2171 INSTALL=$ac_install_sh 2172 fi 2173fi 2174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2175$as_echo "$INSTALL" >&6; } 2176 2177# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2178# It thinks the first close brace ends the variable substitution. 2179test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2180 2181test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2182 2183test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2184 2185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2186$as_echo_n "checking whether build environment is sane... " >&6; } 2187# Just in case 2188sleep 1 2189echo timestamp > conftest.file 2190# Reject unsafe characters in $srcdir or the absolute working directory 2191# name. Accept space and tab only in the latter. 2192am_lf=' 2193' 2194case `pwd` in 2195 *[\\\"\#\$\&\'\`$am_lf]*) 2196 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2197esac 2198case $srcdir in 2199 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2200 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2201esac 2202 2203# Do `set' in a subshell so we don't clobber the current shell's 2204# arguments. Must try -L first in case configure is actually a 2205# symlink; some systems play weird games with the mod time of symlinks 2206# (eg FreeBSD returns the mod time of the symlink's containing 2207# directory). 2208if ( 2209 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2210 if test "$*" = "X"; then 2211 # -L didn't work. 2212 set X `ls -t "$srcdir/configure" conftest.file` 2213 fi 2214 rm -f conftest.file 2215 if test "$*" != "X $srcdir/configure conftest.file" \ 2216 && test "$*" != "X conftest.file $srcdir/configure"; then 2217 2218 # If neither matched, then we have a broken ls. This can happen 2219 # if, for instance, CONFIG_SHELL is bash and it inherits a 2220 # broken ls alias from the environment. This has actually 2221 # happened. Such a system could not be considered "sane". 2222 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2223alias in your environment" "$LINENO" 5 2224 fi 2225 2226 test "$2" = conftest.file 2227 ) 2228then 2229 # Ok. 2230 : 2231else 2232 as_fn_error $? "newly created file is older than distributed files! 2233Check your system clock" "$LINENO" 5 2234fi 2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2236$as_echo "yes" >&6; } 2237test "$program_prefix" != NONE && 2238 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2239# Use a double $ so make ignores it. 2240test "$program_suffix" != NONE && 2241 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2242# Double any \ or $. 2243# By default was `s,x,x', remove it if useless. 2244ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2245program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2246 2247# expand $ac_aux_dir to an absolute path 2248am_aux_dir=`cd $ac_aux_dir && pwd` 2249 2250if test x"${MISSING+set}" != xset; then 2251 case $am_aux_dir in 2252 *\ * | *\ *) 2253 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2254 *) 2255 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2256 esac 2257fi 2258# Use eval to expand $SHELL 2259if eval "$MISSING --run true"; then 2260 am_missing_run="$MISSING --run " 2261else 2262 am_missing_run= 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2264$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2265fi 2266 2267if test x"${install_sh}" != xset; then 2268 case $am_aux_dir in 2269 *\ * | *\ *) 2270 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2271 *) 2272 install_sh="\${SHELL} $am_aux_dir/install-sh" 2273 esac 2274fi 2275 2276# Installed binaries are usually stripped using `strip' when the user 2277# run `make install-strip'. However `strip' might not be the right 2278# tool to use in cross-compilation environments, therefore Automake 2279# will honor the `STRIP' environment variable to overrule this program. 2280if test "$cross_compiling" != no; then 2281 if test -n "$ac_tool_prefix"; then 2282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2283set dummy ${ac_tool_prefix}strip; ac_word=$2 2284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2285$as_echo_n "checking for $ac_word... " >&6; } 2286if ${ac_cv_prog_STRIP+:} false; then : 2287 $as_echo_n "(cached) " >&6 2288else 2289 if test -n "$STRIP"; then 2290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2291else 2292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2293for as_dir in $PATH 2294do 2295 IFS=$as_save_IFS 2296 test -z "$as_dir" && as_dir=. 2297 for ac_exec_ext in '' $ac_executable_extensions; do 2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2299 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2301 break 2 2302 fi 2303done 2304 done 2305IFS=$as_save_IFS 2306 2307fi 2308fi 2309STRIP=$ac_cv_prog_STRIP 2310if test -n "$STRIP"; then 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2312$as_echo "$STRIP" >&6; } 2313else 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2315$as_echo "no" >&6; } 2316fi 2317 2318 2319fi 2320if test -z "$ac_cv_prog_STRIP"; then 2321 ac_ct_STRIP=$STRIP 2322 # Extract the first word of "strip", so it can be a program name with args. 2323set dummy strip; ac_word=$2 2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2325$as_echo_n "checking for $ac_word... " >&6; } 2326if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2327 $as_echo_n "(cached) " >&6 2328else 2329 if test -n "$ac_ct_STRIP"; then 2330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2331else 2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2333for as_dir in $PATH 2334do 2335 IFS=$as_save_IFS 2336 test -z "$as_dir" && as_dir=. 2337 for ac_exec_ext in '' $ac_executable_extensions; do 2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2339 ac_cv_prog_ac_ct_STRIP="strip" 2340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2341 break 2 2342 fi 2343done 2344 done 2345IFS=$as_save_IFS 2346 2347fi 2348fi 2349ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2350if test -n "$ac_ct_STRIP"; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2352$as_echo "$ac_ct_STRIP" >&6; } 2353else 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2355$as_echo "no" >&6; } 2356fi 2357 2358 if test "x$ac_ct_STRIP" = x; then 2359 STRIP=":" 2360 else 2361 case $cross_compiling:$ac_tool_warned in 2362yes:) 2363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2365ac_tool_warned=yes ;; 2366esac 2367 STRIP=$ac_ct_STRIP 2368 fi 2369else 2370 STRIP="$ac_cv_prog_STRIP" 2371fi 2372 2373fi 2374INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2375 2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2377$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2378if test -z "$MKDIR_P"; then 2379 if ${ac_cv_path_mkdir+:} false; then : 2380 $as_echo_n "(cached) " >&6 2381else 2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2384do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 for ac_prog in mkdir gmkdir; do 2388 for ac_exec_ext in '' $ac_executable_extensions; do 2389 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2390 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2391 'mkdir (GNU coreutils) '* | \ 2392 'mkdir (coreutils) '* | \ 2393 'mkdir (fileutils) '4.1*) 2394 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2395 break 3;; 2396 esac 2397 done 2398 done 2399 done 2400IFS=$as_save_IFS 2401 2402fi 2403 2404 test -d ./--version && rmdir ./--version 2405 if test "${ac_cv_path_mkdir+set}" = set; then 2406 MKDIR_P="$ac_cv_path_mkdir -p" 2407 else 2408 # As a last resort, use the slow shell script. Don't cache a 2409 # value for MKDIR_P within a source directory, because that will 2410 # break other packages using the cache if that directory is 2411 # removed, or if the value is a relative name. 2412 MKDIR_P="$ac_install_sh -d" 2413 fi 2414fi 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2416$as_echo "$MKDIR_P" >&6; } 2417 2418mkdir_p="$MKDIR_P" 2419case $mkdir_p in 2420 [\\/$]* | ?:[\\/]*) ;; 2421 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2422esac 2423 2424for ac_prog in gawk mawk nawk awk 2425do 2426 # Extract the first word of "$ac_prog", so it can be a program name with args. 2427set dummy $ac_prog; ac_word=$2 2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2429$as_echo_n "checking for $ac_word... " >&6; } 2430if ${ac_cv_prog_AWK+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432else 2433 if test -n "$AWK"; then 2434 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2435else 2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2437for as_dir in $PATH 2438do 2439 IFS=$as_save_IFS 2440 test -z "$as_dir" && as_dir=. 2441 for ac_exec_ext in '' $ac_executable_extensions; do 2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2443 ac_cv_prog_AWK="$ac_prog" 2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2445 break 2 2446 fi 2447done 2448 done 2449IFS=$as_save_IFS 2450 2451fi 2452fi 2453AWK=$ac_cv_prog_AWK 2454if test -n "$AWK"; then 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2456$as_echo "$AWK" >&6; } 2457else 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2459$as_echo "no" >&6; } 2460fi 2461 2462 2463 test -n "$AWK" && break 2464done 2465 2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2467$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2468set x ${MAKE-make} 2469ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2470if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2471 $as_echo_n "(cached) " >&6 2472else 2473 cat >conftest.make <<\_ACEOF 2474SHELL = /bin/sh 2475all: 2476 @echo '@@@%%%=$(MAKE)=@@@%%%' 2477_ACEOF 2478# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2479case `${MAKE-make} -f conftest.make 2>/dev/null` in 2480 *@@@%%%=?*=@@@%%%*) 2481 eval ac_cv_prog_make_${ac_make}_set=yes;; 2482 *) 2483 eval ac_cv_prog_make_${ac_make}_set=no;; 2484esac 2485rm -f conftest.make 2486fi 2487if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2489$as_echo "yes" >&6; } 2490 SET_MAKE= 2491else 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2493$as_echo "no" >&6; } 2494 SET_MAKE="MAKE=${MAKE-make}" 2495fi 2496 2497rm -rf .tst 2>/dev/null 2498mkdir .tst 2>/dev/null 2499if test -d .tst; then 2500 am__leading_dot=. 2501else 2502 am__leading_dot=_ 2503fi 2504rmdir .tst 2>/dev/null 2505 2506if test "`cd $srcdir && pwd`" != "`pwd`"; then 2507 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2508 # is not polluted with repeated "-I." 2509 am__isrc=' -I$(srcdir)' 2510 # test to see if srcdir already configured 2511 if test -f $srcdir/config.status; then 2512 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2513 fi 2514fi 2515 2516# test whether we have cygpath 2517if test -z "$CYGPATH_W"; then 2518 if (cygpath --version) >/dev/null 2>/dev/null; then 2519 CYGPATH_W='cygpath -w' 2520 else 2521 CYGPATH_W=echo 2522 fi 2523fi 2524 2525 2526# Define the identity of the package. 2527 PACKAGE='mkfontdir' 2528 VERSION='1.0.7' 2529 2530 2531cat >>confdefs.h <<_ACEOF 2532#define PACKAGE "$PACKAGE" 2533_ACEOF 2534 2535 2536cat >>confdefs.h <<_ACEOF 2537#define VERSION "$VERSION" 2538_ACEOF 2539 2540# Some tools Automake needs. 2541 2542ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2543 2544 2545AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2546 2547 2548AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2549 2550 2551AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2552 2553 2554MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2555 2556# We need awk for the "check" target. The system "awk" is bad on 2557# some platforms. 2558# Always define AMTAR for backward compatibility. 2559 2560AMTAR=${AMTAR-"${am_missing_run}tar"} 2561 2562am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2563 2564 2565 2566 2567 2568 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2570$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2571 # Check whether --enable-maintainer-mode was given. 2572if test "${enable_maintainer_mode+set}" = set; then : 2573 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2574else 2575 USE_MAINTAINER_MODE=no 2576fi 2577 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2579$as_echo "$USE_MAINTAINER_MODE" >&6; } 2580 if test $USE_MAINTAINER_MODE = yes; then 2581 MAINTAINER_MODE_TRUE= 2582 MAINTAINER_MODE_FALSE='#' 2583else 2584 MAINTAINER_MODE_TRUE='#' 2585 MAINTAINER_MODE_FALSE= 2586fi 2587 2588 MAINT=$MAINTAINER_MODE_TRUE 2589 2590 2591 2592# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604DEPDIR="${am__leading_dot}deps" 2605 2606ac_config_commands="$ac_config_commands depfiles" 2607 2608 2609am_make=${MAKE-make} 2610cat > confinc << 'END' 2611am__doit: 2612 @echo this is the am__doit target 2613.PHONY: am__doit 2614END 2615# If we don't find an include directive, just comment out the code. 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2617$as_echo_n "checking for style of include used by $am_make... " >&6; } 2618am__include="#" 2619am__quote= 2620_am_result=none 2621# First try GNU make style include. 2622echo "include confinc" > confmf 2623# Ignore all kinds of additional output from `make'. 2624case `$am_make -s -f confmf 2> /dev/null` in #( 2625*the\ am__doit\ target*) 2626 am__include=include 2627 am__quote= 2628 _am_result=GNU 2629 ;; 2630esac 2631# Now try BSD make style include. 2632if test "$am__include" = "#"; then 2633 echo '.include "confinc"' > confmf 2634 case `$am_make -s -f confmf 2> /dev/null` in #( 2635 *the\ am__doit\ target*) 2636 am__include=.include 2637 am__quote="\"" 2638 _am_result=BSD 2639 ;; 2640 esac 2641fi 2642 2643 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2645$as_echo "$_am_result" >&6; } 2646rm -f confinc confmf 2647 2648# Check whether --enable-dependency-tracking was given. 2649if test "${enable_dependency_tracking+set}" = set; then : 2650 enableval=$enable_dependency_tracking; 2651fi 2652 2653if test "x$enable_dependency_tracking" != xno; then 2654 am_depcomp="$ac_aux_dir/depcomp" 2655 AMDEPBACKSLASH='\' 2656fi 2657 if test "x$enable_dependency_tracking" != xno; then 2658 AMDEP_TRUE= 2659 AMDEP_FALSE='#' 2660else 2661 AMDEP_TRUE='#' 2662 AMDEP_FALSE= 2663fi 2664 2665 2666ac_ext=c 2667ac_cpp='$CPP $CPPFLAGS' 2668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2670ac_compiler_gnu=$ac_cv_c_compiler_gnu 2671if test -n "$ac_tool_prefix"; then 2672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2673set dummy ${ac_tool_prefix}gcc; ac_word=$2 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2675$as_echo_n "checking for $ac_word... " >&6; } 2676if ${ac_cv_prog_CC+:} false; then : 2677 $as_echo_n "(cached) " >&6 2678else 2679 if test -n "$CC"; then 2680 ac_cv_prog_CC="$CC" # Let the user override the test. 2681else 2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2689 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2691 break 2 2692 fi 2693done 2694 done 2695IFS=$as_save_IFS 2696 2697fi 2698fi 2699CC=$ac_cv_prog_CC 2700if test -n "$CC"; then 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2702$as_echo "$CC" >&6; } 2703else 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2705$as_echo "no" >&6; } 2706fi 2707 2708 2709fi 2710if test -z "$ac_cv_prog_CC"; then 2711 ac_ct_CC=$CC 2712 # Extract the first word of "gcc", so it can be a program name with args. 2713set dummy gcc; ac_word=$2 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2715$as_echo_n "checking for $ac_word... " >&6; } 2716if ${ac_cv_prog_ac_ct_CC+:} false; then : 2717 $as_echo_n "(cached) " >&6 2718else 2719 if test -n "$ac_ct_CC"; then 2720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2721else 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2729 ac_cv_prog_ac_ct_CC="gcc" 2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2731 break 2 2732 fi 2733done 2734 done 2735IFS=$as_save_IFS 2736 2737fi 2738fi 2739ac_ct_CC=$ac_cv_prog_ac_ct_CC 2740if test -n "$ac_ct_CC"; then 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2742$as_echo "$ac_ct_CC" >&6; } 2743else 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2745$as_echo "no" >&6; } 2746fi 2747 2748 if test "x$ac_ct_CC" = x; then 2749 CC="" 2750 else 2751 case $cross_compiling:$ac_tool_warned in 2752yes:) 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2755ac_tool_warned=yes ;; 2756esac 2757 CC=$ac_ct_CC 2758 fi 2759else 2760 CC="$ac_cv_prog_CC" 2761fi 2762 2763if test -z "$CC"; then 2764 if test -n "$ac_tool_prefix"; then 2765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2766set dummy ${ac_tool_prefix}cc; ac_word=$2 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2768$as_echo_n "checking for $ac_word... " >&6; } 2769if ${ac_cv_prog_CC+:} false; then : 2770 $as_echo_n "(cached) " >&6 2771else 2772 if test -n "$CC"; then 2773 ac_cv_prog_CC="$CC" # Let the user override the test. 2774else 2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776for as_dir in $PATH 2777do 2778 IFS=$as_save_IFS 2779 test -z "$as_dir" && as_dir=. 2780 for ac_exec_ext in '' $ac_executable_extensions; do 2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2782 ac_cv_prog_CC="${ac_tool_prefix}cc" 2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2784 break 2 2785 fi 2786done 2787 done 2788IFS=$as_save_IFS 2789 2790fi 2791fi 2792CC=$ac_cv_prog_CC 2793if test -n "$CC"; then 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2795$as_echo "$CC" >&6; } 2796else 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2798$as_echo "no" >&6; } 2799fi 2800 2801 2802 fi 2803fi 2804if test -z "$CC"; then 2805 # Extract the first word of "cc", so it can be a program name with args. 2806set dummy cc; ac_word=$2 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2808$as_echo_n "checking for $ac_word... " >&6; } 2809if ${ac_cv_prog_CC+:} false; then : 2810 $as_echo_n "(cached) " >&6 2811else 2812 if test -n "$CC"; then 2813 ac_cv_prog_CC="$CC" # Let the user override the test. 2814else 2815 ac_prog_rejected=no 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 test -z "$as_dir" && as_dir=. 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2824 ac_prog_rejected=yes 2825 continue 2826 fi 2827 ac_cv_prog_CC="cc" 2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2829 break 2 2830 fi 2831done 2832 done 2833IFS=$as_save_IFS 2834 2835if test $ac_prog_rejected = yes; then 2836 # We found a bogon in the path, so make sure we never use it. 2837 set dummy $ac_cv_prog_CC 2838 shift 2839 if test $# != 0; then 2840 # We chose a different compiler from the bogus one. 2841 # However, it has the same basename, so the bogon will be chosen 2842 # first if we set CC to just the basename; use the full file name. 2843 shift 2844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2845 fi 2846fi 2847fi 2848fi 2849CC=$ac_cv_prog_CC 2850if test -n "$CC"; then 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2852$as_echo "$CC" >&6; } 2853else 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2855$as_echo "no" >&6; } 2856fi 2857 2858 2859fi 2860if test -z "$CC"; then 2861 if test -n "$ac_tool_prefix"; then 2862 for ac_prog in cl.exe 2863 do 2864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2865set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867$as_echo_n "checking for $ac_word... " >&6; } 2868if ${ac_cv_prog_CC+:} false; then : 2869 $as_echo_n "(cached) " >&6 2870else 2871 if test -n "$CC"; then 2872 ac_cv_prog_CC="$CC" # Let the user override the test. 2873else 2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2875for as_dir in $PATH 2876do 2877 IFS=$as_save_IFS 2878 test -z "$as_dir" && as_dir=. 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi 2890fi 2891CC=$ac_cv_prog_CC 2892if test -n "$CC"; then 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2894$as_echo "$CC" >&6; } 2895else 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2897$as_echo "no" >&6; } 2898fi 2899 2900 2901 test -n "$CC" && break 2902 done 2903fi 2904if test -z "$CC"; then 2905 ac_ct_CC=$CC 2906 for ac_prog in cl.exe 2907do 2908 # Extract the first word of "$ac_prog", so it can be a program name with args. 2909set dummy $ac_prog; ac_word=$2 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2911$as_echo_n "checking for $ac_word... " >&6; } 2912if ${ac_cv_prog_ac_ct_CC+:} false; then : 2913 $as_echo_n "(cached) " >&6 2914else 2915 if test -n "$ac_ct_CC"; then 2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2917else 2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2919for as_dir in $PATH 2920do 2921 IFS=$as_save_IFS 2922 test -z "$as_dir" && as_dir=. 2923 for ac_exec_ext in '' $ac_executable_extensions; do 2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2925 ac_cv_prog_ac_ct_CC="$ac_prog" 2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2927 break 2 2928 fi 2929done 2930 done 2931IFS=$as_save_IFS 2932 2933fi 2934fi 2935ac_ct_CC=$ac_cv_prog_ac_ct_CC 2936if test -n "$ac_ct_CC"; then 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2938$as_echo "$ac_ct_CC" >&6; } 2939else 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2941$as_echo "no" >&6; } 2942fi 2943 2944 2945 test -n "$ac_ct_CC" && break 2946done 2947 2948 if test "x$ac_ct_CC" = x; then 2949 CC="" 2950 else 2951 case $cross_compiling:$ac_tool_warned in 2952yes:) 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2955ac_tool_warned=yes ;; 2956esac 2957 CC=$ac_ct_CC 2958 fi 2959fi 2960 2961fi 2962 2963 2964test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2966as_fn_error $? "no acceptable C compiler found in \$PATH 2967See \`config.log' for more details" "$LINENO" 5; } 2968 2969# Provide some information about the compiler. 2970$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2971set X $ac_compile 2972ac_compiler=$2 2973for ac_option in --version -v -V -qversion; do 2974 { { ac_try="$ac_compiler $ac_option >&5" 2975case "(($ac_try" in 2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2977 *) ac_try_echo=$ac_try;; 2978esac 2979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2980$as_echo "$ac_try_echo"; } >&5 2981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2982 ac_status=$? 2983 if test -s conftest.err; then 2984 sed '10a\ 2985... rest of stderr output deleted ... 2986 10q' conftest.err >conftest.er1 2987 cat conftest.er1 >&5 2988 fi 2989 rm -f conftest.er1 conftest.err 2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2991 test $ac_status = 0; } 2992done 2993 2994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2995/* end confdefs.h. */ 2996 2997int 2998main () 2999{ 3000 3001 ; 3002 return 0; 3003} 3004_ACEOF 3005ac_clean_files_save=$ac_clean_files 3006ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3007# Try to create an executable without -o first, disregard a.out. 3008# It will help us diagnose broken compilers, and finding out an intuition 3009# of exeext. 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3011$as_echo_n "checking whether the C compiler works... " >&6; } 3012ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3013 3014# The possible output files: 3015ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3016 3017ac_rmfiles= 3018for ac_file in $ac_files 3019do 3020 case $ac_file in 3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3022 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3023 esac 3024done 3025rm -f $ac_rmfiles 3026 3027if { { ac_try="$ac_link_default" 3028case "(($ac_try" in 3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3030 *) ac_try_echo=$ac_try;; 3031esac 3032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3033$as_echo "$ac_try_echo"; } >&5 3034 (eval "$ac_link_default") 2>&5 3035 ac_status=$? 3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3037 test $ac_status = 0; }; then : 3038 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3039# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3040# in a Makefile. We should not override ac_cv_exeext if it was cached, 3041# so that the user can short-circuit this test for compilers unknown to 3042# Autoconf. 3043for ac_file in $ac_files '' 3044do 3045 test -f "$ac_file" || continue 3046 case $ac_file in 3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3048 ;; 3049 [ab].out ) 3050 # We found the default executable, but exeext='' is most 3051 # certainly right. 3052 break;; 3053 *.* ) 3054 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3055 then :; else 3056 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3057 fi 3058 # We set ac_cv_exeext here because the later test for it is not 3059 # safe: cross compilers may not add the suffix if given an `-o' 3060 # argument, so we may need to know it at that point already. 3061 # Even if this section looks crufty: it has the advantage of 3062 # actually working. 3063 break;; 3064 * ) 3065 break;; 3066 esac 3067done 3068test "$ac_cv_exeext" = no && ac_cv_exeext= 3069 3070else 3071 ac_file='' 3072fi 3073if test -z "$ac_file"; then : 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3075$as_echo "no" >&6; } 3076$as_echo "$as_me: failed program was:" >&5 3077sed 's/^/| /' conftest.$ac_ext >&5 3078 3079{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3081as_fn_error 77 "C compiler cannot create executables 3082See \`config.log' for more details" "$LINENO" 5; } 3083else 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3085$as_echo "yes" >&6; } 3086fi 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3088$as_echo_n "checking for C compiler default output file name... " >&6; } 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3090$as_echo "$ac_file" >&6; } 3091ac_exeext=$ac_cv_exeext 3092 3093rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3094ac_clean_files=$ac_clean_files_save 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3096$as_echo_n "checking for suffix of executables... " >&6; } 3097if { { ac_try="$ac_link" 3098case "(($ac_try" in 3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3100 *) ac_try_echo=$ac_try;; 3101esac 3102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3103$as_echo "$ac_try_echo"; } >&5 3104 (eval "$ac_link") 2>&5 3105 ac_status=$? 3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3107 test $ac_status = 0; }; then : 3108 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3109# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3110# work properly (i.e., refer to `conftest.exe'), while it won't with 3111# `rm'. 3112for ac_file in conftest.exe conftest conftest.*; do 3113 test -f "$ac_file" || continue 3114 case $ac_file in 3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3117 break;; 3118 * ) break;; 3119 esac 3120done 3121else 3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3124as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3125See \`config.log' for more details" "$LINENO" 5; } 3126fi 3127rm -f conftest conftest$ac_cv_exeext 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3129$as_echo "$ac_cv_exeext" >&6; } 3130 3131rm -f conftest.$ac_ext 3132EXEEXT=$ac_cv_exeext 3133ac_exeext=$EXEEXT 3134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3135/* end confdefs.h. */ 3136#include <stdio.h> 3137int 3138main () 3139{ 3140FILE *f = fopen ("conftest.out", "w"); 3141 return ferror (f) || fclose (f) != 0; 3142 3143 ; 3144 return 0; 3145} 3146_ACEOF 3147ac_clean_files="$ac_clean_files conftest.out" 3148# Check that the compiler produces executables we can run. If not, either 3149# the compiler is broken, or we cross compile. 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3151$as_echo_n "checking whether we are cross compiling... " >&6; } 3152if test "$cross_compiling" != yes; then 3153 { { ac_try="$ac_link" 3154case "(($ac_try" in 3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3156 *) ac_try_echo=$ac_try;; 3157esac 3158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3159$as_echo "$ac_try_echo"; } >&5 3160 (eval "$ac_link") 2>&5 3161 ac_status=$? 3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3163 test $ac_status = 0; } 3164 if { ac_try='./conftest$ac_cv_exeext' 3165 { { case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168esac 3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3170$as_echo "$ac_try_echo"; } >&5 3171 (eval "$ac_try") 2>&5 3172 ac_status=$? 3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3174 test $ac_status = 0; }; }; then 3175 cross_compiling=no 3176 else 3177 if test "$cross_compiling" = maybe; then 3178 cross_compiling=yes 3179 else 3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3182as_fn_error $? "cannot run C compiled programs. 3183If you meant to cross compile, use \`--host'. 3184See \`config.log' for more details" "$LINENO" 5; } 3185 fi 3186 fi 3187fi 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3189$as_echo "$cross_compiling" >&6; } 3190 3191rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3192ac_clean_files=$ac_clean_files_save 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3194$as_echo_n "checking for suffix of object files... " >&6; } 3195if ${ac_cv_objext+:} false; then : 3196 $as_echo_n "(cached) " >&6 3197else 3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3199/* end confdefs.h. */ 3200 3201int 3202main () 3203{ 3204 3205 ; 3206 return 0; 3207} 3208_ACEOF 3209rm -f conftest.o conftest.obj 3210if { { ac_try="$ac_compile" 3211case "(($ac_try" in 3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3213 *) ac_try_echo=$ac_try;; 3214esac 3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3216$as_echo "$ac_try_echo"; } >&5 3217 (eval "$ac_compile") 2>&5 3218 ac_status=$? 3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3220 test $ac_status = 0; }; then : 3221 for ac_file in conftest.o conftest.obj conftest.*; do 3222 test -f "$ac_file" || continue; 3223 case $ac_file in 3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3226 break;; 3227 esac 3228done 3229else 3230 $as_echo "$as_me: failed program was:" >&5 3231sed 's/^/| /' conftest.$ac_ext >&5 3232 3233{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3235as_fn_error $? "cannot compute suffix of object files: cannot compile 3236See \`config.log' for more details" "$LINENO" 5; } 3237fi 3238rm -f conftest.$ac_cv_objext conftest.$ac_ext 3239fi 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3241$as_echo "$ac_cv_objext" >&6; } 3242OBJEXT=$ac_cv_objext 3243ac_objext=$OBJEXT 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3245$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3246if ${ac_cv_c_compiler_gnu+:} false; then : 3247 $as_echo_n "(cached) " >&6 3248else 3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250/* end confdefs.h. */ 3251 3252int 3253main () 3254{ 3255#ifndef __GNUC__ 3256 choke me 3257#endif 3258 3259 ; 3260 return 0; 3261} 3262_ACEOF 3263if ac_fn_c_try_compile "$LINENO"; then : 3264 ac_compiler_gnu=yes 3265else 3266 ac_compiler_gnu=no 3267fi 3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3269ac_cv_c_compiler_gnu=$ac_compiler_gnu 3270 3271fi 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3273$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3274if test $ac_compiler_gnu = yes; then 3275 GCC=yes 3276else 3277 GCC= 3278fi 3279ac_test_CFLAGS=${CFLAGS+set} 3280ac_save_CFLAGS=$CFLAGS 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3282$as_echo_n "checking whether $CC accepts -g... " >&6; } 3283if ${ac_cv_prog_cc_g+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 ac_save_c_werror_flag=$ac_c_werror_flag 3287 ac_c_werror_flag=yes 3288 ac_cv_prog_cc_g=no 3289 CFLAGS="-g" 3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3291/* end confdefs.h. */ 3292 3293int 3294main () 3295{ 3296 3297 ; 3298 return 0; 3299} 3300_ACEOF 3301if ac_fn_c_try_compile "$LINENO"; then : 3302 ac_cv_prog_cc_g=yes 3303else 3304 CFLAGS="" 3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3306/* end confdefs.h. */ 3307 3308int 3309main () 3310{ 3311 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316if ac_fn_c_try_compile "$LINENO"; then : 3317 3318else 3319 ac_c_werror_flag=$ac_save_c_werror_flag 3320 CFLAGS="-g" 3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3322/* end confdefs.h. */ 3323 3324int 3325main () 3326{ 3327 3328 ; 3329 return 0; 3330} 3331_ACEOF 3332if ac_fn_c_try_compile "$LINENO"; then : 3333 ac_cv_prog_cc_g=yes 3334fi 3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3336fi 3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3338fi 3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3340 ac_c_werror_flag=$ac_save_c_werror_flag 3341fi 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3343$as_echo "$ac_cv_prog_cc_g" >&6; } 3344if test "$ac_test_CFLAGS" = set; then 3345 CFLAGS=$ac_save_CFLAGS 3346elif test $ac_cv_prog_cc_g = yes; then 3347 if test "$GCC" = yes; then 3348 CFLAGS="-g -O2" 3349 else 3350 CFLAGS="-g" 3351 fi 3352else 3353 if test "$GCC" = yes; then 3354 CFLAGS="-O2" 3355 else 3356 CFLAGS= 3357 fi 3358fi 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3360$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3361if ${ac_cv_prog_cc_c89+:} false; then : 3362 $as_echo_n "(cached) " >&6 3363else 3364 ac_cv_prog_cc_c89=no 3365ac_save_CC=$CC 3366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3367/* end confdefs.h. */ 3368#include <stdarg.h> 3369#include <stdio.h> 3370#include <sys/types.h> 3371#include <sys/stat.h> 3372/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3373struct buf { int x; }; 3374FILE * (*rcsopen) (struct buf *, struct stat *, int); 3375static char *e (p, i) 3376 char **p; 3377 int i; 3378{ 3379 return p[i]; 3380} 3381static char *f (char * (*g) (char **, int), char **p, ...) 3382{ 3383 char *s; 3384 va_list v; 3385 va_start (v,p); 3386 s = g (p, va_arg (v,int)); 3387 va_end (v); 3388 return s; 3389} 3390 3391/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3392 function prototypes and stuff, but not '\xHH' hex character constants. 3393 These don't provoke an error unfortunately, instead are silently treated 3394 as 'x'. The following induces an error, until -std is added to get 3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3396 array size at least. It's necessary to write '\x00'==0 to get something 3397 that's true only with -std. */ 3398int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3399 3400/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3401 inside strings and character constants. */ 3402#define FOO(x) 'x' 3403int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3404 3405int test (int i, double x); 3406struct s1 {int (*f) (int a);}; 3407struct s2 {int (*f) (double a);}; 3408int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3409int argc; 3410char **argv; 3411int 3412main () 3413{ 3414return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3415 ; 3416 return 0; 3417} 3418_ACEOF 3419for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3421do 3422 CC="$ac_save_CC $ac_arg" 3423 if ac_fn_c_try_compile "$LINENO"; then : 3424 ac_cv_prog_cc_c89=$ac_arg 3425fi 3426rm -f core conftest.err conftest.$ac_objext 3427 test "x$ac_cv_prog_cc_c89" != "xno" && break 3428done 3429rm -f conftest.$ac_ext 3430CC=$ac_save_CC 3431 3432fi 3433# AC_CACHE_VAL 3434case "x$ac_cv_prog_cc_c89" in 3435 x) 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3437$as_echo "none needed" >&6; } ;; 3438 xno) 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3440$as_echo "unsupported" >&6; } ;; 3441 *) 3442 CC="$CC $ac_cv_prog_cc_c89" 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3444$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3445esac 3446if test "x$ac_cv_prog_cc_c89" != xno; then : 3447 3448fi 3449 3450ac_ext=c 3451ac_cpp='$CPP $CPPFLAGS' 3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3454ac_compiler_gnu=$ac_cv_c_compiler_gnu 3455 3456depcc="$CC" am_compiler_list= 3457 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3459$as_echo_n "checking dependency style of $depcc... " >&6; } 3460if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3461 $as_echo_n "(cached) " >&6 3462else 3463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3464 # We make a subdir and do the tests there. Otherwise we can end up 3465 # making bogus files that we don't know about and never remove. For 3466 # instance it was reported that on HP-UX the gcc test will end up 3467 # making a dummy file named `D' -- because `-MD' means `put the output 3468 # in D'. 3469 mkdir conftest.dir 3470 # Copy depcomp to subdir because otherwise we won't find it if we're 3471 # using a relative directory. 3472 cp "$am_depcomp" conftest.dir 3473 cd conftest.dir 3474 # We will build objects and dependencies in a subdirectory because 3475 # it helps to detect inapplicable dependency modes. For instance 3476 # both Tru64's cc and ICC support -MD to output dependencies as a 3477 # side effect of compilation, but ICC will put the dependencies in 3478 # the current directory while Tru64 will put them in the object 3479 # directory. 3480 mkdir sub 3481 3482 am_cv_CC_dependencies_compiler_type=none 3483 if test "$am_compiler_list" = ""; then 3484 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3485 fi 3486 am__universal=false 3487 case " $depcc " in #( 3488 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3489 esac 3490 3491 for depmode in $am_compiler_list; do 3492 # Setup a source with many dependencies, because some compilers 3493 # like to wrap large dependency lists on column 80 (with \), and 3494 # we should not choose a depcomp mode which is confused by this. 3495 # 3496 # We need to recreate these files for each test, as the compiler may 3497 # overwrite some of them when testing with obscure command lines. 3498 # This happens at least with the AIX C compiler. 3499 : > sub/conftest.c 3500 for i in 1 2 3 4 5 6; do 3501 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3502 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3503 # Solaris 8's {/usr,}/bin/sh. 3504 touch sub/conftst$i.h 3505 done 3506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3507 3508 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3509 # mode. It turns out that the SunPro C++ compiler does not properly 3510 # handle `-M -o', and we need to detect this. Also, some Intel 3511 # versions had trouble with output in subdirs 3512 am__obj=sub/conftest.${OBJEXT-o} 3513 am__minus_obj="-o $am__obj" 3514 case $depmode in 3515 gcc) 3516 # This depmode causes a compiler race in universal mode. 3517 test "$am__universal" = false || continue 3518 ;; 3519 nosideeffect) 3520 # after this tag, mechanisms are not by side-effect, so they'll 3521 # only be used when explicitly requested 3522 if test "x$enable_dependency_tracking" = xyes; then 3523 continue 3524 else 3525 break 3526 fi 3527 ;; 3528 msvisualcpp | msvcmsys) 3529 # This compiler won't grok `-c -o', but also, the minuso test has 3530 # not run yet. These depmodes are late enough in the game, and 3531 # so weak that their functioning should not be impacted. 3532 am__obj=conftest.${OBJEXT-o} 3533 am__minus_obj= 3534 ;; 3535 none) break ;; 3536 esac 3537 if depmode=$depmode \ 3538 source=sub/conftest.c object=$am__obj \ 3539 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3540 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3541 >/dev/null 2>conftest.err && 3542 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3544 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3546 # icc doesn't choke on unknown options, it will just issue warnings 3547 # or remarks (even with -Werror). So we grep stderr for any message 3548 # that says an option was ignored or not supported. 3549 # When given -MP, icc 7.0 and 7.1 complain thusly: 3550 # icc: Command line warning: ignoring option '-M'; no argument required 3551 # The diagnosis changed in icc 8.0: 3552 # icc: Command line remark: option '-MP' not supported 3553 if (grep 'ignoring option' conftest.err || 3554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3555 am_cv_CC_dependencies_compiler_type=$depmode 3556 break 3557 fi 3558 fi 3559 done 3560 3561 cd .. 3562 rm -rf conftest.dir 3563else 3564 am_cv_CC_dependencies_compiler_type=none 3565fi 3566 3567fi 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3569$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3570CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3571 3572 if 3573 test "x$enable_dependency_tracking" != xno \ 3574 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3575 am__fastdepCC_TRUE= 3576 am__fastdepCC_FALSE='#' 3577else 3578 am__fastdepCC_TRUE='#' 3579 am__fastdepCC_FALSE= 3580fi 3581 3582 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3584$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3585if ${ac_cv_prog_cc_c99+:} false; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 ac_cv_prog_cc_c99=no 3589ac_save_CC=$CC 3590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3591/* end confdefs.h. */ 3592#include <stdarg.h> 3593#include <stdbool.h> 3594#include <stdlib.h> 3595#include <wchar.h> 3596#include <stdio.h> 3597 3598// Check varargs macros. These examples are taken from C99 6.10.3.5. 3599#define debug(...) fprintf (stderr, __VA_ARGS__) 3600#define showlist(...) puts (#__VA_ARGS__) 3601#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3602static void 3603test_varargs_macros (void) 3604{ 3605 int x = 1234; 3606 int y = 5678; 3607 debug ("Flag"); 3608 debug ("X = %d\n", x); 3609 showlist (The first, second, and third items.); 3610 report (x>y, "x is %d but y is %d", x, y); 3611} 3612 3613// Check long long types. 3614#define BIG64 18446744073709551615ull 3615#define BIG32 4294967295ul 3616#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3617#if !BIG_OK 3618 your preprocessor is broken; 3619#endif 3620#if BIG_OK 3621#else 3622 your preprocessor is broken; 3623#endif 3624static long long int bignum = -9223372036854775807LL; 3625static unsigned long long int ubignum = BIG64; 3626 3627struct incomplete_array 3628{ 3629 int datasize; 3630 double data[]; 3631}; 3632 3633struct named_init { 3634 int number; 3635 const wchar_t *name; 3636 double average; 3637}; 3638 3639typedef const char *ccp; 3640 3641static inline int 3642test_restrict (ccp restrict text) 3643{ 3644 // See if C++-style comments work. 3645 // Iterate through items via the restricted pointer. 3646 // Also check for declarations in for loops. 3647 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3648 continue; 3649 return 0; 3650} 3651 3652// Check varargs and va_copy. 3653static void 3654test_varargs (const char *format, ...) 3655{ 3656 va_list args; 3657 va_start (args, format); 3658 va_list args_copy; 3659 va_copy (args_copy, args); 3660 3661 const char *str; 3662 int number; 3663 float fnumber; 3664 3665 while (*format) 3666 { 3667 switch (*format++) 3668 { 3669 case 's': // string 3670 str = va_arg (args_copy, const char *); 3671 break; 3672 case 'd': // int 3673 number = va_arg (args_copy, int); 3674 break; 3675 case 'f': // float 3676 fnumber = va_arg (args_copy, double); 3677 break; 3678 default: 3679 break; 3680 } 3681 } 3682 va_end (args_copy); 3683 va_end (args); 3684} 3685 3686int 3687main () 3688{ 3689 3690 // Check bool. 3691 _Bool success = false; 3692 3693 // Check restrict. 3694 if (test_restrict ("String literal") == 0) 3695 success = true; 3696 char *restrict newvar = "Another string"; 3697 3698 // Check varargs. 3699 test_varargs ("s, d' f .", "string", 65, 34.234); 3700 test_varargs_macros (); 3701 3702 // Check flexible array members. 3703 struct incomplete_array *ia = 3704 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3705 ia->datasize = 10; 3706 for (int i = 0; i < ia->datasize; ++i) 3707 ia->data[i] = i * 1.234; 3708 3709 // Check named initializers. 3710 struct named_init ni = { 3711 .number = 34, 3712 .name = L"Test wide string", 3713 .average = 543.34343, 3714 }; 3715 3716 ni.number = 58; 3717 3718 int dynamic_array[ni.number]; 3719 dynamic_array[ni.number - 1] = 543; 3720 3721 // work around unused variable warnings 3722 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3723 || dynamic_array[ni.number - 1] != 543); 3724 3725 ; 3726 return 0; 3727} 3728_ACEOF 3729for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3730do 3731 CC="$ac_save_CC $ac_arg" 3732 if ac_fn_c_try_compile "$LINENO"; then : 3733 ac_cv_prog_cc_c99=$ac_arg 3734fi 3735rm -f core conftest.err conftest.$ac_objext 3736 test "x$ac_cv_prog_cc_c99" != "xno" && break 3737done 3738rm -f conftest.$ac_ext 3739CC=$ac_save_CC 3740 3741fi 3742# AC_CACHE_VAL 3743case "x$ac_cv_prog_cc_c99" in 3744 x) 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3746$as_echo "none needed" >&6; } ;; 3747 xno) 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3749$as_echo "unsupported" >&6; } ;; 3750 *) 3751 CC="$CC $ac_cv_prog_cc_c99" 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3753$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3754esac 3755if test "x$ac_cv_prog_cc_c99" != xno; then : 3756 3757fi 3758 3759 3760 3761ac_ext=c 3762ac_cpp='$CPP $CPPFLAGS' 3763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3765ac_compiler_gnu=$ac_cv_c_compiler_gnu 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3767$as_echo_n "checking how to run the C preprocessor... " >&6; } 3768# On Suns, sometimes $CPP names a directory. 3769if test -n "$CPP" && test -d "$CPP"; then 3770 CPP= 3771fi 3772if test -z "$CPP"; then 3773 if ${ac_cv_prog_CPP+:} false; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 # Double quotes because CPP needs to be expanded 3777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3778 do 3779 ac_preproc_ok=false 3780for ac_c_preproc_warn_flag in '' yes 3781do 3782 # Use a header file that comes with gcc, so configuring glibc 3783 # with a fresh cross-compiler works. 3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3785 # <limits.h> exists even on freestanding compilers. 3786 # On the NeXT, cc -E runs the code through the compiler's parser, 3787 # not just through cpp. "Syntax error" is here to catch this case. 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790#ifdef __STDC__ 3791# include <limits.h> 3792#else 3793# include <assert.h> 3794#endif 3795 Syntax error 3796_ACEOF 3797if ac_fn_c_try_cpp "$LINENO"; then : 3798 3799else 3800 # Broken: fails on valid input. 3801continue 3802fi 3803rm -f conftest.err conftest.i conftest.$ac_ext 3804 3805 # OK, works on sane cases. Now check whether nonexistent headers 3806 # can be detected and how. 3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809#include <ac_nonexistent.h> 3810_ACEOF 3811if ac_fn_c_try_cpp "$LINENO"; then : 3812 # Broken: success on invalid input. 3813continue 3814else 3815 # Passes both tests. 3816ac_preproc_ok=: 3817break 3818fi 3819rm -f conftest.err conftest.i conftest.$ac_ext 3820 3821done 3822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3823rm -f conftest.i conftest.err conftest.$ac_ext 3824if $ac_preproc_ok; then : 3825 break 3826fi 3827 3828 done 3829 ac_cv_prog_CPP=$CPP 3830 3831fi 3832 CPP=$ac_cv_prog_CPP 3833else 3834 ac_cv_prog_CPP=$CPP 3835fi 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3837$as_echo "$CPP" >&6; } 3838ac_preproc_ok=false 3839for ac_c_preproc_warn_flag in '' yes 3840do 3841 # Use a header file that comes with gcc, so configuring glibc 3842 # with a fresh cross-compiler works. 3843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3844 # <limits.h> exists even on freestanding compilers. 3845 # On the NeXT, cc -E runs the code through the compiler's parser, 3846 # not just through cpp. "Syntax error" is here to catch this case. 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848/* end confdefs.h. */ 3849#ifdef __STDC__ 3850# include <limits.h> 3851#else 3852# include <assert.h> 3853#endif 3854 Syntax error 3855_ACEOF 3856if ac_fn_c_try_cpp "$LINENO"; then : 3857 3858else 3859 # Broken: fails on valid input. 3860continue 3861fi 3862rm -f conftest.err conftest.i conftest.$ac_ext 3863 3864 # OK, works on sane cases. Now check whether nonexistent headers 3865 # can be detected and how. 3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867/* end confdefs.h. */ 3868#include <ac_nonexistent.h> 3869_ACEOF 3870if ac_fn_c_try_cpp "$LINENO"; then : 3871 # Broken: success on invalid input. 3872continue 3873else 3874 # Passes both tests. 3875ac_preproc_ok=: 3876break 3877fi 3878rm -f conftest.err conftest.i conftest.$ac_ext 3879 3880done 3881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3882rm -f conftest.i conftest.err conftest.$ac_ext 3883if $ac_preproc_ok; then : 3884 3885else 3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3888as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3889See \`config.log' for more details" "$LINENO" 5; } 3890fi 3891 3892ac_ext=c 3893ac_cpp='$CPP $CPPFLAGS' 3894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3896ac_compiler_gnu=$ac_cv_c_compiler_gnu 3897 3898 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3900$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3901if ${ac_cv_path_GREP+:} false; then : 3902 $as_echo_n "(cached) " >&6 3903else 3904 if test -z "$GREP"; then 3905 ac_path_GREP_found=false 3906 # Loop through the user's path and test for each of PROGNAME-LIST 3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3908for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3909do 3910 IFS=$as_save_IFS 3911 test -z "$as_dir" && as_dir=. 3912 for ac_prog in grep ggrep; do 3913 for ac_exec_ext in '' $ac_executable_extensions; do 3914 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3915 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3916# Check for GNU ac_path_GREP and select it if it is found. 3917 # Check for GNU $ac_path_GREP 3918case `"$ac_path_GREP" --version 2>&1` in 3919*GNU*) 3920 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3921*) 3922 ac_count=0 3923 $as_echo_n 0123456789 >"conftest.in" 3924 while : 3925 do 3926 cat "conftest.in" "conftest.in" >"conftest.tmp" 3927 mv "conftest.tmp" "conftest.in" 3928 cp "conftest.in" "conftest.nl" 3929 $as_echo 'GREP' >> "conftest.nl" 3930 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3932 as_fn_arith $ac_count + 1 && ac_count=$as_val 3933 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3934 # Best one so far, save it but keep looking for a better one 3935 ac_cv_path_GREP="$ac_path_GREP" 3936 ac_path_GREP_max=$ac_count 3937 fi 3938 # 10*(2^10) chars as input seems more than enough 3939 test $ac_count -gt 10 && break 3940 done 3941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3942esac 3943 3944 $ac_path_GREP_found && break 3 3945 done 3946 done 3947 done 3948IFS=$as_save_IFS 3949 if test -z "$ac_cv_path_GREP"; then 3950 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3951 fi 3952else 3953 ac_cv_path_GREP=$GREP 3954fi 3955 3956fi 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3958$as_echo "$ac_cv_path_GREP" >&6; } 3959 GREP="$ac_cv_path_GREP" 3960 3961 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3963$as_echo_n "checking for egrep... " >&6; } 3964if ${ac_cv_path_EGREP+:} false; then : 3965 $as_echo_n "(cached) " >&6 3966else 3967 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3968 then ac_cv_path_EGREP="$GREP -E" 3969 else 3970 if test -z "$EGREP"; then 3971 ac_path_EGREP_found=false 3972 # Loop through the user's path and test for each of PROGNAME-LIST 3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3974for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3975do 3976 IFS=$as_save_IFS 3977 test -z "$as_dir" && as_dir=. 3978 for ac_prog in egrep; do 3979 for ac_exec_ext in '' $ac_executable_extensions; do 3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3981 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3982# Check for GNU ac_path_EGREP and select it if it is found. 3983 # Check for GNU $ac_path_EGREP 3984case `"$ac_path_EGREP" --version 2>&1` in 3985*GNU*) 3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3987*) 3988 ac_count=0 3989 $as_echo_n 0123456789 >"conftest.in" 3990 while : 3991 do 3992 cat "conftest.in" "conftest.in" >"conftest.tmp" 3993 mv "conftest.tmp" "conftest.in" 3994 cp "conftest.in" "conftest.nl" 3995 $as_echo 'EGREP' >> "conftest.nl" 3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3998 as_fn_arith $ac_count + 1 && ac_count=$as_val 3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4000 # Best one so far, save it but keep looking for a better one 4001 ac_cv_path_EGREP="$ac_path_EGREP" 4002 ac_path_EGREP_max=$ac_count 4003 fi 4004 # 10*(2^10) chars as input seems more than enough 4005 test $ac_count -gt 10 && break 4006 done 4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4008esac 4009 4010 $ac_path_EGREP_found && break 3 4011 done 4012 done 4013 done 4014IFS=$as_save_IFS 4015 if test -z "$ac_cv_path_EGREP"; then 4016 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4017 fi 4018else 4019 ac_cv_path_EGREP=$EGREP 4020fi 4021 4022 fi 4023fi 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4025$as_echo "$ac_cv_path_EGREP" >&6; } 4026 EGREP="$ac_cv_path_EGREP" 4027 4028 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4030$as_echo_n "checking for ANSI C header files... " >&6; } 4031if ${ac_cv_header_stdc+:} false; then : 4032 $as_echo_n "(cached) " >&6 4033else 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036#include <stdlib.h> 4037#include <stdarg.h> 4038#include <string.h> 4039#include <float.h> 4040 4041int 4042main () 4043{ 4044 4045 ; 4046 return 0; 4047} 4048_ACEOF 4049if ac_fn_c_try_compile "$LINENO"; then : 4050 ac_cv_header_stdc=yes 4051else 4052 ac_cv_header_stdc=no 4053fi 4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4055 4056if test $ac_cv_header_stdc = yes; then 4057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4059/* end confdefs.h. */ 4060#include <string.h> 4061 4062_ACEOF 4063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4064 $EGREP "memchr" >/dev/null 2>&1; then : 4065 4066else 4067 ac_cv_header_stdc=no 4068fi 4069rm -f conftest* 4070 4071fi 4072 4073if test $ac_cv_header_stdc = yes; then 4074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4076/* end confdefs.h. */ 4077#include <stdlib.h> 4078 4079_ACEOF 4080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4081 $EGREP "free" >/dev/null 2>&1; then : 4082 4083else 4084 ac_cv_header_stdc=no 4085fi 4086rm -f conftest* 4087 4088fi 4089 4090if test $ac_cv_header_stdc = yes; then 4091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4092 if test "$cross_compiling" = yes; then : 4093 : 4094else 4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097#include <ctype.h> 4098#include <stdlib.h> 4099#if ((' ' & 0x0FF) == 0x020) 4100# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4101# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4102#else 4103# define ISLOWER(c) \ 4104 (('a' <= (c) && (c) <= 'i') \ 4105 || ('j' <= (c) && (c) <= 'r') \ 4106 || ('s' <= (c) && (c) <= 'z')) 4107# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4108#endif 4109 4110#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4111int 4112main () 4113{ 4114 int i; 4115 for (i = 0; i < 256; i++) 4116 if (XOR (islower (i), ISLOWER (i)) 4117 || toupper (i) != TOUPPER (i)) 4118 return 2; 4119 return 0; 4120} 4121_ACEOF 4122if ac_fn_c_try_run "$LINENO"; then : 4123 4124else 4125 ac_cv_header_stdc=no 4126fi 4127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4128 conftest.$ac_objext conftest.beam conftest.$ac_ext 4129fi 4130 4131fi 4132fi 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4134$as_echo "$ac_cv_header_stdc" >&6; } 4135if test $ac_cv_header_stdc = yes; then 4136 4137$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4138 4139fi 4140 4141# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4142for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4143 inttypes.h stdint.h unistd.h 4144do : 4145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4146ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4147" 4148if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4149 cat >>confdefs.h <<_ACEOF 4150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4151_ACEOF 4152 4153fi 4154 4155done 4156 4157 4158 4159 4160ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4161if test "x$ac_cv_have_decl___clang__" = xyes; then : 4162 CLANGCC="yes" 4163else 4164 CLANGCC="no" 4165fi 4166 4167ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4168if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4169 INTELCC="yes" 4170else 4171 INTELCC="no" 4172fi 4173 4174ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4175if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4176 SUNCC="yes" 4177else 4178 SUNCC="no" 4179fi 4180 4181 4182 4183 4184if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4185 if test -n "$ac_tool_prefix"; then 4186 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4187set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4189$as_echo_n "checking for $ac_word... " >&6; } 4190if ${ac_cv_path_PKG_CONFIG+:} false; then : 4191 $as_echo_n "(cached) " >&6 4192else 4193 case $PKG_CONFIG in 4194 [\\/]* | ?:[\\/]*) 4195 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4196 ;; 4197 *) 4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4199for as_dir in $PATH 4200do 4201 IFS=$as_save_IFS 4202 test -z "$as_dir" && as_dir=. 4203 for ac_exec_ext in '' $ac_executable_extensions; do 4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4205 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4207 break 2 4208 fi 4209done 4210 done 4211IFS=$as_save_IFS 4212 4213 ;; 4214esac 4215fi 4216PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4217if test -n "$PKG_CONFIG"; then 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4219$as_echo "$PKG_CONFIG" >&6; } 4220else 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4222$as_echo "no" >&6; } 4223fi 4224 4225 4226fi 4227if test -z "$ac_cv_path_PKG_CONFIG"; then 4228 ac_pt_PKG_CONFIG=$PKG_CONFIG 4229 # Extract the first word of "pkg-config", so it can be a program name with args. 4230set dummy pkg-config; ac_word=$2 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4232$as_echo_n "checking for $ac_word... " >&6; } 4233if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 case $ac_pt_PKG_CONFIG in 4237 [\\/]* | ?:[\\/]*) 4238 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4239 ;; 4240 *) 4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4242for as_dir in $PATH 4243do 4244 IFS=$as_save_IFS 4245 test -z "$as_dir" && as_dir=. 4246 for ac_exec_ext in '' $ac_executable_extensions; do 4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4248 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4250 break 2 4251 fi 4252done 4253 done 4254IFS=$as_save_IFS 4255 4256 ;; 4257esac 4258fi 4259ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4260if test -n "$ac_pt_PKG_CONFIG"; then 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4262$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4263else 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4265$as_echo "no" >&6; } 4266fi 4267 4268 if test "x$ac_pt_PKG_CONFIG" = x; then 4269 PKG_CONFIG="" 4270 else 4271 case $cross_compiling:$ac_tool_warned in 4272yes:) 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4275ac_tool_warned=yes ;; 4276esac 4277 PKG_CONFIG=$ac_pt_PKG_CONFIG 4278 fi 4279else 4280 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4281fi 4282 4283fi 4284if test -n "$PKG_CONFIG"; then 4285 _pkg_min_version=0.9.0 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4287$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4288 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4290$as_echo "yes" >&6; } 4291 else 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4293$as_echo "no" >&6; } 4294 PKG_CONFIG="" 4295 fi 4296 4297fi 4298# Make sure we can run config.sub. 4299$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4300 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4301 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4303$as_echo_n "checking build system type... " >&6; } 4304if ${ac_cv_build+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 ac_build_alias=$build_alias 4308test "x$ac_build_alias" = x && 4309 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4310test "x$ac_build_alias" = x && 4311 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4312ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4313 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4314 4315fi 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4317$as_echo "$ac_cv_build" >&6; } 4318case $ac_cv_build in 4319*-*-*) ;; 4320*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4321esac 4322build=$ac_cv_build 4323ac_save_IFS=$IFS; IFS='-' 4324set x $ac_cv_build 4325shift 4326build_cpu=$1 4327build_vendor=$2 4328shift; shift 4329# Remember, the first character of IFS is used to create $*, 4330# except with old shells: 4331build_os=$* 4332IFS=$ac_save_IFS 4333case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4334 4335 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4337$as_echo_n "checking host system type... " >&6; } 4338if ${ac_cv_host+:} false; then : 4339 $as_echo_n "(cached) " >&6 4340else 4341 if test "x$host_alias" = x; then 4342 ac_cv_host=$ac_cv_build 4343else 4344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4345 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4346fi 4347 4348fi 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4350$as_echo "$ac_cv_host" >&6; } 4351case $ac_cv_host in 4352*-*-*) ;; 4353*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4354esac 4355host=$ac_cv_host 4356ac_save_IFS=$IFS; IFS='-' 4357set x $ac_cv_host 4358shift 4359host_cpu=$1 4360host_vendor=$2 4361shift; shift 4362# Remember, the first character of IFS is used to create $*, 4363# except with old shells: 4364host_os=$* 4365IFS=$ac_save_IFS 4366case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4367 4368 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4370$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4371if ${ac_cv_path_SED+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4375 for ac_i in 1 2 3 4 5 6 7; do 4376 ac_script="$ac_script$as_nl$ac_script" 4377 done 4378 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4379 { ac_script=; unset ac_script;} 4380 if test -z "$SED"; then 4381 ac_path_SED_found=false 4382 # Loop through the user's path and test for each of PROGNAME-LIST 4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4384for as_dir in $PATH 4385do 4386 IFS=$as_save_IFS 4387 test -z "$as_dir" && as_dir=. 4388 for ac_prog in sed gsed; do 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4391 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4392# Check for GNU ac_path_SED and select it if it is found. 4393 # Check for GNU $ac_path_SED 4394case `"$ac_path_SED" --version 2>&1` in 4395*GNU*) 4396 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4397*) 4398 ac_count=0 4399 $as_echo_n 0123456789 >"conftest.in" 4400 while : 4401 do 4402 cat "conftest.in" "conftest.in" >"conftest.tmp" 4403 mv "conftest.tmp" "conftest.in" 4404 cp "conftest.in" "conftest.nl" 4405 $as_echo '' >> "conftest.nl" 4406 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4408 as_fn_arith $ac_count + 1 && ac_count=$as_val 4409 if test $ac_count -gt ${ac_path_SED_max-0}; then 4410 # Best one so far, save it but keep looking for a better one 4411 ac_cv_path_SED="$ac_path_SED" 4412 ac_path_SED_max=$ac_count 4413 fi 4414 # 10*(2^10) chars as input seems more than enough 4415 test $ac_count -gt 10 && break 4416 done 4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4418esac 4419 4420 $ac_path_SED_found && break 3 4421 done 4422 done 4423 done 4424IFS=$as_save_IFS 4425 if test -z "$ac_cv_path_SED"; then 4426 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4427 fi 4428else 4429 ac_cv_path_SED=$SED 4430fi 4431 4432fi 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4434$as_echo "$ac_cv_path_SED" >&6; } 4435 SED="$ac_cv_path_SED" 4436 rm -f conftest.sed 4437 4438 4439 4440 4441 4442 4443# Check whether --enable-selective-werror was given. 4444if test "${enable_selective_werror+set}" = set; then : 4445 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4446else 4447 SELECTIVE_WERROR=yes 4448fi 4449 4450 4451# -v is too short to test reliably with XORG_TESTSET_CFLAG 4452if test "x$SUNCC" = "xyes"; then 4453 BASE_CFLAGS="-v" 4454else 4455 BASE_CFLAGS="" 4456fi 4457 4458# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4459 4460 4461 4462 4463 4464xorg_testset_save_CFLAGS="$CFLAGS" 4465 4466if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4469$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4470if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4471 $as_echo_n "(cached) " >&6 4472else 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4474/* end confdefs.h. */ 4475int i; 4476_ACEOF 4477if ac_fn_c_try_compile "$LINENO"; then : 4478 xorg_cv_cc_flag_unknown_warning_option=yes 4479else 4480 xorg_cv_cc_flag_unknown_warning_option=no 4481fi 4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4483fi 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4485$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4486 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4487 CFLAGS="$xorg_testset_save_CFLAGS" 4488fi 4489 4490if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4493 fi 4494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4496$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4497if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4498 $as_echo_n "(cached) " >&6 4499else 4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4501/* end confdefs.h. */ 4502int i; 4503_ACEOF 4504if ac_fn_c_try_compile "$LINENO"; then : 4505 xorg_cv_cc_flag_unused_command_line_argument=yes 4506else 4507 xorg_cv_cc_flag_unused_command_line_argument=no 4508fi 4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4510fi 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4512$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4513 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4514 CFLAGS="$xorg_testset_save_CFLAGS" 4515fi 4516 4517found="no" 4518 4519 if test $found = "no" ; then 4520 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4522 fi 4523 4524 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4526 fi 4527 4528 CFLAGS="$CFLAGS -Wall" 4529 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4531$as_echo_n "checking if $CC supports -Wall... " >&6; } 4532 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall` 4533 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4534 $as_echo_n "(cached) " >&6 4535else 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537/* end confdefs.h. */ 4538int i; 4539int 4540main () 4541{ 4542 4543 ; 4544 return 0; 4545} 4546_ACEOF 4547if ac_fn_c_try_link "$LINENO"; then : 4548 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4549else 4550 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4551fi 4552rm -f core conftest.err conftest.$ac_objext \ 4553 conftest$ac_exeext conftest.$ac_ext 4554fi 4555 4556 4557 CFLAGS="$xorg_testset_save_CFLAGS" 4558 4559 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4561$as_echo "$supported" >&6; } 4562 if test "$supported" = "yes" ; then 4563 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4564 found="yes" 4565 fi 4566 fi 4567 4568 4569 4570 4571 4572 4573 4574xorg_testset_save_CFLAGS="$CFLAGS" 4575 4576if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582else 4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4584/* end confdefs.h. */ 4585int i; 4586_ACEOF 4587if ac_fn_c_try_compile "$LINENO"; then : 4588 xorg_cv_cc_flag_unknown_warning_option=yes 4589else 4590 xorg_cv_cc_flag_unknown_warning_option=no 4591fi 4592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4593fi 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4596 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4597 CFLAGS="$xorg_testset_save_CFLAGS" 4598fi 4599 4600if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4603 fi 4604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4608 $as_echo_n "(cached) " >&6 4609else 4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4611/* end confdefs.h. */ 4612int i; 4613_ACEOF 4614if ac_fn_c_try_compile "$LINENO"; then : 4615 xorg_cv_cc_flag_unused_command_line_argument=yes 4616else 4617 xorg_cv_cc_flag_unused_command_line_argument=no 4618fi 4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4620fi 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4623 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4624 CFLAGS="$xorg_testset_save_CFLAGS" 4625fi 4626 4627found="no" 4628 4629 if test $found = "no" ; then 4630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4632 fi 4633 4634 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4636 fi 4637 4638 CFLAGS="$CFLAGS -Wpointer-arith" 4639 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4641$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4642 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith` 4643 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4644 $as_echo_n "(cached) " >&6 4645else 4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4647/* end confdefs.h. */ 4648int i; 4649int 4650main () 4651{ 4652 4653 ; 4654 return 0; 4655} 4656_ACEOF 4657if ac_fn_c_try_link "$LINENO"; then : 4658 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4659else 4660 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4661fi 4662rm -f core conftest.err conftest.$ac_objext \ 4663 conftest$ac_exeext conftest.$ac_ext 4664fi 4665 4666 4667 CFLAGS="$xorg_testset_save_CFLAGS" 4668 4669 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4671$as_echo "$supported" >&6; } 4672 if test "$supported" = "yes" ; then 4673 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4674 found="yes" 4675 fi 4676 fi 4677 4678 4679 4680 4681 4682 4683 4684xorg_testset_save_CFLAGS="$CFLAGS" 4685 4686if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4691 $as_echo_n "(cached) " >&6 4692else 4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4694/* end confdefs.h. */ 4695int i; 4696_ACEOF 4697if ac_fn_c_try_compile "$LINENO"; then : 4698 xorg_cv_cc_flag_unknown_warning_option=yes 4699else 4700 xorg_cv_cc_flag_unknown_warning_option=no 4701fi 4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4706 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4707 CFLAGS="$xorg_testset_save_CFLAGS" 4708fi 4709 4710if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4711 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4713 fi 4714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4718 $as_echo_n "(cached) " >&6 4719else 4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4721/* end confdefs.h. */ 4722int i; 4723_ACEOF 4724if ac_fn_c_try_compile "$LINENO"; then : 4725 xorg_cv_cc_flag_unused_command_line_argument=yes 4726else 4727 xorg_cv_cc_flag_unused_command_line_argument=no 4728fi 4729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4730fi 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4733 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4734 CFLAGS="$xorg_testset_save_CFLAGS" 4735fi 4736 4737found="no" 4738 4739 if test $found = "no" ; then 4740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4742 fi 4743 4744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4746 fi 4747 4748 CFLAGS="$CFLAGS -Wstrict-prototypes" 4749 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4751$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 4752 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes` 4753 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4754 $as_echo_n "(cached) " >&6 4755else 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758int i; 4759int 4760main () 4761{ 4762 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767if ac_fn_c_try_link "$LINENO"; then : 4768 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4769else 4770 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4771fi 4772rm -f core conftest.err conftest.$ac_objext \ 4773 conftest$ac_exeext conftest.$ac_ext 4774fi 4775 4776 4777 CFLAGS="$xorg_testset_save_CFLAGS" 4778 4779 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4781$as_echo "$supported" >&6; } 4782 if test "$supported" = "yes" ; then 4783 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4784 found="yes" 4785 fi 4786 fi 4787 4788 4789 4790 4791 4792 4793 4794xorg_testset_save_CFLAGS="$CFLAGS" 4795 4796if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4801 $as_echo_n "(cached) " >&6 4802else 4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805int i; 4806_ACEOF 4807if ac_fn_c_try_compile "$LINENO"; then : 4808 xorg_cv_cc_flag_unknown_warning_option=yes 4809else 4810 xorg_cv_cc_flag_unknown_warning_option=no 4811fi 4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4813fi 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4816 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4817 CFLAGS="$xorg_testset_save_CFLAGS" 4818fi 4819 4820if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4821 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4823 fi 4824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4828 $as_echo_n "(cached) " >&6 4829else 4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4831/* end confdefs.h. */ 4832int i; 4833_ACEOF 4834if ac_fn_c_try_compile "$LINENO"; then : 4835 xorg_cv_cc_flag_unused_command_line_argument=yes 4836else 4837 xorg_cv_cc_flag_unused_command_line_argument=no 4838fi 4839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4840fi 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4843 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4844 CFLAGS="$xorg_testset_save_CFLAGS" 4845fi 4846 4847found="no" 4848 4849 if test $found = "no" ; then 4850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4852 fi 4853 4854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4856 fi 4857 4858 CFLAGS="$CFLAGS -Wmissing-prototypes" 4859 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 4861$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 4862 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes` 4863 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4864 $as_echo_n "(cached) " >&6 4865else 4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4867/* end confdefs.h. */ 4868int i; 4869int 4870main () 4871{ 4872 4873 ; 4874 return 0; 4875} 4876_ACEOF 4877if ac_fn_c_try_link "$LINENO"; then : 4878 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4879else 4880 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4881fi 4882rm -f core conftest.err conftest.$ac_objext \ 4883 conftest$ac_exeext conftest.$ac_ext 4884fi 4885 4886 4887 CFLAGS="$xorg_testset_save_CFLAGS" 4888 4889 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4891$as_echo "$supported" >&6; } 4892 if test "$supported" = "yes" ; then 4893 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 4894 found="yes" 4895 fi 4896 fi 4897 4898 4899 4900 4901 4902 4903 4904xorg_testset_save_CFLAGS="$CFLAGS" 4905 4906if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4914/* end confdefs.h. */ 4915int i; 4916_ACEOF 4917if ac_fn_c_try_compile "$LINENO"; then : 4918 xorg_cv_cc_flag_unknown_warning_option=yes 4919else 4920 xorg_cv_cc_flag_unknown_warning_option=no 4921fi 4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4923fi 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4926 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4927 CFLAGS="$xorg_testset_save_CFLAGS" 4928fi 4929 4930if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4933 fi 4934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4941/* end confdefs.h. */ 4942int i; 4943_ACEOF 4944if ac_fn_c_try_compile "$LINENO"; then : 4945 xorg_cv_cc_flag_unused_command_line_argument=yes 4946else 4947 xorg_cv_cc_flag_unused_command_line_argument=no 4948fi 4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4950fi 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4953 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4954 CFLAGS="$xorg_testset_save_CFLAGS" 4955fi 4956 4957found="no" 4958 4959 if test $found = "no" ; then 4960 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4962 fi 4963 4964 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4966 fi 4967 4968 CFLAGS="$CFLAGS -Wmissing-declarations" 4969 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4971$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4972 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations` 4973 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4974 $as_echo_n "(cached) " >&6 4975else 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4977/* end confdefs.h. */ 4978int i; 4979int 4980main () 4981{ 4982 4983 ; 4984 return 0; 4985} 4986_ACEOF 4987if ac_fn_c_try_link "$LINENO"; then : 4988 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4989else 4990 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4991fi 4992rm -f core conftest.err conftest.$ac_objext \ 4993 conftest$ac_exeext conftest.$ac_ext 4994fi 4995 4996 4997 CFLAGS="$xorg_testset_save_CFLAGS" 4998 4999 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5001$as_echo "$supported" >&6; } 5002 if test "$supported" = "yes" ; then 5003 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5004 found="yes" 5005 fi 5006 fi 5007 5008 5009 5010 5011 5012 5013 5014xorg_testset_save_CFLAGS="$CFLAGS" 5015 5016if test "x$xorg_testset_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_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5037 CFLAGS="$xorg_testset_save_CFLAGS" 5038fi 5039 5040if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5041 if test "x$xorg_testset_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_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_unknown_warning_option" = "xyes" ; then 5071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5072 fi 5073 5074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5076 fi 5077 5078 CFLAGS="$CFLAGS -Wnested-externs" 5079 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5081$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5082 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs` 5083 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 `$as_echo "$cacheid" | $as_tr_sh`=yes 5099else 5100 eval `$as_echo "$cacheid" | $as_tr_sh`=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=$`$as_echo "$cacheid" | $as_tr_sh` 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 -Wnested-externs" 5114 found="yes" 5115 fi 5116 fi 5117 5118 5119 5120 5121 5122 5123 5124xorg_testset_save_CFLAGS="$CFLAGS" 5125 5126if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5134/* end confdefs.h. */ 5135int i; 5136_ACEOF 5137if ac_fn_c_try_compile "$LINENO"; then : 5138 xorg_cv_cc_flag_unknown_warning_option=yes 5139else 5140 xorg_cv_cc_flag_unknown_warning_option=no 5141fi 5142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5143fi 5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5146 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5147 CFLAGS="$xorg_testset_save_CFLAGS" 5148fi 5149 5150if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5153 fi 5154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5161/* end confdefs.h. */ 5162int i; 5163_ACEOF 5164if ac_fn_c_try_compile "$LINENO"; then : 5165 xorg_cv_cc_flag_unused_command_line_argument=yes 5166else 5167 xorg_cv_cc_flag_unused_command_line_argument=no 5168fi 5169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5170fi 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5173 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5174 CFLAGS="$xorg_testset_save_CFLAGS" 5175fi 5176 5177found="no" 5178 5179 if test $found = "no" ; then 5180 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5182 fi 5183 5184 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5186 fi 5187 5188 CFLAGS="$CFLAGS -Wbad-function-cast" 5189 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5191$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5192 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast` 5193 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5194 $as_echo_n "(cached) " >&6 5195else 5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5197/* end confdefs.h. */ 5198int i; 5199int 5200main () 5201{ 5202 5203 ; 5204 return 0; 5205} 5206_ACEOF 5207if ac_fn_c_try_link "$LINENO"; then : 5208 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5209else 5210 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5211fi 5212rm -f core conftest.err conftest.$ac_objext \ 5213 conftest$ac_exeext conftest.$ac_ext 5214fi 5215 5216 5217 CFLAGS="$xorg_testset_save_CFLAGS" 5218 5219 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5221$as_echo "$supported" >&6; } 5222 if test "$supported" = "yes" ; then 5223 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5224 found="yes" 5225 fi 5226 fi 5227 5228 5229 5230 5231 5232 5233 5234xorg_testset_save_CFLAGS="$CFLAGS" 5235 5236if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5239$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5240if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5241 $as_echo_n "(cached) " >&6 5242else 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244/* end confdefs.h. */ 5245int i; 5246_ACEOF 5247if ac_fn_c_try_compile "$LINENO"; then : 5248 xorg_cv_cc_flag_unknown_warning_option=yes 5249else 5250 xorg_cv_cc_flag_unknown_warning_option=no 5251fi 5252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5253fi 5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5255$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5256 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5257 CFLAGS="$xorg_testset_save_CFLAGS" 5258fi 5259 5260if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5263 fi 5264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5266$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5267if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5271/* end confdefs.h. */ 5272int i; 5273_ACEOF 5274if ac_fn_c_try_compile "$LINENO"; then : 5275 xorg_cv_cc_flag_unused_command_line_argument=yes 5276else 5277 xorg_cv_cc_flag_unused_command_line_argument=no 5278fi 5279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5280fi 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5282$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5283 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5284 CFLAGS="$xorg_testset_save_CFLAGS" 5285fi 5286 5287found="no" 5288 5289 if test $found = "no" ; then 5290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5292 fi 5293 5294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5296 fi 5297 5298 CFLAGS="$CFLAGS -Wformat=2" 5299 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5301$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5302 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2` 5303 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5307/* end confdefs.h. */ 5308int i; 5309int 5310main () 5311{ 5312 5313 ; 5314 return 0; 5315} 5316_ACEOF 5317if ac_fn_c_try_link "$LINENO"; then : 5318 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5319else 5320 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5321fi 5322rm -f core conftest.err conftest.$ac_objext \ 5323 conftest$ac_exeext conftest.$ac_ext 5324fi 5325 5326 5327 CFLAGS="$xorg_testset_save_CFLAGS" 5328 5329 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5331$as_echo "$supported" >&6; } 5332 if test "$supported" = "yes" ; then 5333 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5334 found="yes" 5335 fi 5336 fi 5337 5338 if test $found = "no" ; then 5339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5341 fi 5342 5343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5345 fi 5346 5347 CFLAGS="$CFLAGS -Wformat" 5348 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5350$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5351 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat` 5352 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5353 $as_echo_n "(cached) " >&6 5354else 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356/* end confdefs.h. */ 5357int i; 5358int 5359main () 5360{ 5361 5362 ; 5363 return 0; 5364} 5365_ACEOF 5366if ac_fn_c_try_link "$LINENO"; then : 5367 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5368else 5369 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5370fi 5371rm -f core conftest.err conftest.$ac_objext \ 5372 conftest$ac_exeext conftest.$ac_ext 5373fi 5374 5375 5376 CFLAGS="$xorg_testset_save_CFLAGS" 5377 5378 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5380$as_echo "$supported" >&6; } 5381 if test "$supported" = "yes" ; then 5382 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5383 found="yes" 5384 fi 5385 fi 5386 5387 5388 5389 5390 5391 5392 5393xorg_testset_save_CFLAGS="$CFLAGS" 5394 5395if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401else 5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5403/* end confdefs.h. */ 5404int i; 5405_ACEOF 5406if ac_fn_c_try_compile "$LINENO"; then : 5407 xorg_cv_cc_flag_unknown_warning_option=yes 5408else 5409 xorg_cv_cc_flag_unknown_warning_option=no 5410fi 5411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5412fi 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5415 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5416 CFLAGS="$xorg_testset_save_CFLAGS" 5417fi 5418 5419if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5422 fi 5423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428else 5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5430/* end confdefs.h. */ 5431int i; 5432_ACEOF 5433if ac_fn_c_try_compile "$LINENO"; then : 5434 xorg_cv_cc_flag_unused_command_line_argument=yes 5435else 5436 xorg_cv_cc_flag_unused_command_line_argument=no 5437fi 5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5439fi 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5442 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5443 CFLAGS="$xorg_testset_save_CFLAGS" 5444fi 5445 5446found="no" 5447 5448 if test $found = "no" ; then 5449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 fi 5452 5453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5455 fi 5456 5457 CFLAGS="$CFLAGS -Wold-style-definition" 5458 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5460$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5461 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition` 5462 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5463 $as_echo_n "(cached) " >&6 5464else 5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5466/* end confdefs.h. */ 5467int i; 5468int 5469main () 5470{ 5471 5472 ; 5473 return 0; 5474} 5475_ACEOF 5476if ac_fn_c_try_link "$LINENO"; then : 5477 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5478else 5479 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5480fi 5481rm -f core conftest.err conftest.$ac_objext \ 5482 conftest$ac_exeext conftest.$ac_ext 5483fi 5484 5485 5486 CFLAGS="$xorg_testset_save_CFLAGS" 5487 5488 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5490$as_echo "$supported" >&6; } 5491 if test "$supported" = "yes" ; then 5492 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5493 found="yes" 5494 fi 5495 fi 5496 5497 5498 5499 5500 5501 5502 5503xorg_testset_save_CFLAGS="$CFLAGS" 5504 5505if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5510 $as_echo_n "(cached) " >&6 5511else 5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5513/* end confdefs.h. */ 5514int i; 5515_ACEOF 5516if ac_fn_c_try_compile "$LINENO"; then : 5517 xorg_cv_cc_flag_unknown_warning_option=yes 5518else 5519 xorg_cv_cc_flag_unknown_warning_option=no 5520fi 5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5522fi 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5525 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5526 CFLAGS="$xorg_testset_save_CFLAGS" 5527fi 5528 5529if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5532 fi 5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5537 $as_echo_n "(cached) " >&6 5538else 5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5540/* end confdefs.h. */ 5541int i; 5542_ACEOF 5543if ac_fn_c_try_compile "$LINENO"; then : 5544 xorg_cv_cc_flag_unused_command_line_argument=yes 5545else 5546 xorg_cv_cc_flag_unused_command_line_argument=no 5547fi 5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5549fi 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5552 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5553 CFLAGS="$xorg_testset_save_CFLAGS" 5554fi 5555 5556found="no" 5557 5558 if test $found = "no" ; then 5559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5561 fi 5562 5563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5565 fi 5566 5567 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5568 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5570$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5571 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement` 5572 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576/* end confdefs.h. */ 5577int i; 5578int 5579main () 5580{ 5581 5582 ; 5583 return 0; 5584} 5585_ACEOF 5586if ac_fn_c_try_link "$LINENO"; then : 5587 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5588else 5589 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5590fi 5591rm -f core conftest.err conftest.$ac_objext \ 5592 conftest$ac_exeext conftest.$ac_ext 5593fi 5594 5595 5596 CFLAGS="$xorg_testset_save_CFLAGS" 5597 5598 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5600$as_echo "$supported" >&6; } 5601 if test "$supported" = "yes" ; then 5602 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5603 found="yes" 5604 fi 5605 fi 5606 5607 5608 5609# This chunk adds additional warnings that could catch undesired effects. 5610 5611 5612 5613 5614 5615xorg_testset_save_CFLAGS="$CFLAGS" 5616 5617if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626int i; 5627_ACEOF 5628if ac_fn_c_try_compile "$LINENO"; then : 5629 xorg_cv_cc_flag_unknown_warning_option=yes 5630else 5631 xorg_cv_cc_flag_unknown_warning_option=no 5632fi 5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5634fi 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5637 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5638 CFLAGS="$xorg_testset_save_CFLAGS" 5639fi 5640 5641if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5644 fi 5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5649 $as_echo_n "(cached) " >&6 5650else 5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5652/* end confdefs.h. */ 5653int i; 5654_ACEOF 5655if ac_fn_c_try_compile "$LINENO"; then : 5656 xorg_cv_cc_flag_unused_command_line_argument=yes 5657else 5658 xorg_cv_cc_flag_unused_command_line_argument=no 5659fi 5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5661fi 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5664 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5665 CFLAGS="$xorg_testset_save_CFLAGS" 5666fi 5667 5668found="no" 5669 5670 if test $found = "no" ; then 5671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5673 fi 5674 5675 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5677 fi 5678 5679 CFLAGS="$CFLAGS -Wunused" 5680 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5682$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5683 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused` 5684 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5685 $as_echo_n "(cached) " >&6 5686else 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689int i; 5690int 5691main () 5692{ 5693 5694 ; 5695 return 0; 5696} 5697_ACEOF 5698if ac_fn_c_try_link "$LINENO"; then : 5699 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5700else 5701 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5702fi 5703rm -f core conftest.err conftest.$ac_objext \ 5704 conftest$ac_exeext conftest.$ac_ext 5705fi 5706 5707 5708 CFLAGS="$xorg_testset_save_CFLAGS" 5709 5710 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5712$as_echo "$supported" >&6; } 5713 if test "$supported" = "yes" ; then 5714 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5715 found="yes" 5716 fi 5717 fi 5718 5719 5720 5721 5722 5723 5724 5725xorg_testset_save_CFLAGS="$CFLAGS" 5726 5727if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735/* end confdefs.h. */ 5736int i; 5737_ACEOF 5738if ac_fn_c_try_compile "$LINENO"; then : 5739 xorg_cv_cc_flag_unknown_warning_option=yes 5740else 5741 xorg_cv_cc_flag_unknown_warning_option=no 5742fi 5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5744fi 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5747 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5748 CFLAGS="$xorg_testset_save_CFLAGS" 5749fi 5750 5751if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 fi 5755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5759 $as_echo_n "(cached) " >&6 5760else 5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5762/* end confdefs.h. */ 5763int i; 5764_ACEOF 5765if ac_fn_c_try_compile "$LINENO"; then : 5766 xorg_cv_cc_flag_unused_command_line_argument=yes 5767else 5768 xorg_cv_cc_flag_unused_command_line_argument=no 5769fi 5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5771fi 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5774 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5775 CFLAGS="$xorg_testset_save_CFLAGS" 5776fi 5777 5778found="no" 5779 5780 if test $found = "no" ; then 5781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5783 fi 5784 5785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5787 fi 5788 5789 CFLAGS="$CFLAGS -Wuninitialized" 5790 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5792$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5793 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized` 5794 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798/* end confdefs.h. */ 5799int i; 5800int 5801main () 5802{ 5803 5804 ; 5805 return 0; 5806} 5807_ACEOF 5808if ac_fn_c_try_link "$LINENO"; then : 5809 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5810else 5811 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext \ 5814 conftest$ac_exeext conftest.$ac_ext 5815fi 5816 5817 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819 5820 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5822$as_echo "$supported" >&6; } 5823 if test "$supported" = "yes" ; then 5824 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5825 found="yes" 5826 fi 5827 fi 5828 5829 5830 5831 5832 5833 5834 5835xorg_testset_save_CFLAGS="$CFLAGS" 5836 5837if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5845/* end confdefs.h. */ 5846int i; 5847_ACEOF 5848if ac_fn_c_try_compile "$LINENO"; then : 5849 xorg_cv_cc_flag_unknown_warning_option=yes 5850else 5851 xorg_cv_cc_flag_unknown_warning_option=no 5852fi 5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5854fi 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5857 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5858 CFLAGS="$xorg_testset_save_CFLAGS" 5859fi 5860 5861if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5862 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5864 fi 5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5869 $as_echo_n "(cached) " >&6 5870else 5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5872/* end confdefs.h. */ 5873int i; 5874_ACEOF 5875if ac_fn_c_try_compile "$LINENO"; then : 5876 xorg_cv_cc_flag_unused_command_line_argument=yes 5877else 5878 xorg_cv_cc_flag_unused_command_line_argument=no 5879fi 5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5881fi 5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5884 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5885 CFLAGS="$xorg_testset_save_CFLAGS" 5886fi 5887 5888found="no" 5889 5890 if test $found = "no" ; then 5891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5893 fi 5894 5895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5897 fi 5898 5899 CFLAGS="$CFLAGS -Wshadow" 5900 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5902$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 5903 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow` 5904 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5905 $as_echo_n "(cached) " >&6 5906else 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909int i; 5910int 5911main () 5912{ 5913 5914 ; 5915 return 0; 5916} 5917_ACEOF 5918if ac_fn_c_try_link "$LINENO"; then : 5919 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5920else 5921 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5922fi 5923rm -f core conftest.err conftest.$ac_objext \ 5924 conftest$ac_exeext conftest.$ac_ext 5925fi 5926 5927 5928 CFLAGS="$xorg_testset_save_CFLAGS" 5929 5930 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5932$as_echo "$supported" >&6; } 5933 if test "$supported" = "yes" ; then 5934 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 5935 found="yes" 5936 fi 5937 fi 5938 5939 5940 5941 5942 5943 5944 5945xorg_testset_save_CFLAGS="$CFLAGS" 5946 5947if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5952 $as_echo_n "(cached) " >&6 5953else 5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5955/* end confdefs.h. */ 5956int i; 5957_ACEOF 5958if ac_fn_c_try_compile "$LINENO"; then : 5959 xorg_cv_cc_flag_unknown_warning_option=yes 5960else 5961 xorg_cv_cc_flag_unknown_warning_option=no 5962fi 5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5964fi 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5967 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5968 CFLAGS="$xorg_testset_save_CFLAGS" 5969fi 5970 5971if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5974 fi 5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5979 $as_echo_n "(cached) " >&6 5980else 5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5982/* end confdefs.h. */ 5983int i; 5984_ACEOF 5985if ac_fn_c_try_compile "$LINENO"; then : 5986 xorg_cv_cc_flag_unused_command_line_argument=yes 5987else 5988 xorg_cv_cc_flag_unused_command_line_argument=no 5989fi 5990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5991fi 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5994 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5995 CFLAGS="$xorg_testset_save_CFLAGS" 5996fi 5997 5998found="no" 5999 6000 if test $found = "no" ; then 6001 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6003 fi 6004 6005 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6007 fi 6008 6009 CFLAGS="$CFLAGS -Wcast-qual" 6010 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6012$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6013 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual` 6014 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019int i; 6020int 6021main () 6022{ 6023 6024 ; 6025 return 0; 6026} 6027_ACEOF 6028if ac_fn_c_try_link "$LINENO"; then : 6029 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6030else 6031 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6032fi 6033rm -f core conftest.err conftest.$ac_objext \ 6034 conftest$ac_exeext conftest.$ac_ext 6035fi 6036 6037 6038 CFLAGS="$xorg_testset_save_CFLAGS" 6039 6040 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6042$as_echo "$supported" >&6; } 6043 if test "$supported" = "yes" ; then 6044 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6045 found="yes" 6046 fi 6047 fi 6048 6049 6050 6051 6052 6053 6054 6055xorg_testset_save_CFLAGS="$CFLAGS" 6056 6057if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6062 $as_echo_n "(cached) " >&6 6063else 6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065/* end confdefs.h. */ 6066int i; 6067_ACEOF 6068if ac_fn_c_try_compile "$LINENO"; then : 6069 xorg_cv_cc_flag_unknown_warning_option=yes 6070else 6071 xorg_cv_cc_flag_unknown_warning_option=no 6072fi 6073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6074fi 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6077 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6078 CFLAGS="$xorg_testset_save_CFLAGS" 6079fi 6080 6081if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6082 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6084 fi 6085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093int i; 6094_ACEOF 6095if ac_fn_c_try_compile "$LINENO"; then : 6096 xorg_cv_cc_flag_unused_command_line_argument=yes 6097else 6098 xorg_cv_cc_flag_unused_command_line_argument=no 6099fi 6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6101fi 6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6104 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6105 CFLAGS="$xorg_testset_save_CFLAGS" 6106fi 6107 6108found="no" 6109 6110 if test $found = "no" ; then 6111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6113 fi 6114 6115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6117 fi 6118 6119 CFLAGS="$CFLAGS -Wmissing-noreturn" 6120 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6122$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6123 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn` 6124 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129int i; 6130int 6131main () 6132{ 6133 6134 ; 6135 return 0; 6136} 6137_ACEOF 6138if ac_fn_c_try_link "$LINENO"; then : 6139 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6140else 6141 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6142fi 6143rm -f core conftest.err conftest.$ac_objext \ 6144 conftest$ac_exeext conftest.$ac_ext 6145fi 6146 6147 6148 CFLAGS="$xorg_testset_save_CFLAGS" 6149 6150 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6152$as_echo "$supported" >&6; } 6153 if test "$supported" = "yes" ; then 6154 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6155 found="yes" 6156 fi 6157 fi 6158 6159 6160 6161 6162 6163 6164 6165xorg_testset_save_CFLAGS="$CFLAGS" 6166 6167if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173else 6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6175/* end confdefs.h. */ 6176int i; 6177_ACEOF 6178if ac_fn_c_try_compile "$LINENO"; then : 6179 xorg_cv_cc_flag_unknown_warning_option=yes 6180else 6181 xorg_cv_cc_flag_unknown_warning_option=no 6182fi 6183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6184fi 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6187 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6188 CFLAGS="$xorg_testset_save_CFLAGS" 6189fi 6190 6191if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6194 fi 6195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6199 $as_echo_n "(cached) " >&6 6200else 6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6202/* end confdefs.h. */ 6203int i; 6204_ACEOF 6205if ac_fn_c_try_compile "$LINENO"; then : 6206 xorg_cv_cc_flag_unused_command_line_argument=yes 6207else 6208 xorg_cv_cc_flag_unused_command_line_argument=no 6209fi 6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6211fi 6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6214 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6215 CFLAGS="$xorg_testset_save_CFLAGS" 6216fi 6217 6218found="no" 6219 6220 if test $found = "no" ; then 6221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6223 fi 6224 6225 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6227 fi 6228 6229 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6230 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6232$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6233 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute` 6234 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6235 $as_echo_n "(cached) " >&6 6236else 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6238/* end confdefs.h. */ 6239int i; 6240int 6241main () 6242{ 6243 6244 ; 6245 return 0; 6246} 6247_ACEOF 6248if ac_fn_c_try_link "$LINENO"; then : 6249 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6250else 6251 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6252fi 6253rm -f core conftest.err conftest.$ac_objext \ 6254 conftest$ac_exeext conftest.$ac_ext 6255fi 6256 6257 6258 CFLAGS="$xorg_testset_save_CFLAGS" 6259 6260 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6262$as_echo "$supported" >&6; } 6263 if test "$supported" = "yes" ; then 6264 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6265 found="yes" 6266 fi 6267 fi 6268 6269 6270 6271 6272 6273 6274 6275xorg_testset_save_CFLAGS="$CFLAGS" 6276 6277if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6285/* end confdefs.h. */ 6286int i; 6287_ACEOF 6288if ac_fn_c_try_compile "$LINENO"; then : 6289 xorg_cv_cc_flag_unknown_warning_option=yes 6290else 6291 xorg_cv_cc_flag_unknown_warning_option=no 6292fi 6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6294fi 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6297 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6298 CFLAGS="$xorg_testset_save_CFLAGS" 6299fi 6300 6301if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6302 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6304 fi 6305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6309 $as_echo_n "(cached) " >&6 6310else 6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312/* end confdefs.h. */ 6313int i; 6314_ACEOF 6315if ac_fn_c_try_compile "$LINENO"; then : 6316 xorg_cv_cc_flag_unused_command_line_argument=yes 6317else 6318 xorg_cv_cc_flag_unused_command_line_argument=no 6319fi 6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6321fi 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6324 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6325 CFLAGS="$xorg_testset_save_CFLAGS" 6326fi 6327 6328found="no" 6329 6330 if test $found = "no" ; then 6331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6333 fi 6334 6335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6337 fi 6338 6339 CFLAGS="$CFLAGS -Wredundant-decls" 6340 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6342$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6343 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls` 6344 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6348/* end confdefs.h. */ 6349int i; 6350int 6351main () 6352{ 6353 6354 ; 6355 return 0; 6356} 6357_ACEOF 6358if ac_fn_c_try_link "$LINENO"; then : 6359 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6360else 6361 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6362fi 6363rm -f core conftest.err conftest.$ac_objext \ 6364 conftest$ac_exeext conftest.$ac_ext 6365fi 6366 6367 6368 CFLAGS="$xorg_testset_save_CFLAGS" 6369 6370 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6372$as_echo "$supported" >&6; } 6373 if test "$supported" = "yes" ; then 6374 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6375 found="yes" 6376 fi 6377 fi 6378 6379 6380 6381# These are currently disabled because they are noisy. They will be enabled 6382# in the future once the codebase is sufficiently modernized to silence 6383# them. For now, I don't want them to drown out the other warnings. 6384# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op]) 6385# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses]) 6386# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align]) 6387 6388# Turn some warnings into errors, so we don't accidently get successful builds 6389# when there are problems that should be fixed. 6390 6391if test "x$SELECTIVE_WERROR" = "xyes" ; then 6392 6393 6394 6395 6396 6397xorg_testset_save_CFLAGS="$CFLAGS" 6398 6399if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6402$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6403if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6404 $as_echo_n "(cached) " >&6 6405else 6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6407/* end confdefs.h. */ 6408int i; 6409_ACEOF 6410if ac_fn_c_try_compile "$LINENO"; then : 6411 xorg_cv_cc_flag_unknown_warning_option=yes 6412else 6413 xorg_cv_cc_flag_unknown_warning_option=no 6414fi 6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6416fi 6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6418$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6419 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6420 CFLAGS="$xorg_testset_save_CFLAGS" 6421fi 6422 6423if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6426 fi 6427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6429$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6430if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6431 $as_echo_n "(cached) " >&6 6432else 6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6434/* end confdefs.h. */ 6435int i; 6436_ACEOF 6437if ac_fn_c_try_compile "$LINENO"; then : 6438 xorg_cv_cc_flag_unused_command_line_argument=yes 6439else 6440 xorg_cv_cc_flag_unused_command_line_argument=no 6441fi 6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6443fi 6444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6445$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6446 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6447 CFLAGS="$xorg_testset_save_CFLAGS" 6448fi 6449 6450found="no" 6451 6452 if test $found = "no" ; then 6453 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6455 fi 6456 6457 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6459 fi 6460 6461 CFLAGS="$CFLAGS -Werror=implicit" 6462 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6464$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6465 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit` 6466 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6467 $as_echo_n "(cached) " >&6 6468else 6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470/* end confdefs.h. */ 6471int i; 6472int 6473main () 6474{ 6475 6476 ; 6477 return 0; 6478} 6479_ACEOF 6480if ac_fn_c_try_link "$LINENO"; then : 6481 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6482else 6483 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6484fi 6485rm -f core conftest.err conftest.$ac_objext \ 6486 conftest$ac_exeext conftest.$ac_ext 6487fi 6488 6489 6490 CFLAGS="$xorg_testset_save_CFLAGS" 6491 6492 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6494$as_echo "$supported" >&6; } 6495 if test "$supported" = "yes" ; then 6496 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6497 found="yes" 6498 fi 6499 fi 6500 6501 if test $found = "no" ; then 6502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6504 fi 6505 6506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6508 fi 6509 6510 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6511 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6513$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6514 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` 6515 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519/* end confdefs.h. */ 6520int i; 6521int 6522main () 6523{ 6524 6525 ; 6526 return 0; 6527} 6528_ACEOF 6529if ac_fn_c_try_link "$LINENO"; then : 6530 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6531else 6532 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6533fi 6534rm -f core conftest.err conftest.$ac_objext \ 6535 conftest$ac_exeext conftest.$ac_ext 6536fi 6537 6538 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540 6541 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6543$as_echo "$supported" >&6; } 6544 if test "$supported" = "yes" ; then 6545 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6546 found="yes" 6547 fi 6548 fi 6549 6550 6551 6552 6553 6554 6555 6556xorg_testset_save_CFLAGS="$CFLAGS" 6557 6558if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6566/* end confdefs.h. */ 6567int i; 6568_ACEOF 6569if ac_fn_c_try_compile "$LINENO"; then : 6570 xorg_cv_cc_flag_unknown_warning_option=yes 6571else 6572 xorg_cv_cc_flag_unknown_warning_option=no 6573fi 6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6575fi 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6578 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6579 CFLAGS="$xorg_testset_save_CFLAGS" 6580fi 6581 6582if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6585 fi 6586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591else 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593/* end confdefs.h. */ 6594int i; 6595_ACEOF 6596if ac_fn_c_try_compile "$LINENO"; then : 6597 xorg_cv_cc_flag_unused_command_line_argument=yes 6598else 6599 xorg_cv_cc_flag_unused_command_line_argument=no 6600fi 6601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6602fi 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6605 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6606 CFLAGS="$xorg_testset_save_CFLAGS" 6607fi 6608 6609found="no" 6610 6611 if test $found = "no" ; then 6612 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6614 fi 6615 6616 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6618 fi 6619 6620 CFLAGS="$CFLAGS -Werror=nonnull" 6621 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6623$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6624 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull` 6625 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6626 $as_echo_n "(cached) " >&6 6627else 6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6629/* end confdefs.h. */ 6630int i; 6631int 6632main () 6633{ 6634 6635 ; 6636 return 0; 6637} 6638_ACEOF 6639if ac_fn_c_try_link "$LINENO"; then : 6640 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6641else 6642 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6643fi 6644rm -f core conftest.err conftest.$ac_objext \ 6645 conftest$ac_exeext conftest.$ac_ext 6646fi 6647 6648 6649 CFLAGS="$xorg_testset_save_CFLAGS" 6650 6651 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6653$as_echo "$supported" >&6; } 6654 if test "$supported" = "yes" ; then 6655 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6656 found="yes" 6657 fi 6658 fi 6659 6660 6661 6662 6663 6664 6665 6666xorg_testset_save_CFLAGS="$CFLAGS" 6667 6668if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677int i; 6678_ACEOF 6679if ac_fn_c_try_compile "$LINENO"; then : 6680 xorg_cv_cc_flag_unknown_warning_option=yes 6681else 6682 xorg_cv_cc_flag_unknown_warning_option=no 6683fi 6684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6685fi 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6688 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6689 CFLAGS="$xorg_testset_save_CFLAGS" 6690fi 6691 6692if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 fi 6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704int i; 6705_ACEOF 6706if ac_fn_c_try_compile "$LINENO"; then : 6707 xorg_cv_cc_flag_unused_command_line_argument=yes 6708else 6709 xorg_cv_cc_flag_unused_command_line_argument=no 6710fi 6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6712fi 6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6715 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717fi 6718 6719found="no" 6720 6721 if test $found = "no" ; then 6722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6724 fi 6725 6726 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6728 fi 6729 6730 CFLAGS="$CFLAGS -Werror=init-self" 6731 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6733$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6734 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self` 6735 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6736 $as_echo_n "(cached) " >&6 6737else 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740int i; 6741int 6742main () 6743{ 6744 6745 ; 6746 return 0; 6747} 6748_ACEOF 6749if ac_fn_c_try_link "$LINENO"; then : 6750 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6751else 6752 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6753fi 6754rm -f core conftest.err conftest.$ac_objext \ 6755 conftest$ac_exeext conftest.$ac_ext 6756fi 6757 6758 6759 CFLAGS="$xorg_testset_save_CFLAGS" 6760 6761 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6763$as_echo "$supported" >&6; } 6764 if test "$supported" = "yes" ; then 6765 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6766 found="yes" 6767 fi 6768 fi 6769 6770 6771 6772 6773 6774 6775 6776xorg_testset_save_CFLAGS="$CFLAGS" 6777 6778if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6781$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6782if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6783 $as_echo_n "(cached) " >&6 6784else 6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6786/* end confdefs.h. */ 6787int i; 6788_ACEOF 6789if ac_fn_c_try_compile "$LINENO"; then : 6790 xorg_cv_cc_flag_unknown_warning_option=yes 6791else 6792 xorg_cv_cc_flag_unknown_warning_option=no 6793fi 6794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6795fi 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6797$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6798 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6799 CFLAGS="$xorg_testset_save_CFLAGS" 6800fi 6801 6802if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6805 fi 6806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6808$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6809if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811else 6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813/* end confdefs.h. */ 6814int i; 6815_ACEOF 6816if ac_fn_c_try_compile "$LINENO"; then : 6817 xorg_cv_cc_flag_unused_command_line_argument=yes 6818else 6819 xorg_cv_cc_flag_unused_command_line_argument=no 6820fi 6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6822fi 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6824$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6825 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6826 CFLAGS="$xorg_testset_save_CFLAGS" 6827fi 6828 6829found="no" 6830 6831 if test $found = "no" ; then 6832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6834 fi 6835 6836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6838 fi 6839 6840 CFLAGS="$CFLAGS -Werror=main" 6841 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6843$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 6844 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main` 6845 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6846 $as_echo_n "(cached) " >&6 6847else 6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6849/* end confdefs.h. */ 6850int i; 6851int 6852main () 6853{ 6854 6855 ; 6856 return 0; 6857} 6858_ACEOF 6859if ac_fn_c_try_link "$LINENO"; then : 6860 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6861else 6862 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6863fi 6864rm -f core conftest.err conftest.$ac_objext \ 6865 conftest$ac_exeext conftest.$ac_ext 6866fi 6867 6868 6869 CFLAGS="$xorg_testset_save_CFLAGS" 6870 6871 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6873$as_echo "$supported" >&6; } 6874 if test "$supported" = "yes" ; then 6875 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 6876 found="yes" 6877 fi 6878 fi 6879 6880 6881 6882 6883 6884 6885 6886xorg_testset_save_CFLAGS="$CFLAGS" 6887 6888if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6893 $as_echo_n "(cached) " >&6 6894else 6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6896/* end confdefs.h. */ 6897int i; 6898_ACEOF 6899if ac_fn_c_try_compile "$LINENO"; then : 6900 xorg_cv_cc_flag_unknown_warning_option=yes 6901else 6902 xorg_cv_cc_flag_unknown_warning_option=no 6903fi 6904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6905fi 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6908 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6909 CFLAGS="$xorg_testset_save_CFLAGS" 6910fi 6911 6912if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6915 fi 6916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6923/* end confdefs.h. */ 6924int i; 6925_ACEOF 6926if ac_fn_c_try_compile "$LINENO"; then : 6927 xorg_cv_cc_flag_unused_command_line_argument=yes 6928else 6929 xorg_cv_cc_flag_unused_command_line_argument=no 6930fi 6931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6932fi 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6935 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6936 CFLAGS="$xorg_testset_save_CFLAGS" 6937fi 6938 6939found="no" 6940 6941 if test $found = "no" ; then 6942 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6944 fi 6945 6946 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6948 fi 6949 6950 CFLAGS="$CFLAGS -Werror=missing-braces" 6951 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 6953$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 6954 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces` 6955 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6956 $as_echo_n "(cached) " >&6 6957else 6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6959/* end confdefs.h. */ 6960int i; 6961int 6962main () 6963{ 6964 6965 ; 6966 return 0; 6967} 6968_ACEOF 6969if ac_fn_c_try_link "$LINENO"; then : 6970 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6971else 6972 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6973fi 6974rm -f core conftest.err conftest.$ac_objext \ 6975 conftest$ac_exeext conftest.$ac_ext 6976fi 6977 6978 6979 CFLAGS="$xorg_testset_save_CFLAGS" 6980 6981 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6983$as_echo "$supported" >&6; } 6984 if test "$supported" = "yes" ; then 6985 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 6986 found="yes" 6987 fi 6988 fi 6989 6990 6991 6992 6993 6994 6995 6996xorg_testset_save_CFLAGS="$CFLAGS" 6997 6998if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004else 7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7006/* end confdefs.h. */ 7007int i; 7008_ACEOF 7009if ac_fn_c_try_compile "$LINENO"; then : 7010 xorg_cv_cc_flag_unknown_warning_option=yes 7011else 7012 xorg_cv_cc_flag_unknown_warning_option=no 7013fi 7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7015fi 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7018 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7019 CFLAGS="$xorg_testset_save_CFLAGS" 7020fi 7021 7022if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7025 fi 7026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031else 7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7033/* end confdefs.h. */ 7034int i; 7035_ACEOF 7036if ac_fn_c_try_compile "$LINENO"; then : 7037 xorg_cv_cc_flag_unused_command_line_argument=yes 7038else 7039 xorg_cv_cc_flag_unused_command_line_argument=no 7040fi 7041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7042fi 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7045 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7046 CFLAGS="$xorg_testset_save_CFLAGS" 7047fi 7048 7049found="no" 7050 7051 if test $found = "no" ; then 7052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7054 fi 7055 7056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7058 fi 7059 7060 CFLAGS="$CFLAGS -Werror=sequence-point" 7061 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7063$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7064 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point` 7065 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7066 $as_echo_n "(cached) " >&6 7067else 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070int i; 7071int 7072main () 7073{ 7074 7075 ; 7076 return 0; 7077} 7078_ACEOF 7079if ac_fn_c_try_link "$LINENO"; then : 7080 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7081else 7082 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7083fi 7084rm -f core conftest.err conftest.$ac_objext \ 7085 conftest$ac_exeext conftest.$ac_ext 7086fi 7087 7088 7089 CFLAGS="$xorg_testset_save_CFLAGS" 7090 7091 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7093$as_echo "$supported" >&6; } 7094 if test "$supported" = "yes" ; then 7095 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7096 found="yes" 7097 fi 7098 fi 7099 7100 7101 7102 7103 7104 7105 7106xorg_testset_save_CFLAGS="$CFLAGS" 7107 7108if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7113 $as_echo_n "(cached) " >&6 7114else 7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7116/* end confdefs.h. */ 7117int i; 7118_ACEOF 7119if ac_fn_c_try_compile "$LINENO"; then : 7120 xorg_cv_cc_flag_unknown_warning_option=yes 7121else 7122 xorg_cv_cc_flag_unknown_warning_option=no 7123fi 7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7125fi 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7128 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7129 CFLAGS="$xorg_testset_save_CFLAGS" 7130fi 7131 7132if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7135 fi 7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7140 $as_echo_n "(cached) " >&6 7141else 7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7143/* end confdefs.h. */ 7144int i; 7145_ACEOF 7146if ac_fn_c_try_compile "$LINENO"; then : 7147 xorg_cv_cc_flag_unused_command_line_argument=yes 7148else 7149 xorg_cv_cc_flag_unused_command_line_argument=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7152fi 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7155 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157fi 7158 7159found="no" 7160 7161 if test $found = "no" ; then 7162 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7164 fi 7165 7166 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7168 fi 7169 7170 CFLAGS="$CFLAGS -Werror=return-type" 7171 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7173$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7174 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type` 7175 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179/* end confdefs.h. */ 7180int i; 7181int 7182main () 7183{ 7184 7185 ; 7186 return 0; 7187} 7188_ACEOF 7189if ac_fn_c_try_link "$LINENO"; then : 7190 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7191else 7192 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7193fi 7194rm -f core conftest.err conftest.$ac_objext \ 7195 conftest$ac_exeext conftest.$ac_ext 7196fi 7197 7198 7199 CFLAGS="$xorg_testset_save_CFLAGS" 7200 7201 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7203$as_echo "$supported" >&6; } 7204 if test "$supported" = "yes" ; then 7205 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7206 found="yes" 7207 fi 7208 fi 7209 7210 if test $found = "no" ; then 7211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7213 fi 7214 7215 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7217 fi 7218 7219 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7220 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7222$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7223 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` 7224 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7225 $as_echo_n "(cached) " >&6 7226else 7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7228/* end confdefs.h. */ 7229int i; 7230int 7231main () 7232{ 7233 7234 ; 7235 return 0; 7236} 7237_ACEOF 7238if ac_fn_c_try_link "$LINENO"; then : 7239 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7240else 7241 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7242fi 7243rm -f core conftest.err conftest.$ac_objext \ 7244 conftest$ac_exeext conftest.$ac_ext 7245fi 7246 7247 7248 CFLAGS="$xorg_testset_save_CFLAGS" 7249 7250 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7252$as_echo "$supported" >&6; } 7253 if test "$supported" = "yes" ; then 7254 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7255 found="yes" 7256 fi 7257 fi 7258 7259 7260 7261 7262 7263 7264 7265xorg_testset_save_CFLAGS="$CFLAGS" 7266 7267if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276int i; 7277_ACEOF 7278if ac_fn_c_try_compile "$LINENO"; then : 7279 xorg_cv_cc_flag_unknown_warning_option=yes 7280else 7281 xorg_cv_cc_flag_unknown_warning_option=no 7282fi 7283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7284fi 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7287 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7288 CFLAGS="$xorg_testset_save_CFLAGS" 7289fi 7290 7291if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 fi 7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300else 7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7302/* end confdefs.h. */ 7303int i; 7304_ACEOF 7305if ac_fn_c_try_compile "$LINENO"; then : 7306 xorg_cv_cc_flag_unused_command_line_argument=yes 7307else 7308 xorg_cv_cc_flag_unused_command_line_argument=no 7309fi 7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7311fi 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7314 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7315 CFLAGS="$xorg_testset_save_CFLAGS" 7316fi 7317 7318found="no" 7319 7320 if test $found = "no" ; then 7321 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7323 fi 7324 7325 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7327 fi 7328 7329 CFLAGS="$CFLAGS -Werror=trigraphs" 7330 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7332$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7333 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs` 7334 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338/* end confdefs.h. */ 7339int i; 7340int 7341main () 7342{ 7343 7344 ; 7345 return 0; 7346} 7347_ACEOF 7348if ac_fn_c_try_link "$LINENO"; then : 7349 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7350else 7351 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7352fi 7353rm -f core conftest.err conftest.$ac_objext \ 7354 conftest$ac_exeext conftest.$ac_ext 7355fi 7356 7357 7358 CFLAGS="$xorg_testset_save_CFLAGS" 7359 7360 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7362$as_echo "$supported" >&6; } 7363 if test "$supported" = "yes" ; then 7364 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7365 found="yes" 7366 fi 7367 fi 7368 7369 7370 7371 7372 7373 7374 7375xorg_testset_save_CFLAGS="$CFLAGS" 7376 7377if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7382 $as_echo_n "(cached) " >&6 7383else 7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7385/* end confdefs.h. */ 7386int i; 7387_ACEOF 7388if ac_fn_c_try_compile "$LINENO"; then : 7389 xorg_cv_cc_flag_unknown_warning_option=yes 7390else 7391 xorg_cv_cc_flag_unknown_warning_option=no 7392fi 7393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7394fi 7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7397 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7398 CFLAGS="$xorg_testset_save_CFLAGS" 7399fi 7400 7401if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7404 fi 7405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7409 $as_echo_n "(cached) " >&6 7410else 7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7412/* end confdefs.h. */ 7413int i; 7414_ACEOF 7415if ac_fn_c_try_compile "$LINENO"; then : 7416 xorg_cv_cc_flag_unused_command_line_argument=yes 7417else 7418 xorg_cv_cc_flag_unused_command_line_argument=no 7419fi 7420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7421fi 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7424 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7425 CFLAGS="$xorg_testset_save_CFLAGS" 7426fi 7427 7428found="no" 7429 7430 if test $found = "no" ; then 7431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7433 fi 7434 7435 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7437 fi 7438 7439 CFLAGS="$CFLAGS -Werror=array-bounds" 7440 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7442$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7443 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds` 7444 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7445 $as_echo_n "(cached) " >&6 7446else 7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449int i; 7450int 7451main () 7452{ 7453 7454 ; 7455 return 0; 7456} 7457_ACEOF 7458if ac_fn_c_try_link "$LINENO"; then : 7459 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7460else 7461 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7462fi 7463rm -f core conftest.err conftest.$ac_objext \ 7464 conftest$ac_exeext conftest.$ac_ext 7465fi 7466 7467 7468 CFLAGS="$xorg_testset_save_CFLAGS" 7469 7470 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7472$as_echo "$supported" >&6; } 7473 if test "$supported" = "yes" ; then 7474 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7475 found="yes" 7476 fi 7477 fi 7478 7479 7480 7481 7482 7483 7484 7485xorg_testset_save_CFLAGS="$CFLAGS" 7486 7487if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495/* end confdefs.h. */ 7496int i; 7497_ACEOF 7498if ac_fn_c_try_compile "$LINENO"; then : 7499 xorg_cv_cc_flag_unknown_warning_option=yes 7500else 7501 xorg_cv_cc_flag_unknown_warning_option=no 7502fi 7503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7504fi 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7507 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7508 CFLAGS="$xorg_testset_save_CFLAGS" 7509fi 7510 7511if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7512 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7514 fi 7515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7522/* end confdefs.h. */ 7523int i; 7524_ACEOF 7525if ac_fn_c_try_compile "$LINENO"; then : 7526 xorg_cv_cc_flag_unused_command_line_argument=yes 7527else 7528 xorg_cv_cc_flag_unused_command_line_argument=no 7529fi 7530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7531fi 7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7534 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7535 CFLAGS="$xorg_testset_save_CFLAGS" 7536fi 7537 7538found="no" 7539 7540 if test $found = "no" ; then 7541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7543 fi 7544 7545 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7547 fi 7548 7549 CFLAGS="$CFLAGS -Werror=write-strings" 7550 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7552$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7553 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings` 7554 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7555 $as_echo_n "(cached) " >&6 7556else 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7558/* end confdefs.h. */ 7559int i; 7560int 7561main () 7562{ 7563 7564 ; 7565 return 0; 7566} 7567_ACEOF 7568if ac_fn_c_try_link "$LINENO"; then : 7569 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7570else 7571 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7572fi 7573rm -f core conftest.err conftest.$ac_objext \ 7574 conftest$ac_exeext conftest.$ac_ext 7575fi 7576 7577 7578 CFLAGS="$xorg_testset_save_CFLAGS" 7579 7580 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7582$as_echo "$supported" >&6; } 7583 if test "$supported" = "yes" ; then 7584 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7585 found="yes" 7586 fi 7587 fi 7588 7589 7590 7591 7592 7593 7594 7595xorg_testset_save_CFLAGS="$CFLAGS" 7596 7597if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606int i; 7607_ACEOF 7608if ac_fn_c_try_compile "$LINENO"; then : 7609 xorg_cv_cc_flag_unknown_warning_option=yes 7610else 7611 xorg_cv_cc_flag_unknown_warning_option=no 7612fi 7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7614fi 7615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7617 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7618 CFLAGS="$xorg_testset_save_CFLAGS" 7619fi 7620 7621if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7624 fi 7625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633int i; 7634_ACEOF 7635if ac_fn_c_try_compile "$LINENO"; then : 7636 xorg_cv_cc_flag_unused_command_line_argument=yes 7637else 7638 xorg_cv_cc_flag_unused_command_line_argument=no 7639fi 7640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7641fi 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7644 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7645 CFLAGS="$xorg_testset_save_CFLAGS" 7646fi 7647 7648found="no" 7649 7650 if test $found = "no" ; then 7651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7653 fi 7654 7655 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7657 fi 7658 7659 CFLAGS="$CFLAGS -Werror=address" 7660 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7662$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7663 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address` 7664 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7665 $as_echo_n "(cached) " >&6 7666else 7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7668/* end confdefs.h. */ 7669int i; 7670int 7671main () 7672{ 7673 7674 ; 7675 return 0; 7676} 7677_ACEOF 7678if ac_fn_c_try_link "$LINENO"; then : 7679 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7680else 7681 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7682fi 7683rm -f core conftest.err conftest.$ac_objext \ 7684 conftest$ac_exeext conftest.$ac_ext 7685fi 7686 7687 7688 CFLAGS="$xorg_testset_save_CFLAGS" 7689 7690 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7692$as_echo "$supported" >&6; } 7693 if test "$supported" = "yes" ; then 7694 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7695 found="yes" 7696 fi 7697 fi 7698 7699 7700 7701 7702 7703 7704 7705xorg_testset_save_CFLAGS="$CFLAGS" 7706 7707if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7712 $as_echo_n "(cached) " >&6 7713else 7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7715/* end confdefs.h. */ 7716int i; 7717_ACEOF 7718if ac_fn_c_try_compile "$LINENO"; then : 7719 xorg_cv_cc_flag_unknown_warning_option=yes 7720else 7721 xorg_cv_cc_flag_unknown_warning_option=no 7722fi 7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7724fi 7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7727 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7728 CFLAGS="$xorg_testset_save_CFLAGS" 7729fi 7730 7731if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7734 fi 7735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7739 $as_echo_n "(cached) " >&6 7740else 7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7742/* end confdefs.h. */ 7743int i; 7744_ACEOF 7745if ac_fn_c_try_compile "$LINENO"; then : 7746 xorg_cv_cc_flag_unused_command_line_argument=yes 7747else 7748 xorg_cv_cc_flag_unused_command_line_argument=no 7749fi 7750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7751fi 7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7754 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7755 CFLAGS="$xorg_testset_save_CFLAGS" 7756fi 7757 7758found="no" 7759 7760 if test $found = "no" ; then 7761 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7763 fi 7764 7765 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7767 fi 7768 7769 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 7770 7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 7772$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 7773 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast` 7774 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7775 $as_echo_n "(cached) " >&6 7776else 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779int i; 7780int 7781main () 7782{ 7783 7784 ; 7785 return 0; 7786} 7787_ACEOF 7788if ac_fn_c_try_link "$LINENO"; then : 7789 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7790else 7791 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7792fi 7793rm -f core conftest.err conftest.$ac_objext \ 7794 conftest$ac_exeext conftest.$ac_ext 7795fi 7796 7797 7798 CFLAGS="$xorg_testset_save_CFLAGS" 7799 7800 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7802$as_echo "$supported" >&6; } 7803 if test "$supported" = "yes" ; then 7804 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 7805 found="yes" 7806 fi 7807 fi 7808 7809 if test $found = "no" ; then 7810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7812 fi 7813 7814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7816 fi 7817 7818 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7819 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 7821$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 7822 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` 7823 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7824 $as_echo_n "(cached) " >&6 7825else 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828int i; 7829int 7830main () 7831{ 7832 7833 ; 7834 return 0; 7835} 7836_ACEOF 7837if ac_fn_c_try_link "$LINENO"; then : 7838 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7839else 7840 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7841fi 7842rm -f core conftest.err conftest.$ac_objext \ 7843 conftest$ac_exeext conftest.$ac_ext 7844fi 7845 7846 7847 CFLAGS="$xorg_testset_save_CFLAGS" 7848 7849 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7851$as_echo "$supported" >&6; } 7852 if test "$supported" = "yes" ; then 7853 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7854 found="yes" 7855 fi 7856 fi 7857 7858 7859 7860 7861 7862 7863 7864xorg_testset_save_CFLAGS="$CFLAGS" 7865 7866if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7871 $as_echo_n "(cached) " >&6 7872else 7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7874/* end confdefs.h. */ 7875int i; 7876_ACEOF 7877if ac_fn_c_try_compile "$LINENO"; then : 7878 xorg_cv_cc_flag_unknown_warning_option=yes 7879else 7880 xorg_cv_cc_flag_unknown_warning_option=no 7881fi 7882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7883fi 7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7886 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7887 CFLAGS="$xorg_testset_save_CFLAGS" 7888fi 7889 7890if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901/* end confdefs.h. */ 7902int i; 7903_ACEOF 7904if ac_fn_c_try_compile "$LINENO"; then : 7905 xorg_cv_cc_flag_unused_command_line_argument=yes 7906else 7907 xorg_cv_cc_flag_unused_command_line_argument=no 7908fi 7909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7910fi 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7913 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7914 CFLAGS="$xorg_testset_save_CFLAGS" 7915fi 7916 7917found="no" 7918 7919 if test $found = "no" ; then 7920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7922 fi 7923 7924 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7926 fi 7927 7928 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 7929 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 7931$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 7932 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast` 7933 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7934 $as_echo_n "(cached) " >&6 7935else 7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937/* end confdefs.h. */ 7938int i; 7939int 7940main () 7941{ 7942 7943 ; 7944 return 0; 7945} 7946_ACEOF 7947if ac_fn_c_try_link "$LINENO"; then : 7948 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7949else 7950 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7951fi 7952rm -f core conftest.err conftest.$ac_objext \ 7953 conftest$ac_exeext conftest.$ac_ext 7954fi 7955 7956 7957 CFLAGS="$xorg_testset_save_CFLAGS" 7958 7959 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7961$as_echo "$supported" >&6; } 7962 if test "$supported" = "yes" ; then 7963 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 7964 found="yes" 7965 fi 7966 fi 7967 7968 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 7969else 7970{ $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 7971$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;} 7972 7973 7974 7975 7976 7977xorg_testset_save_CFLAGS="$CFLAGS" 7978 7979if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987/* end confdefs.h. */ 7988int i; 7989_ACEOF 7990if ac_fn_c_try_compile "$LINENO"; then : 7991 xorg_cv_cc_flag_unknown_warning_option=yes 7992else 7993 xorg_cv_cc_flag_unknown_warning_option=no 7994fi 7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7996fi 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7999 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8000 CFLAGS="$xorg_testset_save_CFLAGS" 8001fi 8002 8003if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8004 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8006 fi 8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8011 $as_echo_n "(cached) " >&6 8012else 8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8014/* end confdefs.h. */ 8015int i; 8016_ACEOF 8017if ac_fn_c_try_compile "$LINENO"; then : 8018 xorg_cv_cc_flag_unused_command_line_argument=yes 8019else 8020 xorg_cv_cc_flag_unused_command_line_argument=no 8021fi 8022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8023fi 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8026 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8027 CFLAGS="$xorg_testset_save_CFLAGS" 8028fi 8029 8030found="no" 8031 8032 if test $found = "no" ; then 8033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8035 fi 8036 8037 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8039 fi 8040 8041 CFLAGS="$CFLAGS -Wimplicit" 8042 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8044$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8045 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit` 8046 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8047 $as_echo_n "(cached) " >&6 8048else 8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8050/* end confdefs.h. */ 8051int i; 8052int 8053main () 8054{ 8055 8056 ; 8057 return 0; 8058} 8059_ACEOF 8060if ac_fn_c_try_link "$LINENO"; then : 8061 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8062else 8063 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8064fi 8065rm -f core conftest.err conftest.$ac_objext \ 8066 conftest$ac_exeext conftest.$ac_ext 8067fi 8068 8069 8070 CFLAGS="$xorg_testset_save_CFLAGS" 8071 8072 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8074$as_echo "$supported" >&6; } 8075 if test "$supported" = "yes" ; then 8076 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8077 found="yes" 8078 fi 8079 fi 8080 8081 8082 8083 8084 8085 8086 8087xorg_testset_save_CFLAGS="$CFLAGS" 8088 8089if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8093if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes 8102else 8103 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 8108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8109 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111fi 8112 8113if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8116 fi 8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8121 $as_echo_n "(cached) " >&6 8122else 8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8124/* end confdefs.h. */ 8125int i; 8126_ACEOF 8127if ac_fn_c_try_compile "$LINENO"; then : 8128 xorg_cv_cc_flag_unused_command_line_argument=yes 8129else 8130 xorg_cv_cc_flag_unused_command_line_argument=no 8131fi 8132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8133fi 8134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8136 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8137 CFLAGS="$xorg_testset_save_CFLAGS" 8138fi 8139 8140found="no" 8141 8142 if test $found = "no" ; then 8143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8145 fi 8146 8147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8149 fi 8150 8151 CFLAGS="$CFLAGS -Wnonnull" 8152 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8154$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8155 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull` 8156 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8157 $as_echo_n "(cached) " >&6 8158else 8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8160/* end confdefs.h. */ 8161int i; 8162int 8163main () 8164{ 8165 8166 ; 8167 return 0; 8168} 8169_ACEOF 8170if ac_fn_c_try_link "$LINENO"; then : 8171 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8172else 8173 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8174fi 8175rm -f core conftest.err conftest.$ac_objext \ 8176 conftest$ac_exeext conftest.$ac_ext 8177fi 8178 8179 8180 CFLAGS="$xorg_testset_save_CFLAGS" 8181 8182 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8184$as_echo "$supported" >&6; } 8185 if test "$supported" = "yes" ; then 8186 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8187 found="yes" 8188 fi 8189 fi 8190 8191 8192 8193 8194 8195 8196 8197xorg_testset_save_CFLAGS="$CFLAGS" 8198 8199if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208int i; 8209_ACEOF 8210if ac_fn_c_try_compile "$LINENO"; then : 8211 xorg_cv_cc_flag_unknown_warning_option=yes 8212else 8213 xorg_cv_cc_flag_unknown_warning_option=no 8214fi 8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8216fi 8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8219 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8220 CFLAGS="$xorg_testset_save_CFLAGS" 8221fi 8222 8223if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8226 fi 8227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232else 8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8234/* end confdefs.h. */ 8235int i; 8236_ACEOF 8237if ac_fn_c_try_compile "$LINENO"; then : 8238 xorg_cv_cc_flag_unused_command_line_argument=yes 8239else 8240 xorg_cv_cc_flag_unused_command_line_argument=no 8241fi 8242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8243fi 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8246 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8247 CFLAGS="$xorg_testset_save_CFLAGS" 8248fi 8249 8250found="no" 8251 8252 if test $found = "no" ; then 8253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8255 fi 8256 8257 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8259 fi 8260 8261 CFLAGS="$CFLAGS -Winit-self" 8262 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8264$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8265 cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self` 8266 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8267 $as_echo_n "(cached) " >&6 8268else 8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8270/* end confdefs.h. */ 8271int i; 8272int 8273main () 8274{ 8275 8276 ; 8277 return 0; 8278} 8279_ACEOF 8280if ac_fn_c_try_link "$LINENO"; then : 8281 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8282else 8283 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8284fi 8285rm -f core conftest.err conftest.$ac_objext \ 8286 conftest$ac_exeext conftest.$ac_ext 8287fi 8288 8289 8290 CFLAGS="$xorg_testset_save_CFLAGS" 8291 8292 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8294$as_echo "$supported" >&6; } 8295 if test "$supported" = "yes" ; then 8296 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8297 found="yes" 8298 fi 8299 fi 8300 8301 8302 8303 8304 8305 8306 8307xorg_testset_save_CFLAGS="$CFLAGS" 8308 8309if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8314 $as_echo_n "(cached) " >&6 8315else 8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8317/* end confdefs.h. */ 8318int i; 8319_ACEOF 8320if ac_fn_c_try_compile "$LINENO"; then : 8321 xorg_cv_cc_flag_unknown_warning_option=yes 8322else 8323 xorg_cv_cc_flag_unknown_warning_option=no 8324fi 8325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8326fi 8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8329 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8330 CFLAGS="$xorg_testset_save_CFLAGS" 8331fi 8332 8333if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8334 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336 fi 8337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8341 $as_echo_n "(cached) " >&6 8342else 8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8344/* end confdefs.h. */ 8345int i; 8346_ACEOF 8347if ac_fn_c_try_compile "$LINENO"; then : 8348 xorg_cv_cc_flag_unused_command_line_argument=yes 8349else 8350 xorg_cv_cc_flag_unused_command_line_argument=no 8351fi 8352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8353fi 8354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8356 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8357 CFLAGS="$xorg_testset_save_CFLAGS" 8358fi 8359 8360found="no" 8361 8362 if test $found = "no" ; then 8363 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8365 fi 8366 8367 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8369 fi 8370 8371 CFLAGS="$CFLAGS -Wmain" 8372 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8374$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8375 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain` 8376 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8377 $as_echo_n "(cached) " >&6 8378else 8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8380/* end confdefs.h. */ 8381int i; 8382int 8383main () 8384{ 8385 8386 ; 8387 return 0; 8388} 8389_ACEOF 8390if ac_fn_c_try_link "$LINENO"; then : 8391 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8392else 8393 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8394fi 8395rm -f core conftest.err conftest.$ac_objext \ 8396 conftest$ac_exeext conftest.$ac_ext 8397fi 8398 8399 8400 CFLAGS="$xorg_testset_save_CFLAGS" 8401 8402 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8404$as_echo "$supported" >&6; } 8405 if test "$supported" = "yes" ; then 8406 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8407 found="yes" 8408 fi 8409 fi 8410 8411 8412 8413 8414 8415 8416 8417xorg_testset_save_CFLAGS="$CFLAGS" 8418 8419if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8424 $as_echo_n "(cached) " >&6 8425else 8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8427/* end confdefs.h. */ 8428int i; 8429_ACEOF 8430if ac_fn_c_try_compile "$LINENO"; then : 8431 xorg_cv_cc_flag_unknown_warning_option=yes 8432else 8433 xorg_cv_cc_flag_unknown_warning_option=no 8434fi 8435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8436fi 8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8439 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8440 CFLAGS="$xorg_testset_save_CFLAGS" 8441fi 8442 8443if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8446 fi 8447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8451 $as_echo_n "(cached) " >&6 8452else 8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8454/* end confdefs.h. */ 8455int i; 8456_ACEOF 8457if ac_fn_c_try_compile "$LINENO"; then : 8458 xorg_cv_cc_flag_unused_command_line_argument=yes 8459else 8460 xorg_cv_cc_flag_unused_command_line_argument=no 8461fi 8462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8463fi 8464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8466 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8467 CFLAGS="$xorg_testset_save_CFLAGS" 8468fi 8469 8470found="no" 8471 8472 if test $found = "no" ; then 8473 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8475 fi 8476 8477 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8479 fi 8480 8481 CFLAGS="$CFLAGS -Wmissing-braces" 8482 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8484$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8485 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces` 8486 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8487 $as_echo_n "(cached) " >&6 8488else 8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8490/* end confdefs.h. */ 8491int i; 8492int 8493main () 8494{ 8495 8496 ; 8497 return 0; 8498} 8499_ACEOF 8500if ac_fn_c_try_link "$LINENO"; then : 8501 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8502else 8503 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8504fi 8505rm -f core conftest.err conftest.$ac_objext \ 8506 conftest$ac_exeext conftest.$ac_ext 8507fi 8508 8509 8510 CFLAGS="$xorg_testset_save_CFLAGS" 8511 8512 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8514$as_echo "$supported" >&6; } 8515 if test "$supported" = "yes" ; then 8516 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8517 found="yes" 8518 fi 8519 fi 8520 8521 8522 8523 8524 8525 8526 8527xorg_testset_save_CFLAGS="$CFLAGS" 8528 8529if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8534 $as_echo_n "(cached) " >&6 8535else 8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8537/* end confdefs.h. */ 8538int i; 8539_ACEOF 8540if ac_fn_c_try_compile "$LINENO"; then : 8541 xorg_cv_cc_flag_unknown_warning_option=yes 8542else 8543 xorg_cv_cc_flag_unknown_warning_option=no 8544fi 8545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8546fi 8547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8549 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8550 CFLAGS="$xorg_testset_save_CFLAGS" 8551fi 8552 8553if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8554 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8556 fi 8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8561 $as_echo_n "(cached) " >&6 8562else 8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8564/* end confdefs.h. */ 8565int i; 8566_ACEOF 8567if ac_fn_c_try_compile "$LINENO"; then : 8568 xorg_cv_cc_flag_unused_command_line_argument=yes 8569else 8570 xorg_cv_cc_flag_unused_command_line_argument=no 8571fi 8572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8573fi 8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8576 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8577 CFLAGS="$xorg_testset_save_CFLAGS" 8578fi 8579 8580found="no" 8581 8582 if test $found = "no" ; then 8583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8585 fi 8586 8587 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8589 fi 8590 8591 CFLAGS="$CFLAGS -Wsequence-point" 8592 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8594$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8595 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point` 8596 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8597 $as_echo_n "(cached) " >&6 8598else 8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8600/* end confdefs.h. */ 8601int i; 8602int 8603main () 8604{ 8605 8606 ; 8607 return 0; 8608} 8609_ACEOF 8610if ac_fn_c_try_link "$LINENO"; then : 8611 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8612else 8613 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8614fi 8615rm -f core conftest.err conftest.$ac_objext \ 8616 conftest$ac_exeext conftest.$ac_ext 8617fi 8618 8619 8620 CFLAGS="$xorg_testset_save_CFLAGS" 8621 8622 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8624$as_echo "$supported" >&6; } 8625 if test "$supported" = "yes" ; then 8626 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8627 found="yes" 8628 fi 8629 fi 8630 8631 8632 8633 8634 8635 8636 8637xorg_testset_save_CFLAGS="$CFLAGS" 8638 8639if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8644 $as_echo_n "(cached) " >&6 8645else 8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8647/* end confdefs.h. */ 8648int i; 8649_ACEOF 8650if ac_fn_c_try_compile "$LINENO"; then : 8651 xorg_cv_cc_flag_unknown_warning_option=yes 8652else 8653 xorg_cv_cc_flag_unknown_warning_option=no 8654fi 8655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8656fi 8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8659 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8660 CFLAGS="$xorg_testset_save_CFLAGS" 8661fi 8662 8663if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666 fi 8667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675int i; 8676_ACEOF 8677if ac_fn_c_try_compile "$LINENO"; then : 8678 xorg_cv_cc_flag_unused_command_line_argument=yes 8679else 8680 xorg_cv_cc_flag_unused_command_line_argument=no 8681fi 8682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8683fi 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8686 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8687 CFLAGS="$xorg_testset_save_CFLAGS" 8688fi 8689 8690found="no" 8691 8692 if test $found = "no" ; then 8693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8695 fi 8696 8697 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8699 fi 8700 8701 CFLAGS="$CFLAGS -Wreturn-type" 8702 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 8704$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 8705 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type` 8706 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8707 $as_echo_n "(cached) " >&6 8708else 8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8710/* end confdefs.h. */ 8711int i; 8712int 8713main () 8714{ 8715 8716 ; 8717 return 0; 8718} 8719_ACEOF 8720if ac_fn_c_try_link "$LINENO"; then : 8721 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8722else 8723 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8724fi 8725rm -f core conftest.err conftest.$ac_objext \ 8726 conftest$ac_exeext conftest.$ac_ext 8727fi 8728 8729 8730 CFLAGS="$xorg_testset_save_CFLAGS" 8731 8732 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8734$as_echo "$supported" >&6; } 8735 if test "$supported" = "yes" ; then 8736 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 8737 found="yes" 8738 fi 8739 fi 8740 8741 8742 8743 8744 8745 8746 8747xorg_testset_save_CFLAGS="$CFLAGS" 8748 8749if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8754 $as_echo_n "(cached) " >&6 8755else 8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8757/* end confdefs.h. */ 8758int i; 8759_ACEOF 8760if ac_fn_c_try_compile "$LINENO"; then : 8761 xorg_cv_cc_flag_unknown_warning_option=yes 8762else 8763 xorg_cv_cc_flag_unknown_warning_option=no 8764fi 8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8766fi 8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8769 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8770 CFLAGS="$xorg_testset_save_CFLAGS" 8771fi 8772 8773if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8774 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8776 fi 8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8784/* end confdefs.h. */ 8785int i; 8786_ACEOF 8787if ac_fn_c_try_compile "$LINENO"; then : 8788 xorg_cv_cc_flag_unused_command_line_argument=yes 8789else 8790 xorg_cv_cc_flag_unused_command_line_argument=no 8791fi 8792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8793fi 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8796 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8797 CFLAGS="$xorg_testset_save_CFLAGS" 8798fi 8799 8800found="no" 8801 8802 if test $found = "no" ; then 8803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8805 fi 8806 8807 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8809 fi 8810 8811 CFLAGS="$CFLAGS -Wtrigraphs" 8812 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 8814$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 8815 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs` 8816 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8817 $as_echo_n "(cached) " >&6 8818else 8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8820/* end confdefs.h. */ 8821int i; 8822int 8823main () 8824{ 8825 8826 ; 8827 return 0; 8828} 8829_ACEOF 8830if ac_fn_c_try_link "$LINENO"; then : 8831 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8832else 8833 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8834fi 8835rm -f core conftest.err conftest.$ac_objext \ 8836 conftest$ac_exeext conftest.$ac_ext 8837fi 8838 8839 8840 CFLAGS="$xorg_testset_save_CFLAGS" 8841 8842 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8844$as_echo "$supported" >&6; } 8845 if test "$supported" = "yes" ; then 8846 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 8847 found="yes" 8848 fi 8849 fi 8850 8851 8852 8853 8854 8855 8856 8857xorg_testset_save_CFLAGS="$CFLAGS" 8858 8859if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8864 $as_echo_n "(cached) " >&6 8865else 8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8867/* end confdefs.h. */ 8868int i; 8869_ACEOF 8870if ac_fn_c_try_compile "$LINENO"; then : 8871 xorg_cv_cc_flag_unknown_warning_option=yes 8872else 8873 xorg_cv_cc_flag_unknown_warning_option=no 8874fi 8875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8876fi 8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8879 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8880 CFLAGS="$xorg_testset_save_CFLAGS" 8881fi 8882 8883if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8884 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8886 fi 8887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892else 8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895int i; 8896_ACEOF 8897if ac_fn_c_try_compile "$LINENO"; then : 8898 xorg_cv_cc_flag_unused_command_line_argument=yes 8899else 8900 xorg_cv_cc_flag_unused_command_line_argument=no 8901fi 8902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8903fi 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8906 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8907 CFLAGS="$xorg_testset_save_CFLAGS" 8908fi 8909 8910found="no" 8911 8912 if test $found = "no" ; then 8913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8915 fi 8916 8917 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8919 fi 8920 8921 CFLAGS="$CFLAGS -Warray-bounds" 8922 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 8924$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 8925 cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds` 8926 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931int i; 8932int 8933main () 8934{ 8935 8936 ; 8937 return 0; 8938} 8939_ACEOF 8940if ac_fn_c_try_link "$LINENO"; then : 8941 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8942else 8943 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8944fi 8945rm -f core conftest.err conftest.$ac_objext \ 8946 conftest$ac_exeext conftest.$ac_ext 8947fi 8948 8949 8950 CFLAGS="$xorg_testset_save_CFLAGS" 8951 8952 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8954$as_echo "$supported" >&6; } 8955 if test "$supported" = "yes" ; then 8956 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 8957 found="yes" 8958 fi 8959 fi 8960 8961 8962 8963 8964 8965 8966 8967xorg_testset_save_CFLAGS="$CFLAGS" 8968 8969if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8974 $as_echo_n "(cached) " >&6 8975else 8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8977/* end confdefs.h. */ 8978int i; 8979_ACEOF 8980if ac_fn_c_try_compile "$LINENO"; then : 8981 xorg_cv_cc_flag_unknown_warning_option=yes 8982else 8983 xorg_cv_cc_flag_unknown_warning_option=no 8984fi 8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8986fi 8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8989 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8990 CFLAGS="$xorg_testset_save_CFLAGS" 8991fi 8992 8993if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8994 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8996 fi 8997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004/* end confdefs.h. */ 9005int i; 9006_ACEOF 9007if ac_fn_c_try_compile "$LINENO"; then : 9008 xorg_cv_cc_flag_unused_command_line_argument=yes 9009else 9010 xorg_cv_cc_flag_unused_command_line_argument=no 9011fi 9012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9013fi 9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9016 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9017 CFLAGS="$xorg_testset_save_CFLAGS" 9018fi 9019 9020found="no" 9021 9022 if test $found = "no" ; then 9023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9025 fi 9026 9027 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9029 fi 9030 9031 CFLAGS="$CFLAGS -Wwrite-strings" 9032 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9034$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9035 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings` 9036 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9037 $as_echo_n "(cached) " >&6 9038else 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041int i; 9042int 9043main () 9044{ 9045 9046 ; 9047 return 0; 9048} 9049_ACEOF 9050if ac_fn_c_try_link "$LINENO"; then : 9051 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9052else 9053 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9054fi 9055rm -f core conftest.err conftest.$ac_objext \ 9056 conftest$ac_exeext conftest.$ac_ext 9057fi 9058 9059 9060 CFLAGS="$xorg_testset_save_CFLAGS" 9061 9062 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9064$as_echo "$supported" >&6; } 9065 if test "$supported" = "yes" ; then 9066 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9067 found="yes" 9068 fi 9069 fi 9070 9071 9072 9073 9074 9075 9076 9077xorg_testset_save_CFLAGS="$CFLAGS" 9078 9079if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9084 $as_echo_n "(cached) " >&6 9085else 9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9087/* end confdefs.h. */ 9088int i; 9089_ACEOF 9090if ac_fn_c_try_compile "$LINENO"; then : 9091 xorg_cv_cc_flag_unknown_warning_option=yes 9092else 9093 xorg_cv_cc_flag_unknown_warning_option=no 9094fi 9095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9096fi 9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9099 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9100 CFLAGS="$xorg_testset_save_CFLAGS" 9101fi 9102 9103if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9104 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9106 fi 9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9111 $as_echo_n "(cached) " >&6 9112else 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9114/* end confdefs.h. */ 9115int i; 9116_ACEOF 9117if ac_fn_c_try_compile "$LINENO"; then : 9118 xorg_cv_cc_flag_unused_command_line_argument=yes 9119else 9120 xorg_cv_cc_flag_unused_command_line_argument=no 9121fi 9122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9123fi 9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9126 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9127 CFLAGS="$xorg_testset_save_CFLAGS" 9128fi 9129 9130found="no" 9131 9132 if test $found = "no" ; then 9133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9135 fi 9136 9137 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9139 fi 9140 9141 CFLAGS="$CFLAGS -Waddress" 9142 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9144$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9145 cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress` 9146 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9147 $as_echo_n "(cached) " >&6 9148else 9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9150/* end confdefs.h. */ 9151int i; 9152int 9153main () 9154{ 9155 9156 ; 9157 return 0; 9158} 9159_ACEOF 9160if ac_fn_c_try_link "$LINENO"; then : 9161 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9162else 9163 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9164fi 9165rm -f core conftest.err conftest.$ac_objext \ 9166 conftest$ac_exeext conftest.$ac_ext 9167fi 9168 9169 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171 9172 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9174$as_echo "$supported" >&6; } 9175 if test "$supported" = "yes" ; then 9176 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9177 found="yes" 9178 fi 9179 fi 9180 9181 9182 9183 9184 9185 9186 9187xorg_testset_save_CFLAGS="$CFLAGS" 9188 9189if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198int i; 9199_ACEOF 9200if ac_fn_c_try_compile "$LINENO"; then : 9201 xorg_cv_cc_flag_unknown_warning_option=yes 9202else 9203 xorg_cv_cc_flag_unknown_warning_option=no 9204fi 9205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9206fi 9207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9209 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9210 CFLAGS="$xorg_testset_save_CFLAGS" 9211fi 9212 9213if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9216 fi 9217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9221 $as_echo_n "(cached) " >&6 9222else 9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9224/* end confdefs.h. */ 9225int i; 9226_ACEOF 9227if ac_fn_c_try_compile "$LINENO"; then : 9228 xorg_cv_cc_flag_unused_command_line_argument=yes 9229else 9230 xorg_cv_cc_flag_unused_command_line_argument=no 9231fi 9232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9233fi 9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9236 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9237 CFLAGS="$xorg_testset_save_CFLAGS" 9238fi 9239 9240found="no" 9241 9242 if test $found = "no" ; then 9243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9245 fi 9246 9247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9249 fi 9250 9251 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9252 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9254$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9255 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast` 9256 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9257 $as_echo_n "(cached) " >&6 9258else 9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9260/* end confdefs.h. */ 9261int i; 9262int 9263main () 9264{ 9265 9266 ; 9267 return 0; 9268} 9269_ACEOF 9270if ac_fn_c_try_link "$LINENO"; then : 9271 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9272else 9273 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9274fi 9275rm -f core conftest.err conftest.$ac_objext \ 9276 conftest$ac_exeext conftest.$ac_ext 9277fi 9278 9279 9280 CFLAGS="$xorg_testset_save_CFLAGS" 9281 9282 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9284$as_echo "$supported" >&6; } 9285 if test "$supported" = "yes" ; then 9286 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9287 found="yes" 9288 fi 9289 fi 9290 9291 9292 9293 9294 9295 9296 9297xorg_testset_save_CFLAGS="$CFLAGS" 9298 9299if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9304 $as_echo_n "(cached) " >&6 9305else 9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9307/* end confdefs.h. */ 9308int i; 9309_ACEOF 9310if ac_fn_c_try_compile "$LINENO"; then : 9311 xorg_cv_cc_flag_unknown_warning_option=yes 9312else 9313 xorg_cv_cc_flag_unknown_warning_option=no 9314fi 9315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9316fi 9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9319 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9320 CFLAGS="$xorg_testset_save_CFLAGS" 9321fi 9322 9323if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9326 fi 9327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9331 $as_echo_n "(cached) " >&6 9332else 9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9334/* end confdefs.h. */ 9335int i; 9336_ACEOF 9337if ac_fn_c_try_compile "$LINENO"; then : 9338 xorg_cv_cc_flag_unused_command_line_argument=yes 9339else 9340 xorg_cv_cc_flag_unused_command_line_argument=no 9341fi 9342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9343fi 9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9346 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9347 CFLAGS="$xorg_testset_save_CFLAGS" 9348fi 9349 9350found="no" 9351 9352 if test $found = "no" ; then 9353 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9355 fi 9356 9357 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9359 fi 9360 9361 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9362 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9364$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9365 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast` 9366 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9367 $as_echo_n "(cached) " >&6 9368else 9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9370/* end confdefs.h. */ 9371int i; 9372int 9373main () 9374{ 9375 9376 ; 9377 return 0; 9378} 9379_ACEOF 9380if ac_fn_c_try_link "$LINENO"; then : 9381 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9382else 9383 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9384fi 9385rm -f core conftest.err conftest.$ac_objext \ 9386 conftest$ac_exeext conftest.$ac_ext 9387fi 9388 9389 9390 CFLAGS="$xorg_testset_save_CFLAGS" 9391 9392 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9394$as_echo "$supported" >&6; } 9395 if test "$supported" = "yes" ; then 9396 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9397 found="yes" 9398 fi 9399 fi 9400 9401 9402fi 9403 9404 9405 9406 9407 9408 9409CWARNFLAGS="$BASE_CFLAGS" 9410if test "x$GCC" = xyes ; then 9411 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9412fi 9413 9414 9415 9416 9417 9418 9419# Check whether --enable-strict-compilation was given. 9420if test "${enable_strict_compilation+set}" = set; then : 9421 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9422else 9423 STRICT_COMPILE=no 9424fi 9425 9426 9427STRICT_CFLAGS="" 9428 9429 9430 9431 9432 9433xorg_testset_save_CFLAGS="$CFLAGS" 9434 9435if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443/* end confdefs.h. */ 9444int i; 9445_ACEOF 9446if ac_fn_c_try_compile "$LINENO"; then : 9447 xorg_cv_cc_flag_unknown_warning_option=yes 9448else 9449 xorg_cv_cc_flag_unknown_warning_option=no 9450fi 9451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9452fi 9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9455 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9456 CFLAGS="$xorg_testset_save_CFLAGS" 9457fi 9458 9459if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9462 fi 9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9467 $as_echo_n "(cached) " >&6 9468else 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471int i; 9472_ACEOF 9473if ac_fn_c_try_compile "$LINENO"; then : 9474 xorg_cv_cc_flag_unused_command_line_argument=yes 9475else 9476 xorg_cv_cc_flag_unused_command_line_argument=no 9477fi 9478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9479fi 9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9482 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9483 CFLAGS="$xorg_testset_save_CFLAGS" 9484fi 9485 9486found="no" 9487 9488 if test $found = "no" ; then 9489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9491 fi 9492 9493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9495 fi 9496 9497 CFLAGS="$CFLAGS -pedantic" 9498 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9500$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9501 cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic` 9502 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9503 $as_echo_n "(cached) " >&6 9504else 9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9506/* end confdefs.h. */ 9507int i; 9508int 9509main () 9510{ 9511 9512 ; 9513 return 0; 9514} 9515_ACEOF 9516if ac_fn_c_try_link "$LINENO"; then : 9517 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9518else 9519 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9520fi 9521rm -f core conftest.err conftest.$ac_objext \ 9522 conftest$ac_exeext conftest.$ac_ext 9523fi 9524 9525 9526 CFLAGS="$xorg_testset_save_CFLAGS" 9527 9528 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9530$as_echo "$supported" >&6; } 9531 if test "$supported" = "yes" ; then 9532 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9533 found="yes" 9534 fi 9535 fi 9536 9537 9538 9539 9540 9541 9542 9543xorg_testset_save_CFLAGS="$CFLAGS" 9544 9545if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9550 $as_echo_n "(cached) " >&6 9551else 9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9553/* end confdefs.h. */ 9554int i; 9555_ACEOF 9556if ac_fn_c_try_compile "$LINENO"; then : 9557 xorg_cv_cc_flag_unknown_warning_option=yes 9558else 9559 xorg_cv_cc_flag_unknown_warning_option=no 9560fi 9561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9562fi 9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9565 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9566 CFLAGS="$xorg_testset_save_CFLAGS" 9567fi 9568 9569if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9570 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9572 fi 9573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578else 9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580/* end confdefs.h. */ 9581int i; 9582_ACEOF 9583if ac_fn_c_try_compile "$LINENO"; then : 9584 xorg_cv_cc_flag_unused_command_line_argument=yes 9585else 9586 xorg_cv_cc_flag_unused_command_line_argument=no 9587fi 9588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9589fi 9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9592 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9593 CFLAGS="$xorg_testset_save_CFLAGS" 9594fi 9595 9596found="no" 9597 9598 if test $found = "no" ; then 9599 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9601 fi 9602 9603 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9605 fi 9606 9607 CFLAGS="$CFLAGS -Werror" 9608 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9610$as_echo_n "checking if $CC supports -Werror... " >&6; } 9611 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror` 9612 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9613 $as_echo_n "(cached) " >&6 9614else 9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9616/* end confdefs.h. */ 9617int i; 9618int 9619main () 9620{ 9621 9622 ; 9623 return 0; 9624} 9625_ACEOF 9626if ac_fn_c_try_link "$LINENO"; then : 9627 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9628else 9629 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9630fi 9631rm -f core conftest.err conftest.$ac_objext \ 9632 conftest$ac_exeext conftest.$ac_ext 9633fi 9634 9635 9636 CFLAGS="$xorg_testset_save_CFLAGS" 9637 9638 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9640$as_echo "$supported" >&6; } 9641 if test "$supported" = "yes" ; then 9642 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 9643 found="yes" 9644 fi 9645 fi 9646 9647 if test $found = "no" ; then 9648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9650 fi 9651 9652 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9654 fi 9655 9656 CFLAGS="$CFLAGS -errwarn" 9657 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 9659$as_echo_n "checking if $CC supports -errwarn... " >&6; } 9660 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn` 9661 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9662 $as_echo_n "(cached) " >&6 9663else 9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665/* end confdefs.h. */ 9666int i; 9667int 9668main () 9669{ 9670 9671 ; 9672 return 0; 9673} 9674_ACEOF 9675if ac_fn_c_try_link "$LINENO"; then : 9676 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9677else 9678 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9679fi 9680rm -f core conftest.err conftest.$ac_objext \ 9681 conftest$ac_exeext conftest.$ac_ext 9682fi 9683 9684 9685 CFLAGS="$xorg_testset_save_CFLAGS" 9686 9687 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9689$as_echo "$supported" >&6; } 9690 if test "$supported" = "yes" ; then 9691 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 9692 found="yes" 9693 fi 9694 fi 9695 9696 9697 9698# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 9699# activate it with -Werror, so we add it here explicitly. 9700 9701 9702 9703 9704 9705xorg_testset_save_CFLAGS="$CFLAGS" 9706 9707if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9712 $as_echo_n "(cached) " >&6 9713else 9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9715/* end confdefs.h. */ 9716int i; 9717_ACEOF 9718if ac_fn_c_try_compile "$LINENO"; then : 9719 xorg_cv_cc_flag_unknown_warning_option=yes 9720else 9721 xorg_cv_cc_flag_unknown_warning_option=no 9722fi 9723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9724fi 9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9727 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9728 CFLAGS="$xorg_testset_save_CFLAGS" 9729fi 9730 9731if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9734 fi 9735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9739 $as_echo_n "(cached) " >&6 9740else 9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9742/* end confdefs.h. */ 9743int i; 9744_ACEOF 9745if ac_fn_c_try_compile "$LINENO"; then : 9746 xorg_cv_cc_flag_unused_command_line_argument=yes 9747else 9748 xorg_cv_cc_flag_unused_command_line_argument=no 9749fi 9750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9751fi 9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9754 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9755 CFLAGS="$xorg_testset_save_CFLAGS" 9756fi 9757 9758found="no" 9759 9760 if test $found = "no" ; then 9761 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9763 fi 9764 9765 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9767 fi 9768 9769 CFLAGS="$CFLAGS -Werror=attributes" 9770 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 9772$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 9773 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes` 9774 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9775 $as_echo_n "(cached) " >&6 9776else 9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9778/* end confdefs.h. */ 9779int i; 9780int 9781main () 9782{ 9783 9784 ; 9785 return 0; 9786} 9787_ACEOF 9788if ac_fn_c_try_link "$LINENO"; then : 9789 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9790else 9791 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9792fi 9793rm -f core conftest.err conftest.$ac_objext \ 9794 conftest$ac_exeext conftest.$ac_ext 9795fi 9796 9797 9798 CFLAGS="$xorg_testset_save_CFLAGS" 9799 9800 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9802$as_echo "$supported" >&6; } 9803 if test "$supported" = "yes" ; then 9804 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 9805 found="yes" 9806 fi 9807 fi 9808 9809 9810 9811if test "x$STRICT_COMPILE" = "xyes"; then 9812 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 9813 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 9814fi 9815 9816 9817 9818 9819 9820 9821cat >>confdefs.h <<_ACEOF 9822#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 9823_ACEOF 9824 9825 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 9826 if test "x$PVM" = "x"; then 9827 PVM="0" 9828 fi 9829 9830cat >>confdefs.h <<_ACEOF 9831#define PACKAGE_VERSION_MINOR $PVM 9832_ACEOF 9833 9834 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 9835 if test "x$PVP" = "x"; then 9836 PVP="0" 9837 fi 9838 9839cat >>confdefs.h <<_ACEOF 9840#define PACKAGE_VERSION_PATCHLEVEL $PVP 9841_ACEOF 9842 9843 9844 9845CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 9846mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 9847|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 9848echo 'git directory not found: installing possibly empty changelog.' >&2)" 9849 9850 9851 9852 9853macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 9854INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 9855mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 9856|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 9857echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 9858 9859 9860 9861 9862 9863 9864if test x$APP_MAN_SUFFIX = x ; then 9865 APP_MAN_SUFFIX=1 9866fi 9867if test x$APP_MAN_DIR = x ; then 9868 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 9869fi 9870 9871if test x$LIB_MAN_SUFFIX = x ; then 9872 LIB_MAN_SUFFIX=3 9873fi 9874if test x$LIB_MAN_DIR = x ; then 9875 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 9876fi 9877 9878if test x$FILE_MAN_SUFFIX = x ; then 9879 case $host_os in 9880 solaris*) FILE_MAN_SUFFIX=4 ;; 9881 *) FILE_MAN_SUFFIX=5 ;; 9882 esac 9883fi 9884if test x$FILE_MAN_DIR = x ; then 9885 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 9886fi 9887 9888if test x$MISC_MAN_SUFFIX = x ; then 9889 case $host_os in 9890 solaris*) MISC_MAN_SUFFIX=5 ;; 9891 *) MISC_MAN_SUFFIX=7 ;; 9892 esac 9893fi 9894if test x$MISC_MAN_DIR = x ; then 9895 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 9896fi 9897 9898if test x$DRIVER_MAN_SUFFIX = x ; then 9899 case $host_os in 9900 solaris*) DRIVER_MAN_SUFFIX=7 ;; 9901 *) DRIVER_MAN_SUFFIX=4 ;; 9902 esac 9903fi 9904if test x$DRIVER_MAN_DIR = x ; then 9905 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 9906fi 9907 9908if test x$ADMIN_MAN_SUFFIX = x ; then 9909 case $host_os in 9910 solaris*) ADMIN_MAN_SUFFIX=1m ;; 9911 *) ADMIN_MAN_SUFFIX=8 ;; 9912 esac 9913fi 9914if test x$ADMIN_MAN_DIR = x ; then 9915 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 9916fi 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932XORG_MAN_PAGE="X Version 11" 9933 9934MAN_SUBSTS="\ 9935 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 9936 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 9937 -e 's|__xservername__|Xorg|g' \ 9938 -e 's|__xconfigfile__|xorg.conf|g' \ 9939 -e 's|__projectroot__|\$(prefix)|g' \ 9940 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 9941 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 9942 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 9943 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 9944 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 9945 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 9946 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 9947 9948 9949 9950# Check whether --enable-silent-rules was given. 9951if test "${enable_silent_rules+set}" = set; then : 9952 enableval=$enable_silent_rules; 9953fi 9954 9955case $enable_silent_rules in 9956yes) AM_DEFAULT_VERBOSITY=0;; 9957no) AM_DEFAULT_VERBOSITY=1;; 9958*) AM_DEFAULT_VERBOSITY=0;; 9959esac 9960AM_BACKSLASH='\' 9961 9962 9963 9964ac_config_files="$ac_config_files Makefile man/Makefile" 9965 9966cat >confcache <<\_ACEOF 9967# This file is a shell script that caches the results of configure 9968# tests run on this system so they can be shared between configure 9969# scripts and configure runs, see configure's option --config-cache. 9970# It is not useful on other systems. If it contains results you don't 9971# want to keep, you may remove or edit it. 9972# 9973# config.status only pays attention to the cache file if you give it 9974# the --recheck option to rerun configure. 9975# 9976# `ac_cv_env_foo' variables (set or unset) will be overridden when 9977# loading this file, other *unset* `ac_cv_foo' will be assigned the 9978# following values. 9979 9980_ACEOF 9981 9982# The following way of writing the cache mishandles newlines in values, 9983# but we know of no workaround that is simple, portable, and efficient. 9984# So, we kill variables containing newlines. 9985# Ultrix sh set writes to stderr and can't be redirected directly, 9986# and sets the high bit in the cache file unless we assign to the vars. 9987( 9988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9989 eval ac_val=\$$ac_var 9990 case $ac_val in #( 9991 *${as_nl}*) 9992 case $ac_var in #( 9993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9995 esac 9996 case $ac_var in #( 9997 _ | IFS | as_nl) ;; #( 9998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9999 *) { eval $ac_var=; unset $ac_var;} ;; 10000 esac ;; 10001 esac 10002 done 10003 10004 (set) 2>&1 | 10005 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10006 *${as_nl}ac_space=\ *) 10007 # `set' does not quote correctly, so add quotes: double-quote 10008 # substitution turns \\\\ into \\, and sed turns \\ into \. 10009 sed -n \ 10010 "s/'/'\\\\''/g; 10011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10012 ;; #( 10013 *) 10014 # `set' quotes correctly as required by POSIX, so do not add quotes. 10015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10016 ;; 10017 esac | 10018 sort 10019) | 10020 sed ' 10021 /^ac_cv_env_/b end 10022 t clear 10023 :clear 10024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10025 t end 10026 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10027 :end' >>confcache 10028if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10029 if test -w "$cache_file"; then 10030 if test "x$cache_file" != "x/dev/null"; then 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10032$as_echo "$as_me: updating cache $cache_file" >&6;} 10033 if test ! -f "$cache_file" || test -h "$cache_file"; then 10034 cat confcache >"$cache_file" 10035 else 10036 case $cache_file in #( 10037 */* | ?:*) 10038 mv -f confcache "$cache_file"$$ && 10039 mv -f "$cache_file"$$ "$cache_file" ;; #( 10040 *) 10041 mv -f confcache "$cache_file" ;; 10042 esac 10043 fi 10044 fi 10045 else 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10047$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10048 fi 10049fi 10050rm -f confcache 10051 10052test "x$prefix" = xNONE && prefix=$ac_default_prefix 10053# Let make expand exec_prefix. 10054test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10055 10056# Transform confdefs.h into DEFS. 10057# Protect against shell expansion while executing Makefile rules. 10058# Protect against Makefile macro expansion. 10059# 10060# If the first sed substitution is executed (which looks for macros that 10061# take arguments), then branch to the quote section. Otherwise, 10062# look for a macro that doesn't take arguments. 10063ac_script=' 10064:mline 10065/\\$/{ 10066 N 10067 s,\\\n,, 10068 b mline 10069} 10070t clear 10071:clear 10072s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10073t quote 10074s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10075t quote 10076b any 10077:quote 10078s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10079s/\[/\\&/g 10080s/\]/\\&/g 10081s/\$/$$/g 10082H 10083:any 10084${ 10085 g 10086 s/^\n// 10087 s/\n/ /g 10088 p 10089} 10090' 10091DEFS=`sed -n "$ac_script" confdefs.h` 10092 10093 10094ac_libobjs= 10095ac_ltlibobjs= 10096U= 10097for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10098 # 1. Remove the extension, and $U if already installed. 10099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10100 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10102 # will be set to the directory where LIBOBJS objects are built. 10103 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10104 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10105done 10106LIBOBJS=$ac_libobjs 10107 10108LTLIBOBJS=$ac_ltlibobjs 10109 10110 10111 if test -n "$EXEEXT"; then 10112 am__EXEEXT_TRUE= 10113 am__EXEEXT_FALSE='#' 10114else 10115 am__EXEEXT_TRUE='#' 10116 am__EXEEXT_FALSE= 10117fi 10118 10119if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10120 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10121Usually this means the macro was only invoked conditionally." "$LINENO" 5 10122fi 10123if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10124 as_fn_error $? "conditional \"AMDEP\" was never defined. 10125Usually this means the macro was only invoked conditionally." "$LINENO" 5 10126fi 10127if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10128 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10129Usually this means the macro was only invoked conditionally." "$LINENO" 5 10130fi 10131 10132: "${CONFIG_STATUS=./config.status}" 10133ac_write_fail=0 10134ac_clean_files_save=$ac_clean_files 10135ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10136{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10137$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10138as_write_fail=0 10139cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10140#! $SHELL 10141# Generated by $as_me. 10142# Run this file to recreate the current configuration. 10143# Compiler output produced by configure, useful for debugging 10144# configure, is in config.log if it exists. 10145 10146debug=false 10147ac_cs_recheck=false 10148ac_cs_silent=false 10149 10150SHELL=\${CONFIG_SHELL-$SHELL} 10151export SHELL 10152_ASEOF 10153cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10154## -------------------- ## 10155## M4sh Initialization. ## 10156## -------------------- ## 10157 10158# Be more Bourne compatible 10159DUALCASE=1; export DUALCASE # for MKS sh 10160if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10161 emulate sh 10162 NULLCMD=: 10163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10164 # is contrary to our usage. Disable this feature. 10165 alias -g '${1+"$@"}'='"$@"' 10166 setopt NO_GLOB_SUBST 10167else 10168 case `(set -o) 2>/dev/null` in #( 10169 *posix*) : 10170 set -o posix ;; #( 10171 *) : 10172 ;; 10173esac 10174fi 10175 10176 10177as_nl=' 10178' 10179export as_nl 10180# Printing a long string crashes Solaris 7 /usr/bin/printf. 10181as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10182as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10184# Prefer a ksh shell builtin over an external printf program on Solaris, 10185# but without wasting forks for bash or zsh. 10186if test -z "$BASH_VERSION$ZSH_VERSION" \ 10187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10188 as_echo='print -r --' 10189 as_echo_n='print -rn --' 10190elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10191 as_echo='printf %s\n' 10192 as_echo_n='printf %s' 10193else 10194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10196 as_echo_n='/usr/ucb/echo -n' 10197 else 10198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10199 as_echo_n_body='eval 10200 arg=$1; 10201 case $arg in #( 10202 *"$as_nl"*) 10203 expr "X$arg" : "X\\(.*\\)$as_nl"; 10204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10205 esac; 10206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10207 ' 10208 export as_echo_n_body 10209 as_echo_n='sh -c $as_echo_n_body as_echo' 10210 fi 10211 export as_echo_body 10212 as_echo='sh -c $as_echo_body as_echo' 10213fi 10214 10215# The user is always right. 10216if test "${PATH_SEPARATOR+set}" != set; then 10217 PATH_SEPARATOR=: 10218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10220 PATH_SEPARATOR=';' 10221 } 10222fi 10223 10224 10225# IFS 10226# We need space, tab and new line, in precisely that order. Quoting is 10227# there to prevent editors from complaining about space-tab. 10228# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10229# splitting by setting IFS to empty value.) 10230IFS=" "" $as_nl" 10231 10232# Find who we are. Look in the path if we contain no directory separator. 10233as_myself= 10234case $0 in #(( 10235 *[\\/]* ) as_myself=$0 ;; 10236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10237for as_dir in $PATH 10238do 10239 IFS=$as_save_IFS 10240 test -z "$as_dir" && as_dir=. 10241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10242 done 10243IFS=$as_save_IFS 10244 10245 ;; 10246esac 10247# We did not find ourselves, most probably we were run as `sh COMMAND' 10248# in which case we are not to be found in the path. 10249if test "x$as_myself" = x; then 10250 as_myself=$0 10251fi 10252if test ! -f "$as_myself"; then 10253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10254 exit 1 10255fi 10256 10257# Unset variables that we do not need and which cause bugs (e.g. in 10258# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10259# suppresses any "Segmentation fault" message there. '((' could 10260# trigger a bug in pdksh 5.2.14. 10261for as_var in BASH_ENV ENV MAIL MAILPATH 10262do eval test x\${$as_var+set} = xset \ 10263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10264done 10265PS1='$ ' 10266PS2='> ' 10267PS4='+ ' 10268 10269# NLS nuisances. 10270LC_ALL=C 10271export LC_ALL 10272LANGUAGE=C 10273export LANGUAGE 10274 10275# CDPATH. 10276(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10277 10278 10279# as_fn_error STATUS ERROR [LINENO LOG_FD] 10280# ---------------------------------------- 10281# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10282# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10283# script with STATUS, using 1 if that was 0. 10284as_fn_error () 10285{ 10286 as_status=$1; test $as_status -eq 0 && as_status=1 10287 if test "$4"; then 10288 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10290 fi 10291 $as_echo "$as_me: error: $2" >&2 10292 as_fn_exit $as_status 10293} # as_fn_error 10294 10295 10296# as_fn_set_status STATUS 10297# ----------------------- 10298# Set $? to STATUS, without forking. 10299as_fn_set_status () 10300{ 10301 return $1 10302} # as_fn_set_status 10303 10304# as_fn_exit STATUS 10305# ----------------- 10306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10307as_fn_exit () 10308{ 10309 set +e 10310 as_fn_set_status $1 10311 exit $1 10312} # as_fn_exit 10313 10314# as_fn_unset VAR 10315# --------------- 10316# Portably unset VAR. 10317as_fn_unset () 10318{ 10319 { eval $1=; unset $1;} 10320} 10321as_unset=as_fn_unset 10322# as_fn_append VAR VALUE 10323# ---------------------- 10324# Append the text in VALUE to the end of the definition contained in VAR. Take 10325# advantage of any shell optimizations that allow amortized linear growth over 10326# repeated appends, instead of the typical quadratic growth present in naive 10327# implementations. 10328if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10329 eval 'as_fn_append () 10330 { 10331 eval $1+=\$2 10332 }' 10333else 10334 as_fn_append () 10335 { 10336 eval $1=\$$1\$2 10337 } 10338fi # as_fn_append 10339 10340# as_fn_arith ARG... 10341# ------------------ 10342# Perform arithmetic evaluation on the ARGs, and store the result in the 10343# global $as_val. Take advantage of shells that can avoid forks. The arguments 10344# must be portable across $(()) and expr. 10345if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10346 eval 'as_fn_arith () 10347 { 10348 as_val=$(( $* )) 10349 }' 10350else 10351 as_fn_arith () 10352 { 10353 as_val=`expr "$@" || test $? -eq 1` 10354 } 10355fi # as_fn_arith 10356 10357 10358if expr a : '\(a\)' >/dev/null 2>&1 && 10359 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10360 as_expr=expr 10361else 10362 as_expr=false 10363fi 10364 10365if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10366 as_basename=basename 10367else 10368 as_basename=false 10369fi 10370 10371if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10372 as_dirname=dirname 10373else 10374 as_dirname=false 10375fi 10376 10377as_me=`$as_basename -- "$0" || 10378$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10379 X"$0" : 'X\(//\)$' \| \ 10380 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10381$as_echo X/"$0" | 10382 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10383 s//\1/ 10384 q 10385 } 10386 /^X\/\(\/\/\)$/{ 10387 s//\1/ 10388 q 10389 } 10390 /^X\/\(\/\).*/{ 10391 s//\1/ 10392 q 10393 } 10394 s/.*/./; q'` 10395 10396# Avoid depending upon Character Ranges. 10397as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10398as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10399as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10400as_cr_digits='0123456789' 10401as_cr_alnum=$as_cr_Letters$as_cr_digits 10402 10403ECHO_C= ECHO_N= ECHO_T= 10404case `echo -n x` in #((((( 10405-n*) 10406 case `echo 'xy\c'` in 10407 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10408 xy) ECHO_C='\c';; 10409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10410 ECHO_T=' ';; 10411 esac;; 10412*) 10413 ECHO_N='-n';; 10414esac 10415 10416rm -f conf$$ conf$$.exe conf$$.file 10417if test -d conf$$.dir; then 10418 rm -f conf$$.dir/conf$$.file 10419else 10420 rm -f conf$$.dir 10421 mkdir conf$$.dir 2>/dev/null 10422fi 10423if (echo >conf$$.file) 2>/dev/null; then 10424 if ln -s conf$$.file conf$$ 2>/dev/null; then 10425 as_ln_s='ln -s' 10426 # ... but there are two gotchas: 10427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10429 # In both cases, we have to default to `cp -p'. 10430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10431 as_ln_s='cp -p' 10432 elif ln conf$$.file conf$$ 2>/dev/null; then 10433 as_ln_s=ln 10434 else 10435 as_ln_s='cp -p' 10436 fi 10437else 10438 as_ln_s='cp -p' 10439fi 10440rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10441rmdir conf$$.dir 2>/dev/null 10442 10443 10444# as_fn_mkdir_p 10445# ------------- 10446# Create "$as_dir" as a directory, including parents if necessary. 10447as_fn_mkdir_p () 10448{ 10449 10450 case $as_dir in #( 10451 -*) as_dir=./$as_dir;; 10452 esac 10453 test -d "$as_dir" || eval $as_mkdir_p || { 10454 as_dirs= 10455 while :; do 10456 case $as_dir in #( 10457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10458 *) as_qdir=$as_dir;; 10459 esac 10460 as_dirs="'$as_qdir' $as_dirs" 10461 as_dir=`$as_dirname -- "$as_dir" || 10462$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10463 X"$as_dir" : 'X\(//\)[^/]' \| \ 10464 X"$as_dir" : 'X\(//\)$' \| \ 10465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10466$as_echo X"$as_dir" | 10467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10468 s//\1/ 10469 q 10470 } 10471 /^X\(\/\/\)[^/].*/{ 10472 s//\1/ 10473 q 10474 } 10475 /^X\(\/\/\)$/{ 10476 s//\1/ 10477 q 10478 } 10479 /^X\(\/\).*/{ 10480 s//\1/ 10481 q 10482 } 10483 s/.*/./; q'` 10484 test -d "$as_dir" && break 10485 done 10486 test -z "$as_dirs" || eval "mkdir $as_dirs" 10487 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10488 10489 10490} # as_fn_mkdir_p 10491if mkdir -p . 2>/dev/null; then 10492 as_mkdir_p='mkdir -p "$as_dir"' 10493else 10494 test -d ./-p && rmdir ./-p 10495 as_mkdir_p=false 10496fi 10497 10498if test -x / >/dev/null 2>&1; then 10499 as_test_x='test -x' 10500else 10501 if ls -dL / >/dev/null 2>&1; then 10502 as_ls_L_option=L 10503 else 10504 as_ls_L_option= 10505 fi 10506 as_test_x=' 10507 eval sh -c '\'' 10508 if test -d "$1"; then 10509 test -d "$1/."; 10510 else 10511 case $1 in #( 10512 -*)set "./$1";; 10513 esac; 10514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 10515 ???[sx]*):;;*)false;;esac;fi 10516 '\'' sh 10517 ' 10518fi 10519as_executable_p=$as_test_x 10520 10521# Sed expression to map a string onto a valid CPP name. 10522as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10523 10524# Sed expression to map a string onto a valid variable name. 10525as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10526 10527 10528exec 6>&1 10529## ----------------------------------- ## 10530## Main body of $CONFIG_STATUS script. ## 10531## ----------------------------------- ## 10532_ASEOF 10533test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10534 10535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10536# Save the log message, to keep $0 and so on meaningful, and to 10537# report actual input values of CONFIG_FILES etc. instead of their 10538# values after options handling. 10539ac_log=" 10540This file was extended by mkfontdir $as_me 1.0.7, which was 10541generated by GNU Autoconf 2.68. Invocation command line was 10542 10543 CONFIG_FILES = $CONFIG_FILES 10544 CONFIG_HEADERS = $CONFIG_HEADERS 10545 CONFIG_LINKS = $CONFIG_LINKS 10546 CONFIG_COMMANDS = $CONFIG_COMMANDS 10547 $ $0 $@ 10548 10549on `(hostname || uname -n) 2>/dev/null | sed 1q` 10550" 10551 10552_ACEOF 10553 10554case $ac_config_files in *" 10555"*) set x $ac_config_files; shift; ac_config_files=$*;; 10556esac 10557 10558 10559 10560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10561# Files that config.status was made for. 10562config_files="$ac_config_files" 10563config_commands="$ac_config_commands" 10564 10565_ACEOF 10566 10567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10568ac_cs_usage="\ 10569\`$as_me' instantiates files and other configuration actions 10570from templates according to the current configuration. Unless the files 10571and actions are specified as TAGs, all are instantiated by default. 10572 10573Usage: $0 [OPTION]... [TAG]... 10574 10575 -h, --help print this help, then exit 10576 -V, --version print version number and configuration settings, then exit 10577 --config print configuration, then exit 10578 -q, --quiet, --silent 10579 do not print progress messages 10580 -d, --debug don't remove temporary files 10581 --recheck update $as_me by reconfiguring in the same conditions 10582 --file=FILE[:TEMPLATE] 10583 instantiate the configuration file FILE 10584 10585Configuration files: 10586$config_files 10587 10588Configuration commands: 10589$config_commands 10590 10591Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 10592 10593_ACEOF 10594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10595ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10596ac_cs_version="\\ 10597mkfontdir config.status 1.0.7 10598configured by $0, generated by GNU Autoconf 2.68, 10599 with options \\"\$ac_cs_config\\" 10600 10601Copyright (C) 2010 Free Software Foundation, Inc. 10602This config.status script is free software; the Free Software Foundation 10603gives unlimited permission to copy, distribute and modify it." 10604 10605ac_pwd='$ac_pwd' 10606srcdir='$srcdir' 10607INSTALL='$INSTALL' 10608MKDIR_P='$MKDIR_P' 10609AWK='$AWK' 10610test -n "\$AWK" || AWK=awk 10611_ACEOF 10612 10613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10614# The default lists apply if the user does not specify any file. 10615ac_need_defaults=: 10616while test $# != 0 10617do 10618 case $1 in 10619 --*=?*) 10620 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10622 ac_shift=: 10623 ;; 10624 --*=) 10625 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10626 ac_optarg= 10627 ac_shift=: 10628 ;; 10629 *) 10630 ac_option=$1 10631 ac_optarg=$2 10632 ac_shift=shift 10633 ;; 10634 esac 10635 10636 case $ac_option in 10637 # Handling of the options. 10638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10639 ac_cs_recheck=: ;; 10640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10641 $as_echo "$ac_cs_version"; exit ;; 10642 --config | --confi | --conf | --con | --co | --c ) 10643 $as_echo "$ac_cs_config"; exit ;; 10644 --debug | --debu | --deb | --de | --d | -d ) 10645 debug=: ;; 10646 --file | --fil | --fi | --f ) 10647 $ac_shift 10648 case $ac_optarg in 10649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10650 '') as_fn_error $? "missing file argument" ;; 10651 esac 10652 as_fn_append CONFIG_FILES " '$ac_optarg'" 10653 ac_need_defaults=false;; 10654 --he | --h | --help | --hel | -h ) 10655 $as_echo "$ac_cs_usage"; exit ;; 10656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10657 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10658 ac_cs_silent=: ;; 10659 10660 # This is an error. 10661 -*) as_fn_error $? "unrecognized option: \`$1' 10662Try \`$0 --help' for more information." ;; 10663 10664 *) as_fn_append ac_config_targets " $1" 10665 ac_need_defaults=false ;; 10666 10667 esac 10668 shift 10669done 10670 10671ac_configure_extra_args= 10672 10673if $ac_cs_silent; then 10674 exec 6>/dev/null 10675 ac_configure_extra_args="$ac_configure_extra_args --silent" 10676fi 10677 10678_ACEOF 10679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10680if \$ac_cs_recheck; then 10681 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10682 shift 10683 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10684 CONFIG_SHELL='$SHELL' 10685 export CONFIG_SHELL 10686 exec "\$@" 10687fi 10688 10689_ACEOF 10690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10691exec 5>>config.log 10692{ 10693 echo 10694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10695## Running $as_me. ## 10696_ASBOX 10697 $as_echo "$ac_log" 10698} >&5 10699 10700_ACEOF 10701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10702# 10703# INIT-COMMANDS 10704# 10705AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 10706 10707_ACEOF 10708 10709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10710 10711# Handling of arguments. 10712for ac_config_target in $ac_config_targets 10713do 10714 case $ac_config_target in 10715 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 10716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10717 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 10718 10719 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10720 esac 10721done 10722 10723 10724# If the user did not use the arguments to specify the items to instantiate, 10725# then the envvar interface is used. Set only those that are not. 10726# We use the long form for the default assignment because of an extremely 10727# bizarre bug on SunOS 4.1.3. 10728if $ac_need_defaults; then 10729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10730 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10731fi 10732 10733# Have a temporary directory for convenience. Make it in the build tree 10734# simply because there is no reason against having it here, and in addition, 10735# creating and moving files from /tmp can sometimes cause problems. 10736# Hook for its removal unless debugging. 10737# Note that there is a small window in which the directory will not be cleaned: 10738# after its creation but before its name has been assigned to `$tmp'. 10739$debug || 10740{ 10741 tmp= ac_tmp= 10742 trap 'exit_status=$? 10743 : "${ac_tmp:=$tmp}" 10744 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10745' 0 10746 trap 'as_fn_exit 1' 1 2 13 15 10747} 10748# Create a (secure) tmp directory for tmp files. 10749 10750{ 10751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10752 test -d "$tmp" 10753} || 10754{ 10755 tmp=./conf$$-$RANDOM 10756 (umask 077 && mkdir "$tmp") 10757} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10758ac_tmp=$tmp 10759 10760# Set up the scripts for CONFIG_FILES section. 10761# No need to generate them if there are no CONFIG_FILES. 10762# This happens for instance with `./config.status config.h'. 10763if test -n "$CONFIG_FILES"; then 10764 10765 10766ac_cr=`echo X | tr X '\015'` 10767# On cygwin, bash can eat \r inside `` if the user requested igncr. 10768# But we know of no other shell where ac_cr would be empty at this 10769# point, so we can use a bashism as a fallback. 10770if test "x$ac_cr" = x; then 10771 eval ac_cr=\$\'\\r\' 10772fi 10773ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10774if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10775 ac_cs_awk_cr='\\r' 10776else 10777 ac_cs_awk_cr=$ac_cr 10778fi 10779 10780echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10781_ACEOF 10782 10783 10784{ 10785 echo "cat >conf$$subs.awk <<_ACEOF" && 10786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10787 echo "_ACEOF" 10788} >conf$$subs.sh || 10789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10790ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10791ac_delim='%!_!# ' 10792for ac_last_try in false false false false false :; do 10793 . ./conf$$subs.sh || 10794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10795 10796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10797 if test $ac_delim_n = $ac_delim_num; then 10798 break 10799 elif $ac_last_try; then 10800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10801 else 10802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10803 fi 10804done 10805rm -f conf$$subs.sh 10806 10807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10808cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10809_ACEOF 10810sed -n ' 10811h 10812s/^/S["/; s/!.*/"]=/ 10813p 10814g 10815s/^[^!]*!// 10816:repl 10817t repl 10818s/'"$ac_delim"'$// 10819t delim 10820:nl 10821h 10822s/\(.\{148\}\)..*/\1/ 10823t more1 10824s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10825p 10826n 10827b repl 10828:more1 10829s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10830p 10831g 10832s/.\{148\}// 10833t nl 10834:delim 10835h 10836s/\(.\{148\}\)..*/\1/ 10837t more2 10838s/["\\]/\\&/g; s/^/"/; s/$/"/ 10839p 10840b 10841:more2 10842s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10843p 10844g 10845s/.\{148\}// 10846t delim 10847' <conf$$subs.awk | sed ' 10848/^[^""]/{ 10849 N 10850 s/\n// 10851} 10852' >>$CONFIG_STATUS || ac_write_fail=1 10853rm -f conf$$subs.awk 10854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10855_ACAWK 10856cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10857 for (key in S) S_is_set[key] = 1 10858 FS = "" 10859 10860} 10861{ 10862 line = $ 0 10863 nfields = split(line, field, "@") 10864 substed = 0 10865 len = length(field[1]) 10866 for (i = 2; i < nfields; i++) { 10867 key = field[i] 10868 keylen = length(key) 10869 if (S_is_set[key]) { 10870 value = S[key] 10871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10872 len += length(value) + length(field[++i]) 10873 substed = 1 10874 } else 10875 len += 1 + keylen 10876 } 10877 10878 print line 10879} 10880 10881_ACAWK 10882_ACEOF 10883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10884if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10886else 10887 cat 10888fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10889 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10890_ACEOF 10891 10892# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10893# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10894# trailing colons and then remove the whole line if VPATH becomes empty 10895# (actually we leave an empty line to preserve line numbers). 10896if test "x$srcdir" = x.; then 10897 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10898h 10899s/// 10900s/^/:/ 10901s/[ ]*$/:/ 10902s/:\$(srcdir):/:/g 10903s/:\${srcdir}:/:/g 10904s/:@srcdir@:/:/g 10905s/^:*// 10906s/:*$// 10907x 10908s/\(=[ ]*\).*/\1/ 10909G 10910s/\n// 10911s/^[^=]*=[ ]*$// 10912}' 10913fi 10914 10915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10916fi # test -n "$CONFIG_FILES" 10917 10918 10919eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 10920shift 10921for ac_tag 10922do 10923 case $ac_tag in 10924 :[FHLC]) ac_mode=$ac_tag; continue;; 10925 esac 10926 case $ac_mode$ac_tag in 10927 :[FHL]*:*);; 10928 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10929 :[FH]-) ac_tag=-:-;; 10930 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10931 esac 10932 ac_save_IFS=$IFS 10933 IFS=: 10934 set x $ac_tag 10935 IFS=$ac_save_IFS 10936 shift 10937 ac_file=$1 10938 shift 10939 10940 case $ac_mode in 10941 :L) ac_source=$1;; 10942 :[FH]) 10943 ac_file_inputs= 10944 for ac_f 10945 do 10946 case $ac_f in 10947 -) ac_f="$ac_tmp/stdin";; 10948 *) # Look for the file first in the build tree, then in the source tree 10949 # (if the path is not absolute). The absolute path cannot be DOS-style, 10950 # because $ac_f cannot contain `:'. 10951 test -f "$ac_f" || 10952 case $ac_f in 10953 [\\/$]*) false;; 10954 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10955 esac || 10956 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10957 esac 10958 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10959 as_fn_append ac_file_inputs " '$ac_f'" 10960 done 10961 10962 # Let's still pretend it is `configure' which instantiates (i.e., don't 10963 # use $as_me), people would be surprised to read: 10964 # /* config.h. Generated by config.status. */ 10965 configure_input='Generated from '` 10966 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10967 `' by configure.' 10968 if test x"$ac_file" != x-; then 10969 configure_input="$ac_file. $configure_input" 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10971$as_echo "$as_me: creating $ac_file" >&6;} 10972 fi 10973 # Neutralize special characters interpreted by sed in replacement strings. 10974 case $configure_input in #( 10975 *\&* | *\|* | *\\* ) 10976 ac_sed_conf_input=`$as_echo "$configure_input" | 10977 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10978 *) ac_sed_conf_input=$configure_input;; 10979 esac 10980 10981 case $ac_tag in 10982 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10984 esac 10985 ;; 10986 esac 10987 10988 ac_dir=`$as_dirname -- "$ac_file" || 10989$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10990 X"$ac_file" : 'X\(//\)[^/]' \| \ 10991 X"$ac_file" : 'X\(//\)$' \| \ 10992 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10993$as_echo X"$ac_file" | 10994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10995 s//\1/ 10996 q 10997 } 10998 /^X\(\/\/\)[^/].*/{ 10999 s//\1/ 11000 q 11001 } 11002 /^X\(\/\/\)$/{ 11003 s//\1/ 11004 q 11005 } 11006 /^X\(\/\).*/{ 11007 s//\1/ 11008 q 11009 } 11010 s/.*/./; q'` 11011 as_dir="$ac_dir"; as_fn_mkdir_p 11012 ac_builddir=. 11013 11014case "$ac_dir" in 11015.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11016*) 11017 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11018 # A ".." for each directory in $ac_dir_suffix. 11019 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11020 case $ac_top_builddir_sub in 11021 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11022 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11023 esac ;; 11024esac 11025ac_abs_top_builddir=$ac_pwd 11026ac_abs_builddir=$ac_pwd$ac_dir_suffix 11027# for backward compatibility: 11028ac_top_builddir=$ac_top_build_prefix 11029 11030case $srcdir in 11031 .) # We are building in place. 11032 ac_srcdir=. 11033 ac_top_srcdir=$ac_top_builddir_sub 11034 ac_abs_top_srcdir=$ac_pwd ;; 11035 [\\/]* | ?:[\\/]* ) # Absolute name. 11036 ac_srcdir=$srcdir$ac_dir_suffix; 11037 ac_top_srcdir=$srcdir 11038 ac_abs_top_srcdir=$srcdir ;; 11039 *) # Relative name. 11040 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11041 ac_top_srcdir=$ac_top_build_prefix$srcdir 11042 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11043esac 11044ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11045 11046 11047 case $ac_mode in 11048 :F) 11049 # 11050 # CONFIG_FILE 11051 # 11052 11053 case $INSTALL in 11054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11055 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11056 esac 11057 ac_MKDIR_P=$MKDIR_P 11058 case $MKDIR_P in 11059 [\\/$]* | ?:[\\/]* ) ;; 11060 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11061 esac 11062_ACEOF 11063 11064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11065# If the template does not know about datarootdir, expand it. 11066# FIXME: This hack should be removed a few years after 2.60. 11067ac_datarootdir_hack=; ac_datarootdir_seen= 11068ac_sed_dataroot=' 11069/datarootdir/ { 11070 p 11071 q 11072} 11073/@datadir@/p 11074/@docdir@/p 11075/@infodir@/p 11076/@localedir@/p 11077/@mandir@/p' 11078case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11079*datarootdir*) ac_datarootdir_seen=yes;; 11080*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11082$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11083_ACEOF 11084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11085 ac_datarootdir_hack=' 11086 s&@datadir@&$datadir&g 11087 s&@docdir@&$docdir&g 11088 s&@infodir@&$infodir&g 11089 s&@localedir@&$localedir&g 11090 s&@mandir@&$mandir&g 11091 s&\\\${datarootdir}&$datarootdir&g' ;; 11092esac 11093_ACEOF 11094 11095# Neutralize VPATH when `$srcdir' = `.'. 11096# Shell code in configure.ac might set extrasub. 11097# FIXME: do we really want to maintain this feature? 11098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11099ac_sed_extra="$ac_vpsub 11100$extrasub 11101_ACEOF 11102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11103:t 11104/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11105s|@configure_input@|$ac_sed_conf_input|;t t 11106s&@top_builddir@&$ac_top_builddir_sub&;t t 11107s&@top_build_prefix@&$ac_top_build_prefix&;t t 11108s&@srcdir@&$ac_srcdir&;t t 11109s&@abs_srcdir@&$ac_abs_srcdir&;t t 11110s&@top_srcdir@&$ac_top_srcdir&;t t 11111s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11112s&@builddir@&$ac_builddir&;t t 11113s&@abs_builddir@&$ac_abs_builddir&;t t 11114s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11115s&@INSTALL@&$ac_INSTALL&;t t 11116s&@MKDIR_P@&$ac_MKDIR_P&;t t 11117$ac_datarootdir_hack 11118" 11119eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11120 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11121 11122test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11123 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11124 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11125 "$ac_tmp/out"`; test -z "$ac_out"; } && 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11127which seems to be undefined. Please make sure it is defined" >&5 11128$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11129which seems to be undefined. Please make sure it is defined" >&2;} 11130 11131 rm -f "$ac_tmp/stdin" 11132 case $ac_file in 11133 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11134 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11135 esac \ 11136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11137 ;; 11138 11139 11140 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11141$as_echo "$as_me: executing $ac_file commands" >&6;} 11142 ;; 11143 esac 11144 11145 11146 case $ac_file$ac_mode in 11147 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11148 # Autoconf 2.62 quotes --file arguments for eval, but not when files 11149 # are listed without --file. Let's play safe and only enable the eval 11150 # if we detect the quoting. 11151 case $CONFIG_FILES in 11152 *\'*) eval set x "$CONFIG_FILES" ;; 11153 *) set x $CONFIG_FILES ;; 11154 esac 11155 shift 11156 for mf 11157 do 11158 # Strip MF so we end up with the name of the file. 11159 mf=`echo "$mf" | sed -e 's/:.*$//'` 11160 # Check whether this is an Automake generated Makefile or not. 11161 # We used to match only the files named `Makefile.in', but 11162 # some people rename them; so instead we look at the file content. 11163 # Grep'ing the first line is not enough: some people post-process 11164 # each Makefile.in and add a new line on top of each file to say so. 11165 # Grep'ing the whole file is not good either: AIX grep has a line 11166 # limit of 2048, but all sed's we know have understand at least 4000. 11167 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11168 dirpart=`$as_dirname -- "$mf" || 11169$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11170 X"$mf" : 'X\(//\)[^/]' \| \ 11171 X"$mf" : 'X\(//\)$' \| \ 11172 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11173$as_echo X"$mf" | 11174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11175 s//\1/ 11176 q 11177 } 11178 /^X\(\/\/\)[^/].*/{ 11179 s//\1/ 11180 q 11181 } 11182 /^X\(\/\/\)$/{ 11183 s//\1/ 11184 q 11185 } 11186 /^X\(\/\).*/{ 11187 s//\1/ 11188 q 11189 } 11190 s/.*/./; q'` 11191 else 11192 continue 11193 fi 11194 # Extract the definition of DEPDIR, am__include, and am__quote 11195 # from the Makefile without running `make'. 11196 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11197 test -z "$DEPDIR" && continue 11198 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11199 test -z "am__include" && continue 11200 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11201 # When using ansi2knr, U may be empty or an underscore; expand it 11202 U=`sed -n 's/^U = //p' < "$mf"` 11203 # Find all dependency output files, they are included files with 11204 # $(DEPDIR) in their names. We invoke sed twice because it is the 11205 # simplest approach to changing $(DEPDIR) to its actual value in the 11206 # expansion. 11207 for file in `sed -n " 11208 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11209 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 11210 # Make sure the directory exists. 11211 test -f "$dirpart/$file" && continue 11212 fdir=`$as_dirname -- "$file" || 11213$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11214 X"$file" : 'X\(//\)[^/]' \| \ 11215 X"$file" : 'X\(//\)$' \| \ 11216 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11217$as_echo X"$file" | 11218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11219 s//\1/ 11220 q 11221 } 11222 /^X\(\/\/\)[^/].*/{ 11223 s//\1/ 11224 q 11225 } 11226 /^X\(\/\/\)$/{ 11227 s//\1/ 11228 q 11229 } 11230 /^X\(\/\).*/{ 11231 s//\1/ 11232 q 11233 } 11234 s/.*/./; q'` 11235 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11236 # echo "creating $dirpart/$file" 11237 echo '# dummy' > "$dirpart/$file" 11238 done 11239 done 11240} 11241 ;; 11242 11243 esac 11244done # for ac_tag 11245 11246 11247as_fn_exit 0 11248_ACEOF 11249ac_clean_files=$ac_clean_files_save 11250 11251test $ac_write_fail = 0 || 11252 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11253 11254 11255# configure is writing to config.log, and then calls config.status. 11256# config.status does its own redirection, appending to config.log. 11257# Unfortunately, on DOS this fails, as config.log is still kept open 11258# by configure, so config.status won't be able to write to it; its 11259# output is simply discarded. So we exec the FD to /dev/null, 11260# effectively closing config.log, so it can be properly (re)opened and 11261# appended to by config.status. When coming back to configure, we 11262# need to make the FD available again. 11263if test "$no_create" != yes; then 11264 ac_cs_success=: 11265 ac_config_status_args= 11266 test "$silent" = yes && 11267 ac_config_status_args="$ac_config_status_args --quiet" 11268 exec 5>/dev/null 11269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11270 exec 5>>config.log 11271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11272 # would make configure fail if this is the last instruction. 11273 $ac_cs_success || as_fn_exit 1 11274fi 11275if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11277$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11278fi 11279 11280