configure revision 82e12b1b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for fstobdf 1.0.5. 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='fstobdf' 563PACKAGE_TARNAME='fstobdf' 564PACKAGE_VERSION='1.0.5' 565PACKAGE_STRING='fstobdf 1.0.5' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#ifdef HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#ifdef HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#ifdef STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# ifdef HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#ifdef HAVE_STRING_H 587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#ifdef HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#ifdef HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#ifdef HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#ifdef HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='am__EXEEXT_FALSE 606am__EXEEXT_TRUE 607LTLIBOBJS 608LIBOBJS 609FSTOBDF_LIBS 610FSTOBDF_CFLAGS 611AM_BACKSLASH 612AM_DEFAULT_VERBOSITY 613MAN_SUBSTS 614XORG_MAN_PAGE 615ADMIN_MAN_DIR 616DRIVER_MAN_DIR 617MISC_MAN_DIR 618FILE_MAN_DIR 619LIB_MAN_DIR 620APP_MAN_DIR 621ADMIN_MAN_SUFFIX 622DRIVER_MAN_SUFFIX 623MISC_MAN_SUFFIX 624FILE_MAN_SUFFIX 625LIB_MAN_SUFFIX 626APP_MAN_SUFFIX 627SED 628host_os 629host_vendor 630host_cpu 631host 632build_os 633build_vendor 634build_cpu 635build 636INSTALL_CMD 637PKG_CONFIG 638CHANGELOG_CMD 639STRICT_CFLAGS 640CWARNFLAGS 641BASE_CFLAGS 642EGREP 643GREP 644CPP 645am__fastdepCC_FALSE 646am__fastdepCC_TRUE 647CCDEPMODE 648am__nodep 649AMDEPBACKSLASH 650AMDEP_FALSE 651AMDEP_TRUE 652am__quote 653am__include 654DEPDIR 655OBJEXT 656EXEEXT 657ac_ct_CC 658CPPFLAGS 659LDFLAGS 660CFLAGS 661CC 662MAINT 663MAINTAINER_MODE_FALSE 664MAINTAINER_MODE_TRUE 665am__untar 666am__tar 667AMTAR 668am__leading_dot 669SET_MAKE 670AWK 671mkdir_p 672MKDIR_P 673INSTALL_STRIP_PROGRAM 674STRIP 675install_sh 676MAKEINFO 677AUTOHEADER 678AUTOMAKE 679AUTOCONF 680ACLOCAL 681VERSION 682PACKAGE 683CYGPATH_W 684am__isrc 685INSTALL_DATA 686INSTALL_SCRIPT 687INSTALL_PROGRAM 688target_alias 689host_alias 690build_alias 691LIBS 692ECHO_T 693ECHO_N 694ECHO_C 695DEFS 696mandir 697localedir 698libdir 699psdir 700pdfdir 701dvidir 702htmldir 703infodir 704docdir 705oldincludedir 706includedir 707localstatedir 708sharedstatedir 709sysconfdir 710datadir 711datarootdir 712libexecdir 713sbindir 714bindir 715program_transform_name 716prefix 717exec_prefix 718PACKAGE_URL 719PACKAGE_BUGREPORT 720PACKAGE_STRING 721PACKAGE_VERSION 722PACKAGE_TARNAME 723PACKAGE_NAME 724PATH_SEPARATOR 725SHELL' 726ac_subst_files='' 727ac_user_opts=' 728enable_option_checking 729enable_maintainer_mode 730enable_dependency_tracking 731enable_selective_werror 732enable_strict_compilation 733enable_silent_rules 734' 735 ac_precious_vars='build_alias 736host_alias 737target_alias 738CC 739CFLAGS 740LDFLAGS 741LIBS 742CPPFLAGS 743CPP 744PKG_CONFIG 745FSTOBDF_CFLAGS 746FSTOBDF_LIBS' 747 748 749# Initialize some variables set by options. 750ac_init_help= 751ac_init_version=false 752ac_unrecognized_opts= 753ac_unrecognized_sep= 754# The variables have the same names as the options, with 755# dashes changed to underlines. 756cache_file=/dev/null 757exec_prefix=NONE 758no_create= 759no_recursion= 760prefix=NONE 761program_prefix=NONE 762program_suffix=NONE 763program_transform_name=s,x,x, 764silent= 765site= 766srcdir= 767verbose= 768x_includes=NONE 769x_libraries=NONE 770 771# Installation directory options. 772# These are left unexpanded so users can "make install exec_prefix=/foo" 773# and all the variables that are supposed to be based on exec_prefix 774# by default will actually change. 775# Use braces instead of parens because sh, perl, etc. also accept them. 776# (The list follows the same order as the GNU Coding Standards.) 777bindir='${exec_prefix}/bin' 778sbindir='${exec_prefix}/sbin' 779libexecdir='${exec_prefix}/libexec' 780datarootdir='${prefix}/share' 781datadir='${datarootdir}' 782sysconfdir='${prefix}/etc' 783sharedstatedir='${prefix}/com' 784localstatedir='${prefix}/var' 785includedir='${prefix}/include' 786oldincludedir='/usr/include' 787docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 788infodir='${datarootdir}/info' 789htmldir='${docdir}' 790dvidir='${docdir}' 791pdfdir='${docdir}' 792psdir='${docdir}' 793libdir='${exec_prefix}/lib' 794localedir='${datarootdir}/locale' 795mandir='${datarootdir}/man' 796 797ac_prev= 798ac_dashdash= 799for ac_option 800do 801 # If the previous option needs an argument, assign it. 802 if test -n "$ac_prev"; then 803 eval $ac_prev=\$ac_option 804 ac_prev= 805 continue 806 fi 807 808 case $ac_option in 809 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 810 *=) ac_optarg= ;; 811 *) ac_optarg=yes ;; 812 esac 813 814 # Accept the important Cygnus configure options, so we can diagnose typos. 815 816 case $ac_dashdash$ac_option in 817 --) 818 ac_dashdash=yes ;; 819 820 -bindir | --bindir | --bindi | --bind | --bin | --bi) 821 ac_prev=bindir ;; 822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 823 bindir=$ac_optarg ;; 824 825 -build | --build | --buil | --bui | --bu) 826 ac_prev=build_alias ;; 827 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 828 build_alias=$ac_optarg ;; 829 830 -cache-file | --cache-file | --cache-fil | --cache-fi \ 831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 832 ac_prev=cache_file ;; 833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 835 cache_file=$ac_optarg ;; 836 837 --config-cache | -C) 838 cache_file=config.cache ;; 839 840 -datadir | --datadir | --datadi | --datad) 841 ac_prev=datadir ;; 842 -datadir=* | --datadir=* | --datadi=* | --datad=*) 843 datadir=$ac_optarg ;; 844 845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 846 | --dataroo | --dataro | --datar) 847 ac_prev=datarootdir ;; 848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 850 datarootdir=$ac_optarg ;; 851 852 -disable-* | --disable-*) 853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 854 # Reject names that are not valid shell variable names. 855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 856 as_fn_error $? "invalid feature name: $ac_useropt" 857 ac_useropt_orig=$ac_useropt 858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 859 case $ac_user_opts in 860 *" 861"enable_$ac_useropt" 862"*) ;; 863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 864 ac_unrecognized_sep=', ';; 865 esac 866 eval enable_$ac_useropt=no ;; 867 868 -docdir | --docdir | --docdi | --doc | --do) 869 ac_prev=docdir ;; 870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 871 docdir=$ac_optarg ;; 872 873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 874 ac_prev=dvidir ;; 875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 876 dvidir=$ac_optarg ;; 877 878 -enable-* | --enable-*) 879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 880 # Reject names that are not valid shell variable names. 881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 882 as_fn_error $? "invalid feature name: $ac_useropt" 883 ac_useropt_orig=$ac_useropt 884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 885 case $ac_user_opts in 886 *" 887"enable_$ac_useropt" 888"*) ;; 889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 890 ac_unrecognized_sep=', ';; 891 esac 892 eval enable_$ac_useropt=\$ac_optarg ;; 893 894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 896 | --exec | --exe | --ex) 897 ac_prev=exec_prefix ;; 898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 900 | --exec=* | --exe=* | --ex=*) 901 exec_prefix=$ac_optarg ;; 902 903 -gas | --gas | --ga | --g) 904 # Obsolete; use --with-gas. 905 with_gas=yes ;; 906 907 -help | --help | --hel | --he | -h) 908 ac_init_help=long ;; 909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 910 ac_init_help=recursive ;; 911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 912 ac_init_help=short ;; 913 914 -host | --host | --hos | --ho) 915 ac_prev=host_alias ;; 916 -host=* | --host=* | --hos=* | --ho=*) 917 host_alias=$ac_optarg ;; 918 919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 920 ac_prev=htmldir ;; 921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 922 | --ht=*) 923 htmldir=$ac_optarg ;; 924 925 -includedir | --includedir | --includedi | --included | --include \ 926 | --includ | --inclu | --incl | --inc) 927 ac_prev=includedir ;; 928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 929 | --includ=* | --inclu=* | --incl=* | --inc=*) 930 includedir=$ac_optarg ;; 931 932 -infodir | --infodir | --infodi | --infod | --info | --inf) 933 ac_prev=infodir ;; 934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 935 infodir=$ac_optarg ;; 936 937 -libdir | --libdir | --libdi | --libd) 938 ac_prev=libdir ;; 939 -libdir=* | --libdir=* | --libdi=* | --libd=*) 940 libdir=$ac_optarg ;; 941 942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 943 | --libexe | --libex | --libe) 944 ac_prev=libexecdir ;; 945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 946 | --libexe=* | --libex=* | --libe=*) 947 libexecdir=$ac_optarg ;; 948 949 -localedir | --localedir | --localedi | --localed | --locale) 950 ac_prev=localedir ;; 951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 952 localedir=$ac_optarg ;; 953 954 -localstatedir | --localstatedir | --localstatedi | --localstated \ 955 | --localstate | --localstat | --localsta | --localst | --locals) 956 ac_prev=localstatedir ;; 957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 959 localstatedir=$ac_optarg ;; 960 961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 962 ac_prev=mandir ;; 963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 964 mandir=$ac_optarg ;; 965 966 -nfp | --nfp | --nf) 967 # Obsolete; use --without-fp. 968 with_fp=no ;; 969 970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 971 | --no-cr | --no-c | -n) 972 no_create=yes ;; 973 974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 976 no_recursion=yes ;; 977 978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 980 | --oldin | --oldi | --old | --ol | --o) 981 ac_prev=oldincludedir ;; 982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 985 oldincludedir=$ac_optarg ;; 986 987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 988 ac_prev=prefix ;; 989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 990 prefix=$ac_optarg ;; 991 992 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 993 | --program-pre | --program-pr | --program-p) 994 ac_prev=program_prefix ;; 995 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 997 program_prefix=$ac_optarg ;; 998 999 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1000 | --program-suf | --program-su | --program-s) 1001 ac_prev=program_suffix ;; 1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1004 program_suffix=$ac_optarg ;; 1005 1006 -program-transform-name | --program-transform-name \ 1007 | --program-transform-nam | --program-transform-na \ 1008 | --program-transform-n | --program-transform- \ 1009 | --program-transform | --program-transfor \ 1010 | --program-transfo | --program-transf \ 1011 | --program-trans | --program-tran \ 1012 | --progr-tra | --program-tr | --program-t) 1013 ac_prev=program_transform_name ;; 1014 -program-transform-name=* | --program-transform-name=* \ 1015 | --program-transform-nam=* | --program-transform-na=* \ 1016 | --program-transform-n=* | --program-transform-=* \ 1017 | --program-transform=* | --program-transfor=* \ 1018 | --program-transfo=* | --program-transf=* \ 1019 | --program-trans=* | --program-tran=* \ 1020 | --progr-tra=* | --program-tr=* | --program-t=*) 1021 program_transform_name=$ac_optarg ;; 1022 1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1024 ac_prev=pdfdir ;; 1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1026 pdfdir=$ac_optarg ;; 1027 1028 -psdir | --psdir | --psdi | --psd | --ps) 1029 ac_prev=psdir ;; 1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1031 psdir=$ac_optarg ;; 1032 1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1034 | -silent | --silent | --silen | --sile | --sil) 1035 silent=yes ;; 1036 1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1038 ac_prev=sbindir ;; 1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1040 | --sbi=* | --sb=*) 1041 sbindir=$ac_optarg ;; 1042 1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1045 | --sharedst | --shareds | --shared | --share | --shar \ 1046 | --sha | --sh) 1047 ac_prev=sharedstatedir ;; 1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1051 | --sha=* | --sh=*) 1052 sharedstatedir=$ac_optarg ;; 1053 1054 -site | --site | --sit) 1055 ac_prev=site ;; 1056 -site=* | --site=* | --sit=*) 1057 site=$ac_optarg ;; 1058 1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1060 ac_prev=srcdir ;; 1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1062 srcdir=$ac_optarg ;; 1063 1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1065 | --syscon | --sysco | --sysc | --sys | --sy) 1066 ac_prev=sysconfdir ;; 1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1069 sysconfdir=$ac_optarg ;; 1070 1071 -target | --target | --targe | --targ | --tar | --ta | --t) 1072 ac_prev=target_alias ;; 1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1074 target_alias=$ac_optarg ;; 1075 1076 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1077 verbose=yes ;; 1078 1079 -version | --version | --versio | --versi | --vers | -V) 1080 ac_init_version=: ;; 1081 1082 -with-* | --with-*) 1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1084 # Reject names that are not valid shell variable names. 1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1086 as_fn_error $? "invalid package name: $ac_useropt" 1087 ac_useropt_orig=$ac_useropt 1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1089 case $ac_user_opts in 1090 *" 1091"with_$ac_useropt" 1092"*) ;; 1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1094 ac_unrecognized_sep=', ';; 1095 esac 1096 eval with_$ac_useropt=\$ac_optarg ;; 1097 1098 -without-* | --without-*) 1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1100 # Reject names that are not valid shell variable names. 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1102 as_fn_error $? "invalid package name: $ac_useropt" 1103 ac_useropt_orig=$ac_useropt 1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1105 case $ac_user_opts in 1106 *" 1107"with_$ac_useropt" 1108"*) ;; 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1110 ac_unrecognized_sep=', ';; 1111 esac 1112 eval with_$ac_useropt=no ;; 1113 1114 --x) 1115 # Obsolete; use --with-x. 1116 with_x=yes ;; 1117 1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1119 | --x-incl | --x-inc | --x-in | --x-i) 1120 ac_prev=x_includes ;; 1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1123 x_includes=$ac_optarg ;; 1124 1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1127 ac_prev=x_libraries ;; 1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1130 x_libraries=$ac_optarg ;; 1131 1132 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1133Try \`$0 --help' for more information" 1134 ;; 1135 1136 *=*) 1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1138 # Reject names that are not valid shell variable names. 1139 case $ac_envvar in #( 1140 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1142 esac 1143 eval $ac_envvar=\$ac_optarg 1144 export $ac_envvar ;; 1145 1146 *) 1147 # FIXME: should be removed in autoconf 3.0. 1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1152 ;; 1153 1154 esac 1155done 1156 1157if test -n "$ac_prev"; then 1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1159 as_fn_error $? "missing argument to $ac_option" 1160fi 1161 1162if test -n "$ac_unrecognized_opts"; then 1163 case $enable_option_checking in 1164 no) ;; 1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1167 esac 1168fi 1169 1170# Check all directory arguments for consistency. 1171for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1172 datadir sysconfdir sharedstatedir localstatedir includedir \ 1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1174 libdir localedir mandir 1175do 1176 eval ac_val=\$$ac_var 1177 # Remove trailing slashes. 1178 case $ac_val in 1179 */ ) 1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1181 eval $ac_var=\$ac_val;; 1182 esac 1183 # Be sure to have absolute directory names. 1184 case $ac_val in 1185 [\\/$]* | ?:[\\/]* ) continue;; 1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1187 esac 1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1189done 1190 1191# There might be people who depend on the old broken behavior: `$host' 1192# used to hold the argument of --host etc. 1193# FIXME: To remove some day. 1194build=$build_alias 1195host=$host_alias 1196target=$target_alias 1197 1198# FIXME: To remove some day. 1199if test "x$host_alias" != x; then 1200 if test "x$build_alias" = x; then 1201 cross_compiling=maybe 1202 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1203 If a cross compiler is detected then cross compile mode will be used" >&2 1204 elif test "x$build_alias" != "x$host_alias"; then 1205 cross_compiling=yes 1206 fi 1207fi 1208 1209ac_tool_prefix= 1210test -n "$host_alias" && ac_tool_prefix=$host_alias- 1211 1212test "$silent" = yes && exec 6>/dev/null 1213 1214 1215ac_pwd=`pwd` && test -n "$ac_pwd" && 1216ac_ls_di=`ls -di .` && 1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1218 as_fn_error $? "working directory cannot be determined" 1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1220 as_fn_error $? "pwd does not report name of working directory" 1221 1222 1223# Find the source files, if location was not specified. 1224if test -z "$srcdir"; then 1225 ac_srcdir_defaulted=yes 1226 # Try the directory containing this script, then the parent directory. 1227 ac_confdir=`$as_dirname -- "$as_myself" || 1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1229 X"$as_myself" : 'X\(//\)[^/]' \| \ 1230 X"$as_myself" : 'X\(//\)$' \| \ 1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1232$as_echo X"$as_myself" | 1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\/\)[^/].*/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\/\)$/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\).*/{ 1246 s//\1/ 1247 q 1248 } 1249 s/.*/./; q'` 1250 srcdir=$ac_confdir 1251 if test ! -r "$srcdir/$ac_unique_file"; then 1252 srcdir=.. 1253 fi 1254else 1255 ac_srcdir_defaulted=no 1256fi 1257if test ! -r "$srcdir/$ac_unique_file"; then 1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1259 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1260fi 1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1262ac_abs_confdir=`( 1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1264 pwd)` 1265# When building in place, set srcdir=. 1266if test "$ac_abs_confdir" = "$ac_pwd"; then 1267 srcdir=. 1268fi 1269# Remove unnecessary trailing slashes from srcdir. 1270# Double slashes in file names in object file debugging info 1271# mess up M-x gdb in Emacs. 1272case $srcdir in 1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1274esac 1275for ac_var in $ac_precious_vars; do 1276 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1277 eval ac_env_${ac_var}_value=\$${ac_var} 1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1279 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1280done 1281 1282# 1283# Report the --help message. 1284# 1285if test "$ac_init_help" = "long"; then 1286 # Omit some internal or obsolete options to make the list less imposing. 1287 # This message is too long to be a string in the A/UX 3.1 sh. 1288 cat <<_ACEOF 1289\`configure' configures fstobdf 1.0.5 to adapt to many kinds of systems. 1290 1291Usage: $0 [OPTION]... [VAR=VALUE]... 1292 1293To assign environment variables (e.g., CC, CFLAGS...), specify them as 1294VAR=VALUE. See below for descriptions of some of the useful variables. 1295 1296Defaults for the options are specified in brackets. 1297 1298Configuration: 1299 -h, --help display this help and exit 1300 --help=short display options specific to this package 1301 --help=recursive display the short help of all the included packages 1302 -V, --version display version information and exit 1303 -q, --quiet, --silent do not print \`checking ...' messages 1304 --cache-file=FILE cache test results in FILE [disabled] 1305 -C, --config-cache alias for \`--cache-file=config.cache' 1306 -n, --no-create do not create output files 1307 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1308 1309Installation directories: 1310 --prefix=PREFIX install architecture-independent files in PREFIX 1311 [$ac_default_prefix] 1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1313 [PREFIX] 1314 1315By default, \`make install' will install all the files in 1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1317an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1318for instance \`--prefix=\$HOME'. 1319 1320For better control, use the options below. 1321 1322Fine tuning of the installation directories: 1323 --bindir=DIR user executables [EPREFIX/bin] 1324 --sbindir=DIR system admin executables [EPREFIX/sbin] 1325 --libexecdir=DIR program executables [EPREFIX/libexec] 1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1329 --libdir=DIR object code libraries [EPREFIX/lib] 1330 --includedir=DIR C header files [PREFIX/include] 1331 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1334 --infodir=DIR info documentation [DATAROOTDIR/info] 1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1336 --mandir=DIR man documentation [DATAROOTDIR/man] 1337 --docdir=DIR documentation root [DATAROOTDIR/doc/fstobdf] 1338 --htmldir=DIR html documentation [DOCDIR] 1339 --dvidir=DIR dvi documentation [DOCDIR] 1340 --pdfdir=DIR pdf documentation [DOCDIR] 1341 --psdir=DIR ps documentation [DOCDIR] 1342_ACEOF 1343 1344 cat <<\_ACEOF 1345 1346Program names: 1347 --program-prefix=PREFIX prepend PREFIX to installed program names 1348 --program-suffix=SUFFIX append SUFFIX to installed program names 1349 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1350 1351System types: 1352 --build=BUILD configure for building on BUILD [guessed] 1353 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1354_ACEOF 1355fi 1356 1357if test -n "$ac_init_help"; then 1358 case $ac_init_help in 1359 short | recursive ) echo "Configuration of fstobdf 1.0.5:";; 1360 esac 1361 cat <<\_ACEOF 1362 1363Optional Features: 1364 --disable-option-checking ignore unrecognized --enable/--with options 1365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1367 --enable-maintainer-mode enable make rules and dependencies not useful 1368 (and sometimes confusing) to the casual installer 1369 --disable-dependency-tracking speeds up one-time build 1370 --enable-dependency-tracking do not reject slow dependency extractors 1371 --disable-selective-werror 1372 Turn off selective compiler errors. (default: 1373 enabled) 1374 --enable-strict-compilation 1375 Enable all warnings from compiler and make them 1376 errors (default: disabled) 1377 --enable-silent-rules less verbose build output (undo: `make V=1') 1378 --disable-silent-rules verbose build output (undo: `make V=0') 1379 1380Some influential environment variables: 1381 CC C compiler command 1382 CFLAGS C compiler flags 1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1384 nonstandard directory <lib dir> 1385 LIBS libraries to pass to the linker, e.g. -l<library> 1386 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1387 you have headers in a nonstandard directory <include dir> 1388 CPP C preprocessor 1389 PKG_CONFIG path to pkg-config utility 1390 FSTOBDF_CFLAGS 1391 C compiler flags for FSTOBDF, overriding pkg-config 1392 FSTOBDF_LIBS 1393 linker flags for FSTOBDF, overriding pkg-config 1394 1395Use these variables to override the choices made by `configure' or to help 1396it to find libraries and programs with nonstandard names/locations. 1397 1398Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1399_ACEOF 1400ac_status=$? 1401fi 1402 1403if test "$ac_init_help" = "recursive"; then 1404 # If there are subdirs, report their specific --help. 1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1406 test -d "$ac_dir" || 1407 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1408 continue 1409 ac_builddir=. 1410 1411case "$ac_dir" in 1412.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1413*) 1414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1415 # A ".." for each directory in $ac_dir_suffix. 1416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1417 case $ac_top_builddir_sub in 1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1420 esac ;; 1421esac 1422ac_abs_top_builddir=$ac_pwd 1423ac_abs_builddir=$ac_pwd$ac_dir_suffix 1424# for backward compatibility: 1425ac_top_builddir=$ac_top_build_prefix 1426 1427case $srcdir in 1428 .) # We are building in place. 1429 ac_srcdir=. 1430 ac_top_srcdir=$ac_top_builddir_sub 1431 ac_abs_top_srcdir=$ac_pwd ;; 1432 [\\/]* | ?:[\\/]* ) # Absolute name. 1433 ac_srcdir=$srcdir$ac_dir_suffix; 1434 ac_top_srcdir=$srcdir 1435 ac_abs_top_srcdir=$srcdir ;; 1436 *) # Relative name. 1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1438 ac_top_srcdir=$ac_top_build_prefix$srcdir 1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1440esac 1441ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1442 1443 cd "$ac_dir" || { ac_status=$?; continue; } 1444 # Check for guested configure. 1445 if test -f "$ac_srcdir/configure.gnu"; then 1446 echo && 1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1448 elif test -f "$ac_srcdir/configure"; then 1449 echo && 1450 $SHELL "$ac_srcdir/configure" --help=recursive 1451 else 1452 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1453 fi || ac_status=$? 1454 cd "$ac_pwd" || { ac_status=$?; break; } 1455 done 1456fi 1457 1458test -n "$ac_init_help" && exit $ac_status 1459if $ac_init_version; then 1460 cat <<\_ACEOF 1461fstobdf configure 1.0.5 1462generated by GNU Autoconf 2.68 1463 1464Copyright (C) 2010 Free Software Foundation, Inc. 1465This configure script is free software; the Free Software Foundation 1466gives unlimited permission to copy, distribute and modify it. 1467_ACEOF 1468 exit 1469fi 1470 1471## ------------------------ ## 1472## Autoconf initialization. ## 1473## ------------------------ ## 1474 1475# ac_fn_c_try_compile LINENO 1476# -------------------------- 1477# Try to compile conftest.$ac_ext, and return whether this succeeded. 1478ac_fn_c_try_compile () 1479{ 1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1481 rm -f conftest.$ac_objext 1482 if { { ac_try="$ac_compile" 1483case "(($ac_try" in 1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1485 *) ac_try_echo=$ac_try;; 1486esac 1487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1488$as_echo "$ac_try_echo"; } >&5 1489 (eval "$ac_compile") 2>conftest.err 1490 ac_status=$? 1491 if test -s conftest.err; then 1492 grep -v '^ *+' conftest.err >conftest.er1 1493 cat conftest.er1 >&5 1494 mv -f conftest.er1 conftest.err 1495 fi 1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1497 test $ac_status = 0; } && { 1498 test -z "$ac_c_werror_flag" || 1499 test ! -s conftest.err 1500 } && test -s conftest.$ac_objext; then : 1501 ac_retval=0 1502else 1503 $as_echo "$as_me: failed program was:" >&5 1504sed 's/^/| /' conftest.$ac_ext >&5 1505 1506 ac_retval=1 1507fi 1508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1509 as_fn_set_status $ac_retval 1510 1511} # ac_fn_c_try_compile 1512 1513# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1514# --------------------------------------------- 1515# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1516# accordingly. 1517ac_fn_c_check_decl () 1518{ 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 as_decl_name=`echo $2|sed 's/ *(.*//'` 1521 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1523$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1524if eval \${$3+:} false; then : 1525 $as_echo_n "(cached) " >&6 1526else 1527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1528/* end confdefs.h. */ 1529$4 1530int 1531main () 1532{ 1533#ifndef $as_decl_name 1534#ifdef __cplusplus 1535 (void) $as_decl_use; 1536#else 1537 (void) $as_decl_name; 1538#endif 1539#endif 1540 1541 ; 1542 return 0; 1543} 1544_ACEOF 1545if ac_fn_c_try_compile "$LINENO"; then : 1546 eval "$3=yes" 1547else 1548 eval "$3=no" 1549fi 1550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1551fi 1552eval ac_res=\$$3 1553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1554$as_echo "$ac_res" >&6; } 1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1556 1557} # ac_fn_c_check_decl 1558 1559# ac_fn_c_try_cpp LINENO 1560# ---------------------- 1561# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1562ac_fn_c_try_cpp () 1563{ 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 if { { ac_try="$ac_cpp conftest.$ac_ext" 1566case "(($ac_try" in 1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1568 *) ac_try_echo=$ac_try;; 1569esac 1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1571$as_echo "$ac_try_echo"; } >&5 1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1573 ac_status=$? 1574 if test -s conftest.err; then 1575 grep -v '^ *+' conftest.err >conftest.er1 1576 cat conftest.er1 >&5 1577 mv -f conftest.er1 conftest.err 1578 fi 1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1580 test $ac_status = 0; } > conftest.i && { 1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1582 test ! -s conftest.err 1583 }; then : 1584 ac_retval=0 1585else 1586 $as_echo "$as_me: failed program was:" >&5 1587sed 's/^/| /' conftest.$ac_ext >&5 1588 1589 ac_retval=1 1590fi 1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1592 as_fn_set_status $ac_retval 1593 1594} # ac_fn_c_try_cpp 1595 1596# ac_fn_c_try_run LINENO 1597# ---------------------- 1598# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1599# that executables *can* be run. 1600ac_fn_c_try_run () 1601{ 1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603 if { { ac_try="$ac_link" 1604case "(($ac_try" in 1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1606 *) ac_try_echo=$ac_try;; 1607esac 1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1609$as_echo "$ac_try_echo"; } >&5 1610 (eval "$ac_link") 2>&5 1611 ac_status=$? 1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1613 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1614 { { case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619$as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_try") 2>&5 1621 ac_status=$? 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; }; }; then : 1624 ac_retval=0 1625else 1626 $as_echo "$as_me: program exited with status $ac_status" >&5 1627 $as_echo "$as_me: failed program was:" >&5 1628sed 's/^/| /' conftest.$ac_ext >&5 1629 1630 ac_retval=$ac_status 1631fi 1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1634 as_fn_set_status $ac_retval 1635 1636} # ac_fn_c_try_run 1637 1638# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1639# ------------------------------------------------------- 1640# Tests whether HEADER exists and can be compiled using the include files in 1641# INCLUDES, setting the cache variable VAR accordingly. 1642ac_fn_c_check_header_compile () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1646$as_echo_n "checking for $2... " >&6; } 1647if eval \${$3+:} false; then : 1648 $as_echo_n "(cached) " >&6 1649else 1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1651/* end confdefs.h. */ 1652$4 1653#include <$2> 1654_ACEOF 1655if ac_fn_c_try_compile "$LINENO"; then : 1656 eval "$3=yes" 1657else 1658 eval "$3=no" 1659fi 1660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1661fi 1662eval ac_res=\$$3 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1664$as_echo "$ac_res" >&6; } 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 1667} # ac_fn_c_check_header_compile 1668 1669# ac_fn_c_try_link LINENO 1670# ----------------------- 1671# Try to link conftest.$ac_ext, and return whether this succeeded. 1672ac_fn_c_try_link () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 rm -f conftest.$ac_objext conftest$ac_exeext 1676 if { { ac_try="$ac_link" 1677case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682$as_echo "$ac_try_echo"; } >&5 1683 (eval "$ac_link") 2>conftest.err 1684 ac_status=$? 1685 if test -s conftest.err; then 1686 grep -v '^ *+' conftest.err >conftest.er1 1687 cat conftest.er1 >&5 1688 mv -f conftest.er1 conftest.err 1689 fi 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { 1692 test -z "$ac_c_werror_flag" || 1693 test ! -s conftest.err 1694 } && test -s conftest$ac_exeext && { 1695 test "$cross_compiling" = yes || 1696 $as_test_x conftest$ac_exeext 1697 }; then : 1698 ac_retval=0 1699else 1700 $as_echo "$as_me: failed program was:" >&5 1701sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=1 1704fi 1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1707 # interfere with the next link command; also delete a directory that is 1708 # left behind by Apple's compiler. We do this before executing the actions. 1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_link 1714cat >config.log <<_ACEOF 1715This file contains any messages produced by compilers while 1716running configure, to aid debugging if configure makes a mistake. 1717 1718It was created by fstobdf $as_me 1.0.5, which was 1719generated by GNU Autoconf 2.68. Invocation command line was 1720 1721 $ $0 $@ 1722 1723_ACEOF 1724exec 5>>config.log 1725{ 1726cat <<_ASUNAME 1727## --------- ## 1728## Platform. ## 1729## --------- ## 1730 1731hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1732uname -m = `(uname -m) 2>/dev/null || echo unknown` 1733uname -r = `(uname -r) 2>/dev/null || echo unknown` 1734uname -s = `(uname -s) 2>/dev/null || echo unknown` 1735uname -v = `(uname -v) 2>/dev/null || echo unknown` 1736 1737/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1738/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1739 1740/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1741/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1742/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1743/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1744/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1745/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1746/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1747 1748_ASUNAME 1749 1750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1751for as_dir in $PATH 1752do 1753 IFS=$as_save_IFS 1754 test -z "$as_dir" && as_dir=. 1755 $as_echo "PATH: $as_dir" 1756 done 1757IFS=$as_save_IFS 1758 1759} >&5 1760 1761cat >&5 <<_ACEOF 1762 1763 1764## ----------- ## 1765## Core tests. ## 1766## ----------- ## 1767 1768_ACEOF 1769 1770 1771# Keep a trace of the command line. 1772# Strip out --no-create and --no-recursion so they do not pile up. 1773# Strip out --silent because we don't want to record it for future runs. 1774# Also quote any args containing shell meta-characters. 1775# Make two passes to allow for proper duplicate-argument suppression. 1776ac_configure_args= 1777ac_configure_args0= 1778ac_configure_args1= 1779ac_must_keep_next=false 1780for ac_pass in 1 2 1781do 1782 for ac_arg 1783 do 1784 case $ac_arg in 1785 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1787 | -silent | --silent | --silen | --sile | --sil) 1788 continue ;; 1789 *\'*) 1790 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1791 esac 1792 case $ac_pass in 1793 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1794 2) 1795 as_fn_append ac_configure_args1 " '$ac_arg'" 1796 if test $ac_must_keep_next = true; then 1797 ac_must_keep_next=false # Got value, back to normal. 1798 else 1799 case $ac_arg in 1800 *=* | --config-cache | -C | -disable-* | --disable-* \ 1801 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1802 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1803 | -with-* | --with-* | -without-* | --without-* | --x) 1804 case "$ac_configure_args0 " in 1805 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1806 esac 1807 ;; 1808 -* ) ac_must_keep_next=true ;; 1809 esac 1810 fi 1811 as_fn_append ac_configure_args " '$ac_arg'" 1812 ;; 1813 esac 1814 done 1815done 1816{ ac_configure_args0=; unset ac_configure_args0;} 1817{ ac_configure_args1=; unset ac_configure_args1;} 1818 1819# When interrupted or exit'd, cleanup temporary files, and complete 1820# config.log. We remove comments because anyway the quotes in there 1821# would cause problems or look ugly. 1822# WARNING: Use '\'' to represent an apostrophe within the trap. 1823# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1824trap 'exit_status=$? 1825 # Save into config.log some information that might help in debugging. 1826 { 1827 echo 1828 1829 $as_echo "## ---------------- ## 1830## Cache variables. ## 1831## ---------------- ##" 1832 echo 1833 # The following way of writing the cache mishandles newlines in values, 1834( 1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1836 eval ac_val=\$$ac_var 1837 case $ac_val in #( 1838 *${as_nl}*) 1839 case $ac_var in #( 1840 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1842 esac 1843 case $ac_var in #( 1844 _ | IFS | as_nl) ;; #( 1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1846 *) { eval $ac_var=; unset $ac_var;} ;; 1847 esac ;; 1848 esac 1849 done 1850 (set) 2>&1 | 1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1852 *${as_nl}ac_space=\ *) 1853 sed -n \ 1854 "s/'\''/'\''\\\\'\'''\''/g; 1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1856 ;; #( 1857 *) 1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1859 ;; 1860 esac | 1861 sort 1862) 1863 echo 1864 1865 $as_echo "## ----------------- ## 1866## Output variables. ## 1867## ----------------- ##" 1868 echo 1869 for ac_var in $ac_subst_vars 1870 do 1871 eval ac_val=\$$ac_var 1872 case $ac_val in 1873 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1874 esac 1875 $as_echo "$ac_var='\''$ac_val'\''" 1876 done | sort 1877 echo 1878 1879 if test -n "$ac_subst_files"; then 1880 $as_echo "## ------------------- ## 1881## File substitutions. ## 1882## ------------------- ##" 1883 echo 1884 for ac_var in $ac_subst_files 1885 do 1886 eval ac_val=\$$ac_var 1887 case $ac_val in 1888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1889 esac 1890 $as_echo "$ac_var='\''$ac_val'\''" 1891 done | sort 1892 echo 1893 fi 1894 1895 if test -s confdefs.h; then 1896 $as_echo "## ----------- ## 1897## confdefs.h. ## 1898## ----------- ##" 1899 echo 1900 cat confdefs.h 1901 echo 1902 fi 1903 test "$ac_signal" != 0 && 1904 $as_echo "$as_me: caught signal $ac_signal" 1905 $as_echo "$as_me: exit $exit_status" 1906 } >&5 1907 rm -f core *.core core.conftest.* && 1908 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1909 exit $exit_status 1910' 0 1911for ac_signal in 1 2 13 15; do 1912 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1913done 1914ac_signal=0 1915 1916# confdefs.h avoids OS command line length limits that DEFS can exceed. 1917rm -f -r conftest* confdefs.h 1918 1919$as_echo "/* confdefs.h */" > confdefs.h 1920 1921# Predefined preprocessor variables. 1922 1923cat >>confdefs.h <<_ACEOF 1924#define PACKAGE_NAME "$PACKAGE_NAME" 1925_ACEOF 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1929_ACEOF 1930 1931cat >>confdefs.h <<_ACEOF 1932#define PACKAGE_VERSION "$PACKAGE_VERSION" 1933_ACEOF 1934 1935cat >>confdefs.h <<_ACEOF 1936#define PACKAGE_STRING "$PACKAGE_STRING" 1937_ACEOF 1938 1939cat >>confdefs.h <<_ACEOF 1940#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1941_ACEOF 1942 1943cat >>confdefs.h <<_ACEOF 1944#define PACKAGE_URL "$PACKAGE_URL" 1945_ACEOF 1946 1947 1948# Let the site file select an alternate cache file if it wants to. 1949# Prefer an explicitly selected file to automatically selected ones. 1950ac_site_file1=NONE 1951ac_site_file2=NONE 1952if test -n "$CONFIG_SITE"; then 1953 # We do not want a PATH search for config.site. 1954 case $CONFIG_SITE in #(( 1955 -*) ac_site_file1=./$CONFIG_SITE;; 1956 */*) ac_site_file1=$CONFIG_SITE;; 1957 *) ac_site_file1=./$CONFIG_SITE;; 1958 esac 1959elif test "x$prefix" != xNONE; then 1960 ac_site_file1=$prefix/share/config.site 1961 ac_site_file2=$prefix/etc/config.site 1962else 1963 ac_site_file1=$ac_default_prefix/share/config.site 1964 ac_site_file2=$ac_default_prefix/etc/config.site 1965fi 1966for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1967do 1968 test "x$ac_site_file" = xNONE && continue 1969 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1971$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1972 sed 's/^/| /' "$ac_site_file" >&5 1973 . "$ac_site_file" \ 1974 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1976as_fn_error $? "failed to load site script $ac_site_file 1977See \`config.log' for more details" "$LINENO" 5; } 1978 fi 1979done 1980 1981if test -r "$cache_file"; then 1982 # Some versions of bash will fail to source /dev/null (special files 1983 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1984 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1986$as_echo "$as_me: loading cache $cache_file" >&6;} 1987 case $cache_file in 1988 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1989 *) . "./$cache_file";; 1990 esac 1991 fi 1992else 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1994$as_echo "$as_me: creating cache $cache_file" >&6;} 1995 >$cache_file 1996fi 1997 1998# Check that the precious variables saved in the cache have kept the same 1999# value. 2000ac_cache_corrupted=false 2001for ac_var in $ac_precious_vars; do 2002 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2003 eval ac_new_set=\$ac_env_${ac_var}_set 2004 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2005 eval ac_new_val=\$ac_env_${ac_var}_value 2006 case $ac_old_set,$ac_new_set in 2007 set,) 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2009$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2010 ac_cache_corrupted=: ;; 2011 ,set) 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2013$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2014 ac_cache_corrupted=: ;; 2015 ,);; 2016 *) 2017 if test "x$ac_old_val" != "x$ac_new_val"; then 2018 # differences in whitespace do not lead to failure. 2019 ac_old_val_w=`echo x $ac_old_val` 2020 ac_new_val_w=`echo x $ac_new_val` 2021 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2023$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2024 ac_cache_corrupted=: 2025 else 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2027$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2028 eval $ac_var=\$ac_old_val 2029 fi 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2031$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2033$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2034 fi;; 2035 esac 2036 # Pass precious variables to config.status. 2037 if test "$ac_new_set" = set; then 2038 case $ac_new_val in 2039 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2040 *) ac_arg=$ac_var=$ac_new_val ;; 2041 esac 2042 case " $ac_configure_args " in 2043 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2044 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2045 esac 2046 fi 2047done 2048if $ac_cache_corrupted; then 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2052$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2053 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2054fi 2055## -------------------- ## 2056## Main body of script. ## 2057## -------------------- ## 2058 2059ac_ext=c 2060ac_cpp='$CPP $CPPFLAGS' 2061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2063ac_compiler_gnu=$ac_cv_c_compiler_gnu 2064 2065 2066am__api_version='1.11' 2067 2068ac_aux_dir= 2069for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2070 if test -f "$ac_dir/install-sh"; then 2071 ac_aux_dir=$ac_dir 2072 ac_install_sh="$ac_aux_dir/install-sh -c" 2073 break 2074 elif test -f "$ac_dir/install.sh"; then 2075 ac_aux_dir=$ac_dir 2076 ac_install_sh="$ac_aux_dir/install.sh -c" 2077 break 2078 elif test -f "$ac_dir/shtool"; then 2079 ac_aux_dir=$ac_dir 2080 ac_install_sh="$ac_aux_dir/shtool install -c" 2081 break 2082 fi 2083done 2084if test -z "$ac_aux_dir"; then 2085 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2086fi 2087 2088# These three variables are undocumented and unsupported, 2089# and are intended to be withdrawn in a future Autoconf release. 2090# They can cause serious problems if a builder's source tree is in a directory 2091# whose full name contains unusual characters. 2092ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2093ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2094ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2095 2096 2097# Find a good install program. We prefer a C program (faster), 2098# so one script is as good as another. But avoid the broken or 2099# incompatible versions: 2100# SysV /etc/install, /usr/sbin/install 2101# SunOS /usr/etc/install 2102# IRIX /sbin/install 2103# AIX /bin/install 2104# AmigaOS /C/install, which installs bootblocks on floppy discs 2105# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2106# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2107# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2108# OS/2's system install, which has a completely different semantic 2109# ./install, which can be erroneously created by make from ./install.sh. 2110# Reject install programs that cannot install multiple files. 2111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2112$as_echo_n "checking for a BSD-compatible install... " >&6; } 2113if test -z "$INSTALL"; then 2114if ${ac_cv_path_install+:} false; then : 2115 $as_echo_n "(cached) " >&6 2116else 2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2118for as_dir in $PATH 2119do 2120 IFS=$as_save_IFS 2121 test -z "$as_dir" && as_dir=. 2122 # Account for people who put trailing slashes in PATH elements. 2123case $as_dir/ in #(( 2124 ./ | .// | /[cC]/* | \ 2125 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2126 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2127 /usr/ucb/* ) ;; 2128 *) 2129 # OSF1 and SCO ODT 3.0 have their own names for install. 2130 # Don't use installbsd from OSF since it installs stuff as root 2131 # by default. 2132 for ac_prog in ginstall scoinst install; do 2133 for ac_exec_ext in '' $ac_executable_extensions; do 2134 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2135 if test $ac_prog = install && 2136 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2137 # AIX install. It has an incompatible calling convention. 2138 : 2139 elif test $ac_prog = install && 2140 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2141 # program-specific install script used by HP pwplus--don't use. 2142 : 2143 else 2144 rm -rf conftest.one conftest.two conftest.dir 2145 echo one > conftest.one 2146 echo two > conftest.two 2147 mkdir conftest.dir 2148 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2149 test -s conftest.one && test -s conftest.two && 2150 test -s conftest.dir/conftest.one && 2151 test -s conftest.dir/conftest.two 2152 then 2153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2154 break 3 2155 fi 2156 fi 2157 fi 2158 done 2159 done 2160 ;; 2161esac 2162 2163 done 2164IFS=$as_save_IFS 2165 2166rm -rf conftest.one conftest.two conftest.dir 2167 2168fi 2169 if test "${ac_cv_path_install+set}" = set; then 2170 INSTALL=$ac_cv_path_install 2171 else 2172 # As a last resort, use the slow shell script. Don't cache a 2173 # value for INSTALL within a source directory, because that will 2174 # break other packages using the cache if that directory is 2175 # removed, or if the value is a relative name. 2176 INSTALL=$ac_install_sh 2177 fi 2178fi 2179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2180$as_echo "$INSTALL" >&6; } 2181 2182# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2183# It thinks the first close brace ends the variable substitution. 2184test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2185 2186test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2187 2188test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2189 2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2191$as_echo_n "checking whether build environment is sane... " >&6; } 2192# Just in case 2193sleep 1 2194echo timestamp > conftest.file 2195# Reject unsafe characters in $srcdir or the absolute working directory 2196# name. Accept space and tab only in the latter. 2197am_lf=' 2198' 2199case `pwd` in 2200 *[\\\"\#\$\&\'\`$am_lf]*) 2201 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2202esac 2203case $srcdir in 2204 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2205 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2206esac 2207 2208# Do `set' in a subshell so we don't clobber the current shell's 2209# arguments. Must try -L first in case configure is actually a 2210# symlink; some systems play weird games with the mod time of symlinks 2211# (eg FreeBSD returns the mod time of the symlink's containing 2212# directory). 2213if ( 2214 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2215 if test "$*" = "X"; then 2216 # -L didn't work. 2217 set X `ls -t "$srcdir/configure" conftest.file` 2218 fi 2219 rm -f conftest.file 2220 if test "$*" != "X $srcdir/configure conftest.file" \ 2221 && test "$*" != "X conftest.file $srcdir/configure"; then 2222 2223 # If neither matched, then we have a broken ls. This can happen 2224 # if, for instance, CONFIG_SHELL is bash and it inherits a 2225 # broken ls alias from the environment. This has actually 2226 # happened. Such a system could not be considered "sane". 2227 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2228alias in your environment" "$LINENO" 5 2229 fi 2230 2231 test "$2" = conftest.file 2232 ) 2233then 2234 # Ok. 2235 : 2236else 2237 as_fn_error $? "newly created file is older than distributed files! 2238Check your system clock" "$LINENO" 5 2239fi 2240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2241$as_echo "yes" >&6; } 2242test "$program_prefix" != NONE && 2243 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2244# Use a double $ so make ignores it. 2245test "$program_suffix" != NONE && 2246 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2247# Double any \ or $. 2248# By default was `s,x,x', remove it if useless. 2249ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2250program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2251 2252# expand $ac_aux_dir to an absolute path 2253am_aux_dir=`cd $ac_aux_dir && pwd` 2254 2255if test x"${MISSING+set}" != xset; then 2256 case $am_aux_dir in 2257 *\ * | *\ *) 2258 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2259 *) 2260 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2261 esac 2262fi 2263# Use eval to expand $SHELL 2264if eval "$MISSING --run true"; then 2265 am_missing_run="$MISSING --run " 2266else 2267 am_missing_run= 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2269$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2270fi 2271 2272if test x"${install_sh}" != xset; then 2273 case $am_aux_dir in 2274 *\ * | *\ *) 2275 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2276 *) 2277 install_sh="\${SHELL} $am_aux_dir/install-sh" 2278 esac 2279fi 2280 2281# Installed binaries are usually stripped using `strip' when the user 2282# run `make install-strip'. However `strip' might not be the right 2283# tool to use in cross-compilation environments, therefore Automake 2284# will honor the `STRIP' environment variable to overrule this program. 2285if test "$cross_compiling" != no; then 2286 if test -n "$ac_tool_prefix"; then 2287 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2288set dummy ${ac_tool_prefix}strip; ac_word=$2 2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2290$as_echo_n "checking for $ac_word... " >&6; } 2291if ${ac_cv_prog_STRIP+:} false; then : 2292 $as_echo_n "(cached) " >&6 2293else 2294 if test -n "$STRIP"; then 2295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2296else 2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2298for as_dir in $PATH 2299do 2300 IFS=$as_save_IFS 2301 test -z "$as_dir" && as_dir=. 2302 for ac_exec_ext in '' $ac_executable_extensions; do 2303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2304 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2306 break 2 2307 fi 2308done 2309 done 2310IFS=$as_save_IFS 2311 2312fi 2313fi 2314STRIP=$ac_cv_prog_STRIP 2315if test -n "$STRIP"; then 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2317$as_echo "$STRIP" >&6; } 2318else 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2320$as_echo "no" >&6; } 2321fi 2322 2323 2324fi 2325if test -z "$ac_cv_prog_STRIP"; then 2326 ac_ct_STRIP=$STRIP 2327 # Extract the first word of "strip", so it can be a program name with args. 2328set dummy strip; ac_word=$2 2329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2330$as_echo_n "checking for $ac_word... " >&6; } 2331if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2332 $as_echo_n "(cached) " >&6 2333else 2334 if test -n "$ac_ct_STRIP"; then 2335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2336else 2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2338for as_dir in $PATH 2339do 2340 IFS=$as_save_IFS 2341 test -z "$as_dir" && as_dir=. 2342 for ac_exec_ext in '' $ac_executable_extensions; do 2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2344 ac_cv_prog_ac_ct_STRIP="strip" 2345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2346 break 2 2347 fi 2348done 2349 done 2350IFS=$as_save_IFS 2351 2352fi 2353fi 2354ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2355if test -n "$ac_ct_STRIP"; then 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2357$as_echo "$ac_ct_STRIP" >&6; } 2358else 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2360$as_echo "no" >&6; } 2361fi 2362 2363 if test "x$ac_ct_STRIP" = x; then 2364 STRIP=":" 2365 else 2366 case $cross_compiling:$ac_tool_warned in 2367yes:) 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2370ac_tool_warned=yes ;; 2371esac 2372 STRIP=$ac_ct_STRIP 2373 fi 2374else 2375 STRIP="$ac_cv_prog_STRIP" 2376fi 2377 2378fi 2379INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2380 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2382$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2383if test -z "$MKDIR_P"; then 2384 if ${ac_cv_path_mkdir+:} false; then : 2385 $as_echo_n "(cached) " >&6 2386else 2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2388for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2389do 2390 IFS=$as_save_IFS 2391 test -z "$as_dir" && as_dir=. 2392 for ac_prog in mkdir gmkdir; do 2393 for ac_exec_ext in '' $ac_executable_extensions; do 2394 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2395 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2396 'mkdir (GNU coreutils) '* | \ 2397 'mkdir (coreutils) '* | \ 2398 'mkdir (fileutils) '4.1*) 2399 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2400 break 3;; 2401 esac 2402 done 2403 done 2404 done 2405IFS=$as_save_IFS 2406 2407fi 2408 2409 test -d ./--version && rmdir ./--version 2410 if test "${ac_cv_path_mkdir+set}" = set; then 2411 MKDIR_P="$ac_cv_path_mkdir -p" 2412 else 2413 # As a last resort, use the slow shell script. Don't cache a 2414 # value for MKDIR_P within a source directory, because that will 2415 # break other packages using the cache if that directory is 2416 # removed, or if the value is a relative name. 2417 MKDIR_P="$ac_install_sh -d" 2418 fi 2419fi 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2421$as_echo "$MKDIR_P" >&6; } 2422 2423mkdir_p="$MKDIR_P" 2424case $mkdir_p in 2425 [\\/$]* | ?:[\\/]*) ;; 2426 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2427esac 2428 2429for ac_prog in gawk mawk nawk awk 2430do 2431 # Extract the first word of "$ac_prog", so it can be a program name with args. 2432set dummy $ac_prog; ac_word=$2 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2434$as_echo_n "checking for $ac_word... " >&6; } 2435if ${ac_cv_prog_AWK+:} false; then : 2436 $as_echo_n "(cached) " >&6 2437else 2438 if test -n "$AWK"; then 2439 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2440else 2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2442for as_dir in $PATH 2443do 2444 IFS=$as_save_IFS 2445 test -z "$as_dir" && as_dir=. 2446 for ac_exec_ext in '' $ac_executable_extensions; do 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2448 ac_cv_prog_AWK="$ac_prog" 2449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2450 break 2 2451 fi 2452done 2453 done 2454IFS=$as_save_IFS 2455 2456fi 2457fi 2458AWK=$ac_cv_prog_AWK 2459if test -n "$AWK"; then 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2461$as_echo "$AWK" >&6; } 2462else 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2464$as_echo "no" >&6; } 2465fi 2466 2467 2468 test -n "$AWK" && break 2469done 2470 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2472$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2473set x ${MAKE-make} 2474ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2475if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2476 $as_echo_n "(cached) " >&6 2477else 2478 cat >conftest.make <<\_ACEOF 2479SHELL = /bin/sh 2480all: 2481 @echo '@@@%%%=$(MAKE)=@@@%%%' 2482_ACEOF 2483# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2484case `${MAKE-make} -f conftest.make 2>/dev/null` in 2485 *@@@%%%=?*=@@@%%%*) 2486 eval ac_cv_prog_make_${ac_make}_set=yes;; 2487 *) 2488 eval ac_cv_prog_make_${ac_make}_set=no;; 2489esac 2490rm -f conftest.make 2491fi 2492if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2494$as_echo "yes" >&6; } 2495 SET_MAKE= 2496else 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2498$as_echo "no" >&6; } 2499 SET_MAKE="MAKE=${MAKE-make}" 2500fi 2501 2502rm -rf .tst 2>/dev/null 2503mkdir .tst 2>/dev/null 2504if test -d .tst; then 2505 am__leading_dot=. 2506else 2507 am__leading_dot=_ 2508fi 2509rmdir .tst 2>/dev/null 2510 2511if test "`cd $srcdir && pwd`" != "`pwd`"; then 2512 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2513 # is not polluted with repeated "-I." 2514 am__isrc=' -I$(srcdir)' 2515 # test to see if srcdir already configured 2516 if test -f $srcdir/config.status; then 2517 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2518 fi 2519fi 2520 2521# test whether we have cygpath 2522if test -z "$CYGPATH_W"; then 2523 if (cygpath --version) >/dev/null 2>/dev/null; then 2524 CYGPATH_W='cygpath -w' 2525 else 2526 CYGPATH_W=echo 2527 fi 2528fi 2529 2530 2531# Define the identity of the package. 2532 PACKAGE='fstobdf' 2533 VERSION='1.0.5' 2534 2535 2536cat >>confdefs.h <<_ACEOF 2537#define PACKAGE "$PACKAGE" 2538_ACEOF 2539 2540 2541cat >>confdefs.h <<_ACEOF 2542#define VERSION "$VERSION" 2543_ACEOF 2544 2545# Some tools Automake needs. 2546 2547ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2548 2549 2550AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2551 2552 2553AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2554 2555 2556AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2557 2558 2559MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2560 2561# We need awk for the "check" target. The system "awk" is bad on 2562# some platforms. 2563# Always define AMTAR for backward compatibility. 2564 2565AMTAR=${AMTAR-"${am_missing_run}tar"} 2566 2567am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2568 2569 2570 2571 2572 2573 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2575$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2576 # Check whether --enable-maintainer-mode was given. 2577if test "${enable_maintainer_mode+set}" = set; then : 2578 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2579else 2580 USE_MAINTAINER_MODE=no 2581fi 2582 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2584$as_echo "$USE_MAINTAINER_MODE" >&6; } 2585 if test $USE_MAINTAINER_MODE = yes; then 2586 MAINTAINER_MODE_TRUE= 2587 MAINTAINER_MODE_FALSE='#' 2588else 2589 MAINTAINER_MODE_TRUE='#' 2590 MAINTAINER_MODE_FALSE= 2591fi 2592 2593 MAINT=$MAINTAINER_MODE_TRUE 2594 2595 2596 2597# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609DEPDIR="${am__leading_dot}deps" 2610 2611ac_config_commands="$ac_config_commands depfiles" 2612 2613 2614am_make=${MAKE-make} 2615cat > confinc << 'END' 2616am__doit: 2617 @echo this is the am__doit target 2618.PHONY: am__doit 2619END 2620# If we don't find an include directive, just comment out the code. 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2622$as_echo_n "checking for style of include used by $am_make... " >&6; } 2623am__include="#" 2624am__quote= 2625_am_result=none 2626# First try GNU make style include. 2627echo "include confinc" > confmf 2628# Ignore all kinds of additional output from `make'. 2629case `$am_make -s -f confmf 2> /dev/null` in #( 2630*the\ am__doit\ target*) 2631 am__include=include 2632 am__quote= 2633 _am_result=GNU 2634 ;; 2635esac 2636# Now try BSD make style include. 2637if test "$am__include" = "#"; then 2638 echo '.include "confinc"' > confmf 2639 case `$am_make -s -f confmf 2> /dev/null` in #( 2640 *the\ am__doit\ target*) 2641 am__include=.include 2642 am__quote="\"" 2643 _am_result=BSD 2644 ;; 2645 esac 2646fi 2647 2648 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2650$as_echo "$_am_result" >&6; } 2651rm -f confinc confmf 2652 2653# Check whether --enable-dependency-tracking was given. 2654if test "${enable_dependency_tracking+set}" = set; then : 2655 enableval=$enable_dependency_tracking; 2656fi 2657 2658if test "x$enable_dependency_tracking" != xno; then 2659 am_depcomp="$ac_aux_dir/depcomp" 2660 AMDEPBACKSLASH='\' 2661 am__nodep='_no' 2662fi 2663 if test "x$enable_dependency_tracking" != xno; then 2664 AMDEP_TRUE= 2665 AMDEP_FALSE='#' 2666else 2667 AMDEP_TRUE='#' 2668 AMDEP_FALSE= 2669fi 2670 2671 2672ac_ext=c 2673ac_cpp='$CPP $CPPFLAGS' 2674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2676ac_compiler_gnu=$ac_cv_c_compiler_gnu 2677if test -n "$ac_tool_prefix"; then 2678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2679set dummy ${ac_tool_prefix}gcc; ac_word=$2 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2681$as_echo_n "checking for $ac_word... " >&6; } 2682if ${ac_cv_prog_CC+:} false; then : 2683 $as_echo_n "(cached) " >&6 2684else 2685 if test -n "$CC"; then 2686 ac_cv_prog_CC="$CC" # Let the user override the test. 2687else 2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 for ac_exec_ext in '' $ac_executable_extensions; do 2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2695 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2697 break 2 2698 fi 2699done 2700 done 2701IFS=$as_save_IFS 2702 2703fi 2704fi 2705CC=$ac_cv_prog_CC 2706if test -n "$CC"; then 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2708$as_echo "$CC" >&6; } 2709else 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2711$as_echo "no" >&6; } 2712fi 2713 2714 2715fi 2716if test -z "$ac_cv_prog_CC"; then 2717 ac_ct_CC=$CC 2718 # Extract the first word of "gcc", so it can be a program name with args. 2719set dummy gcc; ac_word=$2 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2721$as_echo_n "checking for $ac_word... " >&6; } 2722if ${ac_cv_prog_ac_ct_CC+:} false; then : 2723 $as_echo_n "(cached) " >&6 2724else 2725 if test -n "$ac_ct_CC"; then 2726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2727else 2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2729for as_dir in $PATH 2730do 2731 IFS=$as_save_IFS 2732 test -z "$as_dir" && as_dir=. 2733 for ac_exec_ext in '' $ac_executable_extensions; do 2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2735 ac_cv_prog_ac_ct_CC="gcc" 2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2737 break 2 2738 fi 2739done 2740 done 2741IFS=$as_save_IFS 2742 2743fi 2744fi 2745ac_ct_CC=$ac_cv_prog_ac_ct_CC 2746if test -n "$ac_ct_CC"; then 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2748$as_echo "$ac_ct_CC" >&6; } 2749else 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2751$as_echo "no" >&6; } 2752fi 2753 2754 if test "x$ac_ct_CC" = x; then 2755 CC="" 2756 else 2757 case $cross_compiling:$ac_tool_warned in 2758yes:) 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2761ac_tool_warned=yes ;; 2762esac 2763 CC=$ac_ct_CC 2764 fi 2765else 2766 CC="$ac_cv_prog_CC" 2767fi 2768 2769if test -z "$CC"; then 2770 if test -n "$ac_tool_prefix"; then 2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2772set dummy ${ac_tool_prefix}cc; ac_word=$2 2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2774$as_echo_n "checking for $ac_word... " >&6; } 2775if ${ac_cv_prog_CC+:} false; then : 2776 $as_echo_n "(cached) " >&6 2777else 2778 if test -n "$CC"; then 2779 ac_cv_prog_CC="$CC" # Let the user override the test. 2780else 2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2782for as_dir in $PATH 2783do 2784 IFS=$as_save_IFS 2785 test -z "$as_dir" && as_dir=. 2786 for ac_exec_ext in '' $ac_executable_extensions; do 2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2788 ac_cv_prog_CC="${ac_tool_prefix}cc" 2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2790 break 2 2791 fi 2792done 2793 done 2794IFS=$as_save_IFS 2795 2796fi 2797fi 2798CC=$ac_cv_prog_CC 2799if test -n "$CC"; then 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2801$as_echo "$CC" >&6; } 2802else 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2804$as_echo "no" >&6; } 2805fi 2806 2807 2808 fi 2809fi 2810if test -z "$CC"; then 2811 # Extract the first word of "cc", so it can be a program name with args. 2812set dummy cc; ac_word=$2 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2814$as_echo_n "checking for $ac_word... " >&6; } 2815if ${ac_cv_prog_CC+:} false; then : 2816 $as_echo_n "(cached) " >&6 2817else 2818 if test -n "$CC"; then 2819 ac_cv_prog_CC="$CC" # Let the user override the test. 2820else 2821 ac_prog_rejected=no 2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2823for as_dir in $PATH 2824do 2825 IFS=$as_save_IFS 2826 test -z "$as_dir" && as_dir=. 2827 for ac_exec_ext in '' $ac_executable_extensions; do 2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2829 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2830 ac_prog_rejected=yes 2831 continue 2832 fi 2833 ac_cv_prog_CC="cc" 2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2835 break 2 2836 fi 2837done 2838 done 2839IFS=$as_save_IFS 2840 2841if test $ac_prog_rejected = yes; then 2842 # We found a bogon in the path, so make sure we never use it. 2843 set dummy $ac_cv_prog_CC 2844 shift 2845 if test $# != 0; then 2846 # We chose a different compiler from the bogus one. 2847 # However, it has the same basename, so the bogon will be chosen 2848 # first if we set CC to just the basename; use the full file name. 2849 shift 2850 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2851 fi 2852fi 2853fi 2854fi 2855CC=$ac_cv_prog_CC 2856if test -n "$CC"; then 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2858$as_echo "$CC" >&6; } 2859else 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2861$as_echo "no" >&6; } 2862fi 2863 2864 2865fi 2866if test -z "$CC"; then 2867 if test -n "$ac_tool_prefix"; then 2868 for ac_prog in cl.exe 2869 do 2870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2871set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2873$as_echo_n "checking for $ac_word... " >&6; } 2874if ${ac_cv_prog_CC+:} false; then : 2875 $as_echo_n "(cached) " >&6 2876else 2877 if test -n "$CC"; then 2878 ac_cv_prog_CC="$CC" # Let the user override the test. 2879else 2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2881for as_dir in $PATH 2882do 2883 IFS=$as_save_IFS 2884 test -z "$as_dir" && as_dir=. 2885 for ac_exec_ext in '' $ac_executable_extensions; do 2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2889 break 2 2890 fi 2891done 2892 done 2893IFS=$as_save_IFS 2894 2895fi 2896fi 2897CC=$ac_cv_prog_CC 2898if test -n "$CC"; then 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2900$as_echo "$CC" >&6; } 2901else 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2903$as_echo "no" >&6; } 2904fi 2905 2906 2907 test -n "$CC" && break 2908 done 2909fi 2910if test -z "$CC"; then 2911 ac_ct_CC=$CC 2912 for ac_prog in cl.exe 2913do 2914 # Extract the first word of "$ac_prog", so it can be a program name with args. 2915set dummy $ac_prog; ac_word=$2 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2917$as_echo_n "checking for $ac_word... " >&6; } 2918if ${ac_cv_prog_ac_ct_CC+:} false; then : 2919 $as_echo_n "(cached) " >&6 2920else 2921 if test -n "$ac_ct_CC"; then 2922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2923else 2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2925for as_dir in $PATH 2926do 2927 IFS=$as_save_IFS 2928 test -z "$as_dir" && as_dir=. 2929 for ac_exec_ext in '' $ac_executable_extensions; do 2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2931 ac_cv_prog_ac_ct_CC="$ac_prog" 2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2933 break 2 2934 fi 2935done 2936 done 2937IFS=$as_save_IFS 2938 2939fi 2940fi 2941ac_ct_CC=$ac_cv_prog_ac_ct_CC 2942if test -n "$ac_ct_CC"; then 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2944$as_echo "$ac_ct_CC" >&6; } 2945else 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2947$as_echo "no" >&6; } 2948fi 2949 2950 2951 test -n "$ac_ct_CC" && break 2952done 2953 2954 if test "x$ac_ct_CC" = x; then 2955 CC="" 2956 else 2957 case $cross_compiling:$ac_tool_warned in 2958yes:) 2959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2961ac_tool_warned=yes ;; 2962esac 2963 CC=$ac_ct_CC 2964 fi 2965fi 2966 2967fi 2968 2969 2970test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2972as_fn_error $? "no acceptable C compiler found in \$PATH 2973See \`config.log' for more details" "$LINENO" 5; } 2974 2975# Provide some information about the compiler. 2976$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2977set X $ac_compile 2978ac_compiler=$2 2979for ac_option in --version -v -V -qversion; do 2980 { { ac_try="$ac_compiler $ac_option >&5" 2981case "(($ac_try" in 2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2983 *) ac_try_echo=$ac_try;; 2984esac 2985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2986$as_echo "$ac_try_echo"; } >&5 2987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2988 ac_status=$? 2989 if test -s conftest.err; then 2990 sed '10a\ 2991... rest of stderr output deleted ... 2992 10q' conftest.err >conftest.er1 2993 cat conftest.er1 >&5 2994 fi 2995 rm -f conftest.er1 conftest.err 2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2997 test $ac_status = 0; } 2998done 2999 3000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3001/* end confdefs.h. */ 3002 3003int 3004main () 3005{ 3006 3007 ; 3008 return 0; 3009} 3010_ACEOF 3011ac_clean_files_save=$ac_clean_files 3012ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3013# Try to create an executable without -o first, disregard a.out. 3014# It will help us diagnose broken compilers, and finding out an intuition 3015# of exeext. 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3017$as_echo_n "checking whether the C compiler works... " >&6; } 3018ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3019 3020# The possible output files: 3021ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3022 3023ac_rmfiles= 3024for ac_file in $ac_files 3025do 3026 case $ac_file in 3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3028 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3029 esac 3030done 3031rm -f $ac_rmfiles 3032 3033if { { ac_try="$ac_link_default" 3034case "(($ac_try" in 3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3036 *) ac_try_echo=$ac_try;; 3037esac 3038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3039$as_echo "$ac_try_echo"; } >&5 3040 (eval "$ac_link_default") 2>&5 3041 ac_status=$? 3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3043 test $ac_status = 0; }; then : 3044 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3045# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3046# in a Makefile. We should not override ac_cv_exeext if it was cached, 3047# so that the user can short-circuit this test for compilers unknown to 3048# Autoconf. 3049for ac_file in $ac_files '' 3050do 3051 test -f "$ac_file" || continue 3052 case $ac_file in 3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3054 ;; 3055 [ab].out ) 3056 # We found the default executable, but exeext='' is most 3057 # certainly right. 3058 break;; 3059 *.* ) 3060 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3061 then :; else 3062 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3063 fi 3064 # We set ac_cv_exeext here because the later test for it is not 3065 # safe: cross compilers may not add the suffix if given an `-o' 3066 # argument, so we may need to know it at that point already. 3067 # Even if this section looks crufty: it has the advantage of 3068 # actually working. 3069 break;; 3070 * ) 3071 break;; 3072 esac 3073done 3074test "$ac_cv_exeext" = no && ac_cv_exeext= 3075 3076else 3077 ac_file='' 3078fi 3079if test -z "$ac_file"; then : 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081$as_echo "no" >&6; } 3082$as_echo "$as_me: failed program was:" >&5 3083sed 's/^/| /' conftest.$ac_ext >&5 3084 3085{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3087as_fn_error 77 "C compiler cannot create executables 3088See \`config.log' for more details" "$LINENO" 5; } 3089else 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3091$as_echo "yes" >&6; } 3092fi 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3094$as_echo_n "checking for C compiler default output file name... " >&6; } 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3096$as_echo "$ac_file" >&6; } 3097ac_exeext=$ac_cv_exeext 3098 3099rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3100ac_clean_files=$ac_clean_files_save 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3102$as_echo_n "checking for suffix of executables... " >&6; } 3103if { { ac_try="$ac_link" 3104case "(($ac_try" in 3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3106 *) ac_try_echo=$ac_try;; 3107esac 3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3109$as_echo "$ac_try_echo"; } >&5 3110 (eval "$ac_link") 2>&5 3111 ac_status=$? 3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3113 test $ac_status = 0; }; then : 3114 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3115# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3116# work properly (i.e., refer to `conftest.exe'), while it won't with 3117# `rm'. 3118for ac_file in conftest.exe conftest conftest.*; do 3119 test -f "$ac_file" || continue 3120 case $ac_file in 3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3122 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3123 break;; 3124 * ) break;; 3125 esac 3126done 3127else 3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3130as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3131See \`config.log' for more details" "$LINENO" 5; } 3132fi 3133rm -f conftest conftest$ac_cv_exeext 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3135$as_echo "$ac_cv_exeext" >&6; } 3136 3137rm -f conftest.$ac_ext 3138EXEEXT=$ac_cv_exeext 3139ac_exeext=$EXEEXT 3140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3141/* end confdefs.h. */ 3142#include <stdio.h> 3143int 3144main () 3145{ 3146FILE *f = fopen ("conftest.out", "w"); 3147 return ferror (f) || fclose (f) != 0; 3148 3149 ; 3150 return 0; 3151} 3152_ACEOF 3153ac_clean_files="$ac_clean_files conftest.out" 3154# Check that the compiler produces executables we can run. If not, either 3155# the compiler is broken, or we cross compile. 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3157$as_echo_n "checking whether we are cross compiling... " >&6; } 3158if test "$cross_compiling" != yes; then 3159 { { ac_try="$ac_link" 3160case "(($ac_try" in 3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3162 *) ac_try_echo=$ac_try;; 3163esac 3164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3165$as_echo "$ac_try_echo"; } >&5 3166 (eval "$ac_link") 2>&5 3167 ac_status=$? 3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3169 test $ac_status = 0; } 3170 if { ac_try='./conftest$ac_cv_exeext' 3171 { { case "(($ac_try" in 3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3173 *) ac_try_echo=$ac_try;; 3174esac 3175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3176$as_echo "$ac_try_echo"; } >&5 3177 (eval "$ac_try") 2>&5 3178 ac_status=$? 3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3180 test $ac_status = 0; }; }; then 3181 cross_compiling=no 3182 else 3183 if test "$cross_compiling" = maybe; then 3184 cross_compiling=yes 3185 else 3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3188as_fn_error $? "cannot run C compiled programs. 3189If you meant to cross compile, use \`--host'. 3190See \`config.log' for more details" "$LINENO" 5; } 3191 fi 3192 fi 3193fi 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3195$as_echo "$cross_compiling" >&6; } 3196 3197rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3198ac_clean_files=$ac_clean_files_save 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3200$as_echo_n "checking for suffix of object files... " >&6; } 3201if ${ac_cv_objext+:} false; then : 3202 $as_echo_n "(cached) " >&6 3203else 3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3205/* end confdefs.h. */ 3206 3207int 3208main () 3209{ 3210 3211 ; 3212 return 0; 3213} 3214_ACEOF 3215rm -f conftest.o conftest.obj 3216if { { ac_try="$ac_compile" 3217case "(($ac_try" in 3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3219 *) ac_try_echo=$ac_try;; 3220esac 3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3222$as_echo "$ac_try_echo"; } >&5 3223 (eval "$ac_compile") 2>&5 3224 ac_status=$? 3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3226 test $ac_status = 0; }; then : 3227 for ac_file in conftest.o conftest.obj conftest.*; do 3228 test -f "$ac_file" || continue; 3229 case $ac_file in 3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3231 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3232 break;; 3233 esac 3234done 3235else 3236 $as_echo "$as_me: failed program was:" >&5 3237sed 's/^/| /' conftest.$ac_ext >&5 3238 3239{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3241as_fn_error $? "cannot compute suffix of object files: cannot compile 3242See \`config.log' for more details" "$LINENO" 5; } 3243fi 3244rm -f conftest.$ac_cv_objext conftest.$ac_ext 3245fi 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3247$as_echo "$ac_cv_objext" >&6; } 3248OBJEXT=$ac_cv_objext 3249ac_objext=$OBJEXT 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3251$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3252if ${ac_cv_c_compiler_gnu+:} false; then : 3253 $as_echo_n "(cached) " >&6 3254else 3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3256/* end confdefs.h. */ 3257 3258int 3259main () 3260{ 3261#ifndef __GNUC__ 3262 choke me 3263#endif 3264 3265 ; 3266 return 0; 3267} 3268_ACEOF 3269if ac_fn_c_try_compile "$LINENO"; then : 3270 ac_compiler_gnu=yes 3271else 3272 ac_compiler_gnu=no 3273fi 3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3275ac_cv_c_compiler_gnu=$ac_compiler_gnu 3276 3277fi 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3279$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3280if test $ac_compiler_gnu = yes; then 3281 GCC=yes 3282else 3283 GCC= 3284fi 3285ac_test_CFLAGS=${CFLAGS+set} 3286ac_save_CFLAGS=$CFLAGS 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3288$as_echo_n "checking whether $CC accepts -g... " >&6; } 3289if ${ac_cv_prog_cc_g+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 ac_save_c_werror_flag=$ac_c_werror_flag 3293 ac_c_werror_flag=yes 3294 ac_cv_prog_cc_g=no 3295 CFLAGS="-g" 3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3297/* end confdefs.h. */ 3298 3299int 3300main () 3301{ 3302 3303 ; 3304 return 0; 3305} 3306_ACEOF 3307if ac_fn_c_try_compile "$LINENO"; then : 3308 ac_cv_prog_cc_g=yes 3309else 3310 CFLAGS="" 3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3312/* end confdefs.h. */ 3313 3314int 3315main () 3316{ 3317 3318 ; 3319 return 0; 3320} 3321_ACEOF 3322if ac_fn_c_try_compile "$LINENO"; then : 3323 3324else 3325 ac_c_werror_flag=$ac_save_c_werror_flag 3326 CFLAGS="-g" 3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3328/* end confdefs.h. */ 3329 3330int 3331main () 3332{ 3333 3334 ; 3335 return 0; 3336} 3337_ACEOF 3338if ac_fn_c_try_compile "$LINENO"; then : 3339 ac_cv_prog_cc_g=yes 3340fi 3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3342fi 3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3344fi 3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3346 ac_c_werror_flag=$ac_save_c_werror_flag 3347fi 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3349$as_echo "$ac_cv_prog_cc_g" >&6; } 3350if test "$ac_test_CFLAGS" = set; then 3351 CFLAGS=$ac_save_CFLAGS 3352elif test $ac_cv_prog_cc_g = yes; then 3353 if test "$GCC" = yes; then 3354 CFLAGS="-g -O2" 3355 else 3356 CFLAGS="-g" 3357 fi 3358else 3359 if test "$GCC" = yes; then 3360 CFLAGS="-O2" 3361 else 3362 CFLAGS= 3363 fi 3364fi 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3366$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3367if ${ac_cv_prog_cc_c89+:} false; then : 3368 $as_echo_n "(cached) " >&6 3369else 3370 ac_cv_prog_cc_c89=no 3371ac_save_CC=$CC 3372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373/* end confdefs.h. */ 3374#include <stdarg.h> 3375#include <stdio.h> 3376#include <sys/types.h> 3377#include <sys/stat.h> 3378/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3379struct buf { int x; }; 3380FILE * (*rcsopen) (struct buf *, struct stat *, int); 3381static char *e (p, i) 3382 char **p; 3383 int i; 3384{ 3385 return p[i]; 3386} 3387static char *f (char * (*g) (char **, int), char **p, ...) 3388{ 3389 char *s; 3390 va_list v; 3391 va_start (v,p); 3392 s = g (p, va_arg (v,int)); 3393 va_end (v); 3394 return s; 3395} 3396 3397/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3398 function prototypes and stuff, but not '\xHH' hex character constants. 3399 These don't provoke an error unfortunately, instead are silently treated 3400 as 'x'. The following induces an error, until -std is added to get 3401 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3402 array size at least. It's necessary to write '\x00'==0 to get something 3403 that's true only with -std. */ 3404int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3405 3406/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3407 inside strings and character constants. */ 3408#define FOO(x) 'x' 3409int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3410 3411int test (int i, double x); 3412struct s1 {int (*f) (int a);}; 3413struct s2 {int (*f) (double a);}; 3414int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3415int argc; 3416char **argv; 3417int 3418main () 3419{ 3420return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3421 ; 3422 return 0; 3423} 3424_ACEOF 3425for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3426 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3427do 3428 CC="$ac_save_CC $ac_arg" 3429 if ac_fn_c_try_compile "$LINENO"; then : 3430 ac_cv_prog_cc_c89=$ac_arg 3431fi 3432rm -f core conftest.err conftest.$ac_objext 3433 test "x$ac_cv_prog_cc_c89" != "xno" && break 3434done 3435rm -f conftest.$ac_ext 3436CC=$ac_save_CC 3437 3438fi 3439# AC_CACHE_VAL 3440case "x$ac_cv_prog_cc_c89" in 3441 x) 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3443$as_echo "none needed" >&6; } ;; 3444 xno) 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3446$as_echo "unsupported" >&6; } ;; 3447 *) 3448 CC="$CC $ac_cv_prog_cc_c89" 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3450$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3451esac 3452if test "x$ac_cv_prog_cc_c89" != xno; then : 3453 3454fi 3455 3456ac_ext=c 3457ac_cpp='$CPP $CPPFLAGS' 3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3460ac_compiler_gnu=$ac_cv_c_compiler_gnu 3461 3462depcc="$CC" am_compiler_list= 3463 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3465$as_echo_n "checking dependency style of $depcc... " >&6; } 3466if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3467 $as_echo_n "(cached) " >&6 3468else 3469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3470 # We make a subdir and do the tests there. Otherwise we can end up 3471 # making bogus files that we don't know about and never remove. For 3472 # instance it was reported that on HP-UX the gcc test will end up 3473 # making a dummy file named `D' -- because `-MD' means `put the output 3474 # in D'. 3475 rm -rf conftest.dir 3476 mkdir conftest.dir 3477 # Copy depcomp to subdir because otherwise we won't find it if we're 3478 # using a relative directory. 3479 cp "$am_depcomp" conftest.dir 3480 cd conftest.dir 3481 # We will build objects and dependencies in a subdirectory because 3482 # it helps to detect inapplicable dependency modes. For instance 3483 # both Tru64's cc and ICC support -MD to output dependencies as a 3484 # side effect of compilation, but ICC will put the dependencies in 3485 # the current directory while Tru64 will put them in the object 3486 # directory. 3487 mkdir sub 3488 3489 am_cv_CC_dependencies_compiler_type=none 3490 if test "$am_compiler_list" = ""; then 3491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3492 fi 3493 am__universal=false 3494 case " $depcc " in #( 3495 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3496 esac 3497 3498 for depmode in $am_compiler_list; do 3499 # Setup a source with many dependencies, because some compilers 3500 # like to wrap large dependency lists on column 80 (with \), and 3501 # we should not choose a depcomp mode which is confused by this. 3502 # 3503 # We need to recreate these files for each test, as the compiler may 3504 # overwrite some of them when testing with obscure command lines. 3505 # This happens at least with the AIX C compiler. 3506 : > sub/conftest.c 3507 for i in 1 2 3 4 5 6; do 3508 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3509 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3510 # Solaris 8's {/usr,}/bin/sh. 3511 touch sub/conftst$i.h 3512 done 3513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3514 3515 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3516 # mode. It turns out that the SunPro C++ compiler does not properly 3517 # handle `-M -o', and we need to detect this. Also, some Intel 3518 # versions had trouble with output in subdirs 3519 am__obj=sub/conftest.${OBJEXT-o} 3520 am__minus_obj="-o $am__obj" 3521 case $depmode in 3522 gcc) 3523 # This depmode causes a compiler race in universal mode. 3524 test "$am__universal" = false || continue 3525 ;; 3526 nosideeffect) 3527 # after this tag, mechanisms are not by side-effect, so they'll 3528 # only be used when explicitly requested 3529 if test "x$enable_dependency_tracking" = xyes; then 3530 continue 3531 else 3532 break 3533 fi 3534 ;; 3535 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3536 # This compiler won't grok `-c -o', but also, the minuso test has 3537 # not run yet. These depmodes are late enough in the game, and 3538 # so weak that their functioning should not be impacted. 3539 am__obj=conftest.${OBJEXT-o} 3540 am__minus_obj= 3541 ;; 3542 none) break ;; 3543 esac 3544 if depmode=$depmode \ 3545 source=sub/conftest.c object=$am__obj \ 3546 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3547 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3548 >/dev/null 2>conftest.err && 3549 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3551 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3553 # icc doesn't choke on unknown options, it will just issue warnings 3554 # or remarks (even with -Werror). So we grep stderr for any message 3555 # that says an option was ignored or not supported. 3556 # When given -MP, icc 7.0 and 7.1 complain thusly: 3557 # icc: Command line warning: ignoring option '-M'; no argument required 3558 # The diagnosis changed in icc 8.0: 3559 # icc: Command line remark: option '-MP' not supported 3560 if (grep 'ignoring option' conftest.err || 3561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3562 am_cv_CC_dependencies_compiler_type=$depmode 3563 break 3564 fi 3565 fi 3566 done 3567 3568 cd .. 3569 rm -rf conftest.dir 3570else 3571 am_cv_CC_dependencies_compiler_type=none 3572fi 3573 3574fi 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3576$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3577CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3578 3579 if 3580 test "x$enable_dependency_tracking" != xno \ 3581 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3582 am__fastdepCC_TRUE= 3583 am__fastdepCC_FALSE='#' 3584else 3585 am__fastdepCC_TRUE='#' 3586 am__fastdepCC_FALSE= 3587fi 3588 3589 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3591$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3592if ${ac_cv_prog_cc_c99+:} false; then : 3593 $as_echo_n "(cached) " >&6 3594else 3595 ac_cv_prog_cc_c99=no 3596ac_save_CC=$CC 3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599#include <stdarg.h> 3600#include <stdbool.h> 3601#include <stdlib.h> 3602#include <wchar.h> 3603#include <stdio.h> 3604 3605// Check varargs macros. These examples are taken from C99 6.10.3.5. 3606#define debug(...) fprintf (stderr, __VA_ARGS__) 3607#define showlist(...) puts (#__VA_ARGS__) 3608#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3609static void 3610test_varargs_macros (void) 3611{ 3612 int x = 1234; 3613 int y = 5678; 3614 debug ("Flag"); 3615 debug ("X = %d\n", x); 3616 showlist (The first, second, and third items.); 3617 report (x>y, "x is %d but y is %d", x, y); 3618} 3619 3620// Check long long types. 3621#define BIG64 18446744073709551615ull 3622#define BIG32 4294967295ul 3623#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3624#if !BIG_OK 3625 your preprocessor is broken; 3626#endif 3627#if BIG_OK 3628#else 3629 your preprocessor is broken; 3630#endif 3631static long long int bignum = -9223372036854775807LL; 3632static unsigned long long int ubignum = BIG64; 3633 3634struct incomplete_array 3635{ 3636 int datasize; 3637 double data[]; 3638}; 3639 3640struct named_init { 3641 int number; 3642 const wchar_t *name; 3643 double average; 3644}; 3645 3646typedef const char *ccp; 3647 3648static inline int 3649test_restrict (ccp restrict text) 3650{ 3651 // See if C++-style comments work. 3652 // Iterate through items via the restricted pointer. 3653 // Also check for declarations in for loops. 3654 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3655 continue; 3656 return 0; 3657} 3658 3659// Check varargs and va_copy. 3660static void 3661test_varargs (const char *format, ...) 3662{ 3663 va_list args; 3664 va_start (args, format); 3665 va_list args_copy; 3666 va_copy (args_copy, args); 3667 3668 const char *str; 3669 int number; 3670 float fnumber; 3671 3672 while (*format) 3673 { 3674 switch (*format++) 3675 { 3676 case 's': // string 3677 str = va_arg (args_copy, const char *); 3678 break; 3679 case 'd': // int 3680 number = va_arg (args_copy, int); 3681 break; 3682 case 'f': // float 3683 fnumber = va_arg (args_copy, double); 3684 break; 3685 default: 3686 break; 3687 } 3688 } 3689 va_end (args_copy); 3690 va_end (args); 3691} 3692 3693int 3694main () 3695{ 3696 3697 // Check bool. 3698 _Bool success = false; 3699 3700 // Check restrict. 3701 if (test_restrict ("String literal") == 0) 3702 success = true; 3703 char *restrict newvar = "Another string"; 3704 3705 // Check varargs. 3706 test_varargs ("s, d' f .", "string", 65, 34.234); 3707 test_varargs_macros (); 3708 3709 // Check flexible array members. 3710 struct incomplete_array *ia = 3711 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3712 ia->datasize = 10; 3713 for (int i = 0; i < ia->datasize; ++i) 3714 ia->data[i] = i * 1.234; 3715 3716 // Check named initializers. 3717 struct named_init ni = { 3718 .number = 34, 3719 .name = L"Test wide string", 3720 .average = 543.34343, 3721 }; 3722 3723 ni.number = 58; 3724 3725 int dynamic_array[ni.number]; 3726 dynamic_array[ni.number - 1] = 543; 3727 3728 // work around unused variable warnings 3729 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3730 || dynamic_array[ni.number - 1] != 543); 3731 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3737do 3738 CC="$ac_save_CC $ac_arg" 3739 if ac_fn_c_try_compile "$LINENO"; then : 3740 ac_cv_prog_cc_c99=$ac_arg 3741fi 3742rm -f core conftest.err conftest.$ac_objext 3743 test "x$ac_cv_prog_cc_c99" != "xno" && break 3744done 3745rm -f conftest.$ac_ext 3746CC=$ac_save_CC 3747 3748fi 3749# AC_CACHE_VAL 3750case "x$ac_cv_prog_cc_c99" in 3751 x) 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3753$as_echo "none needed" >&6; } ;; 3754 xno) 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3756$as_echo "unsupported" >&6; } ;; 3757 *) 3758 CC="$CC $ac_cv_prog_cc_c99" 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3760$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3761esac 3762if test "x$ac_cv_prog_cc_c99" != xno; then : 3763 3764fi 3765 3766 3767 3768ac_ext=c 3769ac_cpp='$CPP $CPPFLAGS' 3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3772ac_compiler_gnu=$ac_cv_c_compiler_gnu 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3774$as_echo_n "checking how to run the C preprocessor... " >&6; } 3775# On Suns, sometimes $CPP names a directory. 3776if test -n "$CPP" && test -d "$CPP"; then 3777 CPP= 3778fi 3779if test -z "$CPP"; then 3780 if ${ac_cv_prog_CPP+:} false; then : 3781 $as_echo_n "(cached) " >&6 3782else 3783 # Double quotes because CPP needs to be expanded 3784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3785 do 3786 ac_preproc_ok=false 3787for ac_c_preproc_warn_flag in '' yes 3788do 3789 # Use a header file that comes with gcc, so configuring glibc 3790 # with a fresh cross-compiler works. 3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3792 # <limits.h> exists even on freestanding compilers. 3793 # On the NeXT, cc -E runs the code through the compiler's parser, 3794 # not just through cpp. "Syntax error" is here to catch this case. 3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3796/* end confdefs.h. */ 3797#ifdef __STDC__ 3798# include <limits.h> 3799#else 3800# include <assert.h> 3801#endif 3802 Syntax error 3803_ACEOF 3804if ac_fn_c_try_cpp "$LINENO"; then : 3805 3806else 3807 # Broken: fails on valid input. 3808continue 3809fi 3810rm -f conftest.err conftest.i conftest.$ac_ext 3811 3812 # OK, works on sane cases. Now check whether nonexistent headers 3813 # can be detected and how. 3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3815/* end confdefs.h. */ 3816#include <ac_nonexistent.h> 3817_ACEOF 3818if ac_fn_c_try_cpp "$LINENO"; then : 3819 # Broken: success on invalid input. 3820continue 3821else 3822 # Passes both tests. 3823ac_preproc_ok=: 3824break 3825fi 3826rm -f conftest.err conftest.i conftest.$ac_ext 3827 3828done 3829# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3830rm -f conftest.i conftest.err conftest.$ac_ext 3831if $ac_preproc_ok; then : 3832 break 3833fi 3834 3835 done 3836 ac_cv_prog_CPP=$CPP 3837 3838fi 3839 CPP=$ac_cv_prog_CPP 3840else 3841 ac_cv_prog_CPP=$CPP 3842fi 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3844$as_echo "$CPP" >&6; } 3845ac_preproc_ok=false 3846for ac_c_preproc_warn_flag in '' yes 3847do 3848 # Use a header file that comes with gcc, so configuring glibc 3849 # with a fresh cross-compiler works. 3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3851 # <limits.h> exists even on freestanding compilers. 3852 # On the NeXT, cc -E runs the code through the compiler's parser, 3853 # not just through cpp. "Syntax error" is here to catch this case. 3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3855/* end confdefs.h. */ 3856#ifdef __STDC__ 3857# include <limits.h> 3858#else 3859# include <assert.h> 3860#endif 3861 Syntax error 3862_ACEOF 3863if ac_fn_c_try_cpp "$LINENO"; then : 3864 3865else 3866 # Broken: fails on valid input. 3867continue 3868fi 3869rm -f conftest.err conftest.i conftest.$ac_ext 3870 3871 # OK, works on sane cases. Now check whether nonexistent headers 3872 # can be detected and how. 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3874/* end confdefs.h. */ 3875#include <ac_nonexistent.h> 3876_ACEOF 3877if ac_fn_c_try_cpp "$LINENO"; then : 3878 # Broken: success on invalid input. 3879continue 3880else 3881 # Passes both tests. 3882ac_preproc_ok=: 3883break 3884fi 3885rm -f conftest.err conftest.i conftest.$ac_ext 3886 3887done 3888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3889rm -f conftest.i conftest.err conftest.$ac_ext 3890if $ac_preproc_ok; then : 3891 3892else 3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3895as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3896See \`config.log' for more details" "$LINENO" 5; } 3897fi 3898 3899ac_ext=c 3900ac_cpp='$CPP $CPPFLAGS' 3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3903ac_compiler_gnu=$ac_cv_c_compiler_gnu 3904 3905 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3907$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3908if ${ac_cv_path_GREP+:} false; then : 3909 $as_echo_n "(cached) " >&6 3910else 3911 if test -z "$GREP"; then 3912 ac_path_GREP_found=false 3913 # Loop through the user's path and test for each of PROGNAME-LIST 3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3915for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3916do 3917 IFS=$as_save_IFS 3918 test -z "$as_dir" && as_dir=. 3919 for ac_prog in grep ggrep; do 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3922 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3923# Check for GNU ac_path_GREP and select it if it is found. 3924 # Check for GNU $ac_path_GREP 3925case `"$ac_path_GREP" --version 2>&1` in 3926*GNU*) 3927 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3928*) 3929 ac_count=0 3930 $as_echo_n 0123456789 >"conftest.in" 3931 while : 3932 do 3933 cat "conftest.in" "conftest.in" >"conftest.tmp" 3934 mv "conftest.tmp" "conftest.in" 3935 cp "conftest.in" "conftest.nl" 3936 $as_echo 'GREP' >> "conftest.nl" 3937 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3939 as_fn_arith $ac_count + 1 && ac_count=$as_val 3940 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3941 # Best one so far, save it but keep looking for a better one 3942 ac_cv_path_GREP="$ac_path_GREP" 3943 ac_path_GREP_max=$ac_count 3944 fi 3945 # 10*(2^10) chars as input seems more than enough 3946 test $ac_count -gt 10 && break 3947 done 3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3949esac 3950 3951 $ac_path_GREP_found && break 3 3952 done 3953 done 3954 done 3955IFS=$as_save_IFS 3956 if test -z "$ac_cv_path_GREP"; then 3957 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3958 fi 3959else 3960 ac_cv_path_GREP=$GREP 3961fi 3962 3963fi 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3965$as_echo "$ac_cv_path_GREP" >&6; } 3966 GREP="$ac_cv_path_GREP" 3967 3968 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3970$as_echo_n "checking for egrep... " >&6; } 3971if ${ac_cv_path_EGREP+:} false; then : 3972 $as_echo_n "(cached) " >&6 3973else 3974 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3975 then ac_cv_path_EGREP="$GREP -E" 3976 else 3977 if test -z "$EGREP"; then 3978 ac_path_EGREP_found=false 3979 # Loop through the user's path and test for each of PROGNAME-LIST 3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3981for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3982do 3983 IFS=$as_save_IFS 3984 test -z "$as_dir" && as_dir=. 3985 for ac_prog in egrep; do 3986 for ac_exec_ext in '' $ac_executable_extensions; do 3987 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3988 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3989# Check for GNU ac_path_EGREP and select it if it is found. 3990 # Check for GNU $ac_path_EGREP 3991case `"$ac_path_EGREP" --version 2>&1` in 3992*GNU*) 3993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3994*) 3995 ac_count=0 3996 $as_echo_n 0123456789 >"conftest.in" 3997 while : 3998 do 3999 cat "conftest.in" "conftest.in" >"conftest.tmp" 4000 mv "conftest.tmp" "conftest.in" 4001 cp "conftest.in" "conftest.nl" 4002 $as_echo 'EGREP' >> "conftest.nl" 4003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4005 as_fn_arith $ac_count + 1 && ac_count=$as_val 4006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4007 # Best one so far, save it but keep looking for a better one 4008 ac_cv_path_EGREP="$ac_path_EGREP" 4009 ac_path_EGREP_max=$ac_count 4010 fi 4011 # 10*(2^10) chars as input seems more than enough 4012 test $ac_count -gt 10 && break 4013 done 4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4015esac 4016 4017 $ac_path_EGREP_found && break 3 4018 done 4019 done 4020 done 4021IFS=$as_save_IFS 4022 if test -z "$ac_cv_path_EGREP"; then 4023 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4024 fi 4025else 4026 ac_cv_path_EGREP=$EGREP 4027fi 4028 4029 fi 4030fi 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4032$as_echo "$ac_cv_path_EGREP" >&6; } 4033 EGREP="$ac_cv_path_EGREP" 4034 4035 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4037$as_echo_n "checking for ANSI C header files... " >&6; } 4038if ${ac_cv_header_stdc+:} false; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4042/* end confdefs.h. */ 4043#include <stdlib.h> 4044#include <stdarg.h> 4045#include <string.h> 4046#include <float.h> 4047 4048int 4049main () 4050{ 4051 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056if ac_fn_c_try_compile "$LINENO"; then : 4057 ac_cv_header_stdc=yes 4058else 4059 ac_cv_header_stdc=no 4060fi 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062 4063if test $ac_cv_header_stdc = yes; then 4064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4066/* end confdefs.h. */ 4067#include <string.h> 4068 4069_ACEOF 4070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4071 $EGREP "memchr" >/dev/null 2>&1; then : 4072 4073else 4074 ac_cv_header_stdc=no 4075fi 4076rm -f conftest* 4077 4078fi 4079 4080if test $ac_cv_header_stdc = yes; then 4081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4083/* end confdefs.h. */ 4084#include <stdlib.h> 4085 4086_ACEOF 4087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4088 $EGREP "free" >/dev/null 2>&1; then : 4089 4090else 4091 ac_cv_header_stdc=no 4092fi 4093rm -f conftest* 4094 4095fi 4096 4097if test $ac_cv_header_stdc = yes; then 4098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4099 if test "$cross_compiling" = yes; then : 4100 : 4101else 4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4103/* end confdefs.h. */ 4104#include <ctype.h> 4105#include <stdlib.h> 4106#if ((' ' & 0x0FF) == 0x020) 4107# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4108# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4109#else 4110# define ISLOWER(c) \ 4111 (('a' <= (c) && (c) <= 'i') \ 4112 || ('j' <= (c) && (c) <= 'r') \ 4113 || ('s' <= (c) && (c) <= 'z')) 4114# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4115#endif 4116 4117#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4118int 4119main () 4120{ 4121 int i; 4122 for (i = 0; i < 256; i++) 4123 if (XOR (islower (i), ISLOWER (i)) 4124 || toupper (i) != TOUPPER (i)) 4125 return 2; 4126 return 0; 4127} 4128_ACEOF 4129if ac_fn_c_try_run "$LINENO"; then : 4130 4131else 4132 ac_cv_header_stdc=no 4133fi 4134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4135 conftest.$ac_objext conftest.beam conftest.$ac_ext 4136fi 4137 4138fi 4139fi 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4141$as_echo "$ac_cv_header_stdc" >&6; } 4142if test $ac_cv_header_stdc = yes; then 4143 4144$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4145 4146fi 4147 4148# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4149for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4150 inttypes.h stdint.h unistd.h 4151do : 4152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4153ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4154" 4155if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4156 cat >>confdefs.h <<_ACEOF 4157#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4158_ACEOF 4159 4160fi 4161 4162done 4163 4164 4165 4166 4167 4168 4169ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4170if test "x$ac_cv_have_decl___clang__" = xyes; then : 4171 CLANGCC="yes" 4172else 4173 CLANGCC="no" 4174fi 4175 4176ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4177if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4178 INTELCC="yes" 4179else 4180 INTELCC="no" 4181fi 4182 4183ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4184if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4185 SUNCC="yes" 4186else 4187 SUNCC="no" 4188fi 4189 4190 4191 4192 4193if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4194 if test -n "$ac_tool_prefix"; then 4195 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4196set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4198$as_echo_n "checking for $ac_word... " >&6; } 4199if ${ac_cv_path_PKG_CONFIG+:} false; then : 4200 $as_echo_n "(cached) " >&6 4201else 4202 case $PKG_CONFIG in 4203 [\\/]* | ?:[\\/]*) 4204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4205 ;; 4206 *) 4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4208for as_dir in $PATH 4209do 4210 IFS=$as_save_IFS 4211 test -z "$as_dir" && as_dir=. 4212 for ac_exec_ext in '' $ac_executable_extensions; do 4213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4216 break 2 4217 fi 4218done 4219 done 4220IFS=$as_save_IFS 4221 4222 ;; 4223esac 4224fi 4225PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4226if test -n "$PKG_CONFIG"; then 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4228$as_echo "$PKG_CONFIG" >&6; } 4229else 4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4231$as_echo "no" >&6; } 4232fi 4233 4234 4235fi 4236if test -z "$ac_cv_path_PKG_CONFIG"; then 4237 ac_pt_PKG_CONFIG=$PKG_CONFIG 4238 # Extract the first word of "pkg-config", so it can be a program name with args. 4239set dummy pkg-config; ac_word=$2 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4241$as_echo_n "checking for $ac_word... " >&6; } 4242if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4243 $as_echo_n "(cached) " >&6 4244else 4245 case $ac_pt_PKG_CONFIG in 4246 [\\/]* | ?:[\\/]*) 4247 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4248 ;; 4249 *) 4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4251for as_dir in $PATH 4252do 4253 IFS=$as_save_IFS 4254 test -z "$as_dir" && as_dir=. 4255 for ac_exec_ext in '' $ac_executable_extensions; do 4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4257 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4259 break 2 4260 fi 4261done 4262 done 4263IFS=$as_save_IFS 4264 4265 ;; 4266esac 4267fi 4268ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4269if test -n "$ac_pt_PKG_CONFIG"; then 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4271$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4272else 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4274$as_echo "no" >&6; } 4275fi 4276 4277 if test "x$ac_pt_PKG_CONFIG" = x; then 4278 PKG_CONFIG="" 4279 else 4280 case $cross_compiling:$ac_tool_warned in 4281yes:) 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4284ac_tool_warned=yes ;; 4285esac 4286 PKG_CONFIG=$ac_pt_PKG_CONFIG 4287 fi 4288else 4289 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4290fi 4291 4292fi 4293if test -n "$PKG_CONFIG"; then 4294 _pkg_min_version=0.9.0 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4296$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4297 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4299$as_echo "yes" >&6; } 4300 else 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4302$as_echo "no" >&6; } 4303 PKG_CONFIG="" 4304 fi 4305 4306fi 4307# Make sure we can run config.sub. 4308$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4309 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4310 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4312$as_echo_n "checking build system type... " >&6; } 4313if ${ac_cv_build+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 ac_build_alias=$build_alias 4317test "x$ac_build_alias" = x && 4318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4319test "x$ac_build_alias" = x && 4320 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4321ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4322 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4323 4324fi 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4326$as_echo "$ac_cv_build" >&6; } 4327case $ac_cv_build in 4328*-*-*) ;; 4329*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4330esac 4331build=$ac_cv_build 4332ac_save_IFS=$IFS; IFS='-' 4333set x $ac_cv_build 4334shift 4335build_cpu=$1 4336build_vendor=$2 4337shift; shift 4338# Remember, the first character of IFS is used to create $*, 4339# except with old shells: 4340build_os=$* 4341IFS=$ac_save_IFS 4342case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4343 4344 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4346$as_echo_n "checking host system type... " >&6; } 4347if ${ac_cv_host+:} false; then : 4348 $as_echo_n "(cached) " >&6 4349else 4350 if test "x$host_alias" = x; then 4351 ac_cv_host=$ac_cv_build 4352else 4353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4355fi 4356 4357fi 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4359$as_echo "$ac_cv_host" >&6; } 4360case $ac_cv_host in 4361*-*-*) ;; 4362*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4363esac 4364host=$ac_cv_host 4365ac_save_IFS=$IFS; IFS='-' 4366set x $ac_cv_host 4367shift 4368host_cpu=$1 4369host_vendor=$2 4370shift; shift 4371# Remember, the first character of IFS is used to create $*, 4372# except with old shells: 4373host_os=$* 4374IFS=$ac_save_IFS 4375case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4376 4377 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4379$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4380if ${ac_cv_path_SED+:} false; then : 4381 $as_echo_n "(cached) " >&6 4382else 4383 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4384 for ac_i in 1 2 3 4 5 6 7; do 4385 ac_script="$ac_script$as_nl$ac_script" 4386 done 4387 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4388 { ac_script=; unset ac_script;} 4389 if test -z "$SED"; then 4390 ac_path_SED_found=false 4391 # Loop through the user's path and test for each of PROGNAME-LIST 4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4393for as_dir in $PATH 4394do 4395 IFS=$as_save_IFS 4396 test -z "$as_dir" && as_dir=. 4397 for ac_prog in sed gsed; do 4398 for ac_exec_ext in '' $ac_executable_extensions; do 4399 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4400 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4401# Check for GNU ac_path_SED and select it if it is found. 4402 # Check for GNU $ac_path_SED 4403case `"$ac_path_SED" --version 2>&1` in 4404*GNU*) 4405 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4406*) 4407 ac_count=0 4408 $as_echo_n 0123456789 >"conftest.in" 4409 while : 4410 do 4411 cat "conftest.in" "conftest.in" >"conftest.tmp" 4412 mv "conftest.tmp" "conftest.in" 4413 cp "conftest.in" "conftest.nl" 4414 $as_echo '' >> "conftest.nl" 4415 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4417 as_fn_arith $ac_count + 1 && ac_count=$as_val 4418 if test $ac_count -gt ${ac_path_SED_max-0}; then 4419 # Best one so far, save it but keep looking for a better one 4420 ac_cv_path_SED="$ac_path_SED" 4421 ac_path_SED_max=$ac_count 4422 fi 4423 # 10*(2^10) chars as input seems more than enough 4424 test $ac_count -gt 10 && break 4425 done 4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4427esac 4428 4429 $ac_path_SED_found && break 3 4430 done 4431 done 4432 done 4433IFS=$as_save_IFS 4434 if test -z "$ac_cv_path_SED"; then 4435 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4436 fi 4437else 4438 ac_cv_path_SED=$SED 4439fi 4440 4441fi 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4443$as_echo "$ac_cv_path_SED" >&6; } 4444 SED="$ac_cv_path_SED" 4445 rm -f conftest.sed 4446 4447 4448 4449 4450 4451 4452# Check whether --enable-selective-werror was given. 4453if test "${enable_selective_werror+set}" = set; then : 4454 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4455else 4456 SELECTIVE_WERROR=yes 4457fi 4458 4459 4460 4461 4462 4463# -v is too short to test reliably with XORG_TESTSET_CFLAG 4464if test "x$SUNCC" = "xyes"; then 4465 BASE_CFLAGS="-v" 4466else 4467 BASE_CFLAGS="" 4468fi 4469 4470# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484xorg_testset_save_CFLAGS="$CFLAGS" 4485 4486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4491 $as_echo_n "(cached) " >&6 4492else 4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4494/* end confdefs.h. */ 4495int i; 4496_ACEOF 4497if ac_fn_c_try_compile "$LINENO"; then : 4498 xorg_cv_cc_flag_unknown_warning_option=yes 4499else 4500 xorg_cv_cc_flag_unknown_warning_option=no 4501fi 4502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4503fi 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4507 CFLAGS="$xorg_testset_save_CFLAGS" 4508fi 4509 4510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4513 fi 4514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4518 $as_echo_n "(cached) " >&6 4519else 4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4521/* end confdefs.h. */ 4522int i; 4523_ACEOF 4524if ac_fn_c_try_compile "$LINENO"; then : 4525 xorg_cv_cc_flag_unused_command_line_argument=yes 4526else 4527 xorg_cv_cc_flag_unused_command_line_argument=no 4528fi 4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4530fi 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4534 CFLAGS="$xorg_testset_save_CFLAGS" 4535fi 4536 4537found="no" 4538 4539 if test $found = "no" ; then 4540 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4542 fi 4543 4544 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4546 fi 4547 4548 CFLAGS="$CFLAGS -Wall" 4549 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4551$as_echo_n "checking if $CC supports -Wall... " >&6; } 4552 cacheid=xorg_cv_cc_flag__Wall 4553 if eval \${$cacheid+:} false; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4557/* end confdefs.h. */ 4558int i; 4559int 4560main () 4561{ 4562 4563 ; 4564 return 0; 4565} 4566_ACEOF 4567if ac_fn_c_try_link "$LINENO"; then : 4568 eval $cacheid=yes 4569else 4570 eval $cacheid=no 4571fi 4572rm -f core conftest.err conftest.$ac_objext \ 4573 conftest$ac_exeext conftest.$ac_ext 4574fi 4575 4576 4577 CFLAGS="$xorg_testset_save_CFLAGS" 4578 4579 eval supported=\$$cacheid 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4581$as_echo "$supported" >&6; } 4582 if test "$supported" = "yes" ; then 4583 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4584 found="yes" 4585 fi 4586 fi 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602xorg_testset_save_CFLAGS="$CFLAGS" 4603 4604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612/* end confdefs.h. */ 4613int i; 4614_ACEOF 4615if ac_fn_c_try_compile "$LINENO"; then : 4616 xorg_cv_cc_flag_unknown_warning_option=yes 4617else 4618 xorg_cv_cc_flag_unknown_warning_option=no 4619fi 4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4621fi 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4625 CFLAGS="$xorg_testset_save_CFLAGS" 4626fi 4627 4628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4631 fi 4632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4636 $as_echo_n "(cached) " >&6 4637else 4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4639/* end confdefs.h. */ 4640int i; 4641_ACEOF 4642if ac_fn_c_try_compile "$LINENO"; then : 4643 xorg_cv_cc_flag_unused_command_line_argument=yes 4644else 4645 xorg_cv_cc_flag_unused_command_line_argument=no 4646fi 4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4652 CFLAGS="$xorg_testset_save_CFLAGS" 4653fi 4654 4655found="no" 4656 4657 if test $found = "no" ; then 4658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4660 fi 4661 4662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4664 fi 4665 4666 CFLAGS="$CFLAGS -Wpointer-arith" 4667 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4669$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4670 cacheid=xorg_cv_cc_flag__Wpointer_arith 4671 if eval \${$cacheid+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4675/* end confdefs.h. */ 4676int i; 4677int 4678main () 4679{ 4680 4681 ; 4682 return 0; 4683} 4684_ACEOF 4685if ac_fn_c_try_link "$LINENO"; then : 4686 eval $cacheid=yes 4687else 4688 eval $cacheid=no 4689fi 4690rm -f core conftest.err conftest.$ac_objext \ 4691 conftest$ac_exeext conftest.$ac_ext 4692fi 4693 4694 4695 CFLAGS="$xorg_testset_save_CFLAGS" 4696 4697 eval supported=\$$cacheid 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4699$as_echo "$supported" >&6; } 4700 if test "$supported" = "yes" ; then 4701 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4702 found="yes" 4703 fi 4704 fi 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720xorg_testset_save_CFLAGS="$CFLAGS" 4721 4722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4730/* end confdefs.h. */ 4731int i; 4732_ACEOF 4733if ac_fn_c_try_compile "$LINENO"; then : 4734 xorg_cv_cc_flag_unknown_warning_option=yes 4735else 4736 xorg_cv_cc_flag_unknown_warning_option=no 4737fi 4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4739fi 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4743 CFLAGS="$xorg_testset_save_CFLAGS" 4744fi 4745 4746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4749 fi 4750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4754 $as_echo_n "(cached) " >&6 4755else 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758int i; 4759_ACEOF 4760if ac_fn_c_try_compile "$LINENO"; then : 4761 xorg_cv_cc_flag_unused_command_line_argument=yes 4762else 4763 xorg_cv_cc_flag_unused_command_line_argument=no 4764fi 4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4766fi 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4770 CFLAGS="$xorg_testset_save_CFLAGS" 4771fi 4772 4773found="no" 4774 4775 if test $found = "no" ; then 4776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4778 fi 4779 4780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4782 fi 4783 4784 CFLAGS="$CFLAGS -Wmissing-declarations" 4785 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4787$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4788 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4789 if eval \${$cacheid+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4793/* end confdefs.h. */ 4794int i; 4795int 4796main () 4797{ 4798 4799 ; 4800 return 0; 4801} 4802_ACEOF 4803if ac_fn_c_try_link "$LINENO"; then : 4804 eval $cacheid=yes 4805else 4806 eval $cacheid=no 4807fi 4808rm -f core conftest.err conftest.$ac_objext \ 4809 conftest$ac_exeext conftest.$ac_ext 4810fi 4811 4812 4813 CFLAGS="$xorg_testset_save_CFLAGS" 4814 4815 eval supported=\$$cacheid 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4817$as_echo "$supported" >&6; } 4818 if test "$supported" = "yes" ; then 4819 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4820 found="yes" 4821 fi 4822 fi 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838xorg_testset_save_CFLAGS="$CFLAGS" 4839 4840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849int i; 4850_ACEOF 4851if ac_fn_c_try_compile "$LINENO"; then : 4852 xorg_cv_cc_flag_unknown_warning_option=yes 4853else 4854 xorg_cv_cc_flag_unknown_warning_option=no 4855fi 4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4857fi 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4861 CFLAGS="$xorg_testset_save_CFLAGS" 4862fi 4863 4864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4867 fi 4868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4875/* end confdefs.h. */ 4876int i; 4877_ACEOF 4878if ac_fn_c_try_compile "$LINENO"; then : 4879 xorg_cv_cc_flag_unused_command_line_argument=yes 4880else 4881 xorg_cv_cc_flag_unused_command_line_argument=no 4882fi 4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4884fi 4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4888 CFLAGS="$xorg_testset_save_CFLAGS" 4889fi 4890 4891found="no" 4892 4893 if test $found = "no" ; then 4894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4896 fi 4897 4898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4900 fi 4901 4902 CFLAGS="$CFLAGS -Wformat=2" 4903 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4905$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4906 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 4907 if eval \${$cacheid+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909else 4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4911/* end confdefs.h. */ 4912int i; 4913int 4914main () 4915{ 4916 4917 ; 4918 return 0; 4919} 4920_ACEOF 4921if ac_fn_c_try_link "$LINENO"; then : 4922 eval $cacheid=yes 4923else 4924 eval $cacheid=no 4925fi 4926rm -f core conftest.err conftest.$ac_objext \ 4927 conftest$ac_exeext conftest.$ac_ext 4928fi 4929 4930 4931 CFLAGS="$xorg_testset_save_CFLAGS" 4932 4933 eval supported=\$$cacheid 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4935$as_echo "$supported" >&6; } 4936 if test "$supported" = "yes" ; then 4937 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4938 found="yes" 4939 fi 4940 fi 4941 4942 if test $found = "no" ; then 4943 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4945 fi 4946 4947 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4949 fi 4950 4951 CFLAGS="$CFLAGS -Wformat" 4952 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4954$as_echo_n "checking if $CC supports -Wformat... " >&6; } 4955 cacheid=xorg_cv_cc_flag__Wformat 4956 if eval \${$cacheid+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4960/* end confdefs.h. */ 4961int i; 4962int 4963main () 4964{ 4965 4966 ; 4967 return 0; 4968} 4969_ACEOF 4970if ac_fn_c_try_link "$LINENO"; then : 4971 eval $cacheid=yes 4972else 4973 eval $cacheid=no 4974fi 4975rm -f core conftest.err conftest.$ac_objext \ 4976 conftest$ac_exeext conftest.$ac_ext 4977fi 4978 4979 4980 CFLAGS="$xorg_testset_save_CFLAGS" 4981 4982 eval supported=\$$cacheid 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4984$as_echo "$supported" >&6; } 4985 if test "$supported" = "yes" ; then 4986 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4987 found="yes" 4988 fi 4989 fi 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007xorg_testset_save_CFLAGS="$CFLAGS" 5008 5009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5017/* end confdefs.h. */ 5018int i; 5019_ACEOF 5020if ac_fn_c_try_compile "$LINENO"; then : 5021 xorg_cv_cc_flag_unknown_warning_option=yes 5022else 5023 xorg_cv_cc_flag_unknown_warning_option=no 5024fi 5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5026fi 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5030 CFLAGS="$xorg_testset_save_CFLAGS" 5031fi 5032 5033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5036 fi 5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044/* end confdefs.h. */ 5045int i; 5046_ACEOF 5047if ac_fn_c_try_compile "$LINENO"; then : 5048 xorg_cv_cc_flag_unused_command_line_argument=yes 5049else 5050 xorg_cv_cc_flag_unused_command_line_argument=no 5051fi 5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5053fi 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5057 CFLAGS="$xorg_testset_save_CFLAGS" 5058fi 5059 5060found="no" 5061 5062 if test $found = "no" ; then 5063 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 fi 5066 5067 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5069 fi 5070 5071 CFLAGS="$CFLAGS -Wstrict-prototypes" 5072 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5074$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5075 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5076 if eval \${$cacheid+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081int i; 5082int 5083main () 5084{ 5085 5086 ; 5087 return 0; 5088} 5089_ACEOF 5090if ac_fn_c_try_link "$LINENO"; then : 5091 eval $cacheid=yes 5092else 5093 eval $cacheid=no 5094fi 5095rm -f core conftest.err conftest.$ac_objext \ 5096 conftest$ac_exeext conftest.$ac_ext 5097fi 5098 5099 5100 CFLAGS="$xorg_testset_save_CFLAGS" 5101 5102 eval supported=\$$cacheid 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5104$as_echo "$supported" >&6; } 5105 if test "$supported" = "yes" ; then 5106 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5107 found="yes" 5108 fi 5109 fi 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125xorg_testset_save_CFLAGS="$CFLAGS" 5126 5127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136int i; 5137_ACEOF 5138if ac_fn_c_try_compile "$LINENO"; then : 5139 xorg_cv_cc_flag_unknown_warning_option=yes 5140else 5141 xorg_cv_cc_flag_unknown_warning_option=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5144fi 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149fi 5150 5151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5154 fi 5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162/* end confdefs.h. */ 5163int i; 5164_ACEOF 5165if ac_fn_c_try_compile "$LINENO"; then : 5166 xorg_cv_cc_flag_unused_command_line_argument=yes 5167else 5168 xorg_cv_cc_flag_unused_command_line_argument=no 5169fi 5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5171fi 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5175 CFLAGS="$xorg_testset_save_CFLAGS" 5176fi 5177 5178found="no" 5179 5180 if test $found = "no" ; then 5181 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 fi 5184 5185 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5187 fi 5188 5189 CFLAGS="$CFLAGS -Wmissing-prototypes" 5190 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5192$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5193 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5194 if eval \${$cacheid+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199int i; 5200int 5201main () 5202{ 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_c_try_link "$LINENO"; then : 5209 eval $cacheid=yes 5210else 5211 eval $cacheid=no 5212fi 5213rm -f core conftest.err conftest.$ac_objext \ 5214 conftest$ac_exeext conftest.$ac_ext 5215fi 5216 5217 5218 CFLAGS="$xorg_testset_save_CFLAGS" 5219 5220 eval supported=\$$cacheid 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5222$as_echo "$supported" >&6; } 5223 if test "$supported" = "yes" ; then 5224 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5225 found="yes" 5226 fi 5227 fi 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243xorg_testset_save_CFLAGS="$CFLAGS" 5244 5245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251else 5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5253/* end confdefs.h. */ 5254int i; 5255_ACEOF 5256if ac_fn_c_try_compile "$LINENO"; then : 5257 xorg_cv_cc_flag_unknown_warning_option=yes 5258else 5259 xorg_cv_cc_flag_unknown_warning_option=no 5260fi 5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5262fi 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5266 CFLAGS="$xorg_testset_save_CFLAGS" 5267fi 5268 5269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5272 fi 5273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5280/* end confdefs.h. */ 5281int i; 5282_ACEOF 5283if ac_fn_c_try_compile "$LINENO"; then : 5284 xorg_cv_cc_flag_unused_command_line_argument=yes 5285else 5286 xorg_cv_cc_flag_unused_command_line_argument=no 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5289fi 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5293 CFLAGS="$xorg_testset_save_CFLAGS" 5294fi 5295 5296found="no" 5297 5298 if test $found = "no" ; then 5299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5301 fi 5302 5303 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5305 fi 5306 5307 CFLAGS="$CFLAGS -Wnested-externs" 5308 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5310$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5311 cacheid=xorg_cv_cc_flag__Wnested_externs 5312 if eval \${$cacheid+:} false; then : 5313 $as_echo_n "(cached) " >&6 5314else 5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316/* end confdefs.h. */ 5317int i; 5318int 5319main () 5320{ 5321 5322 ; 5323 return 0; 5324} 5325_ACEOF 5326if ac_fn_c_try_link "$LINENO"; then : 5327 eval $cacheid=yes 5328else 5329 eval $cacheid=no 5330fi 5331rm -f core conftest.err conftest.$ac_objext \ 5332 conftest$ac_exeext conftest.$ac_ext 5333fi 5334 5335 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337 5338 eval supported=\$$cacheid 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5340$as_echo "$supported" >&6; } 5341 if test "$supported" = "yes" ; then 5342 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5343 found="yes" 5344 fi 5345 fi 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361xorg_testset_save_CFLAGS="$CFLAGS" 5362 5363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5368 $as_echo_n "(cached) " >&6 5369else 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372int i; 5373_ACEOF 5374if ac_fn_c_try_compile "$LINENO"; then : 5375 xorg_cv_cc_flag_unknown_warning_option=yes 5376else 5377 xorg_cv_cc_flag_unknown_warning_option=no 5378fi 5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5380fi 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5384 CFLAGS="$xorg_testset_save_CFLAGS" 5385fi 5386 5387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5390 fi 5391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396else 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5398/* end confdefs.h. */ 5399int i; 5400_ACEOF 5401if ac_fn_c_try_compile "$LINENO"; then : 5402 xorg_cv_cc_flag_unused_command_line_argument=yes 5403else 5404 xorg_cv_cc_flag_unused_command_line_argument=no 5405fi 5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5407fi 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5411 CFLAGS="$xorg_testset_save_CFLAGS" 5412fi 5413 5414found="no" 5415 5416 if test $found = "no" ; then 5417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5419 fi 5420 5421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5423 fi 5424 5425 CFLAGS="$CFLAGS -Wbad-function-cast" 5426 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5428$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5429 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5430 if eval \${$cacheid+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432else 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435int i; 5436int 5437main () 5438{ 5439 5440 ; 5441 return 0; 5442} 5443_ACEOF 5444if ac_fn_c_try_link "$LINENO"; then : 5445 eval $cacheid=yes 5446else 5447 eval $cacheid=no 5448fi 5449rm -f core conftest.err conftest.$ac_objext \ 5450 conftest$ac_exeext conftest.$ac_ext 5451fi 5452 5453 5454 CFLAGS="$xorg_testset_save_CFLAGS" 5455 5456 eval supported=\$$cacheid 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5458$as_echo "$supported" >&6; } 5459 if test "$supported" = "yes" ; then 5460 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5461 found="yes" 5462 fi 5463 fi 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479xorg_testset_save_CFLAGS="$CFLAGS" 5480 5481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5489/* end confdefs.h. */ 5490int i; 5491_ACEOF 5492if ac_fn_c_try_compile "$LINENO"; then : 5493 xorg_cv_cc_flag_unknown_warning_option=yes 5494else 5495 xorg_cv_cc_flag_unknown_warning_option=no 5496fi 5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5498fi 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5502 CFLAGS="$xorg_testset_save_CFLAGS" 5503fi 5504 5505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5508 fi 5509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5513 $as_echo_n "(cached) " >&6 5514else 5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5516/* end confdefs.h. */ 5517int i; 5518_ACEOF 5519if ac_fn_c_try_compile "$LINENO"; then : 5520 xorg_cv_cc_flag_unused_command_line_argument=yes 5521else 5522 xorg_cv_cc_flag_unused_command_line_argument=no 5523fi 5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5525fi 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5529 CFLAGS="$xorg_testset_save_CFLAGS" 5530fi 5531 5532found="no" 5533 5534 if test $found = "no" ; then 5535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5537 fi 5538 5539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5541 fi 5542 5543 CFLAGS="$CFLAGS -Wold-style-definition" 5544 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5546$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5547 cacheid=xorg_cv_cc_flag__Wold_style_definition 5548 if eval \${$cacheid+:} false; then : 5549 $as_echo_n "(cached) " >&6 5550else 5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552/* end confdefs.h. */ 5553int i; 5554int 5555main () 5556{ 5557 5558 ; 5559 return 0; 5560} 5561_ACEOF 5562if ac_fn_c_try_link "$LINENO"; then : 5563 eval $cacheid=yes 5564else 5565 eval $cacheid=no 5566fi 5567rm -f core conftest.err conftest.$ac_objext \ 5568 conftest$ac_exeext conftest.$ac_ext 5569fi 5570 5571 5572 CFLAGS="$xorg_testset_save_CFLAGS" 5573 5574 eval supported=\$$cacheid 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5576$as_echo "$supported" >&6; } 5577 if test "$supported" = "yes" ; then 5578 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5579 found="yes" 5580 fi 5581 fi 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597xorg_testset_save_CFLAGS="$CFLAGS" 5598 5599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5604 $as_echo_n "(cached) " >&6 5605else 5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608int i; 5609_ACEOF 5610if ac_fn_c_try_compile "$LINENO"; then : 5611 xorg_cv_cc_flag_unknown_warning_option=yes 5612else 5613 xorg_cv_cc_flag_unknown_warning_option=no 5614fi 5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5616fi 5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5620 CFLAGS="$xorg_testset_save_CFLAGS" 5621fi 5622 5623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5626 fi 5627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5634/* end confdefs.h. */ 5635int i; 5636_ACEOF 5637if ac_fn_c_try_compile "$LINENO"; then : 5638 xorg_cv_cc_flag_unused_command_line_argument=yes 5639else 5640 xorg_cv_cc_flag_unused_command_line_argument=no 5641fi 5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5643fi 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5647 CFLAGS="$xorg_testset_save_CFLAGS" 5648fi 5649 5650found="no" 5651 5652 if test $found = "no" ; then 5653 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5655 fi 5656 5657 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5659 fi 5660 5661 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5662 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5664$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5665 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5666 if eval \${$cacheid+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5670/* end confdefs.h. */ 5671int i; 5672int 5673main () 5674{ 5675 5676 ; 5677 return 0; 5678} 5679_ACEOF 5680if ac_fn_c_try_link "$LINENO"; then : 5681 eval $cacheid=yes 5682else 5683 eval $cacheid=no 5684fi 5685rm -f core conftest.err conftest.$ac_objext \ 5686 conftest$ac_exeext conftest.$ac_ext 5687fi 5688 5689 5690 CFLAGS="$xorg_testset_save_CFLAGS" 5691 5692 eval supported=\$$cacheid 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5694$as_echo "$supported" >&6; } 5695 if test "$supported" = "yes" ; then 5696 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5697 found="yes" 5698 fi 5699 fi 5700 5701 5702 5703 5704 5705# This chunk adds additional warnings that could catch undesired effects. 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719xorg_testset_save_CFLAGS="$CFLAGS" 5720 5721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5729/* end confdefs.h. */ 5730int i; 5731_ACEOF 5732if ac_fn_c_try_compile "$LINENO"; then : 5733 xorg_cv_cc_flag_unknown_warning_option=yes 5734else 5735 xorg_cv_cc_flag_unknown_warning_option=no 5736fi 5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5738fi 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5742 CFLAGS="$xorg_testset_save_CFLAGS" 5743fi 5744 5745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5748 fi 5749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5756/* end confdefs.h. */ 5757int i; 5758_ACEOF 5759if ac_fn_c_try_compile "$LINENO"; then : 5760 xorg_cv_cc_flag_unused_command_line_argument=yes 5761else 5762 xorg_cv_cc_flag_unused_command_line_argument=no 5763fi 5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5765fi 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5769 CFLAGS="$xorg_testset_save_CFLAGS" 5770fi 5771 5772found="no" 5773 5774 if test $found = "no" ; then 5775 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5777 fi 5778 5779 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5781 fi 5782 5783 CFLAGS="$CFLAGS -Wunused" 5784 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5786$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5787 cacheid=xorg_cv_cc_flag__Wunused 5788 if eval \${$cacheid+:} false; then : 5789 $as_echo_n "(cached) " >&6 5790else 5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5792/* end confdefs.h. */ 5793int i; 5794int 5795main () 5796{ 5797 5798 ; 5799 return 0; 5800} 5801_ACEOF 5802if ac_fn_c_try_link "$LINENO"; then : 5803 eval $cacheid=yes 5804else 5805 eval $cacheid=no 5806fi 5807rm -f core conftest.err conftest.$ac_objext \ 5808 conftest$ac_exeext conftest.$ac_ext 5809fi 5810 5811 5812 CFLAGS="$xorg_testset_save_CFLAGS" 5813 5814 eval supported=\$$cacheid 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5816$as_echo "$supported" >&6; } 5817 if test "$supported" = "yes" ; then 5818 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5819 found="yes" 5820 fi 5821 fi 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837xorg_testset_save_CFLAGS="$CFLAGS" 5838 5839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5844 $as_echo_n "(cached) " >&6 5845else 5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5847/* end confdefs.h. */ 5848int i; 5849_ACEOF 5850if ac_fn_c_try_compile "$LINENO"; then : 5851 xorg_cv_cc_flag_unknown_warning_option=yes 5852else 5853 xorg_cv_cc_flag_unknown_warning_option=no 5854fi 5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5856fi 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5860 CFLAGS="$xorg_testset_save_CFLAGS" 5861fi 5862 5863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5866 fi 5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874/* end confdefs.h. */ 5875int i; 5876_ACEOF 5877if ac_fn_c_try_compile "$LINENO"; then : 5878 xorg_cv_cc_flag_unused_command_line_argument=yes 5879else 5880 xorg_cv_cc_flag_unused_command_line_argument=no 5881fi 5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5883fi 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5887 CFLAGS="$xorg_testset_save_CFLAGS" 5888fi 5889 5890found="no" 5891 5892 if test $found = "no" ; then 5893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5895 fi 5896 5897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5899 fi 5900 5901 CFLAGS="$CFLAGS -Wuninitialized" 5902 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5904$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5905 cacheid=xorg_cv_cc_flag__Wuninitialized 5906 if eval \${$cacheid+:} false; then : 5907 $as_echo_n "(cached) " >&6 5908else 5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5910/* end confdefs.h. */ 5911int i; 5912int 5913main () 5914{ 5915 5916 ; 5917 return 0; 5918} 5919_ACEOF 5920if ac_fn_c_try_link "$LINENO"; then : 5921 eval $cacheid=yes 5922else 5923 eval $cacheid=no 5924fi 5925rm -f core conftest.err conftest.$ac_objext \ 5926 conftest$ac_exeext conftest.$ac_ext 5927fi 5928 5929 5930 CFLAGS="$xorg_testset_save_CFLAGS" 5931 5932 eval supported=\$$cacheid 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5934$as_echo "$supported" >&6; } 5935 if test "$supported" = "yes" ; then 5936 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5937 found="yes" 5938 fi 5939 fi 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955xorg_testset_save_CFLAGS="$CFLAGS" 5956 5957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5962 $as_echo_n "(cached) " >&6 5963else 5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965/* end confdefs.h. */ 5966int i; 5967_ACEOF 5968if ac_fn_c_try_compile "$LINENO"; then : 5969 xorg_cv_cc_flag_unknown_warning_option=yes 5970else 5971 xorg_cv_cc_flag_unknown_warning_option=no 5972fi 5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5974fi 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5978 CFLAGS="$xorg_testset_save_CFLAGS" 5979fi 5980 5981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5984 fi 5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5992/* end confdefs.h. */ 5993int i; 5994_ACEOF 5995if ac_fn_c_try_compile "$LINENO"; then : 5996 xorg_cv_cc_flag_unused_command_line_argument=yes 5997else 5998 xorg_cv_cc_flag_unused_command_line_argument=no 5999fi 6000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6001fi 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6005 CFLAGS="$xorg_testset_save_CFLAGS" 6006fi 6007 6008found="no" 6009 6010 if test $found = "no" ; then 6011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6013 fi 6014 6015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6017 fi 6018 6019 CFLAGS="$CFLAGS -Wshadow" 6020 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6022$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6023 cacheid=xorg_cv_cc_flag__Wshadow 6024 if eval \${$cacheid+:} false; then : 6025 $as_echo_n "(cached) " >&6 6026else 6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6028/* end confdefs.h. */ 6029int i; 6030int 6031main () 6032{ 6033 6034 ; 6035 return 0; 6036} 6037_ACEOF 6038if ac_fn_c_try_link "$LINENO"; then : 6039 eval $cacheid=yes 6040else 6041 eval $cacheid=no 6042fi 6043rm -f core conftest.err conftest.$ac_objext \ 6044 conftest$ac_exeext conftest.$ac_ext 6045fi 6046 6047 6048 CFLAGS="$xorg_testset_save_CFLAGS" 6049 6050 eval supported=\$$cacheid 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6052$as_echo "$supported" >&6; } 6053 if test "$supported" = "yes" ; then 6054 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6055 found="yes" 6056 fi 6057 fi 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073xorg_testset_save_CFLAGS="$CFLAGS" 6074 6075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084int i; 6085_ACEOF 6086if ac_fn_c_try_compile "$LINENO"; then : 6087 xorg_cv_cc_flag_unknown_warning_option=yes 6088else 6089 xorg_cv_cc_flag_unknown_warning_option=no 6090fi 6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6092fi 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6096 CFLAGS="$xorg_testset_save_CFLAGS" 6097fi 6098 6099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 fi 6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6107 $as_echo_n "(cached) " >&6 6108else 6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110/* end confdefs.h. */ 6111int i; 6112_ACEOF 6113if ac_fn_c_try_compile "$LINENO"; then : 6114 xorg_cv_cc_flag_unused_command_line_argument=yes 6115else 6116 xorg_cv_cc_flag_unused_command_line_argument=no 6117fi 6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6119fi 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6123 CFLAGS="$xorg_testset_save_CFLAGS" 6124fi 6125 6126found="no" 6127 6128 if test $found = "no" ; then 6129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6131 fi 6132 6133 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6135 fi 6136 6137 CFLAGS="$CFLAGS -Wcast-qual" 6138 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6140$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6141 cacheid=xorg_cv_cc_flag__Wcast_qual 6142 if eval \${$cacheid+:} false; then : 6143 $as_echo_n "(cached) " >&6 6144else 6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6146/* end confdefs.h. */ 6147int i; 6148int 6149main () 6150{ 6151 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156if ac_fn_c_try_link "$LINENO"; then : 6157 eval $cacheid=yes 6158else 6159 eval $cacheid=no 6160fi 6161rm -f core conftest.err conftest.$ac_objext \ 6162 conftest$ac_exeext conftest.$ac_ext 6163fi 6164 6165 6166 CFLAGS="$xorg_testset_save_CFLAGS" 6167 6168 eval supported=\$$cacheid 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6170$as_echo "$supported" >&6; } 6171 if test "$supported" = "yes" ; then 6172 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6173 found="yes" 6174 fi 6175 fi 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191xorg_testset_save_CFLAGS="$CFLAGS" 6192 6193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201/* end confdefs.h. */ 6202int i; 6203_ACEOF 6204if ac_fn_c_try_compile "$LINENO"; then : 6205 xorg_cv_cc_flag_unknown_warning_option=yes 6206else 6207 xorg_cv_cc_flag_unknown_warning_option=no 6208fi 6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6210fi 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6214 CFLAGS="$xorg_testset_save_CFLAGS" 6215fi 6216 6217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 fi 6221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6225 $as_echo_n "(cached) " >&6 6226else 6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6228/* end confdefs.h. */ 6229int i; 6230_ACEOF 6231if ac_fn_c_try_compile "$LINENO"; then : 6232 xorg_cv_cc_flag_unused_command_line_argument=yes 6233else 6234 xorg_cv_cc_flag_unused_command_line_argument=no 6235fi 6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6237fi 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242fi 6243 6244found="no" 6245 6246 if test $found = "no" ; then 6247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 fi 6250 6251 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6253 fi 6254 6255 CFLAGS="$CFLAGS -Wmissing-noreturn" 6256 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6258$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6259 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6260 if eval \${$cacheid+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262else 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265int i; 6266int 6267main () 6268{ 6269 6270 ; 6271 return 0; 6272} 6273_ACEOF 6274if ac_fn_c_try_link "$LINENO"; then : 6275 eval $cacheid=yes 6276else 6277 eval $cacheid=no 6278fi 6279rm -f core conftest.err conftest.$ac_objext \ 6280 conftest$ac_exeext conftest.$ac_ext 6281fi 6282 6283 6284 CFLAGS="$xorg_testset_save_CFLAGS" 6285 6286 eval supported=\$$cacheid 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6288$as_echo "$supported" >&6; } 6289 if test "$supported" = "yes" ; then 6290 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6291 found="yes" 6292 fi 6293 fi 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309xorg_testset_save_CFLAGS="$CFLAGS" 6310 6311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317else 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319/* end confdefs.h. */ 6320int i; 6321_ACEOF 6322if ac_fn_c_try_compile "$LINENO"; then : 6323 xorg_cv_cc_flag_unknown_warning_option=yes 6324else 6325 xorg_cv_cc_flag_unknown_warning_option=no 6326fi 6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6328fi 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6332 CFLAGS="$xorg_testset_save_CFLAGS" 6333fi 6334 6335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6338 fi 6339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6343 $as_echo_n "(cached) " >&6 6344else 6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346/* end confdefs.h. */ 6347int i; 6348_ACEOF 6349if ac_fn_c_try_compile "$LINENO"; then : 6350 xorg_cv_cc_flag_unused_command_line_argument=yes 6351else 6352 xorg_cv_cc_flag_unused_command_line_argument=no 6353fi 6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6355fi 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360fi 6361 6362found="no" 6363 6364 if test $found = "no" ; then 6365 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 fi 6368 6369 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6371 fi 6372 6373 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6374 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6376$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6377 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6378 if eval \${$cacheid+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382/* end confdefs.h. */ 6383int i; 6384int 6385main () 6386{ 6387 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392if ac_fn_c_try_link "$LINENO"; then : 6393 eval $cacheid=yes 6394else 6395 eval $cacheid=no 6396fi 6397rm -f core conftest.err conftest.$ac_objext \ 6398 conftest$ac_exeext conftest.$ac_ext 6399fi 6400 6401 6402 CFLAGS="$xorg_testset_save_CFLAGS" 6403 6404 eval supported=\$$cacheid 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6406$as_echo "$supported" >&6; } 6407 if test "$supported" = "yes" ; then 6408 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6409 found="yes" 6410 fi 6411 fi 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427xorg_testset_save_CFLAGS="$CFLAGS" 6428 6429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438int i; 6439_ACEOF 6440if ac_fn_c_try_compile "$LINENO"; then : 6441 xorg_cv_cc_flag_unknown_warning_option=yes 6442else 6443 xorg_cv_cc_flag_unknown_warning_option=no 6444fi 6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6446fi 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6450 CFLAGS="$xorg_testset_save_CFLAGS" 6451fi 6452 6453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6456 fi 6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6461 $as_echo_n "(cached) " >&6 6462else 6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464/* end confdefs.h. */ 6465int i; 6466_ACEOF 6467if ac_fn_c_try_compile "$LINENO"; then : 6468 xorg_cv_cc_flag_unused_command_line_argument=yes 6469else 6470 xorg_cv_cc_flag_unused_command_line_argument=no 6471fi 6472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6473fi 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6477 CFLAGS="$xorg_testset_save_CFLAGS" 6478fi 6479 6480found="no" 6481 6482 if test $found = "no" ; then 6483 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 fi 6486 6487 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6489 fi 6490 6491 CFLAGS="$CFLAGS -Wredundant-decls" 6492 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6494$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6495 cacheid=xorg_cv_cc_flag__Wredundant_decls 6496 if eval \${$cacheid+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6500/* end confdefs.h. */ 6501int i; 6502int 6503main () 6504{ 6505 6506 ; 6507 return 0; 6508} 6509_ACEOF 6510if ac_fn_c_try_link "$LINENO"; then : 6511 eval $cacheid=yes 6512else 6513 eval $cacheid=no 6514fi 6515rm -f core conftest.err conftest.$ac_objext \ 6516 conftest$ac_exeext conftest.$ac_ext 6517fi 6518 6519 6520 CFLAGS="$xorg_testset_save_CFLAGS" 6521 6522 eval supported=\$$cacheid 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6524$as_echo "$supported" >&6; } 6525 if test "$supported" = "yes" ; then 6526 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6527 found="yes" 6528 fi 6529 fi 6530 6531 6532 6533# These are currently disabled because they are noisy. They will be enabled 6534# in the future once the codebase is sufficiently modernized to silence 6535# them. For now, I don't want them to drown out the other warnings. 6536# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6537# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6538# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6539 6540# Turn some warnings into errors, so we don't accidently get successful builds 6541# when there are problems that should be fixed. 6542 6543if test "x$SELECTIVE_WERROR" = "xyes" ; then 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557xorg_testset_save_CFLAGS="$CFLAGS" 6558 6559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6564 $as_echo_n "(cached) " >&6 6565else 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567/* end confdefs.h. */ 6568int i; 6569_ACEOF 6570if ac_fn_c_try_compile "$LINENO"; then : 6571 xorg_cv_cc_flag_unknown_warning_option=yes 6572else 6573 xorg_cv_cc_flag_unknown_warning_option=no 6574fi 6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6576fi 6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6580 CFLAGS="$xorg_testset_save_CFLAGS" 6581fi 6582 6583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6586 fi 6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6594/* end confdefs.h. */ 6595int i; 6596_ACEOF 6597if ac_fn_c_try_compile "$LINENO"; then : 6598 xorg_cv_cc_flag_unused_command_line_argument=yes 6599else 6600 xorg_cv_cc_flag_unused_command_line_argument=no 6601fi 6602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6603fi 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6607 CFLAGS="$xorg_testset_save_CFLAGS" 6608fi 6609 6610found="no" 6611 6612 if test $found = "no" ; then 6613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6615 fi 6616 6617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6619 fi 6620 6621 CFLAGS="$CFLAGS -Werror=implicit" 6622 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6624$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6625 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6626 if eval \${$cacheid+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6630/* end confdefs.h. */ 6631int i; 6632int 6633main () 6634{ 6635 6636 ; 6637 return 0; 6638} 6639_ACEOF 6640if ac_fn_c_try_link "$LINENO"; then : 6641 eval $cacheid=yes 6642else 6643 eval $cacheid=no 6644fi 6645rm -f core conftest.err conftest.$ac_objext \ 6646 conftest$ac_exeext conftest.$ac_ext 6647fi 6648 6649 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651 6652 eval supported=\$$cacheid 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6654$as_echo "$supported" >&6; } 6655 if test "$supported" = "yes" ; then 6656 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6657 found="yes" 6658 fi 6659 fi 6660 6661 if test $found = "no" ; then 6662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6664 fi 6665 6666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6668 fi 6669 6670 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6671 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6673$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6674 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6675 if eval \${$cacheid+:} false; then : 6676 $as_echo_n "(cached) " >&6 6677else 6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6679/* end confdefs.h. */ 6680int i; 6681int 6682main () 6683{ 6684 6685 ; 6686 return 0; 6687} 6688_ACEOF 6689if ac_fn_c_try_link "$LINENO"; then : 6690 eval $cacheid=yes 6691else 6692 eval $cacheid=no 6693fi 6694rm -f core conftest.err conftest.$ac_objext \ 6695 conftest$ac_exeext conftest.$ac_ext 6696fi 6697 6698 6699 CFLAGS="$xorg_testset_save_CFLAGS" 6700 6701 eval supported=\$$cacheid 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6703$as_echo "$supported" >&6; } 6704 if test "$supported" = "yes" ; then 6705 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6706 found="yes" 6707 fi 6708 fi 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724xorg_testset_save_CFLAGS="$CFLAGS" 6725 6726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6731 $as_echo_n "(cached) " >&6 6732else 6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6734/* end confdefs.h. */ 6735int i; 6736_ACEOF 6737if ac_fn_c_try_compile "$LINENO"; then : 6738 xorg_cv_cc_flag_unknown_warning_option=yes 6739else 6740 xorg_cv_cc_flag_unknown_warning_option=no 6741fi 6742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6743fi 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6747 CFLAGS="$xorg_testset_save_CFLAGS" 6748fi 6749 6750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6753 fi 6754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6758 $as_echo_n "(cached) " >&6 6759else 6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6761/* end confdefs.h. */ 6762int i; 6763_ACEOF 6764if ac_fn_c_try_compile "$LINENO"; then : 6765 xorg_cv_cc_flag_unused_command_line_argument=yes 6766else 6767 xorg_cv_cc_flag_unused_command_line_argument=no 6768fi 6769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6770fi 6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6774 CFLAGS="$xorg_testset_save_CFLAGS" 6775fi 6776 6777found="no" 6778 6779 if test $found = "no" ; then 6780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782 fi 6783 6784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6786 fi 6787 6788 CFLAGS="$CFLAGS -Werror=nonnull" 6789 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6791$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6792 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6793 if eval \${$cacheid+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797/* end confdefs.h. */ 6798int i; 6799int 6800main () 6801{ 6802 6803 ; 6804 return 0; 6805} 6806_ACEOF 6807if ac_fn_c_try_link "$LINENO"; then : 6808 eval $cacheid=yes 6809else 6810 eval $cacheid=no 6811fi 6812rm -f core conftest.err conftest.$ac_objext \ 6813 conftest$ac_exeext conftest.$ac_ext 6814fi 6815 6816 6817 CFLAGS="$xorg_testset_save_CFLAGS" 6818 6819 eval supported=\$$cacheid 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6821$as_echo "$supported" >&6; } 6822 if test "$supported" = "yes" ; then 6823 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6824 found="yes" 6825 fi 6826 fi 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842xorg_testset_save_CFLAGS="$CFLAGS" 6843 6844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852/* end confdefs.h. */ 6853int i; 6854_ACEOF 6855if ac_fn_c_try_compile "$LINENO"; then : 6856 xorg_cv_cc_flag_unknown_warning_option=yes 6857else 6858 xorg_cv_cc_flag_unknown_warning_option=no 6859fi 6860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6861fi 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6865 CFLAGS="$xorg_testset_save_CFLAGS" 6866fi 6867 6868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6871 fi 6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6876 $as_echo_n "(cached) " >&6 6877else 6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6879/* end confdefs.h. */ 6880int i; 6881_ACEOF 6882if ac_fn_c_try_compile "$LINENO"; then : 6883 xorg_cv_cc_flag_unused_command_line_argument=yes 6884else 6885 xorg_cv_cc_flag_unused_command_line_argument=no 6886fi 6887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6888fi 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6892 CFLAGS="$xorg_testset_save_CFLAGS" 6893fi 6894 6895found="no" 6896 6897 if test $found = "no" ; then 6898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6900 fi 6901 6902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6904 fi 6905 6906 CFLAGS="$CFLAGS -Werror=init-self" 6907 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6909$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6910 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 6911 if eval \${$cacheid+:} false; then : 6912 $as_echo_n "(cached) " >&6 6913else 6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6915/* end confdefs.h. */ 6916int i; 6917int 6918main () 6919{ 6920 6921 ; 6922 return 0; 6923} 6924_ACEOF 6925if ac_fn_c_try_link "$LINENO"; then : 6926 eval $cacheid=yes 6927else 6928 eval $cacheid=no 6929fi 6930rm -f core conftest.err conftest.$ac_objext \ 6931 conftest$ac_exeext conftest.$ac_ext 6932fi 6933 6934 6935 CFLAGS="$xorg_testset_save_CFLAGS" 6936 6937 eval supported=\$$cacheid 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6939$as_echo "$supported" >&6; } 6940 if test "$supported" = "yes" ; then 6941 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6942 found="yes" 6943 fi 6944 fi 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960xorg_testset_save_CFLAGS="$CFLAGS" 6961 6962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970/* end confdefs.h. */ 6971int i; 6972_ACEOF 6973if ac_fn_c_try_compile "$LINENO"; then : 6974 xorg_cv_cc_flag_unknown_warning_option=yes 6975else 6976 xorg_cv_cc_flag_unknown_warning_option=no 6977fi 6978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6979fi 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6983 CFLAGS="$xorg_testset_save_CFLAGS" 6984fi 6985 6986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 fi 6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6997/* end confdefs.h. */ 6998int i; 6999_ACEOF 7000if ac_fn_c_try_compile "$LINENO"; then : 7001 xorg_cv_cc_flag_unused_command_line_argument=yes 7002else 7003 xorg_cv_cc_flag_unused_command_line_argument=no 7004fi 7005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7006fi 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7010 CFLAGS="$xorg_testset_save_CFLAGS" 7011fi 7012 7013found="no" 7014 7015 if test $found = "no" ; then 7016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7018 fi 7019 7020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7022 fi 7023 7024 CFLAGS="$CFLAGS -Werror=main" 7025 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7027$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7028 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7029 if eval \${$cacheid+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031else 7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7033/* end confdefs.h. */ 7034int i; 7035int 7036main () 7037{ 7038 7039 ; 7040 return 0; 7041} 7042_ACEOF 7043if ac_fn_c_try_link "$LINENO"; then : 7044 eval $cacheid=yes 7045else 7046 eval $cacheid=no 7047fi 7048rm -f core conftest.err conftest.$ac_objext \ 7049 conftest$ac_exeext conftest.$ac_ext 7050fi 7051 7052 7053 CFLAGS="$xorg_testset_save_CFLAGS" 7054 7055 eval supported=\$$cacheid 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7057$as_echo "$supported" >&6; } 7058 if test "$supported" = "yes" ; then 7059 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7060 found="yes" 7061 fi 7062 fi 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078xorg_testset_save_CFLAGS="$CFLAGS" 7079 7080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089int i; 7090_ACEOF 7091if ac_fn_c_try_compile "$LINENO"; then : 7092 xorg_cv_cc_flag_unknown_warning_option=yes 7093else 7094 xorg_cv_cc_flag_unknown_warning_option=no 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7097fi 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102fi 7103 7104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7107 fi 7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7112 $as_echo_n "(cached) " >&6 7113else 7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7115/* end confdefs.h. */ 7116int i; 7117_ACEOF 7118if ac_fn_c_try_compile "$LINENO"; then : 7119 xorg_cv_cc_flag_unused_command_line_argument=yes 7120else 7121 xorg_cv_cc_flag_unused_command_line_argument=no 7122fi 7123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7124fi 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7128 CFLAGS="$xorg_testset_save_CFLAGS" 7129fi 7130 7131found="no" 7132 7133 if test $found = "no" ; then 7134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7136 fi 7137 7138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7140 fi 7141 7142 CFLAGS="$CFLAGS -Werror=missing-braces" 7143 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7145$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7146 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7147 if eval \${$cacheid+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149else 7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7151/* end confdefs.h. */ 7152int i; 7153int 7154main () 7155{ 7156 7157 ; 7158 return 0; 7159} 7160_ACEOF 7161if ac_fn_c_try_link "$LINENO"; then : 7162 eval $cacheid=yes 7163else 7164 eval $cacheid=no 7165fi 7166rm -f core conftest.err conftest.$ac_objext \ 7167 conftest$ac_exeext conftest.$ac_ext 7168fi 7169 7170 7171 CFLAGS="$xorg_testset_save_CFLAGS" 7172 7173 eval supported=\$$cacheid 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7175$as_echo "$supported" >&6; } 7176 if test "$supported" = "yes" ; then 7177 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7178 found="yes" 7179 fi 7180 fi 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196xorg_testset_save_CFLAGS="$CFLAGS" 7197 7198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207int i; 7208_ACEOF 7209if ac_fn_c_try_compile "$LINENO"; then : 7210 xorg_cv_cc_flag_unknown_warning_option=yes 7211else 7212 xorg_cv_cc_flag_unknown_warning_option=no 7213fi 7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7215fi 7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7219 CFLAGS="$xorg_testset_save_CFLAGS" 7220fi 7221 7222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7225 fi 7226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7233/* end confdefs.h. */ 7234int i; 7235_ACEOF 7236if ac_fn_c_try_compile "$LINENO"; then : 7237 xorg_cv_cc_flag_unused_command_line_argument=yes 7238else 7239 xorg_cv_cc_flag_unused_command_line_argument=no 7240fi 7241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7242fi 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7246 CFLAGS="$xorg_testset_save_CFLAGS" 7247fi 7248 7249found="no" 7250 7251 if test $found = "no" ; then 7252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7254 fi 7255 7256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7258 fi 7259 7260 CFLAGS="$CFLAGS -Werror=sequence-point" 7261 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7263$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7264 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7265 if eval \${$cacheid+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267else 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269/* end confdefs.h. */ 7270int i; 7271int 7272main () 7273{ 7274 7275 ; 7276 return 0; 7277} 7278_ACEOF 7279if ac_fn_c_try_link "$LINENO"; then : 7280 eval $cacheid=yes 7281else 7282 eval $cacheid=no 7283fi 7284rm -f core conftest.err conftest.$ac_objext \ 7285 conftest$ac_exeext conftest.$ac_ext 7286fi 7287 7288 7289 CFLAGS="$xorg_testset_save_CFLAGS" 7290 7291 eval supported=\$$cacheid 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7293$as_echo "$supported" >&6; } 7294 if test "$supported" = "yes" ; then 7295 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7296 found="yes" 7297 fi 7298 fi 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314xorg_testset_save_CFLAGS="$CFLAGS" 7315 7316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322else 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325int i; 7326_ACEOF 7327if ac_fn_c_try_compile "$LINENO"; then : 7328 xorg_cv_cc_flag_unknown_warning_option=yes 7329else 7330 xorg_cv_cc_flag_unknown_warning_option=no 7331fi 7332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7333fi 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7337 CFLAGS="$xorg_testset_save_CFLAGS" 7338fi 7339 7340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7343 fi 7344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7348 $as_echo_n "(cached) " >&6 7349else 7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351/* end confdefs.h. */ 7352int i; 7353_ACEOF 7354if ac_fn_c_try_compile "$LINENO"; then : 7355 xorg_cv_cc_flag_unused_command_line_argument=yes 7356else 7357 xorg_cv_cc_flag_unused_command_line_argument=no 7358fi 7359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7360fi 7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7364 CFLAGS="$xorg_testset_save_CFLAGS" 7365fi 7366 7367found="no" 7368 7369 if test $found = "no" ; then 7370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7372 fi 7373 7374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7376 fi 7377 7378 CFLAGS="$CFLAGS -Werror=return-type" 7379 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7381$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7382 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7383 if eval \${$cacheid+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387/* end confdefs.h. */ 7388int i; 7389int 7390main () 7391{ 7392 7393 ; 7394 return 0; 7395} 7396_ACEOF 7397if ac_fn_c_try_link "$LINENO"; then : 7398 eval $cacheid=yes 7399else 7400 eval $cacheid=no 7401fi 7402rm -f core conftest.err conftest.$ac_objext \ 7403 conftest$ac_exeext conftest.$ac_ext 7404fi 7405 7406 7407 CFLAGS="$xorg_testset_save_CFLAGS" 7408 7409 eval supported=\$$cacheid 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7411$as_echo "$supported" >&6; } 7412 if test "$supported" = "yes" ; then 7413 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7414 found="yes" 7415 fi 7416 fi 7417 7418 if test $found = "no" ; then 7419 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7421 fi 7422 7423 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7425 fi 7426 7427 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7428 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7430$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7431 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7432 if eval \${$cacheid+:} false; then : 7433 $as_echo_n "(cached) " >&6 7434else 7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7436/* end confdefs.h. */ 7437int i; 7438int 7439main () 7440{ 7441 7442 ; 7443 return 0; 7444} 7445_ACEOF 7446if ac_fn_c_try_link "$LINENO"; then : 7447 eval $cacheid=yes 7448else 7449 eval $cacheid=no 7450fi 7451rm -f core conftest.err conftest.$ac_objext \ 7452 conftest$ac_exeext conftest.$ac_ext 7453fi 7454 7455 7456 CFLAGS="$xorg_testset_save_CFLAGS" 7457 7458 eval supported=\$$cacheid 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7460$as_echo "$supported" >&6; } 7461 if test "$supported" = "yes" ; then 7462 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7463 found="yes" 7464 fi 7465 fi 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481xorg_testset_save_CFLAGS="$CFLAGS" 7482 7483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489else 7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491/* end confdefs.h. */ 7492int i; 7493_ACEOF 7494if ac_fn_c_try_compile "$LINENO"; then : 7495 xorg_cv_cc_flag_unknown_warning_option=yes 7496else 7497 xorg_cv_cc_flag_unknown_warning_option=no 7498fi 7499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7500fi 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7504 CFLAGS="$xorg_testset_save_CFLAGS" 7505fi 7506 7507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7510 fi 7511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7515 $as_echo_n "(cached) " >&6 7516else 7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519int i; 7520_ACEOF 7521if ac_fn_c_try_compile "$LINENO"; then : 7522 xorg_cv_cc_flag_unused_command_line_argument=yes 7523else 7524 xorg_cv_cc_flag_unused_command_line_argument=no 7525fi 7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7527fi 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7531 CFLAGS="$xorg_testset_save_CFLAGS" 7532fi 7533 7534found="no" 7535 7536 if test $found = "no" ; then 7537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7539 fi 7540 7541 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7543 fi 7544 7545 CFLAGS="$CFLAGS -Werror=trigraphs" 7546 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7548$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7549 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7550 if eval \${$cacheid+:} false; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7554/* end confdefs.h. */ 7555int i; 7556int 7557main () 7558{ 7559 7560 ; 7561 return 0; 7562} 7563_ACEOF 7564if ac_fn_c_try_link "$LINENO"; then : 7565 eval $cacheid=yes 7566else 7567 eval $cacheid=no 7568fi 7569rm -f core conftest.err conftest.$ac_objext \ 7570 conftest$ac_exeext conftest.$ac_ext 7571fi 7572 7573 7574 CFLAGS="$xorg_testset_save_CFLAGS" 7575 7576 eval supported=\$$cacheid 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7578$as_echo "$supported" >&6; } 7579 if test "$supported" = "yes" ; then 7580 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7581 found="yes" 7582 fi 7583 fi 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599xorg_testset_save_CFLAGS="$CFLAGS" 7600 7601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610int i; 7611_ACEOF 7612if ac_fn_c_try_compile "$LINENO"; then : 7613 xorg_cv_cc_flag_unknown_warning_option=yes 7614else 7615 xorg_cv_cc_flag_unknown_warning_option=no 7616fi 7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7618fi 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7622 CFLAGS="$xorg_testset_save_CFLAGS" 7623fi 7624 7625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7628 fi 7629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7633 $as_echo_n "(cached) " >&6 7634else 7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7636/* end confdefs.h. */ 7637int i; 7638_ACEOF 7639if ac_fn_c_try_compile "$LINENO"; then : 7640 xorg_cv_cc_flag_unused_command_line_argument=yes 7641else 7642 xorg_cv_cc_flag_unused_command_line_argument=no 7643fi 7644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7645fi 7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7649 CFLAGS="$xorg_testset_save_CFLAGS" 7650fi 7651 7652found="no" 7653 7654 if test $found = "no" ; then 7655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7657 fi 7658 7659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7661 fi 7662 7663 CFLAGS="$CFLAGS -Werror=array-bounds" 7664 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7666$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7667 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7668 if eval \${$cacheid+:} false; then : 7669 $as_echo_n "(cached) " >&6 7670else 7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7672/* end confdefs.h. */ 7673int i; 7674int 7675main () 7676{ 7677 7678 ; 7679 return 0; 7680} 7681_ACEOF 7682if ac_fn_c_try_link "$LINENO"; then : 7683 eval $cacheid=yes 7684else 7685 eval $cacheid=no 7686fi 7687rm -f core conftest.err conftest.$ac_objext \ 7688 conftest$ac_exeext conftest.$ac_ext 7689fi 7690 7691 7692 CFLAGS="$xorg_testset_save_CFLAGS" 7693 7694 eval supported=\$$cacheid 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7696$as_echo "$supported" >&6; } 7697 if test "$supported" = "yes" ; then 7698 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7699 found="yes" 7700 fi 7701 fi 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717xorg_testset_save_CFLAGS="$CFLAGS" 7718 7719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728int i; 7729_ACEOF 7730if ac_fn_c_try_compile "$LINENO"; then : 7731 xorg_cv_cc_flag_unknown_warning_option=yes 7732else 7733 xorg_cv_cc_flag_unknown_warning_option=no 7734fi 7735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7736fi 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7740 CFLAGS="$xorg_testset_save_CFLAGS" 7741fi 7742 7743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7746 fi 7747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7751 $as_echo_n "(cached) " >&6 7752else 7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7754/* end confdefs.h. */ 7755int i; 7756_ACEOF 7757if ac_fn_c_try_compile "$LINENO"; then : 7758 xorg_cv_cc_flag_unused_command_line_argument=yes 7759else 7760 xorg_cv_cc_flag_unused_command_line_argument=no 7761fi 7762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7763fi 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7767 CFLAGS="$xorg_testset_save_CFLAGS" 7768fi 7769 7770found="no" 7771 7772 if test $found = "no" ; then 7773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7775 fi 7776 7777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7779 fi 7780 7781 CFLAGS="$CFLAGS -Werror=write-strings" 7782 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7784$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7785 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7786 if eval \${$cacheid+:} false; then : 7787 $as_echo_n "(cached) " >&6 7788else 7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7790/* end confdefs.h. */ 7791int i; 7792int 7793main () 7794{ 7795 7796 ; 7797 return 0; 7798} 7799_ACEOF 7800if ac_fn_c_try_link "$LINENO"; then : 7801 eval $cacheid=yes 7802else 7803 eval $cacheid=no 7804fi 7805rm -f core conftest.err conftest.$ac_objext \ 7806 conftest$ac_exeext conftest.$ac_ext 7807fi 7808 7809 7810 CFLAGS="$xorg_testset_save_CFLAGS" 7811 7812 eval supported=\$$cacheid 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7814$as_echo "$supported" >&6; } 7815 if test "$supported" = "yes" ; then 7816 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7817 found="yes" 7818 fi 7819 fi 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835xorg_testset_save_CFLAGS="$CFLAGS" 7836 7837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845/* end confdefs.h. */ 7846int i; 7847_ACEOF 7848if ac_fn_c_try_compile "$LINENO"; then : 7849 xorg_cv_cc_flag_unknown_warning_option=yes 7850else 7851 xorg_cv_cc_flag_unknown_warning_option=no 7852fi 7853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7854fi 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859fi 7860 7861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7864 fi 7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7869 $as_echo_n "(cached) " >&6 7870else 7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7872/* end confdefs.h. */ 7873int i; 7874_ACEOF 7875if ac_fn_c_try_compile "$LINENO"; then : 7876 xorg_cv_cc_flag_unused_command_line_argument=yes 7877else 7878 xorg_cv_cc_flag_unused_command_line_argument=no 7879fi 7880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7881fi 7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7885 CFLAGS="$xorg_testset_save_CFLAGS" 7886fi 7887 7888found="no" 7889 7890 if test $found = "no" ; then 7891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 7895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7897 fi 7898 7899 CFLAGS="$CFLAGS -Werror=address" 7900 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7902$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7903 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 7904 if eval \${$cacheid+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909int i; 7910int 7911main () 7912{ 7913 7914 ; 7915 return 0; 7916} 7917_ACEOF 7918if ac_fn_c_try_link "$LINENO"; then : 7919 eval $cacheid=yes 7920else 7921 eval $cacheid=no 7922fi 7923rm -f core conftest.err conftest.$ac_objext \ 7924 conftest$ac_exeext conftest.$ac_ext 7925fi 7926 7927 7928 CFLAGS="$xorg_testset_save_CFLAGS" 7929 7930 eval supported=\$$cacheid 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7932$as_echo "$supported" >&6; } 7933 if test "$supported" = "yes" ; then 7934 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7935 found="yes" 7936 fi 7937 fi 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953xorg_testset_save_CFLAGS="$CFLAGS" 7954 7955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7963/* end confdefs.h. */ 7964int i; 7965_ACEOF 7966if ac_fn_c_try_compile "$LINENO"; then : 7967 xorg_cv_cc_flag_unknown_warning_option=yes 7968else 7969 xorg_cv_cc_flag_unknown_warning_option=no 7970fi 7971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7972fi 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7976 CFLAGS="$xorg_testset_save_CFLAGS" 7977fi 7978 7979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7982 fi 7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988else 7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7990/* end confdefs.h. */ 7991int i; 7992_ACEOF 7993if ac_fn_c_try_compile "$LINENO"; then : 7994 xorg_cv_cc_flag_unused_command_line_argument=yes 7995else 7996 xorg_cv_cc_flag_unused_command_line_argument=no 7997fi 7998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7999fi 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8003 CFLAGS="$xorg_testset_save_CFLAGS" 8004fi 8005 8006found="no" 8007 8008 if test $found = "no" ; then 8009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8011 fi 8012 8013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8015 fi 8016 8017 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8018 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8020$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8021 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8022 if eval \${$cacheid+:} false; then : 8023 $as_echo_n "(cached) " >&6 8024else 8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8026/* end confdefs.h. */ 8027int i; 8028int 8029main () 8030{ 8031 8032 ; 8033 return 0; 8034} 8035_ACEOF 8036if ac_fn_c_try_link "$LINENO"; then : 8037 eval $cacheid=yes 8038else 8039 eval $cacheid=no 8040fi 8041rm -f core conftest.err conftest.$ac_objext \ 8042 conftest$ac_exeext conftest.$ac_ext 8043fi 8044 8045 8046 CFLAGS="$xorg_testset_save_CFLAGS" 8047 8048 eval supported=\$$cacheid 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8050$as_echo "$supported" >&6; } 8051 if test "$supported" = "yes" ; then 8052 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8053 found="yes" 8054 fi 8055 fi 8056 8057 if test $found = "no" ; then 8058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060 fi 8061 8062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8064 fi 8065 8066 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8067 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8069$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8070 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8071 if eval \${$cacheid+:} false; then : 8072 $as_echo_n "(cached) " >&6 8073else 8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8075/* end confdefs.h. */ 8076int i; 8077int 8078main () 8079{ 8080 8081 ; 8082 return 0; 8083} 8084_ACEOF 8085if ac_fn_c_try_link "$LINENO"; then : 8086 eval $cacheid=yes 8087else 8088 eval $cacheid=no 8089fi 8090rm -f core conftest.err conftest.$ac_objext \ 8091 conftest$ac_exeext conftest.$ac_ext 8092fi 8093 8094 8095 CFLAGS="$xorg_testset_save_CFLAGS" 8096 8097 eval supported=\$$cacheid 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8099$as_echo "$supported" >&6; } 8100 if test "$supported" = "yes" ; then 8101 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8102 found="yes" 8103 fi 8104 fi 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120xorg_testset_save_CFLAGS="$CFLAGS" 8121 8122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8127 $as_echo_n "(cached) " >&6 8128else 8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8130/* end confdefs.h. */ 8131int i; 8132_ACEOF 8133if ac_fn_c_try_compile "$LINENO"; then : 8134 xorg_cv_cc_flag_unknown_warning_option=yes 8135else 8136 xorg_cv_cc_flag_unknown_warning_option=no 8137fi 8138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8139fi 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8143 CFLAGS="$xorg_testset_save_CFLAGS" 8144fi 8145 8146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8149 fi 8150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8154 $as_echo_n "(cached) " >&6 8155else 8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8157/* end confdefs.h. */ 8158int i; 8159_ACEOF 8160if ac_fn_c_try_compile "$LINENO"; then : 8161 xorg_cv_cc_flag_unused_command_line_argument=yes 8162else 8163 xorg_cv_cc_flag_unused_command_line_argument=no 8164fi 8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8166fi 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8170 CFLAGS="$xorg_testset_save_CFLAGS" 8171fi 8172 8173found="no" 8174 8175 if test $found = "no" ; then 8176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8178 fi 8179 8180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8182 fi 8183 8184 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8185 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8187$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8188 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8189 if eval \${$cacheid+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191else 8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8193/* end confdefs.h. */ 8194int i; 8195int 8196main () 8197{ 8198 8199 ; 8200 return 0; 8201} 8202_ACEOF 8203if ac_fn_c_try_link "$LINENO"; then : 8204 eval $cacheid=yes 8205else 8206 eval $cacheid=no 8207fi 8208rm -f core conftest.err conftest.$ac_objext \ 8209 conftest$ac_exeext conftest.$ac_ext 8210fi 8211 8212 8213 CFLAGS="$xorg_testset_save_CFLAGS" 8214 8215 eval supported=\$$cacheid 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8217$as_echo "$supported" >&6; } 8218 if test "$supported" = "yes" ; then 8219 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8220 found="yes" 8221 fi 8222 fi 8223 8224 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8225else 8226{ $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 8227$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;} 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241xorg_testset_save_CFLAGS="$CFLAGS" 8242 8243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249else 8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8251/* end confdefs.h. */ 8252int i; 8253_ACEOF 8254if ac_fn_c_try_compile "$LINENO"; then : 8255 xorg_cv_cc_flag_unknown_warning_option=yes 8256else 8257 xorg_cv_cc_flag_unknown_warning_option=no 8258fi 8259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8260fi 8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8264 CFLAGS="$xorg_testset_save_CFLAGS" 8265fi 8266 8267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8270 fi 8271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8275 $as_echo_n "(cached) " >&6 8276else 8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8278/* end confdefs.h. */ 8279int i; 8280_ACEOF 8281if ac_fn_c_try_compile "$LINENO"; then : 8282 xorg_cv_cc_flag_unused_command_line_argument=yes 8283else 8284 xorg_cv_cc_flag_unused_command_line_argument=no 8285fi 8286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8287fi 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8291 CFLAGS="$xorg_testset_save_CFLAGS" 8292fi 8293 8294found="no" 8295 8296 if test $found = "no" ; then 8297 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8299 fi 8300 8301 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8303 fi 8304 8305 CFLAGS="$CFLAGS -Wimplicit" 8306 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8308$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8309 cacheid=xorg_cv_cc_flag__Wimplicit 8310 if eval \${$cacheid+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315int i; 8316int 8317main () 8318{ 8319 8320 ; 8321 return 0; 8322} 8323_ACEOF 8324if ac_fn_c_try_link "$LINENO"; then : 8325 eval $cacheid=yes 8326else 8327 eval $cacheid=no 8328fi 8329rm -f core conftest.err conftest.$ac_objext \ 8330 conftest$ac_exeext conftest.$ac_ext 8331fi 8332 8333 8334 CFLAGS="$xorg_testset_save_CFLAGS" 8335 8336 eval supported=\$$cacheid 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8338$as_echo "$supported" >&6; } 8339 if test "$supported" = "yes" ; then 8340 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8341 found="yes" 8342 fi 8343 fi 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359xorg_testset_save_CFLAGS="$CFLAGS" 8360 8361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370int i; 8371_ACEOF 8372if ac_fn_c_try_compile "$LINENO"; then : 8373 xorg_cv_cc_flag_unknown_warning_option=yes 8374else 8375 xorg_cv_cc_flag_unknown_warning_option=no 8376fi 8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8378fi 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8382 CFLAGS="$xorg_testset_save_CFLAGS" 8383fi 8384 8385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8388 fi 8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397int i; 8398_ACEOF 8399if ac_fn_c_try_compile "$LINENO"; then : 8400 xorg_cv_cc_flag_unused_command_line_argument=yes 8401else 8402 xorg_cv_cc_flag_unused_command_line_argument=no 8403fi 8404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8405fi 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8409 CFLAGS="$xorg_testset_save_CFLAGS" 8410fi 8411 8412found="no" 8413 8414 if test $found = "no" ; then 8415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8417 fi 8418 8419 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8421 fi 8422 8423 CFLAGS="$CFLAGS -Wnonnull" 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8426$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8427 cacheid=xorg_cv_cc_flag__Wnonnull 8428 if eval \${$cacheid+:} false; then : 8429 $as_echo_n "(cached) " >&6 8430else 8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8432/* end confdefs.h. */ 8433int i; 8434int 8435main () 8436{ 8437 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442if ac_fn_c_try_link "$LINENO"; then : 8443 eval $cacheid=yes 8444else 8445 eval $cacheid=no 8446fi 8447rm -f core conftest.err conftest.$ac_objext \ 8448 conftest$ac_exeext conftest.$ac_ext 8449fi 8450 8451 8452 CFLAGS="$xorg_testset_save_CFLAGS" 8453 8454 eval supported=\$$cacheid 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8456$as_echo "$supported" >&6; } 8457 if test "$supported" = "yes" ; then 8458 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8459 found="yes" 8460 fi 8461 fi 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477xorg_testset_save_CFLAGS="$CFLAGS" 8478 8479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488int i; 8489_ACEOF 8490if ac_fn_c_try_compile "$LINENO"; then : 8491 xorg_cv_cc_flag_unknown_warning_option=yes 8492else 8493 xorg_cv_cc_flag_unknown_warning_option=no 8494fi 8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8496fi 8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501fi 8502 8503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512else 8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8514/* end confdefs.h. */ 8515int i; 8516_ACEOF 8517if ac_fn_c_try_compile "$LINENO"; then : 8518 xorg_cv_cc_flag_unused_command_line_argument=yes 8519else 8520 xorg_cv_cc_flag_unused_command_line_argument=no 8521fi 8522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8523fi 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8527 CFLAGS="$xorg_testset_save_CFLAGS" 8528fi 8529 8530found="no" 8531 8532 if test $found = "no" ; then 8533 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8535 fi 8536 8537 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8539 fi 8540 8541 CFLAGS="$CFLAGS -Winit-self" 8542 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8544$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8545 cacheid=xorg_cv_cc_flag__Winit_self 8546 if eval \${$cacheid+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548else 8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8550/* end confdefs.h. */ 8551int i; 8552int 8553main () 8554{ 8555 8556 ; 8557 return 0; 8558} 8559_ACEOF 8560if ac_fn_c_try_link "$LINENO"; then : 8561 eval $cacheid=yes 8562else 8563 eval $cacheid=no 8564fi 8565rm -f core conftest.err conftest.$ac_objext \ 8566 conftest$ac_exeext conftest.$ac_ext 8567fi 8568 8569 8570 CFLAGS="$xorg_testset_save_CFLAGS" 8571 8572 eval supported=\$$cacheid 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8574$as_echo "$supported" >&6; } 8575 if test "$supported" = "yes" ; then 8576 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8577 found="yes" 8578 fi 8579 fi 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595xorg_testset_save_CFLAGS="$CFLAGS" 8596 8597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8602 $as_echo_n "(cached) " >&6 8603else 8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8605/* end confdefs.h. */ 8606int i; 8607_ACEOF 8608if ac_fn_c_try_compile "$LINENO"; then : 8609 xorg_cv_cc_flag_unknown_warning_option=yes 8610else 8611 xorg_cv_cc_flag_unknown_warning_option=no 8612fi 8613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8614fi 8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8618 CFLAGS="$xorg_testset_save_CFLAGS" 8619fi 8620 8621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8624 fi 8625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8629 $as_echo_n "(cached) " >&6 8630else 8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8632/* end confdefs.h. */ 8633int i; 8634_ACEOF 8635if ac_fn_c_try_compile "$LINENO"; then : 8636 xorg_cv_cc_flag_unused_command_line_argument=yes 8637else 8638 xorg_cv_cc_flag_unused_command_line_argument=no 8639fi 8640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8641fi 8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8645 CFLAGS="$xorg_testset_save_CFLAGS" 8646fi 8647 8648found="no" 8649 8650 if test $found = "no" ; then 8651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8653 fi 8654 8655 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8657 fi 8658 8659 CFLAGS="$CFLAGS -Wmain" 8660 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8662$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8663 cacheid=xorg_cv_cc_flag__Wmain 8664 if eval \${$cacheid+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666else 8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8668/* end confdefs.h. */ 8669int i; 8670int 8671main () 8672{ 8673 8674 ; 8675 return 0; 8676} 8677_ACEOF 8678if ac_fn_c_try_link "$LINENO"; then : 8679 eval $cacheid=yes 8680else 8681 eval $cacheid=no 8682fi 8683rm -f core conftest.err conftest.$ac_objext \ 8684 conftest$ac_exeext conftest.$ac_ext 8685fi 8686 8687 8688 CFLAGS="$xorg_testset_save_CFLAGS" 8689 8690 eval supported=\$$cacheid 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8692$as_echo "$supported" >&6; } 8693 if test "$supported" = "yes" ; then 8694 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8695 found="yes" 8696 fi 8697 fi 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713xorg_testset_save_CFLAGS="$CFLAGS" 8714 8715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8720 $as_echo_n "(cached) " >&6 8721else 8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8723/* end confdefs.h. */ 8724int i; 8725_ACEOF 8726if ac_fn_c_try_compile "$LINENO"; then : 8727 xorg_cv_cc_flag_unknown_warning_option=yes 8728else 8729 xorg_cv_cc_flag_unknown_warning_option=no 8730fi 8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8732fi 8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8736 CFLAGS="$xorg_testset_save_CFLAGS" 8737fi 8738 8739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8747 $as_echo_n "(cached) " >&6 8748else 8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8750/* end confdefs.h. */ 8751int i; 8752_ACEOF 8753if ac_fn_c_try_compile "$LINENO"; then : 8754 xorg_cv_cc_flag_unused_command_line_argument=yes 8755else 8756 xorg_cv_cc_flag_unused_command_line_argument=no 8757fi 8758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8759fi 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8763 CFLAGS="$xorg_testset_save_CFLAGS" 8764fi 8765 8766found="no" 8767 8768 if test $found = "no" ; then 8769 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8771 fi 8772 8773 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8775 fi 8776 8777 CFLAGS="$CFLAGS -Wmissing-braces" 8778 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8780$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8781 cacheid=xorg_cv_cc_flag__Wmissing_braces 8782 if eval \${$cacheid+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8786/* end confdefs.h. */ 8787int i; 8788int 8789main () 8790{ 8791 8792 ; 8793 return 0; 8794} 8795_ACEOF 8796if ac_fn_c_try_link "$LINENO"; then : 8797 eval $cacheid=yes 8798else 8799 eval $cacheid=no 8800fi 8801rm -f core conftest.err conftest.$ac_objext \ 8802 conftest$ac_exeext conftest.$ac_ext 8803fi 8804 8805 8806 CFLAGS="$xorg_testset_save_CFLAGS" 8807 8808 eval supported=\$$cacheid 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8810$as_echo "$supported" >&6; } 8811 if test "$supported" = "yes" ; then 8812 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8813 found="yes" 8814 fi 8815 fi 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831xorg_testset_save_CFLAGS="$CFLAGS" 8832 8833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841/* end confdefs.h. */ 8842int i; 8843_ACEOF 8844if ac_fn_c_try_compile "$LINENO"; then : 8845 xorg_cv_cc_flag_unknown_warning_option=yes 8846else 8847 xorg_cv_cc_flag_unknown_warning_option=no 8848fi 8849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8850fi 8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8854 CFLAGS="$xorg_testset_save_CFLAGS" 8855fi 8856 8857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8860 fi 8861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8865 $as_echo_n "(cached) " >&6 8866else 8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8868/* end confdefs.h. */ 8869int i; 8870_ACEOF 8871if ac_fn_c_try_compile "$LINENO"; then : 8872 xorg_cv_cc_flag_unused_command_line_argument=yes 8873else 8874 xorg_cv_cc_flag_unused_command_line_argument=no 8875fi 8876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8877fi 8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8881 CFLAGS="$xorg_testset_save_CFLAGS" 8882fi 8883 8884found="no" 8885 8886 if test $found = "no" ; then 8887 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8889 fi 8890 8891 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8893 fi 8894 8895 CFLAGS="$CFLAGS -Wsequence-point" 8896 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8898$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8899 cacheid=xorg_cv_cc_flag__Wsequence_point 8900 if eval \${$cacheid+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902else 8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8904/* end confdefs.h. */ 8905int i; 8906int 8907main () 8908{ 8909 8910 ; 8911 return 0; 8912} 8913_ACEOF 8914if ac_fn_c_try_link "$LINENO"; then : 8915 eval $cacheid=yes 8916else 8917 eval $cacheid=no 8918fi 8919rm -f core conftest.err conftest.$ac_objext \ 8920 conftest$ac_exeext conftest.$ac_ext 8921fi 8922 8923 8924 CFLAGS="$xorg_testset_save_CFLAGS" 8925 8926 eval supported=\$$cacheid 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8928$as_echo "$supported" >&6; } 8929 if test "$supported" = "yes" ; then 8930 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8931 found="yes" 8932 fi 8933 fi 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949xorg_testset_save_CFLAGS="$CFLAGS" 8950 8951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957else 8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959/* end confdefs.h. */ 8960int i; 8961_ACEOF 8962if ac_fn_c_try_compile "$LINENO"; then : 8963 xorg_cv_cc_flag_unknown_warning_option=yes 8964else 8965 xorg_cv_cc_flag_unknown_warning_option=no 8966fi 8967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8968fi 8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8972 CFLAGS="$xorg_testset_save_CFLAGS" 8973fi 8974 8975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 fi 8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984else 8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8986/* end confdefs.h. */ 8987int i; 8988_ACEOF 8989if ac_fn_c_try_compile "$LINENO"; then : 8990 xorg_cv_cc_flag_unused_command_line_argument=yes 8991else 8992 xorg_cv_cc_flag_unused_command_line_argument=no 8993fi 8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8995fi 8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8999 CFLAGS="$xorg_testset_save_CFLAGS" 9000fi 9001 9002found="no" 9003 9004 if test $found = "no" ; then 9005 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 fi 9008 9009 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9011 fi 9012 9013 CFLAGS="$CFLAGS -Wreturn-type" 9014 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9016$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9017 cacheid=xorg_cv_cc_flag__Wreturn_type 9018 if eval \${$cacheid+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9022/* end confdefs.h. */ 9023int i; 9024int 9025main () 9026{ 9027 9028 ; 9029 return 0; 9030} 9031_ACEOF 9032if ac_fn_c_try_link "$LINENO"; then : 9033 eval $cacheid=yes 9034else 9035 eval $cacheid=no 9036fi 9037rm -f core conftest.err conftest.$ac_objext \ 9038 conftest$ac_exeext conftest.$ac_ext 9039fi 9040 9041 9042 CFLAGS="$xorg_testset_save_CFLAGS" 9043 9044 eval supported=\$$cacheid 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9046$as_echo "$supported" >&6; } 9047 if test "$supported" = "yes" ; then 9048 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9049 found="yes" 9050 fi 9051 fi 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067xorg_testset_save_CFLAGS="$CFLAGS" 9068 9069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9072$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9073if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9077/* end confdefs.h. */ 9078int i; 9079_ACEOF 9080if ac_fn_c_try_compile "$LINENO"; then : 9081 xorg_cv_cc_flag_unknown_warning_option=yes 9082else 9083 xorg_cv_cc_flag_unknown_warning_option=no 9084fi 9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9086fi 9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9088$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9090 CFLAGS="$xorg_testset_save_CFLAGS" 9091fi 9092 9093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9096 fi 9097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9099$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9100if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9101 $as_echo_n "(cached) " >&6 9102else 9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9104/* end confdefs.h. */ 9105int i; 9106_ACEOF 9107if ac_fn_c_try_compile "$LINENO"; then : 9108 xorg_cv_cc_flag_unused_command_line_argument=yes 9109else 9110 xorg_cv_cc_flag_unused_command_line_argument=no 9111fi 9112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9113fi 9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9115$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9117 CFLAGS="$xorg_testset_save_CFLAGS" 9118fi 9119 9120found="no" 9121 9122 if test $found = "no" ; then 9123 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9125 fi 9126 9127 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9129 fi 9130 9131 CFLAGS="$CFLAGS -Wtrigraphs" 9132 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9134$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9135 cacheid=xorg_cv_cc_flag__Wtrigraphs 9136 if eval \${$cacheid+:} false; then : 9137 $as_echo_n "(cached) " >&6 9138else 9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140/* end confdefs.h. */ 9141int i; 9142int 9143main () 9144{ 9145 9146 ; 9147 return 0; 9148} 9149_ACEOF 9150if ac_fn_c_try_link "$LINENO"; then : 9151 eval $cacheid=yes 9152else 9153 eval $cacheid=no 9154fi 9155rm -f core conftest.err conftest.$ac_objext \ 9156 conftest$ac_exeext conftest.$ac_ext 9157fi 9158 9159 9160 CFLAGS="$xorg_testset_save_CFLAGS" 9161 9162 eval supported=\$$cacheid 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9164$as_echo "$supported" >&6; } 9165 if test "$supported" = "yes" ; then 9166 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9167 found="yes" 9168 fi 9169 fi 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185xorg_testset_save_CFLAGS="$CFLAGS" 9186 9187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193else 9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9195/* end confdefs.h. */ 9196int i; 9197_ACEOF 9198if ac_fn_c_try_compile "$LINENO"; then : 9199 xorg_cv_cc_flag_unknown_warning_option=yes 9200else 9201 xorg_cv_cc_flag_unknown_warning_option=no 9202fi 9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9204fi 9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9208 CFLAGS="$xorg_testset_save_CFLAGS" 9209fi 9210 9211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9214 fi 9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9219 $as_echo_n "(cached) " >&6 9220else 9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9222/* end confdefs.h. */ 9223int i; 9224_ACEOF 9225if ac_fn_c_try_compile "$LINENO"; then : 9226 xorg_cv_cc_flag_unused_command_line_argument=yes 9227else 9228 xorg_cv_cc_flag_unused_command_line_argument=no 9229fi 9230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9231fi 9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9235 CFLAGS="$xorg_testset_save_CFLAGS" 9236fi 9237 9238found="no" 9239 9240 if test $found = "no" ; then 9241 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 fi 9244 9245 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9247 fi 9248 9249 CFLAGS="$CFLAGS -Warray-bounds" 9250 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9252$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9253 cacheid=xorg_cv_cc_flag__Warray_bounds 9254 if eval \${$cacheid+:} false; then : 9255 $as_echo_n "(cached) " >&6 9256else 9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258/* end confdefs.h. */ 9259int i; 9260int 9261main () 9262{ 9263 9264 ; 9265 return 0; 9266} 9267_ACEOF 9268if ac_fn_c_try_link "$LINENO"; then : 9269 eval $cacheid=yes 9270else 9271 eval $cacheid=no 9272fi 9273rm -f core conftest.err conftest.$ac_objext \ 9274 conftest$ac_exeext conftest.$ac_ext 9275fi 9276 9277 9278 CFLAGS="$xorg_testset_save_CFLAGS" 9279 9280 eval supported=\$$cacheid 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9282$as_echo "$supported" >&6; } 9283 if test "$supported" = "yes" ; then 9284 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9285 found="yes" 9286 fi 9287 fi 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303xorg_testset_save_CFLAGS="$CFLAGS" 9304 9305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9310 $as_echo_n "(cached) " >&6 9311else 9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313/* end confdefs.h. */ 9314int i; 9315_ACEOF 9316if ac_fn_c_try_compile "$LINENO"; then : 9317 xorg_cv_cc_flag_unknown_warning_option=yes 9318else 9319 xorg_cv_cc_flag_unknown_warning_option=no 9320fi 9321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9322fi 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9326 CFLAGS="$xorg_testset_save_CFLAGS" 9327fi 9328 9329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9332 fi 9333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9337 $as_echo_n "(cached) " >&6 9338else 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340/* end confdefs.h. */ 9341int i; 9342_ACEOF 9343if ac_fn_c_try_compile "$LINENO"; then : 9344 xorg_cv_cc_flag_unused_command_line_argument=yes 9345else 9346 xorg_cv_cc_flag_unused_command_line_argument=no 9347fi 9348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9349fi 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9353 CFLAGS="$xorg_testset_save_CFLAGS" 9354fi 9355 9356found="no" 9357 9358 if test $found = "no" ; then 9359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9361 fi 9362 9363 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9365 fi 9366 9367 CFLAGS="$CFLAGS -Wwrite-strings" 9368 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9370$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9371 cacheid=xorg_cv_cc_flag__Wwrite_strings 9372 if eval \${$cacheid+:} false; then : 9373 $as_echo_n "(cached) " >&6 9374else 9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9376/* end confdefs.h. */ 9377int i; 9378int 9379main () 9380{ 9381 9382 ; 9383 return 0; 9384} 9385_ACEOF 9386if ac_fn_c_try_link "$LINENO"; then : 9387 eval $cacheid=yes 9388else 9389 eval $cacheid=no 9390fi 9391rm -f core conftest.err conftest.$ac_objext \ 9392 conftest$ac_exeext conftest.$ac_ext 9393fi 9394 9395 9396 CFLAGS="$xorg_testset_save_CFLAGS" 9397 9398 eval supported=\$$cacheid 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9400$as_echo "$supported" >&6; } 9401 if test "$supported" = "yes" ; then 9402 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9403 found="yes" 9404 fi 9405 fi 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421xorg_testset_save_CFLAGS="$CFLAGS" 9422 9423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9431/* end confdefs.h. */ 9432int i; 9433_ACEOF 9434if ac_fn_c_try_compile "$LINENO"; then : 9435 xorg_cv_cc_flag_unknown_warning_option=yes 9436else 9437 xorg_cv_cc_flag_unknown_warning_option=no 9438fi 9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9440fi 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9444 CFLAGS="$xorg_testset_save_CFLAGS" 9445fi 9446 9447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456else 9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9458/* end confdefs.h. */ 9459int i; 9460_ACEOF 9461if ac_fn_c_try_compile "$LINENO"; then : 9462 xorg_cv_cc_flag_unused_command_line_argument=yes 9463else 9464 xorg_cv_cc_flag_unused_command_line_argument=no 9465fi 9466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9467fi 9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9471 CFLAGS="$xorg_testset_save_CFLAGS" 9472fi 9473 9474found="no" 9475 9476 if test $found = "no" ; then 9477 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9479 fi 9480 9481 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9483 fi 9484 9485 CFLAGS="$CFLAGS -Waddress" 9486 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9488$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9489 cacheid=xorg_cv_cc_flag__Waddress 9490 if eval \${$cacheid+:} false; then : 9491 $as_echo_n "(cached) " >&6 9492else 9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9494/* end confdefs.h. */ 9495int i; 9496int 9497main () 9498{ 9499 9500 ; 9501 return 0; 9502} 9503_ACEOF 9504if ac_fn_c_try_link "$LINENO"; then : 9505 eval $cacheid=yes 9506else 9507 eval $cacheid=no 9508fi 9509rm -f core conftest.err conftest.$ac_objext \ 9510 conftest$ac_exeext conftest.$ac_ext 9511fi 9512 9513 9514 CFLAGS="$xorg_testset_save_CFLAGS" 9515 9516 eval supported=\$$cacheid 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9518$as_echo "$supported" >&6; } 9519 if test "$supported" = "yes" ; then 9520 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9521 found="yes" 9522 fi 9523 fi 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539xorg_testset_save_CFLAGS="$CFLAGS" 9540 9541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9546 $as_echo_n "(cached) " >&6 9547else 9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549/* end confdefs.h. */ 9550int i; 9551_ACEOF 9552if ac_fn_c_try_compile "$LINENO"; then : 9553 xorg_cv_cc_flag_unknown_warning_option=yes 9554else 9555 xorg_cv_cc_flag_unknown_warning_option=no 9556fi 9557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9558fi 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9562 CFLAGS="$xorg_testset_save_CFLAGS" 9563fi 9564 9565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9568 fi 9569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9573 $as_echo_n "(cached) " >&6 9574else 9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9576/* end confdefs.h. */ 9577int i; 9578_ACEOF 9579if ac_fn_c_try_compile "$LINENO"; then : 9580 xorg_cv_cc_flag_unused_command_line_argument=yes 9581else 9582 xorg_cv_cc_flag_unused_command_line_argument=no 9583fi 9584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9585fi 9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9589 CFLAGS="$xorg_testset_save_CFLAGS" 9590fi 9591 9592found="no" 9593 9594 if test $found = "no" ; then 9595 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9597 fi 9598 9599 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9601 fi 9602 9603 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9604 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9606$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9607 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9608 if eval \${$cacheid+:} false; then : 9609 $as_echo_n "(cached) " >&6 9610else 9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9612/* end confdefs.h. */ 9613int i; 9614int 9615main () 9616{ 9617 9618 ; 9619 return 0; 9620} 9621_ACEOF 9622if ac_fn_c_try_link "$LINENO"; then : 9623 eval $cacheid=yes 9624else 9625 eval $cacheid=no 9626fi 9627rm -f core conftest.err conftest.$ac_objext \ 9628 conftest$ac_exeext conftest.$ac_ext 9629fi 9630 9631 9632 CFLAGS="$xorg_testset_save_CFLAGS" 9633 9634 eval supported=\$$cacheid 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9636$as_echo "$supported" >&6; } 9637 if test "$supported" = "yes" ; then 9638 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9639 found="yes" 9640 fi 9641 fi 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657xorg_testset_save_CFLAGS="$CFLAGS" 9658 9659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667/* end confdefs.h. */ 9668int i; 9669_ACEOF 9670if ac_fn_c_try_compile "$LINENO"; then : 9671 xorg_cv_cc_flag_unknown_warning_option=yes 9672else 9673 xorg_cv_cc_flag_unknown_warning_option=no 9674fi 9675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9676fi 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9680 CFLAGS="$xorg_testset_save_CFLAGS" 9681fi 9682 9683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686 fi 9687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9691 $as_echo_n "(cached) " >&6 9692else 9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694/* end confdefs.h. */ 9695int i; 9696_ACEOF 9697if ac_fn_c_try_compile "$LINENO"; then : 9698 xorg_cv_cc_flag_unused_command_line_argument=yes 9699else 9700 xorg_cv_cc_flag_unused_command_line_argument=no 9701fi 9702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9703fi 9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9707 CFLAGS="$xorg_testset_save_CFLAGS" 9708fi 9709 9710found="no" 9711 9712 if test $found = "no" ; then 9713 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 fi 9716 9717 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9719 fi 9720 9721 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9722 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9724$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9725 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9726 if eval \${$cacheid+:} false; then : 9727 $as_echo_n "(cached) " >&6 9728else 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730/* end confdefs.h. */ 9731int i; 9732int 9733main () 9734{ 9735 9736 ; 9737 return 0; 9738} 9739_ACEOF 9740if ac_fn_c_try_link "$LINENO"; then : 9741 eval $cacheid=yes 9742else 9743 eval $cacheid=no 9744fi 9745rm -f core conftest.err conftest.$ac_objext \ 9746 conftest$ac_exeext conftest.$ac_ext 9747fi 9748 9749 9750 CFLAGS="$xorg_testset_save_CFLAGS" 9751 9752 eval supported=\$$cacheid 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9754$as_echo "$supported" >&6; } 9755 if test "$supported" = "yes" ; then 9756 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9757 found="yes" 9758 fi 9759 fi 9760 9761 9762fi 9763 9764 9765 9766 9767 9768 9769 9770 CWARNFLAGS="$BASE_CFLAGS" 9771 if test "x$GCC" = xyes ; then 9772 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9773 fi 9774 9775 9776 9777 9778 9779 9780 9781 9782# Check whether --enable-strict-compilation was given. 9783if test "${enable_strict_compilation+set}" = set; then : 9784 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9785else 9786 STRICT_COMPILE=no 9787fi 9788 9789 9790 9791 9792 9793 9794STRICT_CFLAGS="" 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808xorg_testset_save_CFLAGS="$CFLAGS" 9809 9810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816else 9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9818/* end confdefs.h. */ 9819int i; 9820_ACEOF 9821if ac_fn_c_try_compile "$LINENO"; then : 9822 xorg_cv_cc_flag_unknown_warning_option=yes 9823else 9824 xorg_cv_cc_flag_unknown_warning_option=no 9825fi 9826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9827fi 9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9831 CFLAGS="$xorg_testset_save_CFLAGS" 9832fi 9833 9834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9837 fi 9838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9842 $as_echo_n "(cached) " >&6 9843else 9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9845/* end confdefs.h. */ 9846int i; 9847_ACEOF 9848if ac_fn_c_try_compile "$LINENO"; then : 9849 xorg_cv_cc_flag_unused_command_line_argument=yes 9850else 9851 xorg_cv_cc_flag_unused_command_line_argument=no 9852fi 9853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9854fi 9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9858 CFLAGS="$xorg_testset_save_CFLAGS" 9859fi 9860 9861found="no" 9862 9863 if test $found = "no" ; then 9864 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9866 fi 9867 9868 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9870 fi 9871 9872 CFLAGS="$CFLAGS -pedantic" 9873 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9875$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9876 cacheid=xorg_cv_cc_flag__pedantic 9877 if eval \${$cacheid+:} false; then : 9878 $as_echo_n "(cached) " >&6 9879else 9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9881/* end confdefs.h. */ 9882int i; 9883int 9884main () 9885{ 9886 9887 ; 9888 return 0; 9889} 9890_ACEOF 9891if ac_fn_c_try_link "$LINENO"; then : 9892 eval $cacheid=yes 9893else 9894 eval $cacheid=no 9895fi 9896rm -f core conftest.err conftest.$ac_objext \ 9897 conftest$ac_exeext conftest.$ac_ext 9898fi 9899 9900 9901 CFLAGS="$xorg_testset_save_CFLAGS" 9902 9903 eval supported=\$$cacheid 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9905$as_echo "$supported" >&6; } 9906 if test "$supported" = "yes" ; then 9907 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9908 found="yes" 9909 fi 9910 fi 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926xorg_testset_save_CFLAGS="$CFLAGS" 9927 9928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9936/* end confdefs.h. */ 9937int i; 9938_ACEOF 9939if ac_fn_c_try_compile "$LINENO"; then : 9940 xorg_cv_cc_flag_unknown_warning_option=yes 9941else 9942 xorg_cv_cc_flag_unknown_warning_option=no 9943fi 9944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9945fi 9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9949 CFLAGS="$xorg_testset_save_CFLAGS" 9950fi 9951 9952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 fi 9956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9963/* end confdefs.h. */ 9964int i; 9965_ACEOF 9966if ac_fn_c_try_compile "$LINENO"; then : 9967 xorg_cv_cc_flag_unused_command_line_argument=yes 9968else 9969 xorg_cv_cc_flag_unused_command_line_argument=no 9970fi 9971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9972fi 9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977fi 9978 9979found="no" 9980 9981 if test $found = "no" ; then 9982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9984 fi 9985 9986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9988 fi 9989 9990 CFLAGS="$CFLAGS -Werror" 9991 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9993$as_echo_n "checking if $CC supports -Werror... " >&6; } 9994 cacheid=xorg_cv_cc_flag__Werror 9995 if eval \${$cacheid+:} false; then : 9996 $as_echo_n "(cached) " >&6 9997else 9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000int i; 10001int 10002main () 10003{ 10004 10005 ; 10006 return 0; 10007} 10008_ACEOF 10009if ac_fn_c_try_link "$LINENO"; then : 10010 eval $cacheid=yes 10011else 10012 eval $cacheid=no 10013fi 10014rm -f core conftest.err conftest.$ac_objext \ 10015 conftest$ac_exeext conftest.$ac_ext 10016fi 10017 10018 10019 CFLAGS="$xorg_testset_save_CFLAGS" 10020 10021 eval supported=\$$cacheid 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10023$as_echo "$supported" >&6; } 10024 if test "$supported" = "yes" ; then 10025 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10026 found="yes" 10027 fi 10028 fi 10029 10030 if test $found = "no" ; then 10031 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10033 fi 10034 10035 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10037 fi 10038 10039 CFLAGS="$CFLAGS -errwarn" 10040 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10042$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10043 cacheid=xorg_cv_cc_flag__errwarn 10044 if eval \${$cacheid+:} false; then : 10045 $as_echo_n "(cached) " >&6 10046else 10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10048/* end confdefs.h. */ 10049int i; 10050int 10051main () 10052{ 10053 10054 ; 10055 return 0; 10056} 10057_ACEOF 10058if ac_fn_c_try_link "$LINENO"; then : 10059 eval $cacheid=yes 10060else 10061 eval $cacheid=no 10062fi 10063rm -f core conftest.err conftest.$ac_objext \ 10064 conftest$ac_exeext conftest.$ac_ext 10065fi 10066 10067 10068 CFLAGS="$xorg_testset_save_CFLAGS" 10069 10070 eval supported=\$$cacheid 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10072$as_echo "$supported" >&6; } 10073 if test "$supported" = "yes" ; then 10074 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10075 found="yes" 10076 fi 10077 fi 10078 10079 10080 10081# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10082# activate it with -Werror, so we add it here explicitly. 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096xorg_testset_save_CFLAGS="$CFLAGS" 10097 10098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10103 $as_echo_n "(cached) " >&6 10104else 10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10106/* end confdefs.h. */ 10107int i; 10108_ACEOF 10109if ac_fn_c_try_compile "$LINENO"; then : 10110 xorg_cv_cc_flag_unknown_warning_option=yes 10111else 10112 xorg_cv_cc_flag_unknown_warning_option=no 10113fi 10114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10115fi 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10119 CFLAGS="$xorg_testset_save_CFLAGS" 10120fi 10121 10122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10125 fi 10126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10130 $as_echo_n "(cached) " >&6 10131else 10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10133/* end confdefs.h. */ 10134int i; 10135_ACEOF 10136if ac_fn_c_try_compile "$LINENO"; then : 10137 xorg_cv_cc_flag_unused_command_line_argument=yes 10138else 10139 xorg_cv_cc_flag_unused_command_line_argument=no 10140fi 10141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10142fi 10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10146 CFLAGS="$xorg_testset_save_CFLAGS" 10147fi 10148 10149found="no" 10150 10151 if test $found = "no" ; then 10152 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10154 fi 10155 10156 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10158 fi 10159 10160 CFLAGS="$CFLAGS -Werror=attributes" 10161 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10163$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10164 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10165 if eval \${$cacheid+:} false; then : 10166 $as_echo_n "(cached) " >&6 10167else 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169/* end confdefs.h. */ 10170int i; 10171int 10172main () 10173{ 10174 10175 ; 10176 return 0; 10177} 10178_ACEOF 10179if ac_fn_c_try_link "$LINENO"; then : 10180 eval $cacheid=yes 10181else 10182 eval $cacheid=no 10183fi 10184rm -f core conftest.err conftest.$ac_objext \ 10185 conftest$ac_exeext conftest.$ac_ext 10186fi 10187 10188 10189 CFLAGS="$xorg_testset_save_CFLAGS" 10190 10191 eval supported=\$$cacheid 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10193$as_echo "$supported" >&6; } 10194 if test "$supported" = "yes" ; then 10195 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10196 found="yes" 10197 fi 10198 fi 10199 10200 10201 10202if test "x$STRICT_COMPILE" = "xyes"; then 10203 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10204 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10205fi 10206 10207 10208 10209 10210 10211 10212cat >>confdefs.h <<_ACEOF 10213#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10214_ACEOF 10215 10216 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10217 if test "x$PVM" = "x"; then 10218 PVM="0" 10219 fi 10220 10221cat >>confdefs.h <<_ACEOF 10222#define PACKAGE_VERSION_MINOR $PVM 10223_ACEOF 10224 10225 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10226 if test "x$PVP" = "x"; then 10227 PVP="0" 10228 fi 10229 10230cat >>confdefs.h <<_ACEOF 10231#define PACKAGE_VERSION_PATCHLEVEL $PVP 10232_ACEOF 10233 10234 10235 10236CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10237mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10238|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10239echo 'git directory not found: installing possibly empty changelog.' >&2)" 10240 10241 10242 10243 10244macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10245INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10246mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10247|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10248echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10249 10250 10251 10252 10253 10254 10255if test x$APP_MAN_SUFFIX = x ; then 10256 APP_MAN_SUFFIX=1 10257fi 10258if test x$APP_MAN_DIR = x ; then 10259 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10260fi 10261 10262if test x$LIB_MAN_SUFFIX = x ; then 10263 LIB_MAN_SUFFIX=3 10264fi 10265if test x$LIB_MAN_DIR = x ; then 10266 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10267fi 10268 10269if test x$FILE_MAN_SUFFIX = x ; then 10270 case $host_os in 10271 solaris*) FILE_MAN_SUFFIX=4 ;; 10272 *) FILE_MAN_SUFFIX=5 ;; 10273 esac 10274fi 10275if test x$FILE_MAN_DIR = x ; then 10276 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10277fi 10278 10279if test x$MISC_MAN_SUFFIX = x ; then 10280 case $host_os in 10281 solaris*) MISC_MAN_SUFFIX=5 ;; 10282 *) MISC_MAN_SUFFIX=7 ;; 10283 esac 10284fi 10285if test x$MISC_MAN_DIR = x ; then 10286 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10287fi 10288 10289if test x$DRIVER_MAN_SUFFIX = x ; then 10290 case $host_os in 10291 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10292 *) DRIVER_MAN_SUFFIX=4 ;; 10293 esac 10294fi 10295if test x$DRIVER_MAN_DIR = x ; then 10296 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10297fi 10298 10299if test x$ADMIN_MAN_SUFFIX = x ; then 10300 case $host_os in 10301 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10302 *) ADMIN_MAN_SUFFIX=8 ;; 10303 esac 10304fi 10305if test x$ADMIN_MAN_DIR = x ; then 10306 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10307fi 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323XORG_MAN_PAGE="X Version 11" 10324 10325MAN_SUBSTS="\ 10326 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10327 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10328 -e 's|__xservername__|Xorg|g' \ 10329 -e 's|__xconfigfile__|xorg.conf|g' \ 10330 -e 's|__projectroot__|\$(prefix)|g' \ 10331 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10332 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10333 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10334 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10335 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10336 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10337 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10338 10339 10340 10341# Check whether --enable-silent-rules was given. 10342if test "${enable_silent_rules+set}" = set; then : 10343 enableval=$enable_silent_rules; 10344fi 10345 10346case $enable_silent_rules in 10347yes) AM_DEFAULT_VERBOSITY=0;; 10348no) AM_DEFAULT_VERBOSITY=1;; 10349*) AM_DEFAULT_VERBOSITY=0;; 10350esac 10351AM_BACKSLASH='\' 10352 10353 10354 10355ac_config_headers="$ac_config_headers config.h" 10356 10357 10358# Checks for pkg-config packages 10359 10360pkg_failed=no 10361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FSTOBDF" >&5 10362$as_echo_n "checking for FSTOBDF... " >&6; } 10363 10364if test -n "$FSTOBDF_CFLAGS"; then 10365 pkg_cv_FSTOBDF_CFLAGS="$FSTOBDF_CFLAGS" 10366 elif test -n "$PKG_CONFIG"; then 10367 if test -n "$PKG_CONFIG" && \ 10368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 x11 libfs\""; } >&5 10369 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 x11 libfs") 2>&5 10370 ac_status=$? 10371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10372 test $ac_status = 0; }; then 10373 pkg_cv_FSTOBDF_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 x11 libfs" 2>/dev/null` 10374else 10375 pkg_failed=yes 10376fi 10377 else 10378 pkg_failed=untried 10379fi 10380if test -n "$FSTOBDF_LIBS"; then 10381 pkg_cv_FSTOBDF_LIBS="$FSTOBDF_LIBS" 10382 elif test -n "$PKG_CONFIG"; then 10383 if test -n "$PKG_CONFIG" && \ 10384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 x11 libfs\""; } >&5 10385 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 x11 libfs") 2>&5 10386 ac_status=$? 10387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10388 test $ac_status = 0; }; then 10389 pkg_cv_FSTOBDF_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 x11 libfs" 2>/dev/null` 10390else 10391 pkg_failed=yes 10392fi 10393 else 10394 pkg_failed=untried 10395fi 10396 10397 10398 10399if test $pkg_failed = yes; then 10400 10401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10402 _pkg_short_errors_supported=yes 10403else 10404 _pkg_short_errors_supported=no 10405fi 10406 if test $_pkg_short_errors_supported = yes; then 10407 FSTOBDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 x11 libfs" 2>&1` 10408 else 10409 FSTOBDF_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 x11 libfs" 2>&1` 10410 fi 10411 # Put the nasty error message in config.log where it belongs 10412 echo "$FSTOBDF_PKG_ERRORS" >&5 10413 10414 as_fn_error $? "Package requirements (xproto >= 7.0.17 x11 libfs) were not met: 10415 10416$FSTOBDF_PKG_ERRORS 10417 10418Consider adjusting the PKG_CONFIG_PATH environment variable if you 10419installed software in a non-standard prefix. 10420 10421Alternatively, you may set the environment variables FSTOBDF_CFLAGS 10422and FSTOBDF_LIBS to avoid the need to call pkg-config. 10423See the pkg-config man page for more details. 10424" "$LINENO" 5 10425elif test $pkg_failed = untried; then 10426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10428as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10429is in your PATH or set the PKG_CONFIG environment variable to the full 10430path to pkg-config. 10431 10432Alternatively, you may set the environment variables FSTOBDF_CFLAGS 10433and FSTOBDF_LIBS to avoid the need to call pkg-config. 10434See the pkg-config man page for more details. 10435 10436To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10437See \`config.log' for more details" "$LINENO" 5; } 10438else 10439 FSTOBDF_CFLAGS=$pkg_cv_FSTOBDF_CFLAGS 10440 FSTOBDF_LIBS=$pkg_cv_FSTOBDF_LIBS 10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10442$as_echo "yes" >&6; } 10443 : 10444fi 10445 10446ac_config_files="$ac_config_files Makefile man/Makefile" 10447 10448cat >confcache <<\_ACEOF 10449# This file is a shell script that caches the results of configure 10450# tests run on this system so they can be shared between configure 10451# scripts and configure runs, see configure's option --config-cache. 10452# It is not useful on other systems. If it contains results you don't 10453# want to keep, you may remove or edit it. 10454# 10455# config.status only pays attention to the cache file if you give it 10456# the --recheck option to rerun configure. 10457# 10458# `ac_cv_env_foo' variables (set or unset) will be overridden when 10459# loading this file, other *unset* `ac_cv_foo' will be assigned the 10460# following values. 10461 10462_ACEOF 10463 10464# The following way of writing the cache mishandles newlines in values, 10465# but we know of no workaround that is simple, portable, and efficient. 10466# So, we kill variables containing newlines. 10467# Ultrix sh set writes to stderr and can't be redirected directly, 10468# and sets the high bit in the cache file unless we assign to the vars. 10469( 10470 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10471 eval ac_val=\$$ac_var 10472 case $ac_val in #( 10473 *${as_nl}*) 10474 case $ac_var in #( 10475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10476$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10477 esac 10478 case $ac_var in #( 10479 _ | IFS | as_nl) ;; #( 10480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10481 *) { eval $ac_var=; unset $ac_var;} ;; 10482 esac ;; 10483 esac 10484 done 10485 10486 (set) 2>&1 | 10487 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10488 *${as_nl}ac_space=\ *) 10489 # `set' does not quote correctly, so add quotes: double-quote 10490 # substitution turns \\\\ into \\, and sed turns \\ into \. 10491 sed -n \ 10492 "s/'/'\\\\''/g; 10493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10494 ;; #( 10495 *) 10496 # `set' quotes correctly as required by POSIX, so do not add quotes. 10497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10498 ;; 10499 esac | 10500 sort 10501) | 10502 sed ' 10503 /^ac_cv_env_/b end 10504 t clear 10505 :clear 10506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10507 t end 10508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10509 :end' >>confcache 10510if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10511 if test -w "$cache_file"; then 10512 if test "x$cache_file" != "x/dev/null"; then 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10514$as_echo "$as_me: updating cache $cache_file" >&6;} 10515 if test ! -f "$cache_file" || test -h "$cache_file"; then 10516 cat confcache >"$cache_file" 10517 else 10518 case $cache_file in #( 10519 */* | ?:*) 10520 mv -f confcache "$cache_file"$$ && 10521 mv -f "$cache_file"$$ "$cache_file" ;; #( 10522 *) 10523 mv -f confcache "$cache_file" ;; 10524 esac 10525 fi 10526 fi 10527 else 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10529$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10530 fi 10531fi 10532rm -f confcache 10533 10534test "x$prefix" = xNONE && prefix=$ac_default_prefix 10535# Let make expand exec_prefix. 10536test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10537 10538DEFS=-DHAVE_CONFIG_H 10539 10540ac_libobjs= 10541ac_ltlibobjs= 10542U= 10543for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10544 # 1. Remove the extension, and $U if already installed. 10545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10548 # will be set to the directory where LIBOBJS objects are built. 10549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10551done 10552LIBOBJS=$ac_libobjs 10553 10554LTLIBOBJS=$ac_ltlibobjs 10555 10556 10557 if test -n "$EXEEXT"; then 10558 am__EXEEXT_TRUE= 10559 am__EXEEXT_FALSE='#' 10560else 10561 am__EXEEXT_TRUE='#' 10562 am__EXEEXT_FALSE= 10563fi 10564 10565if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10566 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10567Usually this means the macro was only invoked conditionally." "$LINENO" 5 10568fi 10569if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10570 as_fn_error $? "conditional \"AMDEP\" was never defined. 10571Usually this means the macro was only invoked conditionally." "$LINENO" 5 10572fi 10573if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10574 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10575Usually this means the macro was only invoked conditionally." "$LINENO" 5 10576fi 10577 10578: "${CONFIG_STATUS=./config.status}" 10579ac_write_fail=0 10580ac_clean_files_save=$ac_clean_files 10581ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10582{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10583$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10584as_write_fail=0 10585cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10586#! $SHELL 10587# Generated by $as_me. 10588# Run this file to recreate the current configuration. 10589# Compiler output produced by configure, useful for debugging 10590# configure, is in config.log if it exists. 10591 10592debug=false 10593ac_cs_recheck=false 10594ac_cs_silent=false 10595 10596SHELL=\${CONFIG_SHELL-$SHELL} 10597export SHELL 10598_ASEOF 10599cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10600## -------------------- ## 10601## M4sh Initialization. ## 10602## -------------------- ## 10603 10604# Be more Bourne compatible 10605DUALCASE=1; export DUALCASE # for MKS sh 10606if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10607 emulate sh 10608 NULLCMD=: 10609 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10610 # is contrary to our usage. Disable this feature. 10611 alias -g '${1+"$@"}'='"$@"' 10612 setopt NO_GLOB_SUBST 10613else 10614 case `(set -o) 2>/dev/null` in #( 10615 *posix*) : 10616 set -o posix ;; #( 10617 *) : 10618 ;; 10619esac 10620fi 10621 10622 10623as_nl=' 10624' 10625export as_nl 10626# Printing a long string crashes Solaris 7 /usr/bin/printf. 10627as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10628as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10629as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10630# Prefer a ksh shell builtin over an external printf program on Solaris, 10631# but without wasting forks for bash or zsh. 10632if test -z "$BASH_VERSION$ZSH_VERSION" \ 10633 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10634 as_echo='print -r --' 10635 as_echo_n='print -rn --' 10636elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10637 as_echo='printf %s\n' 10638 as_echo_n='printf %s' 10639else 10640 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10641 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10642 as_echo_n='/usr/ucb/echo -n' 10643 else 10644 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10645 as_echo_n_body='eval 10646 arg=$1; 10647 case $arg in #( 10648 *"$as_nl"*) 10649 expr "X$arg" : "X\\(.*\\)$as_nl"; 10650 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10651 esac; 10652 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10653 ' 10654 export as_echo_n_body 10655 as_echo_n='sh -c $as_echo_n_body as_echo' 10656 fi 10657 export as_echo_body 10658 as_echo='sh -c $as_echo_body as_echo' 10659fi 10660 10661# The user is always right. 10662if test "${PATH_SEPARATOR+set}" != set; then 10663 PATH_SEPARATOR=: 10664 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10665 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10666 PATH_SEPARATOR=';' 10667 } 10668fi 10669 10670 10671# IFS 10672# We need space, tab and new line, in precisely that order. Quoting is 10673# there to prevent editors from complaining about space-tab. 10674# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10675# splitting by setting IFS to empty value.) 10676IFS=" "" $as_nl" 10677 10678# Find who we are. Look in the path if we contain no directory separator. 10679as_myself= 10680case $0 in #(( 10681 *[\\/]* ) as_myself=$0 ;; 10682 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10683for as_dir in $PATH 10684do 10685 IFS=$as_save_IFS 10686 test -z "$as_dir" && as_dir=. 10687 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10688 done 10689IFS=$as_save_IFS 10690 10691 ;; 10692esac 10693# We did not find ourselves, most probably we were run as `sh COMMAND' 10694# in which case we are not to be found in the path. 10695if test "x$as_myself" = x; then 10696 as_myself=$0 10697fi 10698if test ! -f "$as_myself"; then 10699 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10700 exit 1 10701fi 10702 10703# Unset variables that we do not need and which cause bugs (e.g. in 10704# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10705# suppresses any "Segmentation fault" message there. '((' could 10706# trigger a bug in pdksh 5.2.14. 10707for as_var in BASH_ENV ENV MAIL MAILPATH 10708do eval test x\${$as_var+set} = xset \ 10709 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10710done 10711PS1='$ ' 10712PS2='> ' 10713PS4='+ ' 10714 10715# NLS nuisances. 10716LC_ALL=C 10717export LC_ALL 10718LANGUAGE=C 10719export LANGUAGE 10720 10721# CDPATH. 10722(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10723 10724 10725# as_fn_error STATUS ERROR [LINENO LOG_FD] 10726# ---------------------------------------- 10727# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10728# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10729# script with STATUS, using 1 if that was 0. 10730as_fn_error () 10731{ 10732 as_status=$1; test $as_status -eq 0 && as_status=1 10733 if test "$4"; then 10734 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10735 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10736 fi 10737 $as_echo "$as_me: error: $2" >&2 10738 as_fn_exit $as_status 10739} # as_fn_error 10740 10741 10742# as_fn_set_status STATUS 10743# ----------------------- 10744# Set $? to STATUS, without forking. 10745as_fn_set_status () 10746{ 10747 return $1 10748} # as_fn_set_status 10749 10750# as_fn_exit STATUS 10751# ----------------- 10752# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10753as_fn_exit () 10754{ 10755 set +e 10756 as_fn_set_status $1 10757 exit $1 10758} # as_fn_exit 10759 10760# as_fn_unset VAR 10761# --------------- 10762# Portably unset VAR. 10763as_fn_unset () 10764{ 10765 { eval $1=; unset $1;} 10766} 10767as_unset=as_fn_unset 10768# as_fn_append VAR VALUE 10769# ---------------------- 10770# Append the text in VALUE to the end of the definition contained in VAR. Take 10771# advantage of any shell optimizations that allow amortized linear growth over 10772# repeated appends, instead of the typical quadratic growth present in naive 10773# implementations. 10774if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10775 eval 'as_fn_append () 10776 { 10777 eval $1+=\$2 10778 }' 10779else 10780 as_fn_append () 10781 { 10782 eval $1=\$$1\$2 10783 } 10784fi # as_fn_append 10785 10786# as_fn_arith ARG... 10787# ------------------ 10788# Perform arithmetic evaluation on the ARGs, and store the result in the 10789# global $as_val. Take advantage of shells that can avoid forks. The arguments 10790# must be portable across $(()) and expr. 10791if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10792 eval 'as_fn_arith () 10793 { 10794 as_val=$(( $* )) 10795 }' 10796else 10797 as_fn_arith () 10798 { 10799 as_val=`expr "$@" || test $? -eq 1` 10800 } 10801fi # as_fn_arith 10802 10803 10804if expr a : '\(a\)' >/dev/null 2>&1 && 10805 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10806 as_expr=expr 10807else 10808 as_expr=false 10809fi 10810 10811if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10812 as_basename=basename 10813else 10814 as_basename=false 10815fi 10816 10817if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10818 as_dirname=dirname 10819else 10820 as_dirname=false 10821fi 10822 10823as_me=`$as_basename -- "$0" || 10824$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10825 X"$0" : 'X\(//\)$' \| \ 10826 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10827$as_echo X/"$0" | 10828 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10829 s//\1/ 10830 q 10831 } 10832 /^X\/\(\/\/\)$/{ 10833 s//\1/ 10834 q 10835 } 10836 /^X\/\(\/\).*/{ 10837 s//\1/ 10838 q 10839 } 10840 s/.*/./; q'` 10841 10842# Avoid depending upon Character Ranges. 10843as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10844as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10845as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10846as_cr_digits='0123456789' 10847as_cr_alnum=$as_cr_Letters$as_cr_digits 10848 10849ECHO_C= ECHO_N= ECHO_T= 10850case `echo -n x` in #((((( 10851-n*) 10852 case `echo 'xy\c'` in 10853 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10854 xy) ECHO_C='\c';; 10855 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10856 ECHO_T=' ';; 10857 esac;; 10858*) 10859 ECHO_N='-n';; 10860esac 10861 10862rm -f conf$$ conf$$.exe conf$$.file 10863if test -d conf$$.dir; then 10864 rm -f conf$$.dir/conf$$.file 10865else 10866 rm -f conf$$.dir 10867 mkdir conf$$.dir 2>/dev/null 10868fi 10869if (echo >conf$$.file) 2>/dev/null; then 10870 if ln -s conf$$.file conf$$ 2>/dev/null; then 10871 as_ln_s='ln -s' 10872 # ... but there are two gotchas: 10873 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10874 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10875 # In both cases, we have to default to `cp -p'. 10876 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10877 as_ln_s='cp -p' 10878 elif ln conf$$.file conf$$ 2>/dev/null; then 10879 as_ln_s=ln 10880 else 10881 as_ln_s='cp -p' 10882 fi 10883else 10884 as_ln_s='cp -p' 10885fi 10886rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10887rmdir conf$$.dir 2>/dev/null 10888 10889 10890# as_fn_mkdir_p 10891# ------------- 10892# Create "$as_dir" as a directory, including parents if necessary. 10893as_fn_mkdir_p () 10894{ 10895 10896 case $as_dir in #( 10897 -*) as_dir=./$as_dir;; 10898 esac 10899 test -d "$as_dir" || eval $as_mkdir_p || { 10900 as_dirs= 10901 while :; do 10902 case $as_dir in #( 10903 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10904 *) as_qdir=$as_dir;; 10905 esac 10906 as_dirs="'$as_qdir' $as_dirs" 10907 as_dir=`$as_dirname -- "$as_dir" || 10908$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10909 X"$as_dir" : 'X\(//\)[^/]' \| \ 10910 X"$as_dir" : 'X\(//\)$' \| \ 10911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10912$as_echo X"$as_dir" | 10913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10914 s//\1/ 10915 q 10916 } 10917 /^X\(\/\/\)[^/].*/{ 10918 s//\1/ 10919 q 10920 } 10921 /^X\(\/\/\)$/{ 10922 s//\1/ 10923 q 10924 } 10925 /^X\(\/\).*/{ 10926 s//\1/ 10927 q 10928 } 10929 s/.*/./; q'` 10930 test -d "$as_dir" && break 10931 done 10932 test -z "$as_dirs" || eval "mkdir $as_dirs" 10933 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10934 10935 10936} # as_fn_mkdir_p 10937if mkdir -p . 2>/dev/null; then 10938 as_mkdir_p='mkdir -p "$as_dir"' 10939else 10940 test -d ./-p && rmdir ./-p 10941 as_mkdir_p=false 10942fi 10943 10944if test -x / >/dev/null 2>&1; then 10945 as_test_x='test -x' 10946else 10947 if ls -dL / >/dev/null 2>&1; then 10948 as_ls_L_option=L 10949 else 10950 as_ls_L_option= 10951 fi 10952 as_test_x=' 10953 eval sh -c '\'' 10954 if test -d "$1"; then 10955 test -d "$1/."; 10956 else 10957 case $1 in #( 10958 -*)set "./$1";; 10959 esac; 10960 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 10961 ???[sx]*):;;*)false;;esac;fi 10962 '\'' sh 10963 ' 10964fi 10965as_executable_p=$as_test_x 10966 10967# Sed expression to map a string onto a valid CPP name. 10968as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10969 10970# Sed expression to map a string onto a valid variable name. 10971as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10972 10973 10974exec 6>&1 10975## ----------------------------------- ## 10976## Main body of $CONFIG_STATUS script. ## 10977## ----------------------------------- ## 10978_ASEOF 10979test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10980 10981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10982# Save the log message, to keep $0 and so on meaningful, and to 10983# report actual input values of CONFIG_FILES etc. instead of their 10984# values after options handling. 10985ac_log=" 10986This file was extended by fstobdf $as_me 1.0.5, which was 10987generated by GNU Autoconf 2.68. Invocation command line was 10988 10989 CONFIG_FILES = $CONFIG_FILES 10990 CONFIG_HEADERS = $CONFIG_HEADERS 10991 CONFIG_LINKS = $CONFIG_LINKS 10992 CONFIG_COMMANDS = $CONFIG_COMMANDS 10993 $ $0 $@ 10994 10995on `(hostname || uname -n) 2>/dev/null | sed 1q` 10996" 10997 10998_ACEOF 10999 11000case $ac_config_files in *" 11001"*) set x $ac_config_files; shift; ac_config_files=$*;; 11002esac 11003 11004case $ac_config_headers in *" 11005"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11006esac 11007 11008 11009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11010# Files that config.status was made for. 11011config_files="$ac_config_files" 11012config_headers="$ac_config_headers" 11013config_commands="$ac_config_commands" 11014 11015_ACEOF 11016 11017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11018ac_cs_usage="\ 11019\`$as_me' instantiates files and other configuration actions 11020from templates according to the current configuration. Unless the files 11021and actions are specified as TAGs, all are instantiated by default. 11022 11023Usage: $0 [OPTION]... [TAG]... 11024 11025 -h, --help print this help, then exit 11026 -V, --version print version number and configuration settings, then exit 11027 --config print configuration, then exit 11028 -q, --quiet, --silent 11029 do not print progress messages 11030 -d, --debug don't remove temporary files 11031 --recheck update $as_me by reconfiguring in the same conditions 11032 --file=FILE[:TEMPLATE] 11033 instantiate the configuration file FILE 11034 --header=FILE[:TEMPLATE] 11035 instantiate the configuration header FILE 11036 11037Configuration files: 11038$config_files 11039 11040Configuration headers: 11041$config_headers 11042 11043Configuration commands: 11044$config_commands 11045 11046Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11047 11048_ACEOF 11049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11050ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11051ac_cs_version="\\ 11052fstobdf config.status 1.0.5 11053configured by $0, generated by GNU Autoconf 2.68, 11054 with options \\"\$ac_cs_config\\" 11055 11056Copyright (C) 2010 Free Software Foundation, Inc. 11057This config.status script is free software; the Free Software Foundation 11058gives unlimited permission to copy, distribute and modify it." 11059 11060ac_pwd='$ac_pwd' 11061srcdir='$srcdir' 11062INSTALL='$INSTALL' 11063MKDIR_P='$MKDIR_P' 11064AWK='$AWK' 11065test -n "\$AWK" || AWK=awk 11066_ACEOF 11067 11068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11069# The default lists apply if the user does not specify any file. 11070ac_need_defaults=: 11071while test $# != 0 11072do 11073 case $1 in 11074 --*=?*) 11075 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11076 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11077 ac_shift=: 11078 ;; 11079 --*=) 11080 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11081 ac_optarg= 11082 ac_shift=: 11083 ;; 11084 *) 11085 ac_option=$1 11086 ac_optarg=$2 11087 ac_shift=shift 11088 ;; 11089 esac 11090 11091 case $ac_option in 11092 # Handling of the options. 11093 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11094 ac_cs_recheck=: ;; 11095 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11096 $as_echo "$ac_cs_version"; exit ;; 11097 --config | --confi | --conf | --con | --co | --c ) 11098 $as_echo "$ac_cs_config"; exit ;; 11099 --debug | --debu | --deb | --de | --d | -d ) 11100 debug=: ;; 11101 --file | --fil | --fi | --f ) 11102 $ac_shift 11103 case $ac_optarg in 11104 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11105 '') as_fn_error $? "missing file argument" ;; 11106 esac 11107 as_fn_append CONFIG_FILES " '$ac_optarg'" 11108 ac_need_defaults=false;; 11109 --header | --heade | --head | --hea ) 11110 $ac_shift 11111 case $ac_optarg in 11112 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11113 esac 11114 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11115 ac_need_defaults=false;; 11116 --he | --h) 11117 # Conflict between --help and --header 11118 as_fn_error $? "ambiguous option: \`$1' 11119Try \`$0 --help' for more information.";; 11120 --help | --hel | -h ) 11121 $as_echo "$ac_cs_usage"; exit ;; 11122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11123 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11124 ac_cs_silent=: ;; 11125 11126 # This is an error. 11127 -*) as_fn_error $? "unrecognized option: \`$1' 11128Try \`$0 --help' for more information." ;; 11129 11130 *) as_fn_append ac_config_targets " $1" 11131 ac_need_defaults=false ;; 11132 11133 esac 11134 shift 11135done 11136 11137ac_configure_extra_args= 11138 11139if $ac_cs_silent; then 11140 exec 6>/dev/null 11141 ac_configure_extra_args="$ac_configure_extra_args --silent" 11142fi 11143 11144_ACEOF 11145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11146if \$ac_cs_recheck; then 11147 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11148 shift 11149 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11150 CONFIG_SHELL='$SHELL' 11151 export CONFIG_SHELL 11152 exec "\$@" 11153fi 11154 11155_ACEOF 11156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11157exec 5>>config.log 11158{ 11159 echo 11160 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11161## Running $as_me. ## 11162_ASBOX 11163 $as_echo "$ac_log" 11164} >&5 11165 11166_ACEOF 11167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11168# 11169# INIT-COMMANDS 11170# 11171AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11172 11173_ACEOF 11174 11175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11176 11177# Handling of arguments. 11178for ac_config_target in $ac_config_targets 11179do 11180 case $ac_config_target in 11181 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11182 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11183 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11184 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11185 11186 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11187 esac 11188done 11189 11190 11191# If the user did not use the arguments to specify the items to instantiate, 11192# then the envvar interface is used. Set only those that are not. 11193# We use the long form for the default assignment because of an extremely 11194# bizarre bug on SunOS 4.1.3. 11195if $ac_need_defaults; then 11196 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11197 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11198 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11199fi 11200 11201# Have a temporary directory for convenience. Make it in the build tree 11202# simply because there is no reason against having it here, and in addition, 11203# creating and moving files from /tmp can sometimes cause problems. 11204# Hook for its removal unless debugging. 11205# Note that there is a small window in which the directory will not be cleaned: 11206# after its creation but before its name has been assigned to `$tmp'. 11207$debug || 11208{ 11209 tmp= ac_tmp= 11210 trap 'exit_status=$? 11211 : "${ac_tmp:=$tmp}" 11212 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11213' 0 11214 trap 'as_fn_exit 1' 1 2 13 15 11215} 11216# Create a (secure) tmp directory for tmp files. 11217 11218{ 11219 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11220 test -d "$tmp" 11221} || 11222{ 11223 tmp=./conf$$-$RANDOM 11224 (umask 077 && mkdir "$tmp") 11225} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11226ac_tmp=$tmp 11227 11228# Set up the scripts for CONFIG_FILES section. 11229# No need to generate them if there are no CONFIG_FILES. 11230# This happens for instance with `./config.status config.h'. 11231if test -n "$CONFIG_FILES"; then 11232 11233 11234ac_cr=`echo X | tr X '\015'` 11235# On cygwin, bash can eat \r inside `` if the user requested igncr. 11236# But we know of no other shell where ac_cr would be empty at this 11237# point, so we can use a bashism as a fallback. 11238if test "x$ac_cr" = x; then 11239 eval ac_cr=\$\'\\r\' 11240fi 11241ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11242if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11243 ac_cs_awk_cr='\\r' 11244else 11245 ac_cs_awk_cr=$ac_cr 11246fi 11247 11248echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11249_ACEOF 11250 11251 11252{ 11253 echo "cat >conf$$subs.awk <<_ACEOF" && 11254 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11255 echo "_ACEOF" 11256} >conf$$subs.sh || 11257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11258ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11259ac_delim='%!_!# ' 11260for ac_last_try in false false false false false :; do 11261 . ./conf$$subs.sh || 11262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11263 11264 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11265 if test $ac_delim_n = $ac_delim_num; then 11266 break 11267 elif $ac_last_try; then 11268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11269 else 11270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11271 fi 11272done 11273rm -f conf$$subs.sh 11274 11275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11276cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11277_ACEOF 11278sed -n ' 11279h 11280s/^/S["/; s/!.*/"]=/ 11281p 11282g 11283s/^[^!]*!// 11284:repl 11285t repl 11286s/'"$ac_delim"'$// 11287t delim 11288:nl 11289h 11290s/\(.\{148\}\)..*/\1/ 11291t more1 11292s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11293p 11294n 11295b repl 11296:more1 11297s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11298p 11299g 11300s/.\{148\}// 11301t nl 11302:delim 11303h 11304s/\(.\{148\}\)..*/\1/ 11305t more2 11306s/["\\]/\\&/g; s/^/"/; s/$/"/ 11307p 11308b 11309:more2 11310s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11311p 11312g 11313s/.\{148\}// 11314t delim 11315' <conf$$subs.awk | sed ' 11316/^[^""]/{ 11317 N 11318 s/\n// 11319} 11320' >>$CONFIG_STATUS || ac_write_fail=1 11321rm -f conf$$subs.awk 11322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11323_ACAWK 11324cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11325 for (key in S) S_is_set[key] = 1 11326 FS = "" 11327 11328} 11329{ 11330 line = $ 0 11331 nfields = split(line, field, "@") 11332 substed = 0 11333 len = length(field[1]) 11334 for (i = 2; i < nfields; i++) { 11335 key = field[i] 11336 keylen = length(key) 11337 if (S_is_set[key]) { 11338 value = S[key] 11339 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11340 len += length(value) + length(field[++i]) 11341 substed = 1 11342 } else 11343 len += 1 + keylen 11344 } 11345 11346 print line 11347} 11348 11349_ACAWK 11350_ACEOF 11351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11352if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11353 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11354else 11355 cat 11356fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11357 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11358_ACEOF 11359 11360# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11361# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11362# trailing colons and then remove the whole line if VPATH becomes empty 11363# (actually we leave an empty line to preserve line numbers). 11364if test "x$srcdir" = x.; then 11365 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11366h 11367s/// 11368s/^/:/ 11369s/[ ]*$/:/ 11370s/:\$(srcdir):/:/g 11371s/:\${srcdir}:/:/g 11372s/:@srcdir@:/:/g 11373s/^:*// 11374s/:*$// 11375x 11376s/\(=[ ]*\).*/\1/ 11377G 11378s/\n// 11379s/^[^=]*=[ ]*$// 11380}' 11381fi 11382 11383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11384fi # test -n "$CONFIG_FILES" 11385 11386# Set up the scripts for CONFIG_HEADERS section. 11387# No need to generate them if there are no CONFIG_HEADERS. 11388# This happens for instance with `./config.status Makefile'. 11389if test -n "$CONFIG_HEADERS"; then 11390cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11391BEGIN { 11392_ACEOF 11393 11394# Transform confdefs.h into an awk script `defines.awk', embedded as 11395# here-document in config.status, that substitutes the proper values into 11396# config.h.in to produce config.h. 11397 11398# Create a delimiter string that does not exist in confdefs.h, to ease 11399# handling of long lines. 11400ac_delim='%!_!# ' 11401for ac_last_try in false false :; do 11402 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11403 if test -z "$ac_tt"; then 11404 break 11405 elif $ac_last_try; then 11406 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11407 else 11408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11409 fi 11410done 11411 11412# For the awk script, D is an array of macro values keyed by name, 11413# likewise P contains macro parameters if any. Preserve backslash 11414# newline sequences. 11415 11416ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11417sed -n ' 11418s/.\{148\}/&'"$ac_delim"'/g 11419t rset 11420:rset 11421s/^[ ]*#[ ]*define[ ][ ]*/ / 11422t def 11423d 11424:def 11425s/\\$// 11426t bsnl 11427s/["\\]/\\&/g 11428s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11429D["\1"]=" \3"/p 11430s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11431d 11432:bsnl 11433s/["\\]/\\&/g 11434s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11435D["\1"]=" \3\\\\\\n"\\/p 11436t cont 11437s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11438t cont 11439d 11440:cont 11441n 11442s/.\{148\}/&'"$ac_delim"'/g 11443t clear 11444:clear 11445s/\\$// 11446t bsnlc 11447s/["\\]/\\&/g; s/^/"/; s/$/"/p 11448d 11449:bsnlc 11450s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11451b cont 11452' <confdefs.h | sed ' 11453s/'"$ac_delim"'/"\\\ 11454"/g' >>$CONFIG_STATUS || ac_write_fail=1 11455 11456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11457 for (key in D) D_is_set[key] = 1 11458 FS = "" 11459} 11460/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11461 line = \$ 0 11462 split(line, arg, " ") 11463 if (arg[1] == "#") { 11464 defundef = arg[2] 11465 mac1 = arg[3] 11466 } else { 11467 defundef = substr(arg[1], 2) 11468 mac1 = arg[2] 11469 } 11470 split(mac1, mac2, "(") #) 11471 macro = mac2[1] 11472 prefix = substr(line, 1, index(line, defundef) - 1) 11473 if (D_is_set[macro]) { 11474 # Preserve the white space surrounding the "#". 11475 print prefix "define", macro P[macro] D[macro] 11476 next 11477 } else { 11478 # Replace #undef with comments. This is necessary, for example, 11479 # in the case of _POSIX_SOURCE, which is predefined and required 11480 # on some systems where configure will not decide to define it. 11481 if (defundef == "undef") { 11482 print "/*", prefix defundef, macro, "*/" 11483 next 11484 } 11485 } 11486} 11487{ print } 11488_ACAWK 11489_ACEOF 11490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11491 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11492fi # test -n "$CONFIG_HEADERS" 11493 11494 11495eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11496shift 11497for ac_tag 11498do 11499 case $ac_tag in 11500 :[FHLC]) ac_mode=$ac_tag; continue;; 11501 esac 11502 case $ac_mode$ac_tag in 11503 :[FHL]*:*);; 11504 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11505 :[FH]-) ac_tag=-:-;; 11506 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11507 esac 11508 ac_save_IFS=$IFS 11509 IFS=: 11510 set x $ac_tag 11511 IFS=$ac_save_IFS 11512 shift 11513 ac_file=$1 11514 shift 11515 11516 case $ac_mode in 11517 :L) ac_source=$1;; 11518 :[FH]) 11519 ac_file_inputs= 11520 for ac_f 11521 do 11522 case $ac_f in 11523 -) ac_f="$ac_tmp/stdin";; 11524 *) # Look for the file first in the build tree, then in the source tree 11525 # (if the path is not absolute). The absolute path cannot be DOS-style, 11526 # because $ac_f cannot contain `:'. 11527 test -f "$ac_f" || 11528 case $ac_f in 11529 [\\/$]*) false;; 11530 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11531 esac || 11532 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11533 esac 11534 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11535 as_fn_append ac_file_inputs " '$ac_f'" 11536 done 11537 11538 # Let's still pretend it is `configure' which instantiates (i.e., don't 11539 # use $as_me), people would be surprised to read: 11540 # /* config.h. Generated by config.status. */ 11541 configure_input='Generated from '` 11542 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11543 `' by configure.' 11544 if test x"$ac_file" != x-; then 11545 configure_input="$ac_file. $configure_input" 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11547$as_echo "$as_me: creating $ac_file" >&6;} 11548 fi 11549 # Neutralize special characters interpreted by sed in replacement strings. 11550 case $configure_input in #( 11551 *\&* | *\|* | *\\* ) 11552 ac_sed_conf_input=`$as_echo "$configure_input" | 11553 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11554 *) ac_sed_conf_input=$configure_input;; 11555 esac 11556 11557 case $ac_tag in 11558 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11560 esac 11561 ;; 11562 esac 11563 11564 ac_dir=`$as_dirname -- "$ac_file" || 11565$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11566 X"$ac_file" : 'X\(//\)[^/]' \| \ 11567 X"$ac_file" : 'X\(//\)$' \| \ 11568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11569$as_echo X"$ac_file" | 11570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11571 s//\1/ 11572 q 11573 } 11574 /^X\(\/\/\)[^/].*/{ 11575 s//\1/ 11576 q 11577 } 11578 /^X\(\/\/\)$/{ 11579 s//\1/ 11580 q 11581 } 11582 /^X\(\/\).*/{ 11583 s//\1/ 11584 q 11585 } 11586 s/.*/./; q'` 11587 as_dir="$ac_dir"; as_fn_mkdir_p 11588 ac_builddir=. 11589 11590case "$ac_dir" in 11591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11592*) 11593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11594 # A ".." for each directory in $ac_dir_suffix. 11595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11596 case $ac_top_builddir_sub in 11597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11599 esac ;; 11600esac 11601ac_abs_top_builddir=$ac_pwd 11602ac_abs_builddir=$ac_pwd$ac_dir_suffix 11603# for backward compatibility: 11604ac_top_builddir=$ac_top_build_prefix 11605 11606case $srcdir in 11607 .) # We are building in place. 11608 ac_srcdir=. 11609 ac_top_srcdir=$ac_top_builddir_sub 11610 ac_abs_top_srcdir=$ac_pwd ;; 11611 [\\/]* | ?:[\\/]* ) # Absolute name. 11612 ac_srcdir=$srcdir$ac_dir_suffix; 11613 ac_top_srcdir=$srcdir 11614 ac_abs_top_srcdir=$srcdir ;; 11615 *) # Relative name. 11616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11617 ac_top_srcdir=$ac_top_build_prefix$srcdir 11618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11619esac 11620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11621 11622 11623 case $ac_mode in 11624 :F) 11625 # 11626 # CONFIG_FILE 11627 # 11628 11629 case $INSTALL in 11630 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11631 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11632 esac 11633 ac_MKDIR_P=$MKDIR_P 11634 case $MKDIR_P in 11635 [\\/$]* | ?:[\\/]* ) ;; 11636 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11637 esac 11638_ACEOF 11639 11640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11641# If the template does not know about datarootdir, expand it. 11642# FIXME: This hack should be removed a few years after 2.60. 11643ac_datarootdir_hack=; ac_datarootdir_seen= 11644ac_sed_dataroot=' 11645/datarootdir/ { 11646 p 11647 q 11648} 11649/@datadir@/p 11650/@docdir@/p 11651/@infodir@/p 11652/@localedir@/p 11653/@mandir@/p' 11654case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11655*datarootdir*) ac_datarootdir_seen=yes;; 11656*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11658$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11659_ACEOF 11660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11661 ac_datarootdir_hack=' 11662 s&@datadir@&$datadir&g 11663 s&@docdir@&$docdir&g 11664 s&@infodir@&$infodir&g 11665 s&@localedir@&$localedir&g 11666 s&@mandir@&$mandir&g 11667 s&\\\${datarootdir}&$datarootdir&g' ;; 11668esac 11669_ACEOF 11670 11671# Neutralize VPATH when `$srcdir' = `.'. 11672# Shell code in configure.ac might set extrasub. 11673# FIXME: do we really want to maintain this feature? 11674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11675ac_sed_extra="$ac_vpsub 11676$extrasub 11677_ACEOF 11678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11679:t 11680/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11681s|@configure_input@|$ac_sed_conf_input|;t t 11682s&@top_builddir@&$ac_top_builddir_sub&;t t 11683s&@top_build_prefix@&$ac_top_build_prefix&;t t 11684s&@srcdir@&$ac_srcdir&;t t 11685s&@abs_srcdir@&$ac_abs_srcdir&;t t 11686s&@top_srcdir@&$ac_top_srcdir&;t t 11687s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11688s&@builddir@&$ac_builddir&;t t 11689s&@abs_builddir@&$ac_abs_builddir&;t t 11690s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11691s&@INSTALL@&$ac_INSTALL&;t t 11692s&@MKDIR_P@&$ac_MKDIR_P&;t t 11693$ac_datarootdir_hack 11694" 11695eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11696 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11697 11698test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11699 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11700 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11701 "$ac_tmp/out"`; test -z "$ac_out"; } && 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11703which seems to be undefined. Please make sure it is defined" >&5 11704$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11705which seems to be undefined. Please make sure it is defined" >&2;} 11706 11707 rm -f "$ac_tmp/stdin" 11708 case $ac_file in 11709 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11710 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11711 esac \ 11712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11713 ;; 11714 :H) 11715 # 11716 # CONFIG_HEADER 11717 # 11718 if test x"$ac_file" != x-; then 11719 { 11720 $as_echo "/* $configure_input */" \ 11721 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11722 } >"$ac_tmp/config.h" \ 11723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11724 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11726$as_echo "$as_me: $ac_file is unchanged" >&6;} 11727 else 11728 rm -f "$ac_file" 11729 mv "$ac_tmp/config.h" "$ac_file" \ 11730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11731 fi 11732 else 11733 $as_echo "/* $configure_input */" \ 11734 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11735 || as_fn_error $? "could not create -" "$LINENO" 5 11736 fi 11737# Compute "$ac_file"'s index in $config_headers. 11738_am_arg="$ac_file" 11739_am_stamp_count=1 11740for _am_header in $config_headers :; do 11741 case $_am_header in 11742 $_am_arg | $_am_arg:* ) 11743 break ;; 11744 * ) 11745 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11746 esac 11747done 11748echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11749$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11750 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11751 X"$_am_arg" : 'X\(//\)$' \| \ 11752 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11753$as_echo X"$_am_arg" | 11754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11755 s//\1/ 11756 q 11757 } 11758 /^X\(\/\/\)[^/].*/{ 11759 s//\1/ 11760 q 11761 } 11762 /^X\(\/\/\)$/{ 11763 s//\1/ 11764 q 11765 } 11766 /^X\(\/\).*/{ 11767 s//\1/ 11768 q 11769 } 11770 s/.*/./; q'`/stamp-h$_am_stamp_count 11771 ;; 11772 11773 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11774$as_echo "$as_me: executing $ac_file commands" >&6;} 11775 ;; 11776 esac 11777 11778 11779 case $ac_file$ac_mode in 11780 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11781 # Autoconf 2.62 quotes --file arguments for eval, but not when files 11782 # are listed without --file. Let's play safe and only enable the eval 11783 # if we detect the quoting. 11784 case $CONFIG_FILES in 11785 *\'*) eval set x "$CONFIG_FILES" ;; 11786 *) set x $CONFIG_FILES ;; 11787 esac 11788 shift 11789 for mf 11790 do 11791 # Strip MF so we end up with the name of the file. 11792 mf=`echo "$mf" | sed -e 's/:.*$//'` 11793 # Check whether this is an Automake generated Makefile or not. 11794 # We used to match only the files named `Makefile.in', but 11795 # some people rename them; so instead we look at the file content. 11796 # Grep'ing the first line is not enough: some people post-process 11797 # each Makefile.in and add a new line on top of each file to say so. 11798 # Grep'ing the whole file is not good either: AIX grep has a line 11799 # limit of 2048, but all sed's we know have understand at least 4000. 11800 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11801 dirpart=`$as_dirname -- "$mf" || 11802$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11803 X"$mf" : 'X\(//\)[^/]' \| \ 11804 X"$mf" : 'X\(//\)$' \| \ 11805 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11806$as_echo X"$mf" | 11807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11808 s//\1/ 11809 q 11810 } 11811 /^X\(\/\/\)[^/].*/{ 11812 s//\1/ 11813 q 11814 } 11815 /^X\(\/\/\)$/{ 11816 s//\1/ 11817 q 11818 } 11819 /^X\(\/\).*/{ 11820 s//\1/ 11821 q 11822 } 11823 s/.*/./; q'` 11824 else 11825 continue 11826 fi 11827 # Extract the definition of DEPDIR, am__include, and am__quote 11828 # from the Makefile without running `make'. 11829 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11830 test -z "$DEPDIR" && continue 11831 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11832 test -z "am__include" && continue 11833 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11834 # When using ansi2knr, U may be empty or an underscore; expand it 11835 U=`sed -n 's/^U = //p' < "$mf"` 11836 # Find all dependency output files, they are included files with 11837 # $(DEPDIR) in their names. We invoke sed twice because it is the 11838 # simplest approach to changing $(DEPDIR) to its actual value in the 11839 # expansion. 11840 for file in `sed -n " 11841 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11842 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 11843 # Make sure the directory exists. 11844 test -f "$dirpart/$file" && continue 11845 fdir=`$as_dirname -- "$file" || 11846$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11847 X"$file" : 'X\(//\)[^/]' \| \ 11848 X"$file" : 'X\(//\)$' \| \ 11849 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11850$as_echo X"$file" | 11851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11852 s//\1/ 11853 q 11854 } 11855 /^X\(\/\/\)[^/].*/{ 11856 s//\1/ 11857 q 11858 } 11859 /^X\(\/\/\)$/{ 11860 s//\1/ 11861 q 11862 } 11863 /^X\(\/\).*/{ 11864 s//\1/ 11865 q 11866 } 11867 s/.*/./; q'` 11868 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11869 # echo "creating $dirpart/$file" 11870 echo '# dummy' > "$dirpart/$file" 11871 done 11872 done 11873} 11874 ;; 11875 11876 esac 11877done # for ac_tag 11878 11879 11880as_fn_exit 0 11881_ACEOF 11882ac_clean_files=$ac_clean_files_save 11883 11884test $ac_write_fail = 0 || 11885 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11886 11887 11888# configure is writing to config.log, and then calls config.status. 11889# config.status does its own redirection, appending to config.log. 11890# Unfortunately, on DOS this fails, as config.log is still kept open 11891# by configure, so config.status won't be able to write to it; its 11892# output is simply discarded. So we exec the FD to /dev/null, 11893# effectively closing config.log, so it can be properly (re)opened and 11894# appended to by config.status. When coming back to configure, we 11895# need to make the FD available again. 11896if test "$no_create" != yes; then 11897 ac_cs_success=: 11898 ac_config_status_args= 11899 test "$silent" = yes && 11900 ac_config_status_args="$ac_config_status_args --quiet" 11901 exec 5>/dev/null 11902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11903 exec 5>>config.log 11904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11905 # would make configure fail if this is the last instruction. 11906 $ac_cs_success || as_fn_exit 1 11907fi 11908if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11910$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11911fi 11912 11913